summaryrefslogtreecommitdiff
path: root/pcr/firewalld-openrc/PKGBUILD
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2016-12-05 21:12:42 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2016-12-05 21:12:42 -0500
commitf6ed10b20413ec83fef004e8ec3512dfcc011520 (patch)
tree03f9ee72dcb7677fb20c3c6b476332a90d9f1fe4 /pcr/firewalld-openrc/PKGBUILD
parent6c563005c5a51b82410b460cb117ea9a1be2d6a6 (diff)
downloadabslibre-f6ed10b20413ec83fef004e8ec3512dfcc011520.tar.gz
abslibre-f6ed10b20413ec83fef004e8ec3512dfcc011520.tar.bz2
abslibre-f6ed10b20413ec83fef004e8ec3512dfcc011520.zip
firewalld-openrc: add new package to [pcr]
Diffstat (limited to 'pcr/firewalld-openrc/PKGBUILD')
-rw-r--r--pcr/firewalld-openrc/PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/pcr/firewalld-openrc/PKGBUILD b/pcr/firewalld-openrc/PKGBUILD
new file mode 100644
index 000000000..5baa86589
--- /dev/null
+++ b/pcr/firewalld-openrc/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer (Arch): Chris Cromer <chris@cromer.cl>
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
+
+pkgname=firewalld-openrc
+pkgver=1.0
+pkgrel=2
+pkgdesc="OpenRC scripts for firewalld."
+arch=('any')
+provides=('firewalld-openrc')
+pkgname=('firewalld-openrc')
+depends=('firewalld' 'openrc')
+url="https://github.com/cromerc/arch-openrc"
+license=("GPL2")
+source=("firewalld.init")
+sha256sums=('96593cc0e8efcb60b0aa6b9e994dae31ec31cd812aca1145b7829b0a40e0dfa6')
+
+_inst_initd(){
+ install -Dm755 firewalld.init ${pkgdir}/etc/init.d/firewalld
+
+ sed -e 's|#!/sbin/runscript|#!/usr/bin/openrc-run|' \
+ -e 's|#!/sbin/openrc-run|#!/usr/bin/openrc-run|' \
+ -e 's|/var/run|/run|g' \
+ -e 's|/usr/sbin|/usr/bin|g' \
+ -i ${pkgdir}/etc/init.d/$1
+}
+
+package_firewalld-openrc() {
+ pkgdesc="OpenRC scripts for firewalld."
+ depends=('firewalld' 'openrc')
+ install=firewalld-openrc.install
+
+ _inst_initd 'firewalld'
+}