aur-mirror /mini_httpd/PKGBUILD

Language Unknown Lines 29
MD5 Hash bf099ed53be3071b7ac44ab95ae597f3
Repository https://bitbucket.org/axil42/aur-mirror.git View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# 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
}
Back to Top