1 # Contributor: bender02 at gmx dot com
5 pkgdesc="A small and simple forking http server. CGI, SSL, auth, vhosts, ipv6."
6 url="http://www.acme.com/software/mini_httpd/"
10 backup=('etc/mini_httpd.conf')
11 source=("http://www.acme.com/software/mini_httpd/$pkgname-$pkgver.tar.gz"
12 rcd.mini_httpd mini_httpd.conf LICENSE)
13 md5sums=('7c68293ad265ecfe2edea917912f6f1f'
14 '1901c0cbbe8d34abba655c25b8638657'
15 '5e885c71f4d32ada37308d3f17928517'
16 '86fbec9008a1d8f2d6a73e22d3ae3467')
19 cd $srcdir/$pkgname-$pkgver
20 sed -i -e 's|#SSL_|SSL_|' Makefile || return 1
21 sed -i -e '/SSL_TREE/s|/usr/local/ssl|/usr|' Makefile || return 1
22 sed -i -e 's/getline/my_getline/' htpasswd.c || return 1
24 make BINDIR=$pkgdir/usr/bin MANDIR=$pkgdir/usr/share/man install || return 1
25 install -D -m 644 $srcdir/mini_httpd.conf $pkgdir/etc/mini_httpd.conf || return 1
26 install -D -m 755 $srcdir/rcd.mini_httpd $pkgdir/etc/rc.d/mini_httpd || return 1
27 install -D $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/COPYING || return 1