# Maintainer: Natanael Copa pkgname=mini_httpd pkgver=1.21 pkgrel=0 pkgdesc="Small forking webserver with ssl and ipv6 support" url="http://www.acme.com/software/mini_httpd/" arch="all" license="BSD" depends="logrotate" makedepends="openssl-dev" subpackages="$pkgname-doc" install="$pkgname.pre-install $pkgname.pre-upgrade" source="http://www.acme.com/software/mini_httpd/$pkgname-$pkgver.tar.gz $pkgname.conf.sample $pkgname.initd $pkgname.logrotate " _builddir="$srcdir/$pkgname-$pkgver" prepare() { cd "$_builddir" sed -i s:getline:htgetline:g \ htpasswd.c || return 1 } build() { cd "$_builddir" make CFLAGS="${CFLAGS} -DUSE_SSL" \ LDFLAGS="${LDFLAGS}" \ SSL_LIBS="-lssl -lcrypto" \ || return 1 } package() { cd "$_builddir" # does not respect DESTDIR make install \ BINDIR="$pkgdir"/usr/sbin \ MANDIR="$pkgdir"/usr/share/man # rename htpasswd to mini_htpasswd mv "$pkgdir"/usr/sbin/htpasswd "$pkgdir"/usr/sbin/mini_htpasswd mv "$pkgdir"/usr/share/man/man1/htpasswd.1 \ "$pkgdir"/usr/share/man/man1/mini_htpasswd.1 mkdir -p "$pkgdir"/var/www/localhost/htdocs install -D -m644 ../mini_httpd.conf.sample \ "$pkgdir"/etc/mini_httpd/mini_httpd.conf install -D -m755 ../mini_httpd.initd "$pkgdir"/etc/init.d/mini_httpd install -D -m644 ../mini_httpd.logrotate \ "$pkgdir"/etc/logrotate.d/mini_httpd install -d "$pkgdir"/var/run/mini_httpd "$pkgdir"/var/log/mini_httpd } md5sums="c7d18a2952eb44282366c127e6dc3870 mini_httpd-1.21.tar.gz 2cd6630a7e19461b31a93504a8b6b24b mini_httpd.conf.sample daf6c5a53a6e7ef77e9dcf3c8c4d4b1f mini_httpd.initd 915683e9c7e1cef7ce9b1bbaa31ab680 mini_httpd.logrotate" sha256sums="0829969f6e8cd7263dfc0eeeaddc92b9a564c7a68bc72b2d1b4af6c2198d9931 mini_httpd-1.21.tar.gz 1172cca62ce56dd857d8af3ac17bc5c9868ad51c9e955adeefb3667c1a2c152f mini_httpd.conf.sample 23f3dd256f0b3e8ef0d7ba184954d9ce2f7825b90583a03d8fb4e4409d20a89f mini_httpd.initd e7b4388fc574916b0b4948c60655f55c51a481fe1b2c2f34c55775f0c454bcb5 mini_httpd.logrotate" sha512sums="e5f0e0450d2f464bda1ff0e0dff90422c9f54d28a2cbab028a2d02db0636ad6936d2871f35ec089e57cf5aa2e1f0fed27e195be110367c8d8dffe3e3f4367201 mini_httpd-1.21.tar.gz 2b932def0c9c2cd61cefc24de9d98b0c12c8aed2f00fa530783650e42897c7ad3dcc988f912deafb3ef1d55e1e602d62ece49a926bbd2c7dc7dc173f9ec04d9c mini_httpd.conf.sample f3ea1e2766bcd4dfd086ca666f70526d8e35f734aeabf5f96949e6d1b11aac5a0be5381e9e20541521743b89239d933fe8fb6a93bf9aa964ae71f8859a39e004 mini_httpd.initd ebaae32d151de8d8f923b0bbfd7a3524d47ee96fce46b46e8f44f5495459828508bb98b3c0250c76bf76e205f61ef4dfc273835731e3edf8e3d51761dd638e3c mini_httpd.logrotate"