/mini_httpd/PKGBUILD
#! | 28 lines | 27 code | 1 blank | 0 comment | 0 complexity | bf099ed53be3071b7ac44ab95ae597f3 MD5 | raw file
Possible License(s): IPL-1.0, Apache-2.0, LGPL-2.0, Unlicense, MPL-2.0-no-copyleft-exception, LGPL-2.1, JSON, GPL-3.0, MPL-2.0, CC0-1.0, CC-BY-SA-3.0, LGPL-3.0, WTFPL, BSD-2-Clause, 0BSD, BitTorrent-1.0, Cube, EPL-1.0, ISC, BSD-3-Clause, AGPL-3.0, GPL-2.0, MIT, AGPL-1.0, CC-BY-3.0
- # Contributor: bender02 at gmx dot com
- pkgname=mini_httpd
- pkgver=1.19
- pkgrel=2
- pkgdesc="A small and simple forking http server. CGI, SSL, auth, vhosts, ipv6."
- url="http://www.acme.com/software/mini_httpd/"
- arch=('i686' 'x86_64')
- license=('custom')
- depends=('openssl')
- backup=('etc/mini_httpd.conf')
- source=("http://www.acme.com/software/mini_httpd/$pkgname-$pkgver.tar.gz"
- rcd.mini_httpd mini_httpd.conf LICENSE)
- md5sums=('7c68293ad265ecfe2edea917912f6f1f'
- '1901c0cbbe8d34abba655c25b8638657'
- '5e885c71f4d32ada37308d3f17928517'
- '86fbec9008a1d8f2d6a73e22d3ae3467')
- build() {
- cd $srcdir/$pkgname-$pkgver
- sed -i -e 's|#SSL_|SSL_|' Makefile || return 1
- sed -i -e '/SSL_TREE/s|/usr/local/ssl|/usr|' Makefile || return 1
- sed -i -e 's/getline/my_getline/' htpasswd.c || return 1
- make || return 1
- make BINDIR=$pkgdir/usr/bin MANDIR=$pkgdir/usr/share/man install || return 1
- install -D -m 644 $srcdir/mini_httpd.conf $pkgdir/etc/mini_httpd.conf || return 1
- install -D -m 755 $srcdir/rcd.mini_httpd $pkgdir/etc/rc.d/mini_httpd || return 1
- install -D $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/COPYING || return 1
- }