Commit f4393860 authored by Francesco Colista's avatar Francesco Colista

testing/dnscrypt-proxy: split setup script into subpkg, fix for #3090 point 4

parent 7045add0
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment