1
0
Fork 0
mirror of https://gitlab.com/niansa/simpsh-httpd.git synced 2025-03-06 20:53:36 +01:00
simpsh-httpd/mkdeb.sh
2020-08-02 22:24:46 +02:00

31 lines
816 B
Bash
Executable file

# Change to users home
cd
# Clone the repository
git clone https://gitlab.com/niansa/simpsh-httpd.git
# Make the mkpackage script executable
chmod +x ./simpsh-httpd/mkpackage.sh
# Call package-generator script
./simpsh-httpd/mkpackage.sh ~/simpsh-httpd/ ~/simpsh-httpd-pkg/
# Create Package info
mkdir ~/simpsh-httpd-pkg/DEBIAN
cd ./simpsh-httpd/
echo 'Package: simpsh-httpd
Version: '"$(git rev-list --all --count)"'
Maintainer: nisa/niansa <nisa@bitcoinshell.mooo.com>
Priority: extra
Architecture: all
Depends: bash, socat
Recommends: php-cli, pandoc
Description: An usable bash-httpserver with easy configuration and very simple PHP' > ~/simpsh-httpd-pkg/DEBIAN/control
cd ..
# Build package
fakeroot dpkg -b ~/simpsh-httpd-pkg ~/simpsh-httpd.deb
# Clean up
rm -rf ~/simpsh-httpd-pkg
rm -rf ~/simpsh-httpd