diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2014-06-29 16:29:54 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2014-06-29 16:30:01 +0000 |
commit | f4393860564c7bc24424884ef1d04b29b62f20d9 (patch) | |
tree | c1f0892fab0e867181025b0362583d845b0b23d0 /testing/dnscrypt-proxy | |
parent | 7045add0e04fb20ba20d28fa4691afe0a33a8dbf (diff) | |
download | aports-f4393860564c7bc24424884ef1d04b29b62f20d9.tar.bz2 aports-f4393860564c7bc24424884ef1d04b29b62f20d9.tar.xz |
testing/dnscrypt-proxy: split setup script into subpkg, fix for #3090 point 4
Diffstat (limited to 'testing/dnscrypt-proxy')
-rw-r--r-- | testing/dnscrypt-proxy/APKBUILD | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/testing/dnscrypt-proxy/APKBUILD b/testing/dnscrypt-proxy/APKBUILD index 53e24881ae..ca55388cb1 100644 --- a/testing/dnscrypt-proxy/APKBUILD +++ b/testing/dnscrypt-proxy/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Francesco Colista <francesco.colista@gmail.com> pkgname=dnscrypt-proxy pkgver=1.4.0 -pkgrel=0 +pkgrel=1 pkgdesc="A tool for securing communications between a client and a DNS resolver" url="http://dnscrypt.org/" arch="all" @@ -13,7 +13,7 @@ makedepends="$depends_dev" install="$pkgname.post-install $pkgname.pre-install" pkgusers=dnscrypt pkggroups=dnscrypt -subpackages="$pkgname-doc" +subpackages="$pkgname-doc $pkgname-setup" source="saveas-https://github.com/jedisct1/$pkgname/archive/$pkgver.tar.gz/$pkgname-$pkgver.tar.gz $pkgname.initd $pkgname.confd @@ -42,14 +42,23 @@ package() { make DESTDIR=$pkgdir install || return 1 mkdir -p "$pkgdir"/var/log/$pkgname mkdir -p "$pkgdir"/var/run/$pkgname + mkdir -p "$pkgdir"/var/empty mkdir -p $pkgdir/usr/share/licenses/$pkgname install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname - install -m755 -D "$srcdir"/$pkgname.setup "$pkgdir"/sbin/setup-dnscrypt - install -m 644 COPYING $pkgdir/usr/share/licenses/$pkgname chown dnscrypt "$pkgdir"/var/log/$pkgname chown dnscrypt "$pkgdir"/var/run/$pkgname + chown dnscrypt "$pkgdir"/var/empty rm -rf $pkgdir/usr/lib/*.la + install -m 644 COPYING $pkgdir/usr/share/licenses/$pkgname +} + +setup() { + arch="noarch" + pkgdesc="Script for setting up DNSCrypt Proxy" + depends="sed" + mkdir -p "$subpkgdir"/sbin + install -m755 -D "$srcdir"/$pkgname.setup "$subpkgdir"/sbin/setup-dnscrypt } md5sums="64b5f5ababbcf72d6c32c57a092785c5 dnscrypt-proxy-1.4.0.tar.gz |