Commit | Line | Data |
---|---|---|
209feeb0 H |
1 | # $Id: PKGBUILD 26493 2009-02-08 05:39:36Z eric $ |
2 | # Maintainer: Damir Perisa <damir.perisa@bluewin.ch> | |
3 | ||
4 | pkgname=thttpd | |
5 | pkgver=2.25b | |
6 | pkgrel=2 | |
7 | pkgdesc="tiny/turbo/throttling HTTP server" | |
8 | arch=(i686 x86_64) | |
9 | url="http://www.acme.com/software/thttpd/" | |
10 | license=('BSD') | |
11 | depends=('bash') | |
12 | backup=('usr/www/thttpd_config') | |
13 | conflicts=('apache') | |
14 | source=(http://www.acme.com/software/thttpd/$pkgname-$pkgver.tar.gz \ | |
15 | thttpd thttpd_config LICENSE) | |
16 | md5sums=('156b249b3b0bcd48b06badd2db0d56c5' '256b995472c8f0fea235b46fdd97e6ec'\ | |
17 | 'b899c226895dcaa3fb131e98720843c1' '0c5762c2c34dcbe9eb18815516502872') | |
18 | ||
19 | build() { | |
20 | cd $startdir/src/$pkgname-$pkgver | |
21 | ./configure --prefix=/usr --mandir=/usr/share/man || return 1 | |
22 | make || return 1 | |
23 | install -d $startdir/pkg/usr/sbin | |
24 | install -d $startdir/pkg/usr/share/man/man{1,8} | |
25 | install -d $startdir/pkg/usr/www/data/log | |
26 | make BINDIR=$startdir/pkg/usr/sbin \ | |
27 | MANDIR=$startdir/pkg/usr/share/man WEBDIR=$startdir/pkg/usr/www \ | |
28 | WEBGROUP=root install || return 1 | |
29 | chown root:root $startdir/pkg/usr/share/man/man8/thttpd.8 | |
30 | install -D -m755 ../thttpd $startdir/pkg/etc/rc.d/thttpd | |
31 | install -D -m755 ../thttpd_config $startdir/pkg/usr/www/thttpd_config | |
32 | install -D -m644 ../LICENSE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE | |
33 | } | |
34 |