[arch-commits] Commit in unbound/trunk (PKGBUILD hook service)

Gaëtan Bisson bisson at archlinux.org
Mon Feb 13 09:36:36 UTC 2017


    Date: Monday, February 13, 2017 @ 09:36:36
  Author: bisson
Revision: 212094

implement FS#52920

Added:
  unbound/trunk/hook
Modified:
  unbound/trunk/PKGBUILD
  unbound/trunk/service

----------+
 PKGBUILD |    7 +++++--
 hook     |   10 ++++++++++
 service  |    1 -
 3 files changed, 15 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-02-13 08:31:37 UTC (rev 212093)
+++ PKGBUILD	2017-02-13 09:36:36 UTC (rev 212094)
@@ -5,7 +5,7 @@
 
 pkgname=unbound
 pkgver=1.6.0
-pkgrel=1
+pkgrel=2
 pkgdesc='Validating, recursive, and caching DNS resolver'
 url='https://unbound.net/'
 license=('custom:BSD')
@@ -17,10 +17,12 @@
 validpgpkeys=('EDFAA3F2CA4E6EB05681AF8E9F6F1C2D7E045F8D')
 source=("https://unbound.net/downloads/${pkgname}-${pkgver}.tar.gz"{,.asc}
         'service'
+        'hook'
         'conf')
 sha1sums=('9b7606b016b447dc837efc108cee94f3fecf4ede'
           'SKIP'
-          '63fcc187cec6f262d81600e66c6747285c72ad15'
+          'b543ae6f8b87423bec095fca6b335a9ee43739a8'
+          '098d680a06e730330e3ccbdd58234d07ad1837dc'
           '98515708441cb831890a0b6d1986fd40649646c0')
 
 install=install
@@ -49,5 +51,6 @@
 	install -Dm644 doc/example.conf.in "${pkgdir}/etc/unbound/unbound.conf.example"
 	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 	install -Dm644 ../service "${pkgdir}/usr/lib/systemd/system/unbound.service"
+	install -Dm644 ../hook "${pkgdir}/usr/share/libalpm/hooks/unbound-key.hook"
 	install -Dm644 ../conf "${pkgdir}/etc/unbound/unbound.conf"
 }

Added: hook
===================================================================
--- hook	                        (rev 0)
+++ hook	2017-02-13 09:36:36 UTC (rev 212094)
@@ -0,0 +1,10 @@
+[Trigger]
+Type = File
+Target = /etc/trusted-key.key
+Operation = Install
+Operation = Upgrade
+
+[Action]
+Description = Updating trusted-key.key for unbound...
+When = PostTransaction
+Exec = /bin/cp -f /etc/trusted-key.key /etc/unbound/

Modified: service
===================================================================
--- service	2017-02-13 08:31:37 UTC (rev 212093)
+++ service	2017-02-13 09:36:36 UTC (rev 212094)
@@ -3,7 +3,6 @@
 After=network.target
 
 [Service]
-ExecStartPre=/bin/cp -f /etc/trusted-key.key /etc/unbound/
 PIDFile=/run/unbound.pid
 ExecStart=/usr/bin/unbound -d
 ExecReload=/bin/kill -HUP $MAINPID



More information about the arch-commits mailing list