diff options
Diffstat (limited to 'community/perl-iptables-chainmgr')
-rw-r--r-- | community/perl-iptables-chainmgr/APKBUILD | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/community/perl-iptables-chainmgr/APKBUILD b/community/perl-iptables-chainmgr/APKBUILD index c00b5c166a..6ab2fdc3b0 100644 --- a/community/perl-iptables-chainmgr/APKBUILD +++ b/community/perl-iptables-chainmgr/APKBUILD @@ -4,7 +4,7 @@ pkgname=perl-iptables-chainmgr _pkgreal=IPTables-ChainMgr pkgver=1.6 -pkgrel=0 +pkgrel=1 pkgdesc="Perl extension for manipulating iptables and ip6tables policies" url="http://search.cpan.org/dist/IPTables-ChainMgr/" arch="noarch" @@ -18,6 +18,8 @@ source="http://search.cpan.org/CPAN/authors/id/M/MR/MRASH/$_pkgreal-$pkgver.tar. builddir="$srcdir/$_pkgreal-$pkgver" prepare() { + default_prepare + cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor @@ -26,15 +28,18 @@ prepare() { build() { cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` - make && make test + make +} + +check() { + cd "$builddir" + make test } package() { cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="d1e6feb17d85784896f39cc21f730311 IPTables-ChainMgr-1.6.tar.gz" -sha256sums="958d7961640e9d70f714a72877f7eb32d5a8628591a790a6ccef96f2d84fb8c3 IPTables-ChainMgr-1.6.tar.gz" sha512sums="771fab2f2b8383d22f335d34b38a1b2f7deb5a10841ed005609dbe785197eff0c8be4ba4c595495525a341786a0d2173cafeb4ab6aa100582007c77bd2651c09 IPTables-ChainMgr-1.6.tar.gz" |