-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from Deric-W/dev
Dev
- Loading branch information
Showing
9 changed files
with
121 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
pyhp (1.2-1) stable; urgency=low | ||
|
||
* third release | ||
* add support for ~ as home directory in cache_path | ||
* add debian package | ||
|
||
-- Eric Wolf <[email protected]> Tue, 13 Aug 2019 18:07:00 +0100 | ||
|
||
pyhp (1.1-1) stable; urgency=low | ||
|
||
* second release | ||
* add register_shutdown_function | ||
* add header_register_callback | ||
* add config | ||
* reworked caching to use handlers (old code as files_mtime handler) | ||
* reworked caching to use handlers (old code as files_mtime handler) | ||
* reworked prepare file | ||
* now using argparse | ||
* changed directory structure (see pyhp.conf) | ||
|
||
-- Eric Wolf <[email protected]> Sat, 03 Aug 2019 15:30:00 +0100 | ||
|
||
pyhp (1.0-1) stable; urgency=low | ||
|
||
* first release | ||
* add basic functionality | ||
|
||
-- Eric Wolf <[email protected]> Sat, 29 Jun 2019 19:00:00 +0100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/etc/pyhp.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Package: pyhp | ||
Version: 1.2-1 | ||
Architecture: all | ||
Maintainer: Eric Wolf <[email protected]> | ||
Installed-Size: 21 | ||
Depends: python3:any (>= 3.5) | ||
Suggests: apache2 | ||
Section: web | ||
Priority: optional | ||
Homepage: https://github.com/Deric-W/PyHP-Interpreter | ||
Description: Interprets and executes pyhp files. | ||
PyHP is a script for interpreting and executing pyhp files, with several PHP functions available. | ||
pyhp files are (mostly) HTML files that have embedded Python source code and can be used for creating dynamic web pages. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ | ||
Upstream-Name: pyhp | ||
Upstream-Contact: Eric Wolf <[email protected]> | ||
Source: https://github.com/Deric-W/PyHP-Interpreter | ||
Copyright: 2019 Eric Wolf | ||
License: Expat | ||
|
||
Files: * | ||
Copyright: 2019 Eric Wolf | ||
License: Expat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
echo "Name of package?" | ||
read package | ||
mkdir $package | ||
|
||
mkdir $package/etc | ||
wget -nv -O $package/etc/pyhp.conf --tries=3 https://raw.githubusercontent.com/Deric-W/PyHP-Interpreter/master/pyhp.conf | ||
chown root $package/etc/pyhp.conf | ||
chgrp root $package/etc/pyhp.conf | ||
|
||
mkdir $package/lib | ||
mkdir $package/lib/pyhp | ||
mkdir $package/lib/pyhp/cache_handlers | ||
wget -nv -O $package/lib/pyhp/cache_handlers/files_mtime.py --tries=3 https://raw.githubusercontent.com/Deric-W/PyHP-Interpreter/master/cache_handlers/files_mtime.py | ||
chown root $package/lib/pyhp/cache_handlers/files_mtime.py | ||
chgrp root $package/lib/pyhp/cache_handlers/files_mtime.py | ||
|
||
mkdir $package/usr | ||
mkdir $package/usr/bin | ||
wget -nv -O $package/usr/bin/pyhp --tries=3 https://raw.githubusercontent.com/Deric-W/PyHP-Interpreter/master/pyhp.py | ||
chown root $package/usr/bin/pyhp | ||
chgrp root $package/usr/bin/pyhp | ||
chmod +x $package/usr/bin/pyhp | ||
|
||
mkdir $package/DEBIAN | ||
wget -nv -O $package/DEBIAN/control --tries=3 https://raw.githubusercontent.com/Deric-W/PyHP-Interpreter/master/debian/control | ||
chown root $package/DEBIAN/control | ||
chgrp root $package/DEBIAN/control | ||
|
||
wget -nv -O $package/DEBIAN/conffiles --tries=3 https://raw.githubusercontent.com/Deric-W/PyHP-Interpreter/master/debian/conffiles | ||
chown root $package/DEBIAN/conffiles | ||
chgrp root $package/DEBIAN/conffiles | ||
|
||
mkdir $package/usr/share | ||
mkdir $package/usr/share/doc | ||
mkdir $package/usr/share/doc/pyhp | ||
wget -nv -O $package/usr/share/doc/pyhp/copyright --tries=3 https://raw.githubusercontent.com/Deric-W/PyHP-Interpreter/master/debian/copyright | ||
chown root $package/usr/share/doc/pyhp/copyright | ||
chgrp root $package/usr/share/doc/pyhp/copyright | ||
|
||
wget -nv -O $package/usr/share/doc/pyhp/changelog.Debian --tries=3 https://raw.githubusercontent.com/Deric-W/PyHP-Interpreter/master/debian/changelog | ||
gzip -n --best $package/usr/share/doc/pyhp/changelog.Debian | ||
chown root $package/usr/share/doc/pyhp/changelog.Debian.gz | ||
chgrp root $package/usr/share/doc/pyhp/changelog.Debian.gz | ||
|
||
chdir $package | ||
md5sum etc/pyhp.conf >> DEBIAN/md5sums | ||
md5sum lib/pyhp/cache_handlers/files_mtime.py >> DEBIAN/md5sums | ||
md5sum usr/bin/pyhp >> DEBIAN/md5sums | ||
md5sum usr/share/doc/pyhp/copyright >> DEBIAN/md5sums | ||
md5sum usr/share/doc/pyhp/changelog.Debian.gz >> DEBIAN/md5sums | ||
chdir ../ | ||
|
||
dpkg-deb --build $package | ||
|
||
rm -rf $package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters