diff options
author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2018-07-14 11:26:16 -0700 |
---|---|---|
committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2018-07-14 11:26:16 -0700 |
commit | 7c4222c8a45b810bb45604bdedec7995a83ae63b (patch) | |
tree | 18bd30e60d1a9f6388973c14c7c15a49b4f729c4 | |
download | firewalld-openrc-7c4222c8a45b810bb45604bdedec7995a83ae63b.tar.xz |
Initial commit
-rw-r--r-- | PKGBUILD | 37 | ||||
-rw-r--r-- | firewalld.initd | 12 |
2 files changed, 49 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..1a432b1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: artoo <artoo@artixlinux.org> + +_url="https://raw.githubusercontent.com/gentoo/gentoo/master" + +pkgname=firewalld-openrc +pkgver=20180712 +pkgrel=1 +pkgdesc="OpenRC firewalld init script" +arch=('any') +url="https://github.com/artix-linux/packages" +license=('GPL2') +groups=('openrc-system') +depends=('openrc' 'firewalld') +backup=('etc/init.d/firewalld') +source=("firewalld.initd") +sha256sums=('4717ba9b5d137493528d9f334e829d507eb3e9cf052abc6653dea1c2fc583f56') + +pkgver() { + date +%Y%m%d +} + +_inst_initd(){ + install -Dm755 ${srcdir}/$1.initd ${pkgdir}/etc/init.d/$1 + + sed -e 's|/var/run|/run|g' \ + -e 's|#!/sbin/openrc-run|#!/usr/bin/openrc-run|g' \ + -e 's|/usr/sbin|/usr/bin|g' \ + -i ${pkgdir}/etc/init.d/$1 +} + +_inst_confd(){ + install -Dm755 ${srcdir}/$1.confd ${pkgdir}/etc/conf.d/$1 +} + +package() { + _inst_initd 'firewalld' +} diff --git a/firewalld.initd b/firewalld.initd new file mode 100644 index 0000000..2618338 --- /dev/null +++ b/firewalld.initd @@ -0,0 +1,12 @@ +#!/sbin/openrc-run +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +description="FirewallD" +command=/usr/sbin/firewalld +pidfile=/var/run/firewalld.pid + +depend() { + need dbus + provide iptables ip6tables ebtables +} |