blob: b73a044f22622f0ad3d6f8e1de9ab936d86e3b54 (
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
|
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=sniproxy
pkgver=0.3.6
pkgrel=1
pkgdesc="Proxies incoming HTTP and TLS connections based on the hostname
contained in the initial request of the TCP session."
url="https://github.com/dlundquist/sniproxy"
arch="all"
license="GPL"
depends=
depends_dev=
makedepends="$depends_dev autoconf automake bsd-compat-headers gettext-dev
libev-dev libtool pcre-dev udns-dev
"
install="${pkgname}.pre-install"
subpackages="$pkgname-doc"
source="https://github.com/dlundquist/$pkgname/archive/$pkgver.tar.gz
$pkgname.initd"
pkgusers="sniproxy"
pkggroups="sniproxy"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
# apply patches here
}
build() {
cd "$_builddir"
./autogen.sh && ./configure \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
install -Dm755 "$srcdir"/$pkgname.initd \
"$pkgdir"/etc/init.d/$pkgname || return 1
for dir in /var/log /etc; do
mkdir -p "$pkgdir"/$dir/$pkgname
chown $pkgusers:$pkggroups "$pkgdir"/$dir/$pkgname
done
}
md5sums="52a01eb55ac7712de2dd13f1ba6260e4 0.3.6.tar.gz
7ce27ae791416c62dab08b2961b3a57c sniproxy.initd"
sha256sums="90183ea5a380f1f946a9e0286334c916c2315bf005677ddc72f0afeed84a544c 0.3.6.tar.gz
6eac747753ddb798ba3c9970a1e165c6a523bff3bc90f3c078eab066470a0f6d sniproxy.initd"
sha512sums="5d2a3b181c3a710a5443c21d3c6181354e473c134e99a258b4d10dc452d449507d057ef65ad0586ecc43800b271fc03635f3d27a043855846248ca14e807781c 0.3.6.tar.gz
6dea98a5428b97a1def6d0fa0b08386a8b2dfccf6d53a1d3eafb78352aac6caede72eece23c883a048876731c247abfda51e5a9e00ed628c5f1b2ce846d1e74a sniproxy.initd"
|