[arch-commits] Commit in dnscrypt-wrapper/repos (8 files)
Felix Yan
felixonmars at archlinux.org
Fri Oct 6 13:51:12 UTC 2017
Date: Friday, October 6, 2017 @ 13:51:11
Author: felixonmars
Revision: 261928
archrelease: copy trunk to community-staging-x86_64, community-staging-i686
Added:
dnscrypt-wrapper/repos/community-staging-i686/
dnscrypt-wrapper/repos/community-staging-i686/PKGBUILD
(from rev 261927, dnscrypt-wrapper/trunk/PKGBUILD)
dnscrypt-wrapper/repos/community-staging-i686/dnscrypt-wrapper.install
(from rev 261927, dnscrypt-wrapper/trunk/dnscrypt-wrapper.install)
dnscrypt-wrapper/repos/community-staging-i686/dnscrypt-wrapper.sysusers
(from rev 261927, dnscrypt-wrapper/trunk/dnscrypt-wrapper.sysusers)
dnscrypt-wrapper/repos/community-staging-x86_64/
dnscrypt-wrapper/repos/community-staging-x86_64/PKGBUILD
(from rev 261927, dnscrypt-wrapper/trunk/PKGBUILD)
dnscrypt-wrapper/repos/community-staging-x86_64/dnscrypt-wrapper.install
(from rev 261927, dnscrypt-wrapper/trunk/dnscrypt-wrapper.install)
dnscrypt-wrapper/repos/community-staging-x86_64/dnscrypt-wrapper.sysusers
(from rev 261927, dnscrypt-wrapper/trunk/dnscrypt-wrapper.sysusers)
----------------------------------------------------+
community-staging-i686/PKGBUILD | 50 +++++++++++++++++++
community-staging-i686/dnscrypt-wrapper.install | 4 +
community-staging-i686/dnscrypt-wrapper.sysusers | 2
community-staging-x86_64/PKGBUILD | 50 +++++++++++++++++++
community-staging-x86_64/dnscrypt-wrapper.install | 4 +
community-staging-x86_64/dnscrypt-wrapper.sysusers | 2
6 files changed, 112 insertions(+)
Copied: dnscrypt-wrapper/repos/community-staging-i686/PKGBUILD (from rev 261927, dnscrypt-wrapper/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2017-10-06 13:51:11 UTC (rev 261928)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: William Grieshaber <me at zee.li>
+
+pkgname=dnscrypt-wrapper
+pkgver=0.3
+pkgrel=2
+pkgdesc="A server-side dnscrypt proxy"
+url="https://dnscrypt.org/"
+arch=('x86_64' 'i686')
+license=('BSD')
+depends=('libsodium' 'libevent')
+backup=('etc/default/dnscrypt-wrapper')
+install=dnscrypt-wrapper.install
+source=("$pkgname-$pkgver.tar.gz::https://github.com/cofyc/dnscrypt-wrapper/archive/v$pkgver.tar.gz"
+ dnscrypt-wrapper.sysusers)
+sha512sums=('3a14b63633f9587594afec26edd81c36fad1044b48d956dd11034d7043f7f0c6490afba7a3502e298a7ca05300690ed5bf6b2dc1869e17022d6a228faba3596f'
+ '91dfdf0be4eb0d1f8d29bbfadfef451e09a5eed4464afdb531b67354a1c9357224d46340e4472eb37aaa6c2ba2f1dc685ccaa24dfa7666dd2cb5ac8c0a55b7db')
+
+prepare() {
+ cd $pkgname-$pkgver
+ sed -i 's|/usr/sbin|/usr/bin|' debian/dnscrypt-wrapper.service
+}
+
+build() {
+ cd $pkgname-$pkgver
+ make configure
+ ./configure
+ make
+}
+
+check(){
+ cd $pkgname-$pkgver/tests
+ # TODO
+ # make test
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make sbindir="$pkgdir"/usr/bin install
+
+ install -Dm644 debian/dnscrypt-wrapper.service "$pkgdir"/usr/lib/systemd/system/dnscrypt-wrapper.service
+ install -Dm644 debian/dnscrypt-wrapper.default "$pkgdir"/etc/default/dnscrypt-wrapper
+ install -Dm644 "$srcdir"/dnscrypt-wrapper.sysusers "$pkgdir/usr/lib/sysusers.d/dnscrypt-wrapper.conf"
+
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+ install -Dm644 debian/dnscrypt-wrapper.8 "$pkgdir"/usr/share/man/man8/dnscrypt-wrapper.8
+}
+
+# vim:set ts=2 sw=2 et:
Copied: dnscrypt-wrapper/repos/community-staging-i686/dnscrypt-wrapper.install (from rev 261927, dnscrypt-wrapper/trunk/dnscrypt-wrapper.install)
===================================================================
--- community-staging-i686/dnscrypt-wrapper.install (rev 0)
+++ community-staging-i686/dnscrypt-wrapper.install 2017-10-06 13:51:11 UTC (rev 261928)
@@ -0,0 +1,4 @@
+post_install() {
+ systemd-sysusers dnscrypt-wrapper.conf
+ [[ -d etc/dnscrypt-wrapper ]] || install -dm 750 -o dnscrypt-wrapper -g dnscrypt-wrapper etc/dnscrypt-wrapper
+}
Copied: dnscrypt-wrapper/repos/community-staging-i686/dnscrypt-wrapper.sysusers (from rev 261927, dnscrypt-wrapper/trunk/dnscrypt-wrapper.sysusers)
===================================================================
--- community-staging-i686/dnscrypt-wrapper.sysusers (rev 0)
+++ community-staging-i686/dnscrypt-wrapper.sysusers 2017-10-06 13:51:11 UTC (rev 261928)
@@ -0,0 +1,2 @@
+u dnscrypt-wrapper - "DnsCrypt Wrapper" /etc/dnscrypt-wrapper
+g dnscrypt-wrapper -
Copied: dnscrypt-wrapper/repos/community-staging-x86_64/PKGBUILD (from rev 261927, dnscrypt-wrapper/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-10-06 13:51:11 UTC (rev 261928)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: William Grieshaber <me at zee.li>
+
+pkgname=dnscrypt-wrapper
+pkgver=0.3
+pkgrel=2
+pkgdesc="A server-side dnscrypt proxy"
+url="https://dnscrypt.org/"
+arch=('x86_64' 'i686')
+license=('BSD')
+depends=('libsodium' 'libevent')
+backup=('etc/default/dnscrypt-wrapper')
+install=dnscrypt-wrapper.install
+source=("$pkgname-$pkgver.tar.gz::https://github.com/cofyc/dnscrypt-wrapper/archive/v$pkgver.tar.gz"
+ dnscrypt-wrapper.sysusers)
+sha512sums=('3a14b63633f9587594afec26edd81c36fad1044b48d956dd11034d7043f7f0c6490afba7a3502e298a7ca05300690ed5bf6b2dc1869e17022d6a228faba3596f'
+ '91dfdf0be4eb0d1f8d29bbfadfef451e09a5eed4464afdb531b67354a1c9357224d46340e4472eb37aaa6c2ba2f1dc685ccaa24dfa7666dd2cb5ac8c0a55b7db')
+
+prepare() {
+ cd $pkgname-$pkgver
+ sed -i 's|/usr/sbin|/usr/bin|' debian/dnscrypt-wrapper.service
+}
+
+build() {
+ cd $pkgname-$pkgver
+ make configure
+ ./configure
+ make
+}
+
+check(){
+ cd $pkgname-$pkgver/tests
+ # TODO
+ # make test
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make sbindir="$pkgdir"/usr/bin install
+
+ install -Dm644 debian/dnscrypt-wrapper.service "$pkgdir"/usr/lib/systemd/system/dnscrypt-wrapper.service
+ install -Dm644 debian/dnscrypt-wrapper.default "$pkgdir"/etc/default/dnscrypt-wrapper
+ install -Dm644 "$srcdir"/dnscrypt-wrapper.sysusers "$pkgdir/usr/lib/sysusers.d/dnscrypt-wrapper.conf"
+
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+ install -Dm644 debian/dnscrypt-wrapper.8 "$pkgdir"/usr/share/man/man8/dnscrypt-wrapper.8
+}
+
+# vim:set ts=2 sw=2 et:
Copied: dnscrypt-wrapper/repos/community-staging-x86_64/dnscrypt-wrapper.install (from rev 261927, dnscrypt-wrapper/trunk/dnscrypt-wrapper.install)
===================================================================
--- community-staging-x86_64/dnscrypt-wrapper.install (rev 0)
+++ community-staging-x86_64/dnscrypt-wrapper.install 2017-10-06 13:51:11 UTC (rev 261928)
@@ -0,0 +1,4 @@
+post_install() {
+ systemd-sysusers dnscrypt-wrapper.conf
+ [[ -d etc/dnscrypt-wrapper ]] || install -dm 750 -o dnscrypt-wrapper -g dnscrypt-wrapper etc/dnscrypt-wrapper
+}
Copied: dnscrypt-wrapper/repos/community-staging-x86_64/dnscrypt-wrapper.sysusers (from rev 261927, dnscrypt-wrapper/trunk/dnscrypt-wrapper.sysusers)
===================================================================
--- community-staging-x86_64/dnscrypt-wrapper.sysusers (rev 0)
+++ community-staging-x86_64/dnscrypt-wrapper.sysusers 2017-10-06 13:51:11 UTC (rev 261928)
@@ -0,0 +1,2 @@
+u dnscrypt-wrapper - "DnsCrypt Wrapper" /etc/dnscrypt-wrapper
+g dnscrypt-wrapper -
More information about the arch-commits
mailing list