mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 12:15:32 +03:00
testing/perl-iptables-parse: new aport
Perl extension for parsing iptables and ip6tables firewall rulesets http://search.cpan.org/dist/IPTables-Parse/
This commit is contained in:
parent
90d686cb36
commit
811b614c13
1 changed files with 41 additions and 0 deletions
41
testing/perl-iptables-parse/APKBUILD
Normal file
41
testing/perl-iptables-parse/APKBUILD
Normal file
|
@ -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"
|
Loading…
Add table
Add a link
Reference in a new issue