# Maintainer: Natanael Copa pkgname=shorewall pkgver=4.5.21.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 " _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 } build() { cd "$_builddir" ./configure MANDIR=/usr/share/man SBINDIR=/usr/sbin || return 1 } package() { cd "$_builddir" DESTDIR="$pkgdir" ./install.sh || return 1 rm -f "$pkgdir"/etc/init.d/shorewall install -m755 "$srcdir"/shorewall.initd "$pkgdir"/etc/init.d/shorewall } md5sums="ef7b769d668ec9a1964409fdf4dd64b8 shorewall-4.5.21.4.tar.bz2 ac54901de1e876a18d1938df1512ce0d shorewall.initd" sha256sums="297aa07e793e40b8c2a7ce45789e865b54bd53166303aa0baddd937894d50cc9 shorewall-4.5.21.4.tar.bz2 8a69643e09f71044b4f733263ea7120c4f6147a9d6d9b814b43e94ea64791a0f shorewall.initd" sha512sums="efb26a1c9b558f8b70d796f737bde88121b8ecb8c83faec68368b74f3e83b3822ccfa8b233aeefc3ca9c52009be820674e9a78d019cd2051cdefad3f4af82635 shorewall-4.5.21.4.tar.bz2 c4c3a1137740fd1098680e4b362d707378a263aeeda19a846ba3007614b1b5021ee4a492a5439066b433ce1c27c5a5069a4497ac08d36959a6e1a48cb44422f4 shorewall.initd"