diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e89ad1549d3d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: mrxx <mrxx at cyberhome dot at> +# Contributors: Se7endAY, Nathan Owe <ndowens04 at gmail> + +pkgname=bozohttpd +pkgver=20150320 +pkgrel=1 +pkgdesc="A small and secure HTTP version 1.1 server" +arch=('i686' 'x86_64') +url="http://www.eterna.com.au/bozohttpd/" +license=('BSD') +depends=('openssl') +optdepends=('php-cgi') +source=("http://www.eterna.com.au/${pkgname}/${pkgname}-${pkgver}.tar.bz2" + 'bozohttpd.service' + 'bozohttpd.install' + 'sample_index.html' + 'sample_index.php' +) +md5sums=('60e2cf933d028a096523214fab8e6590' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' +) +install=bozohttpd.install + +build() +{ + cd "${pkgname}-${pkgver}" + cp Makefile.boot Makefile + sed -i 's/d_namlen/d_reclen/g' bozohttpd.c + make || return 1 +} + +package() +{ + cd "${pkgname}-${pkgver}" + mkdir -p "${pkgdir}"/usr/{bin,share/{${pkgname},man/man8}} + install -D *.* testsuite/*.* testsuite/data/*.* "${pkgdir}/usr/share/${pkgname}/" + install -m755 bozohttpd "${pkgdir}/usr/bin/" + install -m644 bozohttpd.8 "${pkgdir}/usr/share/man/man8/" + cd "$srcdir" + install -Dm644 bozohttpd.service "${pkgdir}"/usr/lib/systemd/system/bozohttpd.service + mkdir -p -m 755 "${pkgdir}"/srv/http/{www,cgi-bin} + install -Dm644 sample_index.html "${pkgdir}/srv/http/www/" + chown nobody.nobody "${pkgdir}/srv/http/www/sample_index.html" + install -Dm644 sample_index.php "${pkgdir}/srv/http/www/" + chown nobody.nobody "${pkgdir}/srv/http/www/sample_index.php" +} |