Skip to content
Snippets Groups Projects
Commit 946064a1 authored by Leo's avatar Leo
Browse files

testing/ufw: modernize

parent 42f90355
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ license="GPL-3.0-or-later"
options="!check" # 3 tests fails
depends="iptables ip6tables python3"
subpackages="$pkgname-doc $pkgname-openrc $pkgname-bash-completion:bashcomp:noarch"
source="https://launchpad.net/$pkgname/$(echo $pkgver|cut -c1-4)/$pkgver/+download/$pkgname-$pkgver.tar.gz
source="https://launchpad.net/ufw/$(echo $pkgver|cut -c1-4)/$pkgver/+download/ufw-$pkgver.tar.gz
$pkgname.initd
fix-lib_path.patch
"
......@@ -25,16 +25,9 @@ package() {
install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
chmod 644 "$pkgdir"/etc/ufw/*.rules
}
bashcomp() {
depends=""
pkgdesc="Bash completions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
mkdir -p "$subpkgdir"/usr/share/bash-completion/completions
install -m 644 "$builddir"/shell-completion/bash \
"$subpkgdir"/usr/share/bash-completion/completions/ufw
install -Dm0644 "$builddir"/shell-completion/bash \
"$pkgdir"/usr/share/bash-completion/completions/ufw
}
sha512sums="b32d7f79f43c203149c48b090ee0d063df78fcf654344ee11066a7363e799a62b046758ffe02b8bd15121545ac2a6b61df21fe56f8b810319fe4dd562cbdadb3 ufw-0.36.tar.gz
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment