aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-iptables-chainmgr/APKBUILD
blob: 9d0f3a063c6783023b5dc1cf5445423f79553b8c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                      

                                                           

                              
          
        


                                                                         
                      
                                                 
                  



                                                                                   
                                    

           

                       
                      




                                                                 
                      
                                                               





                      


           
                      
                                      


                                                                           
                                                                                                                                                                           
# 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.6
pkgrel=1
pkgdesc="Perl extension for manipulating iptables and ip6tables policies"
url="http://search.cpan.org/dist/IPTables-ChainMgr/"
arch="noarch"
license="Artistic-1.0"
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() {
	default_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
}

check() {
        cd "$builddir"
        make test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="771fab2f2b8383d22f335d34b38a1b2f7deb5a10841ed005609dbe785197eff0c8be4ba4c595495525a341786a0d2173cafeb4ab6aa100582007c77bd2651c09  IPTables-ChainMgr-1.6.tar.gz"