# Contributor: Ɓukasz Jendrysik # Maintainer: Natanael Copa setvar pkgname = 'shorewall6' setvar pkgver = '5.1.7.2' setvar _ver = "$pkgver" case (pkgver) { *.*.*.* { setvar _ver = ${pkgver%.*}} } setvar pkgrel = '0' setvar pkgdesc = ""Files for the IPV6 Shorewall Firewall"" setvar url = ""http://www.shorewall.net/"" setvar arch = ""noarch"" setvar license = ""GPL2"" setvar depends = ""shorewall-core perl ip6tables 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 shorewall6.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"/shorewall6.initd \ "$pkgdir"/etc/init.d/shorewall6 } setvar sha512sums = ""2ce5beb6be5ce9a5f9b1f116468f2834188938c5893ca2a9fdc7d76ab43ed487a7dd59cca5a8098ecee06274c1c359543ff57f2d3efa5e4ed8fc728702f6a689 shorewall6-5.1.7.2.tar.bz2 c8cb512c487f30e26b63bd8e42cf506d032ced2364e0e79e86a3cff84f778ddf00efcbf1e23b07ba0aea9b5b7fcf5f0d10cd4b9884df46ee73ee6b2dff5cd672 shorewall6.initd c076ae42e7b404cecf521fdc32f92ba3a6b77d61579726abde2f00b6b6282e55b0b334b9fe5e43a6e4ae56361cce3214d9a38099f9f8714f03ae4fb888c744b7 shorewallrc.alpine""