[arch-commits] Commit in dnscrypt-proxy/repos (6 files)
Felix Yan
felixonmars at archlinux.org
Tue Dec 20 03:56:52 UTC 2016
Date: Tuesday, December 20, 2016 @ 03:56:51
Author: felixonmars
Revision: 200385
archrelease: copy trunk to community-testing-i686, community-testing-x86_64
Added:
dnscrypt-proxy/repos/community-testing-i686/
dnscrypt-proxy/repos/community-testing-i686/PKGBUILD
(from rev 200384, dnscrypt-proxy/trunk/PKGBUILD)
dnscrypt-proxy/repos/community-testing-i686/dnscrypt-proxy.install
(from rev 200384, dnscrypt-proxy/trunk/dnscrypt-proxy.install)
dnscrypt-proxy/repos/community-testing-x86_64/
dnscrypt-proxy/repos/community-testing-x86_64/PKGBUILD
(from rev 200384, dnscrypt-proxy/trunk/PKGBUILD)
dnscrypt-proxy/repos/community-testing-x86_64/dnscrypt-proxy.install
(from rev 200384, dnscrypt-proxy/trunk/dnscrypt-proxy.install)
-------------------------------------------------+
community-testing-i686/PKGBUILD | 44 ++++++++++++++++++++++
community-testing-i686/dnscrypt-proxy.install | 6 +++
community-testing-x86_64/PKGBUILD | 44 ++++++++++++++++++++++
community-testing-x86_64/dnscrypt-proxy.install | 6 +++
4 files changed, 100 insertions(+)
Copied: dnscrypt-proxy/repos/community-testing-i686/PKGBUILD (from rev 200384, dnscrypt-proxy/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2016-12-20 03:56:51 UTC (rev 200385)
@@ -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.8.1
+pkgrel=1
+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')
+install=dnscrypt-proxy.install
+backup=('etc/dnscrypt-proxy.conf')
+source=("http://download.dnscrypt.org/$pkgname/$pkgname-$pkgver.tar.gz")
+sha512sums=('5bfbdee4c7a29ac41317bb2ac2e3ee89ce11ebfc28dc13b9931734e5bd5b4afab8435b4f28c72edf73193d4ee94c5fcec82e0572df68cd3724f90e7fe120e459')
+
+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-testing-i686/dnscrypt-proxy.install (from rev 200384, dnscrypt-proxy/trunk/dnscrypt-proxy.install)
===================================================================
--- community-testing-i686/dnscrypt-proxy.install (rev 0)
+++ community-testing-i686/dnscrypt-proxy.install 2016-12-20 03:56:51 UTC (rev 200385)
@@ -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-testing-x86_64/PKGBUILD (from rev 200384, dnscrypt-proxy/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2016-12-20 03:56:51 UTC (rev 200385)
@@ -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.8.1
+pkgrel=1
+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')
+install=dnscrypt-proxy.install
+backup=('etc/dnscrypt-proxy.conf')
+source=("http://download.dnscrypt.org/$pkgname/$pkgname-$pkgver.tar.gz")
+sha512sums=('5bfbdee4c7a29ac41317bb2ac2e3ee89ce11ebfc28dc13b9931734e5bd5b4afab8435b4f28c72edf73193d4ee94c5fcec82e0572df68cd3724f90e7fe120e459')
+
+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-testing-x86_64/dnscrypt-proxy.install (from rev 200384, dnscrypt-proxy/trunk/dnscrypt-proxy.install)
===================================================================
--- community-testing-x86_64/dnscrypt-proxy.install (rev 0)
+++ community-testing-x86_64/dnscrypt-proxy.install 2016-12-20 03:56:51 UTC (rev 200385)
@@ -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