25 lines
555 B
Plaintext
25 lines
555 B
Plaintext
|
# Contributor: Alex Denes <caskd@redxen.eu>
|
||
|
# Maintainer: Alex Denes <caskd@redxen.eu>
|
||
|
|
||
|
. ../../APKBUILD.template
|
||
|
|
||
|
pkgrel=0
|
||
|
pkgdesc="Basic generic nftables template"
|
||
|
options="!check" # check requires root?
|
||
|
|
||
|
check() {
|
||
|
msg "Checking if commands are valid"
|
||
|
nft -c -I "$builddir/nft" -f "$builddir"/nft/loadall
|
||
|
}
|
||
|
|
||
|
prepare() {
|
||
|
default_prepare
|
||
|
|
||
|
cp -r "$startdir"/nft "$builddir"/nft # abuild doesn't support hierarchical includes yet, no hashes will be computed
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
mkdir -p "$pkgdir"/etc/nnd
|
||
|
cp -r "$builddir"/nft "$pkgdir"/etc/nnd/nftables
|
||
|
}
|