# Maintainer: Natanael Copa pkgname=shorewall pkgver=4.6.3.4 _ver=$pkgver case $pkgver in *.*.*.*) _ver=${pkgver%.*};; esac pkgrel=0 pkgdesc="An iptables front end for firewall configuration" url="http://www.shorewall.net/" arch="noarch" license="GPL-2" depends="shorewall-core perl iptables iproute2" # coreutils for install -T makedepends="coreutils bash" replaces="" subpackages="$pkgname-doc" source="http://www1.shorewall.net/pub/shorewall/${_ver%.*}/shorewall-$_ver/$pkgname-$pkgver.tar.bz2 shorewall.initd shorewallrc.alpine " _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 cp "$srcdir"/shorewallrc.alpine . } build() { cd "$_builddir" ./configure || return 1 } package() { cd "$_builddir" DESTDIR="$pkgdir" ./install.sh shorewallrc.alpine || return 1 install -Dm755 "$srcdir"/shorewall.initd "$pkgdir"/etc/init.d/shorewall } md5sums="f1d6a1328e99eb1a16d8feae69b9fab4 shorewall-4.6.3.4.tar.bz2 ac54901de1e876a18d1938df1512ce0d shorewall.initd 422c5d36fcee177acba58756b0fec7e2 shorewallrc.alpine" sha256sums="5b011373cfe60162ca1be1c5ea3d1cb9fe6cf84cce4a3618b9dad67c28de4bbb shorewall-4.6.3.4.tar.bz2 8a69643e09f71044b4f733263ea7120c4f6147a9d6d9b814b43e94ea64791a0f shorewall.initd 99f588523594b5a8062b2f43ab9f59daf91f12634b178f30dd7cb61786bd8220 shorewallrc.alpine" sha512sums="91c7b2064dc30a07448af86b4a9599611bc42731e90fce20e8f88eb8785de7affffc2daf903aa367ab291a194599056f84c0391593f595b28384ef72e765e85c shorewall-4.6.3.4.tar.bz2 c4c3a1137740fd1098680e4b362d707378a263aeeda19a846ba3007614b1b5021ee4a492a5439066b433ce1c27c5a5069a4497ac08d36959a6e1a48cb44422f4 shorewall.initd c076ae42e7b404cecf521fdc32f92ba3a6b77d61579726abde2f00b6b6282e55b0b334b9fe5e43a6e4ae56361cce3214d9a38099f9f8714f03ae4fb888c744b7 shorewallrc.alpine"