aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-iptables-chainmgr
diff options
context:
space:
mode:
authorIT Offshore <developer@it-offshore.co.uk>2013-10-28 11:31:06 +0200
committerTimo Teräs <timo.teras@iki.fi>2013-10-28 11:31:06 +0200
commit90d686cb3677822e4fdae36db7f9527c85d841e9 (patch)
tree27b82d59ddbc317f213e8b138f75caa38a368e53 /testing/perl-iptables-chainmgr
parent6167deb0c245d8820e1ac989b024e91d5221ea57 (diff)
downloadaports-90d686cb3677822e4fdae36db7f9527c85d841e9.tar.bz2
aports-90d686cb3677822e4fdae36db7f9527c85d841e9.tar.xz
testing/perl-iptables-chainmgr: new aport
Perl extension for manipulating iptables and ip6tables policies http://search.cpan.org/dist/IPTables-ChainMgr/
Diffstat (limited to 'testing/perl-iptables-chainmgr')
-rw-r--r--testing/perl-iptables-chainmgr/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/perl-iptables-chainmgr/APKBUILD b/testing/perl-iptables-chainmgr/APKBUILD
new file mode 100644
index 0000000000..d27c488bb0
--- /dev/null
+++ b/testing/perl-iptables-chainmgr/APKBUILD
@@ -0,0 +1,41 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: IT Offshore <developer@it-offshore.co.uk>
+# Maintainer: IT Offshore <developer@it-offshore.co.uk>
+pkgname=perl-iptables-chainmgr
+_pkgreal=IPTables-ChainMgr
+pkgver=1.2
+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="53ef679af19c8e0696178ff42e60eaa4 IPTables-ChainMgr-1.2.tar.gz"
+sha256sums="60818e10a8153d661caf9248237027007bc3d45c1836cff43e7bd5e0723060a5 IPTables-ChainMgr-1.2.tar.gz"
+sha512sums="1d8ff4f3db77dac8fa82a7e1a67a1d01dae1a8ea0847a43b14f8179cc1018b4109b5ed47700ece9739c8f5448dbbf4ea16094fac73638ff96327ac4014a25e27 IPTables-ChainMgr-1.2.tar.gz"