mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 12:15:32 +03:00
This commit updates $license variable in all APKBUILDs to comply with short names specified by SPDX version 3.0 [1] where possible. It was done using find-and-replace method on substrings inside $license variables. Only license names were updated, not "expressions" specifying relation between the licenses (e.g. "X and Y", "X or Y", "X and (Y or Z)") or exceptions (e.g. "X with exceptions"). Many licenses have a version or multiple variants, e.g. MPL-2.0, BSD-2-Clause, BSD-3-Clause. However, $license in many aports do not contain license version or variant. Since there's no way how to infer this information just from abuild, it were left without the variant suffix or version, i.e. non SPDX compliant. GNU licenses (AGPL, GFDL, GPL, LGPL) are especially complicated. They exist in two variants: -only (formerly e.g. GPL-2.0) and -or-later (formerly e.g. GPL-2.0+). We did not systematically noted distinguish between these variants, so GPL-2.0, GPL2, GPLv2 etc. may mean GPL-2.0-only or GPL-2.0-or-later. Thus GNU licenses without "+" (e.g. GPL2+) were left without the variant suffix, i.e. non SPDX compliant. Note: This commit just fixes format of the license names, no verification has been done if the specified license information is actually correct! [1]: https://spdx.org/licenses/
46 lines
1.2 KiB
Text
46 lines
1.2 KiB
Text
# 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.6.1
|
|
pkgrel=1
|
|
pkgdesc="Perl extension for parsing iptables and ip6tables firewall rulesets"
|
|
url="http://search.cpan.org/dist/IPTables-Parse/"
|
|
arch="noarch"
|
|
license="Artistic-1.0"
|
|
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() {
|
|
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="7638665e34f06771519bc8989ad57b6308c5efb39ecb32f3f6f208d0ece1675f499452f4b4b5b2ddd25109abecbdb5015e4441431defa8688f33f9eb2ad921eb IPTables-Parse-1.6.1.tar.gz"
|