Move systemd definitions internally

Signed-off-by: Lorenzo Fontana <lo@linux.com>
This commit is contained in:
Lorenzo Fontana
2019-02-21 17:20:22 +01:00
parent 4c451e66c5
commit 78898845b7
5 changed files with 28 additions and 10 deletions

View File

@@ -8,11 +8,11 @@ pkgbase = coredns-bin
provides = coredns
conflicts = coredns
source = coredns_x64_1.3.1.tar.gz::https://github.com/coredns/coredns/releases/download/v1.3.1/coredns_1.3.1_linux_amd64.tgz
source = https://raw.githubusercontent.com/coredns/deployment/39c9f7ed7640f86fa0fb6ba06a88e9afa830b306/systemd/coredns.service
source = https://raw.githubusercontent.com/coredns/deployment/39c9f7ed7640f86fa0fb6ba06a88e9afa830b306/systemd/coredns-sysusers.conf
source = coredns.service
source = coredns-sysusers.conf
sha256sums = 1e88337650de8c878ab30a0d06adbf83c46c1cbea0d7d98f7f40c0346c39eed6
sha256sums = 947b4838af48212ecd8e565155c97ca61ff7d408d0b8622499925b6e232656c4
sha256sums = 178c632fd855a5a35ae69e13ab554d5abad696cf75d23c6b6b37f0ace3b4b0f2
sha256sums = 030cd8e938c293c11a9acdb09b138f98b37874772072336792ec4bf0d9eff9b1
sha256sums = 536d03f8b20b0d2d6e8f96edd7e4e4dd7f6fef39ab0e952522d8725f3cc186b7
pkgname = coredns-bin

2
.gitignore vendored
View File

@@ -2,5 +2,3 @@ src/
pkg/
*.tar.gz*
*.pkg.tar.*
coredns.service
coredns-sysusers.conf

View File

@@ -9,12 +9,12 @@ url="https://github.com/coredns/coredns"
license=('Apache')
provides=('coredns')
source=(coredns_x64_${pkgver}.tar.gz::https://github.com/coredns/coredns/releases/download/v${pkgver}/coredns_${pkgver}_linux_amd64.tgz
https://raw.githubusercontent.com/coredns/deployment/39c9f7ed7640f86fa0fb6ba06a88e9afa830b306/systemd/coredns.service
https://raw.githubusercontent.com/coredns/deployment/39c9f7ed7640f86fa0fb6ba06a88e9afa830b306/systemd/coredns-sysusers.conf)
coredns.service
coredns-sysusers.conf)
sha256sums=('1e88337650de8c878ab30a0d06adbf83c46c1cbea0d7d98f7f40c0346c39eed6'
'947b4838af48212ecd8e565155c97ca61ff7d408d0b8622499925b6e232656c4'
'178c632fd855a5a35ae69e13ab554d5abad696cf75d23c6b6b37f0ace3b4b0f2')
'030cd8e938c293c11a9acdb09b138f98b37874772072336792ec4bf0d9eff9b1'
'536d03f8b20b0d2d6e8f96edd7e4e4dd7f6fef39ab0e952522d8725f3cc186b7')
package() {
install -Dm755 "$srcdir/coredns" "$pkgdir/usr/bin/coredns"

1
coredns-sysusers.conf Normal file
View File

@@ -0,0 +1 @@
u coredns - "CoreDNS is a DNS server that chains plugins "

19
coredns.service Normal file
View File

@@ -0,0 +1,19 @@
[Unit]
Description=CoreDNS DNS server
Documentation=https://coredns.io
After=network.target
[Service]
PermissionsStartOnly=true
LimitNOFILE=1048576
LimitNPROC=512
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_BIND_SERVICE
NoNewPrivileges=true
User=coredns
ExecStart=/usr/bin/coredns -conf=/etc/coredns/Corefile
ExecReload=/bin/kill -SIGUSR1 $MAINPID
Restart=on-failure
[Install]
WantedBy=multi-user.target