aboutsummaryrefslogtreecommitdiffstats
path: root/testing/sniproxy/APKBUILD
blob: 91b7bbcf1aed4fb776dbfa88e6ba2540782bf753 (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=sniproxy
pkgver=0.3.6
pkgrel=0
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=
subpackages="$pkgname-doc"
source="https://github.com/dlundquist/$pkgname/archive/$pkgver.tar.gz"


_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

	# remove the 2 lines below (and this) if there is no init.d script
	# install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	# install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}

md5sums="52a01eb55ac7712de2dd13f1ba6260e4  0.3.6.tar.gz"
sha256sums="90183ea5a380f1f946a9e0286334c916c2315bf005677ddc72f0afeed84a544c  0.3.6.tar.gz"
sha512sums="5d2a3b181c3a710a5443c21d3c6181354e473c134e99a258b4d10dc452d449507d057ef65ad0586ecc43800b271fc03635f3d27a043855846248ca14e807781c  0.3.6.tar.gz"