summaryrefslogtreecommitdiffstats
path: root/testing/perl-iptables-parse/APKBUILD
blob: 64aab5398e5f44294790a644175f3b43ba5edbd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=perl-iptables-parse
_pkgreal=IPTables-Parse
pkgver=1.4
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="bb8239ab098d90d9e83ed4402b0242b0  IPTables-Parse-1.4.tar.gz"
sha256sums="6ff048af1c4db45924022181737a87006cab17d0ac970d1923f4d5e7dd37701e  IPTables-Parse-1.4.tar.gz"
sha512sums="cbca1118b6da2ffba596b89d436b747749bf7d43dd754bd62fd0d4d5d5d401f9332c551bc137f49d11f5a3c01a1e368de14d9ba615c3e982c2c995aaf04e3421  IPTables-Parse-1.4.tar.gz"