# Contributor: Ɓukasz Jendrysik # Maintainer: Natanael Copa setvar pkgname = 'shorewall' setvar pkgver = '5.1.7.2' setvar _ver = "$pkgver" case (pkgver) { *.*.*.* { setvar _ver = ${pkgver%.*}} } setvar pkgrel = '0' setvar pkgdesc = ""An iptables front end for firewall configuration"" setvar url = ""http://www.shorewall.net/"" setvar arch = ""noarch"" setvar license = ""GPL2"" setvar depends = ""shorewall-core perl iptables iproute2"" # coreutils for install -T setvar makedepends = ""coreutils bash"" setvar replaces = """" setvar subpackages = ""$pkgname-doc"" setvar source = ""http://www.shorewall.net/pub/shorewall/${_ver%.*}/shorewall-$_ver/$pkgname-$pkgver.tar.bz2 shorewall.initd shorewallrc.alpine "" setvar _builddir = ""$srcdir/$pkgname-$pkgver"" proc prepare { local i cd $_builddir for i in $source { case (i) { *.patch { msg $i; patch -p1 -i "$srcdir"/$i || return 1} } } cp "$srcdir"/shorewallrc.alpine . } proc build { cd $_builddir ./configure || return 1 } proc package { cd $_builddir" DESTDIR=$pkgdir" ./install.sh shorewallrc.alpine || return 1 install -Dm755 "$srcdir"/shorewall.initd "$pkgdir"/etc/init.d/shorewall } setvar sha512sums = ""05599609b50189e300cd71eda6876ac5e8878a2d2ab7c1635afc1b79f1ab3c9bc92c1ac1758aa8996d10bb37783d1fa29c76adaa879ec93bc12669c3dbdbed9b shorewall-5.1.7.2.tar.bz2 7e226f42f74ce92d4c40bd0e812fbe744f0e343de7d7d68f59328b57829b0a10e2226fa9ef78e3465846bb2f691f761810774672b0a8510f96b80d7645982dc5 shorewall.initd c076ae42e7b404cecf521fdc32f92ba3a6b77d61579726abde2f00b6b6282e55b0b334b9fe5e43a6e4ae56361cce3214d9a38099f9f8714f03ae4fb888c744b7 shorewallrc.alpine""