[arch-commits] Commit in dnscrypt-proxy/repos (6 files)
Gaëtan Bisson
bisson at archlinux.org
Sun Jan 1 08:15:58 UTC 2017
Date: Sunday, January 1, 2017 @ 08:15:57
Author: bisson
Revision: 203473
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
dnscrypt-proxy/repos/community-staging-i686/
dnscrypt-proxy/repos/community-staging-i686/PKGBUILD
(from rev 203472, dnscrypt-proxy/trunk/PKGBUILD)
dnscrypt-proxy/repos/community-staging-i686/dnscrypt-proxy.install
(from rev 203472, dnscrypt-proxy/trunk/dnscrypt-proxy.install)
dnscrypt-proxy/repos/community-staging-x86_64/
dnscrypt-proxy/repos/community-staging-x86_64/PKGBUILD
(from rev 203472, dnscrypt-proxy/trunk/PKGBUILD)
dnscrypt-proxy/repos/community-staging-x86_64/dnscrypt-proxy.install
(from rev 203472, dnscrypt-proxy/trunk/dnscrypt-proxy.install)
-------------------------------------------------+
community-staging-i686/PKGBUILD | 44 ++++++++++++++++++++++
community-staging-i686/dnscrypt-proxy.install | 6 +++
community-staging-x86_64/PKGBUILD | 44 ++++++++++++++++++++++
community-staging-x86_64/dnscrypt-proxy.install | 6 +++
4 files changed, 100 insertions(+)
Copied: dnscrypt-proxy/repos/community-staging-i686/PKGBUILD (from rev 203472, dnscrypt-proxy/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2017-01-01 08:15:57 UTC (rev 203473)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Techlive Zheng <techlivezheng at gmail dot com>
+# Contributor: peace4all <markspost at rocketmail dot com>
+
+pkgname=dnscrypt-proxy
+pkgver=1.9.0
+pkgrel=2
+pkgdesc="A tool for securing communications between a client and a DNS resolver"
+arch=('i686' 'x86_64')
+url="http://dnscrypt.org/"
+license=('custom:ISC')
+depends=('libsodium' 'systemd' 'libtool' 'ldns')
+install=dnscrypt-proxy.install
+backup=('etc/dnscrypt-proxy.conf')
+source=("http://download.dnscrypt.org/$pkgname/$pkgname-$pkgver.tar.gz")
+sha512sums=('62623c9f10d4d0b459a4f4efc85231f3683cf2379dc32fcbc5c4c691daa5050924bf65e1ef4782848f8698f76141272aed7221c6cdd13884d6d25bec264c4b7c')
+
+prepare() {
+ cd $pkgname-$pkgver
+
+ sed -e '/--resolver-name/d' \
+ -e '/--user/d' \
+ -e 's|^ExecStart=.*|ExecStart=/usr/bin/dnscrypt-proxy /etc/dnscrypt-proxy.conf|' \
+ -i dnscrypt-proxy.service
+}
+
+build() {
+ cd $pkgname-$pkgver
+
+ ./configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --with-systemd
+ make -j2
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+
+ mkdir -p "$pkgdir"/{usr/share/{licenses,doc}/$pkgname,usr/lib/systemd/system}
+ install -m 644 COPYING "$pkgdir"/usr/share/licenses/$pkgname
+ install -m 644 AUTHORS NEWS README README.markdown "$pkgdir"/usr/share/doc/$pkgname
+ install -m 644 dnscrypt-proxy.service "$pkgdir"/usr/lib/systemd/system
+ install -m 644 dnscrypt-proxy.socket "$pkgdir"/usr/lib/systemd/system
+}
Copied: dnscrypt-proxy/repos/community-staging-i686/dnscrypt-proxy.install (from rev 203472, dnscrypt-proxy/trunk/dnscrypt-proxy.install)
===================================================================
--- community-staging-i686/dnscrypt-proxy.install (rev 0)
+++ community-staging-i686/dnscrypt-proxy.install 2017-01-01 08:15:57 UTC (rev 203473)
@@ -0,0 +1,6 @@
+post_upgrade() {
+ if [ "$(vercmp $2 1.8.1-1)" -lt 0 ]
+ then
+ echo 'Since 1.8.1-1 there is a new configuration file at /etc/dnscrypt-proxy.conf. The systemd unit has been configured to use it, so please adjust your settings there.'
+ fi
+}
Copied: dnscrypt-proxy/repos/community-staging-x86_64/PKGBUILD (from rev 203472, dnscrypt-proxy/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-01-01 08:15:57 UTC (rev 203473)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Techlive Zheng <techlivezheng at gmail dot com>
+# Contributor: peace4all <markspost at rocketmail dot com>
+
+pkgname=dnscrypt-proxy
+pkgver=1.9.0
+pkgrel=2
+pkgdesc="A tool for securing communications between a client and a DNS resolver"
+arch=('i686' 'x86_64')
+url="http://dnscrypt.org/"
+license=('custom:ISC')
+depends=('libsodium' 'systemd' 'libtool' 'ldns')
+install=dnscrypt-proxy.install
+backup=('etc/dnscrypt-proxy.conf')
+source=("http://download.dnscrypt.org/$pkgname/$pkgname-$pkgver.tar.gz")
+sha512sums=('62623c9f10d4d0b459a4f4efc85231f3683cf2379dc32fcbc5c4c691daa5050924bf65e1ef4782848f8698f76141272aed7221c6cdd13884d6d25bec264c4b7c')
+
+prepare() {
+ cd $pkgname-$pkgver
+
+ sed -e '/--resolver-name/d' \
+ -e '/--user/d' \
+ -e 's|^ExecStart=.*|ExecStart=/usr/bin/dnscrypt-proxy /etc/dnscrypt-proxy.conf|' \
+ -i dnscrypt-proxy.service
+}
+
+build() {
+ cd $pkgname-$pkgver
+
+ ./configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --with-systemd
+ make -j2
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+
+ mkdir -p "$pkgdir"/{usr/share/{licenses,doc}/$pkgname,usr/lib/systemd/system}
+ install -m 644 COPYING "$pkgdir"/usr/share/licenses/$pkgname
+ install -m 644 AUTHORS NEWS README README.markdown "$pkgdir"/usr/share/doc/$pkgname
+ install -m 644 dnscrypt-proxy.service "$pkgdir"/usr/lib/systemd/system
+ install -m 644 dnscrypt-proxy.socket "$pkgdir"/usr/lib/systemd/system
+}
Copied: dnscrypt-proxy/repos/community-staging-x86_64/dnscrypt-proxy.install (from rev 203472, dnscrypt-proxy/trunk/dnscrypt-proxy.install)
===================================================================
--- community-staging-x86_64/dnscrypt-proxy.install (rev 0)
+++ community-staging-x86_64/dnscrypt-proxy.install 2017-01-01 08:15:57 UTC (rev 203473)
@@ -0,0 +1,6 @@
+post_upgrade() {
+ if [ "$(vercmp $2 1.8.1-1)" -lt 0 ]
+ then
+ echo 'Since 1.8.1-1 there is a new configuration file at /etc/dnscrypt-proxy.conf. The systemd unit has been configured to use it, so please adjust your settings there.'
+ fi
+}
More information about the arch-commits
mailing list