# Automatically generated by apkbuild-cpan, template 1 # Contributor: Stuart Cardall # Maintainer: Stuart Cardall pkgname=perl-iptables-chainmgr _pkgreal=IPTables-ChainMgr pkgver=1.4 pkgrel=0 pkgdesc="Perl extension for manipulating iptables and ip6tables policies" url="http://search.cpan.org/dist/IPTables-ChainMgr/" arch="noarch" license="artistic_1" cpandepends="perl-netaddr-ip perl-iptables-parse" 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="f322a583ef49c82c0807237542ed5f35 IPTables-ChainMgr-1.4.tar.gz" sha256sums="91041681d0635340dc1d1f360ea63a37fddf17eeed7984e506e078cadb622a66 IPTables-ChainMgr-1.4.tar.gz" sha512sums="1175ca8b16df1ba6c7b16b2bf8b17afa8d860af1dd6b39397dd79d754c1eddc22f8ba5bfe0d78785a18086260b5b9fab1c855e85054c8a6188caf90f7e4dd03e IPTables-ChainMgr-1.4.tar.gz"