blob: e89ad1549d3d386eb681705abc6571e0846143ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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"
}
|