aports/community/copy-router-config/APKBUILD
Jakub Jirutka 63f5e7d295 [various]: unify names of licenses according to SPDX
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/
2017-12-30 21:05:50 +01:00

30 lines
1.0 KiB
Plaintext

# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=copy-router-config
pkgver=1.0
pkgrel=0
pkgdesc="copy-router-config and merge-router-config to copy and merge Cisco Routers Configuration"
url="https://www.offensive-security.com/"
arch="noarch"
license="GPL-2.0"
depends="perl perl-cisco-copyconfig"
makedepends=""
source="http://ftp.tku.edu.tw/kali/pool/main/c/$pkgname/${pkgname}_${pkgver}.orig.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
return 0
}
package() {
cd "$builddir"
for pkg in copy merge; do
install -Dm755 ${pkg}-router-config.pl "$pkgdir"/usr/bin/${pkg}-router-config.pl
done
}
md5sums="4e51c5e40d94ee82b9ebdc6c3a3c41df copy-router-config_1.0.orig.tar.gz"
sha256sums="2018faa927e7a5dcf84b30bd8e8d98936efd3bcffef0b14373b734bf040c4243 copy-router-config_1.0.orig.tar.gz"
sha512sums="0f7b94912d1bac7f676b4383d4b978c9034f58da49f73c2527e13950919b4b7f7451608fdb8340f3f8a83d6a4a9b1e4622cbbfd1ad605a530d258dce9a5c4d3f copy-router-config_1.0.orig.tar.gz"