2015-05-21 09:07:59 +00:00

42 lines
1.4 KiB
Plaintext

# Automatically generated by apkbuild-cpan, template 1
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=perl-iptables-parse
_pkgreal=IPTables-Parse
pkgver=1.4
pkgrel=0
pkgdesc="Perl extension for parsing iptables and ip6tables firewall rulesets"
url="http://search.cpan.org/dist/IPTables-Parse/"
arch="noarch"
license="artistic_1"
cpandepends=""
cpanmakedepends=" "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/M/MR/MRASH/$_pkgreal-$pkgver.tar.gz"
_builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
cd "$_builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
cd "$_builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
make && make test
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
md5sums="bb8239ab098d90d9e83ed4402b0242b0 IPTables-Parse-1.4.tar.gz"
sha256sums="6ff048af1c4db45924022181737a87006cab17d0ac970d1923f4d5e7dd37701e IPTables-Parse-1.4.tar.gz"
sha512sums="cbca1118b6da2ffba596b89d436b747749bf7d43dd754bd62fd0d4d5d5d401f9332c551bc137f49d11f5a3c01a1e368de14d9ba615c3e982c2c995aaf04e3421 IPTables-Parse-1.4.tar.gz"