aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-iptables-chainmgr
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-12 02:15:36 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-12 02:16:13 +0000
commit5adff0b77c5d710bcc7ed4b4c5eb2080a23b2064 (patch)
tree8f78d3eaae7a57736bed0b879036677a3762ae72 /community/perl-iptables-chainmgr
parentcb5921909815c262d070c1ff149bb9790ae311d1 (diff)
downloadaports-5adff0b77c5d710bcc7ed4b4c5eb2080a23b2064.tar.gz
aports-5adff0b77c5d710bcc7ed4b4c5eb2080a23b2064.tar.bz2
aports-5adff0b77c5d710bcc7ed4b4c5eb2080a23b2064.tar.xz
community/perl-[i-j]*: modernize APKBUILD
Changes: - Move tests to check() - Remove return 1 - rename _builddir to builddir - add missing default_prepare in prepare()
Diffstat (limited to 'community/perl-iptables-chainmgr')
-rw-r--r--community/perl-iptables-chainmgr/APKBUILD15
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"