blob: df24c536cd4b86e3bba2a80d39e869a9cbfbd198 (
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.23
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="fb8ba6d826a8b28d1885a9fca473c120 mini_httpd-1.23.tar.gz
2cd6630a7e19461b31a93504a8b6b24b mini_httpd.conf.sample
f8e68c02d124007f21fb08cdc53c76a0 mini_httpd.initd
915683e9c7e1cef7ce9b1bbaa31ab680 mini_httpd.logrotate"
sha256sums="bcc8c88392a4baeba5fa3ca8b924e9558c3dcb3018989b228d4f621acc8fffca mini_httpd-1.23.tar.gz
1172cca62ce56dd857d8af3ac17bc5c9868ad51c9e955adeefb3667c1a2c152f mini_httpd.conf.sample
6bc70b6842886f43e35cb7964fa4840075715d31929d6266bf5d3aa97bc25bad mini_httpd.initd
e7b4388fc574916b0b4948c60655f55c51a481fe1b2c2f34c55775f0c454bcb5 mini_httpd.logrotate"
sha512sums="a3895830d0a3d2f649ef46948eb7dbf7319402c7e610859fec5e7bc04acafa10c22a170baf70582a392b5758696cf4fdebe3718de9c7f40cfaa3ea80b957238a mini_httpd-1.23.tar.gz
2b932def0c9c2cd61cefc24de9d98b0c12c8aed2f00fa530783650e42897c7ad3dcc988f912deafb3ef1d55e1e602d62ece49a926bbd2c7dc7dc173f9ec04d9c mini_httpd.conf.sample
fe4c747d8f801935d443c25dbb9065bec9ade6358b4e0c29f79514adcef7206b6511db3cd01ad9706f8a78e7d3e267cb5673cccca299db249debc2cc86b6372a mini_httpd.initd
ebaae32d151de8d8f923b0bbfd7a3524d47ee96fce46b46e8f44f5495459828508bb98b3c0250c76bf76e205f61ef4dfc273835731e3edf8e3d51761dd638e3c mini_httpd.logrotate"
|