blob: 55ea9437e3331f6258d1c87a3f5a2c70f4d647f7 (
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-chainmgr
_pkgreal=IPTables-ChainMgr
pkgver=1.3
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="f5ff3a84503707782e38362bdc7b8b67 IPTables-ChainMgr-1.3.tar.gz"
sha256sums="ec986c4823a9059ba785a04ebaba80d76ef42140eed6008463bc9d835645d673 IPTables-ChainMgr-1.3.tar.gz"
sha512sums="88ecd8ee9e21bdea402581ed456d1ea8e6845ebb034f979ba6cfd9528199b6899c1fc8ed1767ba1756565f8b4bfb3d3a364dae2d0d668861418f2a2def5596c3 IPTables-ChainMgr-1.3.tar.gz"
|