PageRenderTime 23ms CodeModel.GetById 15ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 1ms

/mini_httpd/PKGBUILD

https://bitbucket.org/axil42/aur-mirror
#! | 28 lines | 27 code | 1 blank | 0 comment | 0 complexity | bf099ed53be3071b7ac44ab95ae597f3 MD5 | raw file
 1# Contributor: bender02 at gmx dot com
 2pkgname=mini_httpd
 3pkgver=1.19
 4pkgrel=2
 5pkgdesc="A small and simple forking http server. CGI, SSL, auth, vhosts, ipv6."
 6url="http://www.acme.com/software/mini_httpd/"
 7arch=('i686' 'x86_64')
 8license=('custom')
 9depends=('openssl')
10backup=('etc/mini_httpd.conf')
11source=("http://www.acme.com/software/mini_httpd/$pkgname-$pkgver.tar.gz"
12        rcd.mini_httpd mini_httpd.conf LICENSE)
13md5sums=('7c68293ad265ecfe2edea917912f6f1f'
14         '1901c0cbbe8d34abba655c25b8638657'
15         '5e885c71f4d32ada37308d3f17928517'
16         '86fbec9008a1d8f2d6a73e22d3ae3467')
17
18build() {
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
23  make || 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
28}