1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/testing/sqm-scripts/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

52 lines
2 KiB
Text

# Contributor:
# Maintainer:
pkgname=sqm-scripts
pkgver=1.0.7
pkgrel=0
pkgdesc="SQM scripts traffic shaper"
url="https://github.com/tohojo/sqm-scripts"
arch="noarch"
license="GPL-2.0"
depends="iproute2 iptables ip6tables"
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages=""
source="$pkgname-$pkgver.tar.gz::https://github.com/tohojo/sqm-scripts/archive/v${pkgver}.tar.gz
10-Makefile.patch
10-function.sh.patch
10-defaults.sh.patch"
_builddir="$srcdir/sqm-scripts-$pkgver"
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
}
package() {
cd "$_builddir"
install -m 0755 -d $pkgdir/etc/network/if-up.d
make DESTDIR="$pkgdir" install || return 1
}
md5sums="79c30e7b349becb7006eff6cc7840b63 sqm-scripts-1.0.7.tar.gz
8445b8a37dbad4e1d5616cf22f90e0df 10-Makefile.patch
6b8d3d269e29e5e5fa39670d32ffcb89 10-function.sh.patch
04fb808b2247c0241dad147cec9232fe 10-defaults.sh.patch"
sha256sums="dfbaa5c35a9229d131e394c86d10e3482fb0901e8a063b0fb8a20e20ac54b93f sqm-scripts-1.0.7.tar.gz
2fa65381b7cade1aa2b068a6c9f27d0b966afbdd3297ed5afe48886ba64d0b9b 10-Makefile.patch
c3ba1e4054fa9aaf1c0a621270ad6941e752b3a58c1048f6bdd681fb880e70b5 10-function.sh.patch
29fb7cc01360c2589a73b24e8d7c1b3fed893cf4f5d400a012272eeb6b167b8f 10-defaults.sh.patch"
sha512sums="4f8a23511669d78a54ad3ec7b9c83a8cac18bf57010003c5208a75577602d8be2ce4e481d8b5e58739d703f46ba9962a1b24fa240da3169705bb1e00ba2674dc sqm-scripts-1.0.7.tar.gz
4bbdf01ad1c8e79b67586d4eb0397ed9f2e8fff18163b4f81b014afd8a2c6c871da53861d0778531d62e0d7a9f4843d9a4f7a6a5dee5c74f12b1ce2c1454fb17 10-Makefile.patch
b5904eec7196de7ad8ebb3a8c3f6771bc62bae48057e14ba073ea4f34abb50d5459beb436f58f1ee2e2abd3d4f5a7d36370dc09d65a55fa647fd1a43cb3303e6 10-function.sh.patch
a5d90befde15afe588d6ac46a3ce4c7b123d0d233e83be5c36c9f45f14d71622f6da6c9c47fe219645a474705daaacc52e246ce7c21b313631371db2962a3f9a 10-defaults.sh.patch"