summaryrefslogtreecommitdiffstats
path: root/testing/perl-iptables-parse
diff options
context:
space:
mode:
authorIT Offshore <developer@it-offshore.co.uk>2013-10-28 11:31:53 +0200
committerTimo Teräs <timo.teras@iki.fi>2013-10-28 11:31:53 +0200
commit811b614c13a82bd3fbceec051525833c9df0f5ab (patch)
tree000192ae0e860a4634c926f45a4cdc845d49473b /testing/perl-iptables-parse
parent90d686cb3677822e4fdae36db7f9527c85d841e9 (diff)
downloadaports-811b614c13a82bd3fbceec051525833c9df0f5ab.tar.bz2
aports-811b614c13a82bd3fbceec051525833c9df0f5ab.tar.xz
testing/perl-iptables-parse: new aport
Perl extension for parsing iptables and ip6tables firewall rulesets http://search.cpan.org/dist/IPTables-Parse/
Diffstat (limited to 'testing/perl-iptables-parse')
-rw-r--r--testing/perl-iptables-parse/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/perl-iptables-parse/APKBUILD b/testing/perl-iptables-parse/APKBUILD
new file mode 100644
index 000000000..e1d35af70
--- /dev/null
+++ b/testing/perl-iptables-parse/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-parse
+_pkgreal=IPTables-Parse
+pkgver=1.1
+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="e258a32c73f99697a6f52276bda15878 IPTables-Parse-1.1.tar.gz"
+sha256sums="750ffb2edf09b7616cf5324fb5f770e8e2dafcdc779ea80eb7ff870cbf83adc3 IPTables-Parse-1.1.tar.gz"
+sha512sums="7ebd035cefd982317fe0d4876b928c2b425f7e45578ef4bf299314e735260aae7ca9377ffd48f3f6097a36ab4154a9c996383f57fc1cb80ca66fc3ebf5e07059 IPTables-Parse-1.1.tar.gz"