blob: a119e287f58259c27461f26722d577b294a15d9f (
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
|
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=sniproxy
pkgver=0.3.6
pkgrel=3
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"
pkgusers="sniproxy"
pkggroups="sniproxy"
source="https://github.com/dlundquist/$pkgname/archive/$pkgver.tar.gz
$pkgname.initd
$pkgname.conf
"
_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
install -Dm644 "$srcdir"/$pkgname.conf \
"$pkgdir"/etc/$pkgname/$pkgname.conf || return 1
for dir in /var/log /etc /var/run; do
mkdir -p "$pkgdir"/$dir/$pkgname
chown $pkgusers:$pkggroups "$pkgdir"/$dir/$pkgname
done
}
md5sums="52a01eb55ac7712de2dd13f1ba6260e4 0.3.6.tar.gz
05affd59cfc21d9c9cad78fc886c075b sniproxy.initd
8f21930affabea377c0443059d94f3f7 sniproxy.conf"
sha256sums="90183ea5a380f1f946a9e0286334c916c2315bf005677ddc72f0afeed84a544c 0.3.6.tar.gz
8ecb624c3a12fa73980cd66d043b96cc31f34da20e1ed6ad060f832f49f897a0 sniproxy.initd
23ee2894715f834f0708182e93cee30535bd0d58b5aa600a2b45b799deaf64e1 sniproxy.conf"
sha512sums="5d2a3b181c3a710a5443c21d3c6181354e473c134e99a258b4d10dc452d449507d057ef65ad0586ecc43800b271fc03635f3d27a043855846248ca14e807781c 0.3.6.tar.gz
e4a39bcaf3a0766fda3087c512c7838835c4bb2990fa3cf334c5def0ae009fbf72fff004cf7aa3a89a32f3bf47f29424cc571efc1df11109166adac94b78eb56 sniproxy.initd
f7423cfd48e9333d5db857b4eb61b747664221607e2d47a55167493159b7b838580f101427e98252468c0be9c42693f7f0689ac8bd1acdcd1dfb75638a8f49fb sniproxy.conf"
|