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

40 lines
1.1 KiB
Plaintext

# Contributor: Alexander Georgievskiy <galeksandrp@gmail.com>
# Maintainer:
pkgname=stargazer
_pkgname=stg
pkgver=2.408
pkgrel=0
pkgdesc="A billing system for small home and office networks"
url="http://www.stg.dp.ua"
arch="all"
license="GPL-2.0-or-later"
depends=""
makedepends="expat-dev linux-headers"
install=""
subpackages="$pkgname-dev"
source="http://www.$_pkgname.dp.ua/download/server/$pkgver/$_pkgname-$pkgver.tar.gz
fix-name-max.patch
"
builddir="$srcdir/$_pkgname-$pkgver"
options="!check"
prepare() {
default_prepare
cd "$builddir/projects/$pkgname"
sed 's/.*capture\/ipq_linux//' -i build
}
build() {
cd "$builddir/projects/$pkgname"
./build
}
package() {
cd "$builddir/projects/$pkgname"
mkdir -p "$pkgdir/usr/sbin"
make PREFIX="$pkgdir" install
}
sha512sums="200e08cfd629dbacda31ffd3134c2908a1ad58604421cc288ad0ec1bdcd60fe021d51fed50fdc2517bb7c2b61ef23b0b9c71a606babd09bc7804cb899e0b7f75 stg-2.408.tar.gz
b7572654091490bab39a6d6da081133df041df80f38f9de77156719ad05083dfa570a7a6df5db74ee30f3d22270271bd27a8793b6c0ee40ea123ddb4af11d6ec fix-name-max.patch"