diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2015-03-12 14:26:53 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2015-03-12 14:26:53 +0000 |
commit | 40d6a47dc660237fc8569ab892e442ad48fde4d5 (patch) | |
tree | c6cbf9e4c15ac16520a842bd45de04759bfa255a | |
parent | dd0b5e868207b455fb2552ea019ed04d3bbf2ce5 (diff) | |
download | aports-40d6a47dc660237fc8569ab892e442ad48fde4d5.tar.bz2 aports-40d6a47dc660237fc8569ab892e442ad48fde4d5.tar.xz |
testing/sniproxy: include init.d, create user
-rw-r--r-- | testing/sniproxy/APKBUILD | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/testing/sniproxy/APKBUILD b/testing/sniproxy/APKBUILD index 91b7bbcf1a..b73a044f22 100644 --- a/testing/sniproxy/APKBUILD +++ b/testing/sniproxy/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: pkgname=sniproxy pkgver=0.3.6 -pkgrel=0 +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" @@ -13,9 +13,12 @@ depends_dev= makedepends="$depends_dev autoconf automake bsd-compat-headers gettext-dev libev-dev libtool pcre-dev udns-dev " -install= +install="${pkgname}.pre-install" subpackages="$pkgname-doc" -source="https://github.com/dlundquist/$pkgname/archive/$pkgver.tar.gz" +source="https://github.com/dlundquist/$pkgname/archive/$pkgver.tar.gz + $pkgname.initd" +pkgusers="sniproxy" +pkggroups="sniproxy" _builddir="$srcdir"/$pkgname-$pkgver @@ -37,13 +40,18 @@ build() { 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 + 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" -sha256sums="90183ea5a380f1f946a9e0286334c916c2315bf005677ddc72f0afeed84a544c 0.3.6.tar.gz" -sha512sums="5d2a3b181c3a710a5443c21d3c6181354e473c134e99a258b4d10dc452d449507d057ef65ad0586ecc43800b271fc03635f3d27a043855846248ca14e807781c 0.3.6.tar.gz" +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" |