blob: 7d95b65a4a0244e81c13772820ddb161701f9b95 (
plain)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mini_httpd
pkgver=1.25
pkgrel=1
pkgdesc="Small forking webserver with ssl and ipv6 support"
url="http://www.acme.com/software/mini_httpd/"
arch="all"
license="BSD"
depends="logrotate"
makedepends="libressl-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="e3fc3f28526b8cf810eea91a219851a0 mini_httpd-1.25.tar.gz
9254094233d05a69b2953dd9e8c9ce1c mini_httpd.conf.sample
1679e25f17788a8c9be752ff059bbd9b mini_httpd.initd
915683e9c7e1cef7ce9b1bbaa31ab680 mini_httpd.logrotate"
sha256sums="25a0325e698d6bf828ab8089d5ba8835edd7384936cd3074e1543ecafd85958c mini_httpd-1.25.tar.gz
bc6fb1d7a1ac42549b469be5dd4368a5afca502562f9488a7061f16d0434d353 mini_httpd.conf.sample
cae12348aa748a24d52ca51c7846e5af28e3bf3c57c08b5f436b1fb82f4aa0cd mini_httpd.initd
e7b4388fc574916b0b4948c60655f55c51a481fe1b2c2f34c55775f0c454bcb5 mini_httpd.logrotate"
sha512sums="59cbcef642a8c734bf85517958e807d4790b42ed2ab00e1cef1781d391609cf6e5602cfff4a1833423edf5ee2ada5dbd5443aa701e9a626db500cd07c84a6cbb mini_httpd-1.25.tar.gz
4ecb6a2686cebfa97ff5f7ab99f6903d43468a01eea9d3e5852f2bcc48f280b538a17acaa30aff05ea4645df8bfa6544082a494452e1eff9745f86460e378411 mini_httpd.conf.sample
821e775318d7fff1f77dc3bd08ac2095233a9224be424eb796c1d6eae6cea5b1ed99a6b18d367bb120ceff5f5a2026f88c6bc3d54a754120bc68b27ea7c46a49 mini_httpd.initd
ebaae32d151de8d8f923b0bbfd7a3524d47ee96fce46b46e8f44f5495459828508bb98b3c0250c76bf76e205f61ef4dfc273835731e3edf8e3d51761dd638e3c mini_httpd.logrotate"
|