diff options
author | Arnaud Fontaine <arnau@mini-dweeb.org> | 2020-11-13 08:17:38 +0900 |
---|---|---|
committer | Andreas Grapentin <andreas@grapentin.org> | 2020-12-02 14:55:35 +0100 |
commit | 3c3aaa2973b9ac50bcb920eff20b3683cdcb1e04 (patch) | |
tree | c6fa7b827df5b234435cc8436a91d91c8f9b9a69 /nonsystemd | |
parent | 0ffe725b1b0ee9b9e15e2a367ad648dfe69ae785 (diff) | |
download | abslibre-3c3aaa2973b9ac50bcb920eff20b3683cdcb1e04.tar.gz abslibre-3c3aaa2973b9ac50bcb920eff20b3683cdcb1e04.tar.bz2 abslibre-3c3aaa2973b9ac50bcb920eff20b3683cdcb1e04.zip |
nonsystemd/openrc-security: Add nftables-openrc.
Signed-off-by: Andreas Grapentin <andreas@grapentin.org>
Diffstat (limited to 'nonsystemd')
-rw-r--r-- | nonsystemd/openrc-security/PKGBUILD | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/nonsystemd/openrc-security/PKGBUILD b/nonsystemd/openrc-security/PKGBUILD index 08bdf2290..7af6a5fff 100644 --- a/nonsystemd/openrc-security/PKGBUILD +++ b/nonsystemd/openrc-security/PKGBUILD @@ -11,7 +11,8 @@ pkgname=('apparmor-openrc' 'iptables-openrc' 'shorewall-openrc' 'shorewall6-openrc' - 'firewalld-openrc') + 'firewalld-openrc' + 'nftables-openrc') pkgrel=2 pkgdesc="OpenRC init scripts" arch=('any') @@ -29,6 +30,9 @@ source=("iptables.confd::${_url}/net-firewall/iptables/files/iptables-1.4.13.con "shorewall.confd::${_url}/net-firewall/shorewall/files/shorewall.confd-r1" "shorewall6.initd::${_url}/net-firewall/shorewall/files/shorewall.initd-r3" "shorewall6.confd::${_url}/net-firewall/shorewall/files/shorewall.confd-r1" + "nftables.shd::${_url}/net-firewall/nftables/files/libexec/nftables.sh" + "nftables.confd::${_url}/net-firewall/nftables/files/nftables.confd" + "nftables.initd::${_url}/net-firewall/nftables/files/nftables.init" ) sha512sums=('bd67d53e997ea65755148ba071fe6e3856d6e604b9167c666900721bc3dc24f63d395bc33a1a34ae50f95e72760da630db1a8d35afc81ec5973e60ba5343dc70' '8de9a5de4061bef217fbc07577688a8110f1116af7f3b936dfd18100a6a7a47ec6e70c456b24cf3432fb4f2034b741a487fe6af8d9740f174d51c6eb16945c6e' @@ -40,7 +44,10 @@ sha512sums=('bd67d53e997ea65755148ba071fe6e3856d6e604b9167c666900721bc3dc24f63d3 '4cf71fd8087fa6c81a2ef4845da108df08f03c63f5a1312e79ec7f32cdae0d14d4d21a2af2ab696cc9be3c6d9215f097461b46b398db2a18067987cac00e5771' 'fee275ba8089b0abda5239edb06a3ab70c96acbbcd715c1a3aa5e92ba976294525c251b67b00d876e45f7c827767db45bd7623df42cc68c822234a7ea13d527b' '4cf71fd8087fa6c81a2ef4845da108df08f03c63f5a1312e79ec7f32cdae0d14d4d21a2af2ab696cc9be3c6d9215f097461b46b398db2a18067987cac00e5771' - 'fee275ba8089b0abda5239edb06a3ab70c96acbbcd715c1a3aa5e92ba976294525c251b67b00d876e45f7c827767db45bd7623df42cc68c822234a7ea13d527b') + 'fee275ba8089b0abda5239edb06a3ab70c96acbbcd715c1a3aa5e92ba976294525c251b67b00d876e45f7c827767db45bd7623df42cc68c822234a7ea13d527b' + '6cb1ac0928ae2da5c69764d45c52a661a6d72698bb9edd6a603580d2f9bd82b59f2a2661e7569ade3a3b729459d115004f251ad6a5eac8cdf1d38c65bfa9349e' + '8370abcdc89fcd9da5dc7d1620be6afb4633b8bcd0a8a120b464cc1a7e1fab6f34956c293da3f6d3cbe1f7a2e03038fd0c94a614137ae5657d29ffdb5f3fa144' + 'ca761be0440945b21d5b002468baffb3299d0a3ac244aa895734dfdfaf442e7a73b757bcda99d958582064411d1b80b2cbcb4eb532bb219b4df407c9ed892661') _inst_initd(){ install -Dm755 ${srcdir}/$1.initd ${pkgdir}/etc/init.d/$1 @@ -113,3 +120,17 @@ package_shorewall6-openrc() { _inst_confd 'shorewall6' sed -e 's|/usr/sbin|/usr/bin|g' -i ${pkgdir}/etc/init.d/shorewall6 } + +package_nftables-openrc() { + pkgdes="OpenRC nftables init script" + depends=('nftables' 'openrc') + backup=('etc/conf.d/nftables') + + _inst_confd 'nftables' + + install -Dm755 "${srcdir}/nftables.shd" "${pkgdir}/usr/lib/nftables/nftables.sh" + _inst_initd 'nftables' + sed -e 's|/sbin|/usr/bin|g' \ + -e 's|libexec|lib|g' \ + -i "${pkgdir}/etc/init.d/nftables" +} |