aboutsummaryrefslogtreecommitdiffstats
path: root/main/sniproxy/APKBUILD
blob: 20906c567832b7ac96db66efca3453444d46216d (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
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=sniproxy
pkgver=0.3.6
pkgrel=4
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
0b1f2078a3829df4754d99d5539b0e6c  sniproxy.initd
8f21930affabea377c0443059d94f3f7  sniproxy.conf"
sha256sums="90183ea5a380f1f946a9e0286334c916c2315bf005677ddc72f0afeed84a544c  0.3.6.tar.gz
6464fecf6011541014a4974b3e83cadc55114aeecc727574034c948d3eb00e77  sniproxy.initd
23ee2894715f834f0708182e93cee30535bd0d58b5aa600a2b45b799deaf64e1  sniproxy.conf"
sha512sums="5d2a3b181c3a710a5443c21d3c6181354e473c134e99a258b4d10dc452d449507d057ef65ad0586ecc43800b271fc03635f3d27a043855846248ca14e807781c  0.3.6.tar.gz
57f4997f8a96516b4622105c024708bf39002a83d7f3eb76dd857ee0202598309b51d585f6b25b5e72e9710b79c36a3e4f21bc2effcead16dd2c032137c704f3  sniproxy.initd
f7423cfd48e9333d5db857b4eb61b747664221607e2d47a55167493159b7b838580f101427e98252468c0be9c42693f7f0689ac8bd1acdcd1dfb75638a8f49fb  sniproxy.conf"