diff options
Diffstat (limited to 'testing/dnscrypt-proxy/APKBUILD')
-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 |