summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2016-01-11 05:35:01 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2016-01-11 05:35:01 -0500
commitefc446d54bbe8adc491a80bce9332960c8566a82 (patch)
treef944c7363656f07c8dd775738b81d4428423c39f /pcr
parent582d4ad2b5b25d3211da065dd8b14a6048157b57 (diff)
openrc-net-20160105-1: updating version
Diffstat (limited to 'pcr')
-rw-r--r--pcr/openrc-net/PKGBUILD31
-rw-r--r--pcr/openrc-net/unbound.install16
2 files changed, 39 insertions, 8 deletions
diff --git a/pcr/openrc-net/PKGBUILD b/pcr/openrc-net/PKGBUILD
index 2385d6e0e..c1ce1b550 100644
--- a/pcr/openrc-net/PKGBUILD
+++ b/pcr/openrc-net/PKGBUILD
@@ -42,8 +42,9 @@ pkgname=('autofs-openrc'
'syncthing-openrc'
'nginx-openrc'
'vnstat-openrc'
- 'snort-openrc')
-pkgver=20151230
+ 'snort-openrc'
+ 'unbound-openrc')
+pkgver=20160105
pkgrel=1
pkgdesc="OpenRC init scripts"
arch=('any')
@@ -127,10 +128,12 @@ source=("${_dev_uri}/gentoo-apache-${_apver}-${_aprel}.tar.bz2"
"syncthing.confd"
"syncthing.initd"
"snort.confd::${_gentoo_uri}/net-analyzer/snort/files/snort.confd.2"
- "snort.initd::${_gentoo_uri}/net-analyzer/snort/files/snort.rc12")
+ "snort.initd::${_gentoo_uri}/net-analyzer/snort/files/snort.rc12"
+ "unbound.confd::${_gentoo_uri}/net-dns/unbound/files/unbound.confd"
+ "unbound.initd::${_gentoo_uri}/net-dns/unbound/files/unbound.initd")
sha256sums=('8e093a18582c3a20283ed1c09de9acc6832a80b1d5a02962599db0535d38af19'
'3cf1ab72446cb9417de916e4cd732f2056fb74d2c6f03da6741b7bae8c415448'
- '7837345357a7c0162f2bd7aada22329c89b516a85af227a5d3d81afd1000a969'
+ '5360b7a5536bcb0955fd93f4b77fadd599436f106876be0d79b1fdd75db029d3'
'bb6e6867eec37bd194f3f9417bf31515a08d630d47f1ce713ad773f4551244e0'
'e8a413e9102948b336f60041fc3cade33125faf56d8319ee65d9f3c63199a8e7'
'a157630c3bdc9565cca8240ee1e6539fc9cbc1e4642c40e0965e3609d1021bac'
@@ -204,11 +207,13 @@ sha256sums=('8e093a18582c3a20283ed1c09de9acc6832a80b1d5a02962599db0535d38af19'
'eb4a4315916fe3f8688c1da5bb5c249a1f402e61617452288d5b0668078c955c'
'63708b1a7b61ae791df64bb4cefa01dc12236f96bb67fe6d0b2c513e11c81f3e'
'337378f098e0cd59fb5c28a26b5b74b32168cf48596064469e6a5ba04fe3a36f'
- '0a2a82a022e16f21d2c3c873ed75be9fd2931fd37292203c23ee4462ab2eecb4')
+ '0a2a82a022e16f21d2c3c873ed75be9fd2931fd37292203c23ee4462ab2eecb4'
+ '7da812ef83f8f8b9351363525ab6bebd5348faed76d0ae424dcbd7cb6a830dfd'
+ '49d23cf94027f0e3ccb5fbc7fb7f1b609972a4abe1ec14fd595495c90d2c325c')
-#pkgver() {
-# date +%Y%m%d
-#}
+pkgver() {
+ date +%Y%m%d
+}
_inst_initd(){
install -Dm755 ${srcdir}/$1.initd ${pkgdir}/etc/init.d/$1
@@ -735,3 +740,13 @@ package_snort-openrc() {
_inst_confd 'snort'
_inst_initd 'snort'
}
+
+package_unbound-openrc() {
+ pkgdesc="OpenRC unbound init script"
+ depends=('openrc' 'unbound')
+ backup=('etc/conf.d/unbound')
+ install=unbound.install
+
+ _inst_confd 'unbound'
+ _inst_initd 'unbound'
+}
diff --git a/pcr/openrc-net/unbound.install b/pcr/openrc-net/unbound.install
new file mode 100644
index 000000000..f1bfd4630
--- /dev/null
+++ b/pcr/openrc-net/unbound.install
@@ -0,0 +1,16 @@
+_svc="unbound"
+_rlvl="default"
+
+post_install() {
+ _cmd="rc-update add ${_svc} ${_rlvl}"
+ echo " ==> run '${_cmd}'"
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+post_remove() {
+ _cmd="rc-update del ${_svc} ${_rlvl}"
+ echo " ==> run '${_cmd}'"
+}