blob: 3c80b7a9c56f36bf1e16bc9c45daca47ef1d8c34 (
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
# Contributor: z3bra <willy at mailoo dot org>
# Maintainer:
pkgname=thttpd
pkgver=2.25b
pkgrel=0
pkgdesc="Simple, small, portable, fast, adn secure HTTP server"
url="http://www.acme.com/software/thttpd"
arch="all"
license="custom:BSD"
depends=""
depends_dev=""
makedepends="$depends_dev"
install="$pkgname.pre-install $pkgname.post-install"
subpackages="$pkgname-doc"
source="http://www.acme.com/software/$pkgname/$pkgname-$pkgver.tar.gz
thttpd.initd
thttpd.confd
thttpd.conf
thttpd.logrotated
discreet.patch
forwarded-for.patch
getline.patch
"
_builddir=$srcdir/$pkgname-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
echo 'mkv video/x-matroska' >> mime_types.txt
}
build() {
cd "$_builddir"
./configure --prefix=/usr --mandir=/usr/share/man
sed -e 's/^CFLAGS =/CFLAGS +=/' \
-e '/^STATICFLAG =/c STATICFLAG =' \
-i Makefile */Makefile || return 1
make || return 1
}
package() {
cd "$_builddir"
mkdir -p $pkgdir/usr/share/man/man1
make \
BINDIR="$pkgdir"/usr/sbin \
WEBDIR="$pkgdir"/var/www/http \
MANDIR="$pkgdir"/usr/share/man \
WEBGROUP=root install || return 1
rm -rf "$pkgdir"/var/www/http/*
install -m755 -D "$srcdir"/$pkgname.initd \
"$pkgdir"/etc/init.d/$pkgname || return 1
install -m644 -D "$srcdir"/$pkgname.confd \
"$pkgdir"/etc/conf.d/$pkgname || return 1
install -m644 -D "$srcdir"/$pkgname.conf \
"$pkgdir"/etc/thttpd.conf || return 1
install -m644 -D "$srcdir"/$pkgname.logrotated \
"$pkgdir"/etc/logrotate.d/thttpd || return 1
install -d "$pkgdir"/var/log/thttpd
install -d "$pkgdir"/usr/share/licenses/"$pkgname"
head -n 26 thttpd.c > \
"$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE || return 1
}
md5sums="156b249b3b0bcd48b06badd2db0d56c5 thttpd-2.25b.tar.gz
e73c541527e4784e1e234bab896fbe99 thttpd.initd
7e53378c3ab359beee6f1b3198bdb353 thttpd.confd
1828991ab3b4836247c94a7deb8947fa thttpd.conf
e29e38de0195bdbacec8daaa016cabfa thttpd.logrotated
055692a3037c35addc13e897ff8e5a02 discreet.patch
9976ae6a2bb06b076a100c05235a72b8 forwarded-for.patch
bf80d29e633eb0f6e3934649f9e010b2 getline.patch"
sha256sums="07719b08b1cff6a21c08697a7bcb4395425b07ee753106262fb62a03a7d32360 thttpd-2.25b.tar.gz
f20245ba64135f6a29cc3380d1940e2052e89edd56b12c4457009846b051bd15 thttpd.initd
25f55ad96c73d8c22117dd6ef331e85fed5a3ba78b4b0ec329832e82a4159e4e thttpd.confd
7fd376775c131474e123800b625fc43784c279b875061f4d5e3343742474355c thttpd.conf
774ac53a3ea2b9ccf08b8ce75bf0253f72e25054ed0cd0bae4e257526248376c thttpd.logrotated
da061d265b41d85aa5036dc439225e3fe709599b881e44ed8837a3c00fc54e7f discreet.patch
eb3be98c65b8f9297867205772cd9939f526ac1c2227c24ba7e8ff754dd2216c forwarded-for.patch
ab054c6178c91213293e2ad5eacec4d76a43c2140cbd4e516480acba9146e1d5 getline.patch"
sha512sums="52cbf3eb95ad868b60af2bd45620142cc8c6a80c3ff31ca853640a944d38594ac53e060b950bd028b3be49da97db5e10b41073d21b3f49b73a54ee01349a6b1d thttpd-2.25b.tar.gz
eeb042150c3b29b89c667cb8afc92d026e6b6cf772409dfb235fbd45823651b5e755cd93e3ae88304d77f171de8b3c46d558ac9c35eb9d2b640151b1761c89b7 thttpd.initd
9b4309c2bc88d11ce71d40ab813e9cbe78e4ec7368e3e98f35da1d5a324ee0630a6892b43f58f84490e2b534a573673b106a9d5dd406fedefb2a4c664e455aa1 thttpd.confd
691c4a4d455f9043ea2a188b8271db431924bd24d5083d153b422ff6e8fd99d43129a1d6af7b2f6515a52d4ee0e172848b4490b4cbe6337decd0c2332ab8fdd3 thttpd.conf
5b2800825583e93cf4be76e71d2840b9894c1779a810d562a0b6145cae0c7504dadfdc1e844f1611a48cca3b4518d41b47e41a68f33043d58ffde85f1e56e3f3 thttpd.logrotated
63f1f8cce5f29977dafd9dd364abc0e34bbf7049aef3a570efb96454fcf69fe6143d88e49640a52c58cbb6ad30d11dc2db5bd661fd1a6a26061ccc6913b1c117 discreet.patch
02c079ca104f2358cd20756082657dca96f7a88cbeb611de81504f1581c5e085a7a2765ec55b6e0ae1948803afced85e8a45fc6deb2fef1ec5ba1ba96ce68b4b forwarded-for.patch
503294520bd62170eae264ff1128f2b74d3d036d6c51b426e0a482f5d4a431f681f5076e6173ed04ee31065c042062759a3cc9208cf5c4a9c756ad806600635e getline.patch"
|