diff options
author | TBK <tbk@jjtc.dk> | 2018-01-28 18:17:52 +0100 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2018-02-05 19:28:27 +0000 |
commit | d9572d2098fce887eac49d44d26ffe48dc183cd8 (patch) | |
tree | 6029cab1a76508fdc1da0f95cb91265fcd4631ff | |
parent | bf2c4a4c8fa3304b4c06650f94b59422d1636ea7 (diff) | |
download | aports-d9572d2098fce887eac49d44d26ffe48dc183cd8.tar.bz2 aports-d9572d2098fce887eac49d44d26ffe48dc183cd8.tar.xz |
main/shorewall6: upgrade to 5.1.11.1; modernize
-rw-r--r-- | main/shorewall6/APKBUILD | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/main/shorewall6/APKBUILD b/main/shorewall6/APKBUILD index 49f90ccf39..c6522bd08f 100644 --- a/main/shorewall6/APKBUILD +++ b/main/shorewall6/APKBUILD @@ -1,11 +1,11 @@ # Contributor: Łukasz Jendrysik <scadu@yandex.com> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=shorewall6 -pkgver=5.1.8 +pkgver=5.1.11.1 _ver=$pkgver case $pkgver in -*.*.*.*) _ver=${pkgver%.*};; + *.*.*.*) _ver=${pkgver%.*};; esac pkgrel=0 @@ -13,40 +13,37 @@ pkgdesc="Files for the IPV6 Shorewall Firewall" url="http://www.shorewall.net/" arch="noarch" license="GPL-2.0" +options="!check" depends="shorewall-core perl ip6tables iproute2" # coreutils for install -T makedepends="coreutils bash" -replaces="" subpackages="$pkgname-doc" source="http://www.shorewall.net/pub/shorewall/${_ver%.*}/shorewall-$_ver/$pkgname-$pkgver.tar.bz2 shorewall6.initd shorewallrc.alpine " +builddir="$srcdir/$pkgname-$pkgver" -_builddir="$srcdir/$pkgname-$pkgver" prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done + cd "$builddir" + + default_prepare + cp "$srcdir"/shorewallrc.alpine . } build() { - cd "$_builddir" - ./configure || return 1 + cd "$builddir" + ./configure } package() { - cd "$_builddir" - DESTDIR="$pkgdir" ./install.sh shorewallrc.alpine || return 1 + cd "$builddir" + DESTDIR="$pkgdir" ./install.sh shorewallrc.alpine install -Dm755 "$srcdir"/shorewall6.initd \ "$pkgdir"/etc/init.d/shorewall6 } -sha512sums="d58de4235cbf03b7261fc4db4b22de1cef27a69154b604535d0ab41f5a9c5427976b74935ef6a69747e0979e2d093bb160aa609982f47338727283b933deafd1 shorewall6-5.1.8.tar.bz2 +sha512sums="26bdc061e72fc63935465acd9601a6f48d4aa851bef21820d1726b6f39c61bbba5b69ced5e298f932aedee01e4335d5e7cfc40fb16615983053d33c1d84bde83 shorewall6-5.1.11.1.tar.bz2 c8cb512c487f30e26b63bd8e42cf506d032ced2364e0e79e86a3cff84f778ddf00efcbf1e23b07ba0aea9b5b7fcf5f0d10cd4b9884df46ee73ee6b2dff5cd672 shorewall6.initd c076ae42e7b404cecf521fdc32f92ba3a6b77d61579726abde2f00b6b6282e55b0b334b9fe5e43a6e4ae56361cce3214d9a38099f9f8714f03ae4fb888c744b7 shorewallrc.alpine" |