summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD42
-rw-r--r--dnssec-triggerd-keygen.service12
-rw-r--r--dnssec-triggerd.service13
4 files changed, 89 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8a086651b2c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = dnssec-trigger
+ pkgdesc = Reconfigures the local unbound DNS server to use DNSSEC enabled forwarders
+ pkgver = 0.12
+ pkgrel = 1
+ url = http://www.nlnetlabs.nl/projects/dnssec-trigger/
+ arch = i686
+ arch = x86_64
+ license = BSD
+ depends = gtk2
+ depends = ldns
+ depends = unbound
+ backup = etc/dnssec.conf
+ backup = etc/dnssec-trigger/dnssec-trigger.conf
+ source = http://www.nlnetlabs.nl/downloads/dnssec-trigger/dnssec-trigger-0.12.tar.gz
+ source = dnssec-triggerd.service
+ source = dnssec-triggerd-keygen.service
+ sha256sums = 1cafd9ec296edc1d17b9ed2a98e06c7057c80ef1dbd6d45dbfa11991d3703535
+ sha256sums = c8ed3ef4ec9cba0bd00f47bfbf0e59c318130615aca4370bc597d98365445be9
+ sha256sums = 831f2cf40687325d50fcc11a74050198d9a24f230749e3570cf9153abf3db12e
+
+pkgname = dnssec-trigger
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8bfac6d4099
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Mantas Mikul─Śnas <grawity@gmail.com>
+# Maintainer: Cedric Staub <cs+aur@cssx.cc>
+
+pkgname=dnssec-trigger
+pkgver=0.12
+pkgrel=1
+pkgdesc="Reconfigures the local unbound DNS server to use DNSSEC enabled forwarders"
+arch=('i686' 'x86_64')
+url="http://www.nlnetlabs.nl/projects/dnssec-trigger/"
+license=('BSD')
+depends=('gtk2' 'ldns' 'unbound')
+backup=('etc/dnssec.conf'
+ 'etc/dnssec-trigger/dnssec-trigger.conf')
+source=(http://www.nlnetlabs.nl/downloads/dnssec-trigger/$pkgname-$pkgver.tar.gz
+ dnssec-triggerd.service
+ dnssec-triggerd-keygen.service)
+sha256sums=('1cafd9ec296edc1d17b9ed2a98e06c7057c80ef1dbd6d45dbfa11991d3703535'
+ 'c8ed3ef4ec9cba0bd00f47bfbf0e59c318130615aca4370bc597d98365445be9'
+ '831f2cf40687325d50fcc11a74050198d9a24f230749e3570cf9153abf3db12e')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --sbindir=/usr/bin \
+ --libexecdir=/usr/bin/$pkgname \
+ --with-keydir=/etc/dnssec-trigger ;
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir/" install
+ mkdir -p "$pkgdir/usr/lib/systemd/system"
+ cp "$srcdir/dnssec-triggerd.service" "$pkgdir/usr/lib/systemd/system/"
+ cp "$srcdir/dnssec-triggerd-keygen.service" "$pkgdir/usr/lib/systemd/system/"
+ rm -f "$pkgdir/etc/xdg/autostart/dnssec-trigger-panel.desktop"
+ rm -rf "$pkgdir/var"
+}
+
+# vim: ts=2:sw=2:et
diff --git a/dnssec-triggerd-keygen.service b/dnssec-triggerd-keygen.service
new file mode 100644
index 00000000000..46e42904cbb
--- /dev/null
+++ b/dnssec-triggerd-keygen.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=dnssec-triggerd Control Key And Certificate Generator
+Before=dnssec-triggerd.service
+ConditionPathExists=!/etc/dnssec-trigger/dnssec_trigger_control.key
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/dnssec-trigger-control-setup -d /etc/dnssec-trigger/
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target
diff --git a/dnssec-triggerd.service b/dnssec-triggerd.service
new file mode 100644
index 00000000000..aad25da374a
--- /dev/null
+++ b/dnssec-triggerd.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Reconfigure local DNSSEC resolver on network change
+Wants=dnssec-triggerd-keygen.service unbound.service
+After=dnssec-triggerd-keygen.service unbound.service network.target
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/dnssec-triggerd -d -c /etc/dnssec-trigger/dnssec-trigger.conf
+ExecStartPost=/etc/NetworkManager/dispatcher.d/01-dnssec-trigger
+Restart=always
+
+[Install]
+WantedBy=multi-user.target