15
.SRCINFO
Normal file
15
.SRCINFO
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
pkgbase = coredns-bin
|
||||||
|
pkgdesc = CoreDNS is a DNS server that chains plugins (official binary version)
|
||||||
|
pkgver = v1.1.1
|
||||||
|
pkgrel = 1
|
||||||
|
url = https://github.com/coredns/coredns
|
||||||
|
arch = x86_64
|
||||||
|
license = Apache
|
||||||
|
provides = coredns
|
||||||
|
source = coredns_x64_v1.1.1.tar.gz::https://github.com/coredns/coredns/releases/download/v1.1.1/coredns_1.1.1_linux_amd64.tgz
|
||||||
|
source = https://raw.githubusercontent.com/coredns/deployment/5bb111266eca2d47802e0d1a26bc55491ff2cec3/systemd/coredns.service
|
||||||
|
sha256sums = 6e2367879163b1c9036d5c69a121e81bad628944b9b395f49a6e45a2d9d420dd
|
||||||
|
sha256sums = be3eb5ce8740b17053aaf04ca036a4d34e0b86d0737253be7094cda16a329cf5
|
||||||
|
|
||||||
|
pkgname = coredns-bin
|
||||||
|
|
||||||
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
src/
|
||||||
|
pkg/
|
||||||
|
*.tar.gz*
|
||||||
|
*.pkg.tar.*
|
||||||
20
PKGBUILD
Normal file
20
PKGBUILD
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
# Maintainer: Lorenzo Fontana <lo@linux.com>
|
||||||
|
pkgname=coredns-bin
|
||||||
|
pkgver=v1.1.1
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="CoreDNS is a DNS server that chains plugins (official binary version)"
|
||||||
|
arch=('x86_64')
|
||||||
|
url="https://github.com/coredns/coredns"
|
||||||
|
license=('Apache')
|
||||||
|
provides=('coredns')
|
||||||
|
source=(coredns_x64_${pkgver}.tar.gz::https://github.com/coredns/coredns/releases/download/${pkgver}/coredns_1.1.1_linux_amd64.tgz
|
||||||
|
https://raw.githubusercontent.com/coredns/deployment/5bb111266eca2d47802e0d1a26bc55491ff2cec3/systemd/coredns.service)
|
||||||
|
|
||||||
|
sha256sums=('6e2367879163b1c9036d5c69a121e81bad628944b9b395f49a6e45a2d9d420dd'
|
||||||
|
'be3eb5ce8740b17053aaf04ca036a4d34e0b86d0737253be7094cda16a329cf5')
|
||||||
|
|
||||||
|
package() {
|
||||||
|
install -Dm755 "$srcdir/coredns" "$pkgdir/usr/bin/coredns"
|
||||||
|
install -Dm644 "$srcdir/coredns.service" "$pkgdir/usr/lib/systemd/system/coredns.service"
|
||||||
|
install -d "${pkgdir}/etc/coredns"
|
||||||
|
}
|
||||||
20
coredns.service
Normal file
20
coredns.service
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
[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
|
||||||
|
WorkingDirectory=~
|
||||||
|
ExecStart=/usr/bin/coredns -conf=/etc/coredns/Corefile
|
||||||
|
ExecReload=/bin/kill -SIGUSR1 $MAINPID
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Reference in New Issue
Block a user