Created
August 28, 2016 19:47
-
-
Save ropery/0fd732edb3fdeddacf521b9b08717025 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
post_install() { | |
systemd-sysusers dnscrypt.conf | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=dnscrypt-proxy listening socket | |
[Socket] | |
ListenStream=127.0.0.1:5353 | |
ListenDatagram=127.0.0.1:5353 | |
[Install] | |
WantedBy=sockets.target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=DNSCrypt client proxy | |
Documentation=man:dnscrypt-proxy(8) | |
Requires=dnscrypt-proxy.socket | |
After=network.target | |
Before=nss-lookup.target | |
[Install] | |
Also=dnscrypt-proxy.socket | |
WantedBy=multi-user.target | |
[Service] | |
User=dnscrypt | |
Type=simple | |
NonBlocking=true | |
ExecStart=/usr/bin/dnscrypt-proxy --resolver-name=%i --local-address=127.0.0.1:5353 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
u dnscrypt 47 "DNSCrypt" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $Id$ | |
# Maintainer: Felix Yan <[email protected]> | |
# Contributor: Techlive Zheng <techlivezheng at gmail dot com> | |
# Contributor: peace4all <markspost at rocketmail dot com> | |
pkgname=dnscrypt-proxy | |
pkgver=1.7.0 | |
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') | |
install=dnscrypt-proxy.install | |
source=("https://download.dnscrypt.org/$pkgname/$pkgname-$pkgver.tar.gz" | |
"[email protected]" | |
"dnscrypt-proxy.socket" | |
"dnscrypt.sysusers") | |
sha512sums=('611d9cd9d9c086ec8e2b60f6c574451eae71ea07de85973049be7090cfbd8bf790d41f8a4a2b39d74091fba7091551967b93b85a8661c03ecad43d868df597a3' | |
'7a0550142a2842f98ed8e161a987f38d31a03e9de8511d9659fd48e2de249fd74e5ca22ca2b663f91168bfb12dc1a63eb42097c4c6c4d17ff50b94acc782bb1a' | |
'4466321db8db569c9e9373dc05d9ef657a744e44803d03b985b4d25e0210564578a7f65df6a69752444b24aec38cd4cf773bd6d9d8ca8e627419fbd1b7649938' | |
'6e004d03374fc68117016291a67c33096858e1eb0eecfa9208c72ce5fc8749aff73da8eb5d32dc207c1be405a8a06a98fdab4c7b23bab5ac6027343217f2b456') | |
build() { | |
cd "$pkgname-$pkgver" | |
./configure --prefix=/usr --sbindir=/usr/bin --with-systemd | |
make | |
} | |
package() { | |
cd "$pkgname-$pkgver" | |
make DESTDIR="$pkgdir" install | |
install -Dm 644 "$srcdir/dnscrypt.sysusers" "$pkgdir/usr/lib/sysusers.d/dnscrypt.conf" | |
install -Dm 644 {"$srcdir","$pkgdir"/usr/lib/systemd/system}/[email protected] | |
install -Dm 644 {"$srcdir","$pkgdir"/usr/lib/systemd/system}/dnscrypt-proxy.socket | |
mkdir -p "$pkgdir"/usr/share/{licenses,doc}/$pkgname | |
install -m 644 COPYING "$pkgdir"/usr/share/licenses/$pkgname | |
install -m 644 AUTHORS NEWS README README.markdown "$pkgdir"/usr/share/doc/$pkgname | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment