1 # Maintainer: Stewart Starbuck <stewart@stewartstarbuck.co.uk>
2 # Contributor: Damir Perisa <damir.perisa@bluewin.ch>
7 pkgdesc="tiny/turbo/throttling HTTP server"
9 url="http://www.acme.com/software/thttpd/"
12 backup=('etc/thttpd/thttpd_config')
13 install=${pkgname}.install
14 source=(http://www.acme.com/software/thttpd/$pkgname-$pkgver.tar.gz \
15 thttpd thttpd_config LICENSE thttpd-2.25b-getline.patch)
18 cd $srcdir/$pkgname-$pkgver
19 patch -Np1 -i $srcdir/thttpd-2.25b-getline.patch || return 1
21 ./configure --prefix=/usr \
22 --mandir=/usr/share/man || return 1
25 install -d $pkgdir/usr/sbin
26 install -d $pkgdir/usr/share/man/man{1,8}
27 install -d $pkgdir/srv/http
28 install -d $pkgdir/var/log/thttpd
30 make BINDIR=$pkgdir/usr/sbin \
31 MANDIR=$pkgdir/usr/share/man WEBDIR=$pkgdir/srv/http \
32 WEBGROUP=root install || return 1
34 chown root:root $pkgdir/usr/share/man/man8/thttpd.8
35 chown root:root $pkgdir/usr/sbin/thttpd
36 install -D -m755 ../thttpd $pkgdir/etc/rc.d/thttpd
37 install -D -m755 ../thttpd_config $pkgdir/etc/thttpd/thttpd_config
39 install -D -m644 ../LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
42 sha256sums=('07719b08b1cff6a21c08697a7bcb4395425b07ee753106262fb62a03a7d32360'
43 '9cf9b42633a53be922acdceada79897081ab9b987f2d9c20ce090a354114ef28'
44 'ba39cac03bc3b616baf076a9bcb8db9d9d8329ad2788f9f9f0e714a3c14f09a1'
45 '2a2480c032320a319b387c929b9e5e4ae4dad248ec8abb3b3accac99462368ef'
46 'ab054c6178c91213293e2ad5eacec4d76a43c2140cbd4e516480acba9146e1d5')