Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit 89137af

Browse files
dvzrvsvntogit
authored andcommitted
upgpkg: dnscrypt-proxy 2.0.13-1
Upgrading to 2.0.13. Adding socket and service file, as upstream had just another rage quit and deleted them. Yay... git-svn-id: file:///srv/repos/svn-community/svn@324309 9fca08f4-af9d-4005-b8df-a31f2cc04f65
1 parent 1c1375a commit 89137af

3 files changed

Lines changed: 44 additions & 6 deletions

File tree

‎trunk/PKGBUILD‎

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Contributor: peace4all
66

77
pkgname=dnscrypt-proxy
8-
pkgver=2.0.11
8+
pkgver=2.0.13
99
pkgrel=1
1010
pkgdesc="A flexible DNS proxy, with support for modern encrypted DNS protocols such as DNSCrypt v2 and DNS-over-HTTP."
1111
arch=('x86_64')
@@ -22,8 +22,12 @@ backup=("etc/${pkgname}/${pkgname}.toml"
2222
"etc/${pkgname}/whitelist.txt"
2323
)
2424
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/jedisct1/${pkgname}/archive/${pkgver}.tar.gz"
25+
"${pkgname}.service"
26+
"${pkgname}.socket"
2527
'configuration.diff')
26-
sha512sums=('5e306c3bff65d0375b650666e2191c6f54e72bb0d2d2f6f8f7b941ffc063eb7eb244a52eb69b0b008dc566e9a6ce8a8f75929edb6762fad4751d966aa2da98a0'
28+
sha512sums=('674478118fa0324b43617c3de4637341f705da2e7346b778c3ee064e4ff09e2bfa370f451d9076804ec9b76d85a04c1e2e293ace29dcdb886f1b61fd0d8c7970'
29+
'3b24392c1ba20a38863f2424c9d891aef84c48239340a124ee569e564f04dd06d356e03d95ef0a723c2c43a1c03c8efb3d029c99810f93ecee968e3eefbc51ea'
30+
'17175397a5a35692f300d6caff84eb236b21a6e41a870bca966c5576f0db2bc7556d6a214d2f7e985fe9e0be99ef6e0bb067f29cebd41c2ea374540d6f4bd990'
2731
'0c6ab334eea4f295d6b86358cad9689d342c63a2cf428007df38fb1d0a72be99da79ce3775396ed410982622dce7e322326558c02d198487611ca6fa450f63f6')
2832

2933
prepare() {
@@ -60,12 +64,12 @@ package() {
6064
install -vDm 644 "${pkgname}/example-whitelist.txt" \
6165
"${pkgdir}/etc/${pkgname}/whitelist.txt"
6266
# systemd service/socket
63-
install -vDm 644 "systemd/${pkgname}."{service,socket} \
64-
-t "$pkgdir/usr/lib/systemd/system/"
67+
install -vDm 644 "../${pkgname}."{service,socket} \
68+
-t "${pkgdir}/usr/lib/systemd/system/"
6569
# license
66-
install -vDm 644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
70+
install -vDm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
6771
# docs
6872
install -vDm 644 {ChangeLog,README.md} \
69-
-t "$pkgdir/usr/share/doc/${pkgname}"
73+
-t "${pkgdir}/usr/share/doc/${pkgname}"
7074
}
7175
# vim:set ts=2 sw=2 et:

‎trunk/dnscrypt-proxy.service‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[Unit]
2+
Description=DNSCrypt-proxy client
3+
Documentation=https://github.com/jedisct1/dnscrypt-proxy/wiki
4+
Wants=network-online.target nss-lookup.target
5+
Before=nss-lookup.target
6+
7+
[Service]
8+
NonBlocking=true
9+
ExecStart=/usr/bin/dnscrypt-proxy --config /etc/dnscrypt-proxy/dnscrypt-proxy.toml
10+
ProtectHome=yes
11+
ProtectControlGroups=yes
12+
ProtectKernelModules=yes
13+
DynamicUser=yes
14+
CacheDirectory=dnscrypt-proxy
15+
LogsDirectory=dnscrypt-proxy
16+
RuntimeDirectory=dnscrypt-proxy
17+
AmbientCapabilities=CAP_NET_BIND_SERVICE
18+
19+
[Install]
20+
WantedBy=multi-user.target

‎trunk/dnscrypt-proxy.socket‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[Unit]
2+
Description=DNSCrypt-proxy socket
3+
Documentation=https://github.com/jedisct1/dnscrypt-proxy/wiki
4+
Before=nss-lookup.target
5+
Wants=nss-lookup.target network-online.target
6+
7+
[Socket]
8+
ListenStream=127.0.0.1:53
9+
ListenDatagram=127.0.0.1:53
10+
NoDelay=true
11+
DeferAcceptSec=1
12+
13+
[Install]
14+
WantedBy=sockets.target

0 commit comments

Comments
 (0)