summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"