aports/main/ipvsadm/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

48 lines
1.6 KiB
Plaintext

# Contributor: Leonardo Arena <rnalrd@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ipvsadm
pkgver=1.29
pkgrel=0
pkgdesc="The IP Virtual Server administration utility"
url="http://www.linuxvirtualserver.org/software/ipvs.html"
arch="all"
license="GPL-2.0"
depends=
depends_dev="libnl-dev popt-dev"
makedepends="$depends_dev linux-headers"
install=
subpackages="$pkgname-doc"
source="https://kernel.org/pub/linux/utils/kernel/ipvsadm/$pkgname-$pkgver.tar.xz
$pkgname.initd"
builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$builddir"
make libs && make BUILD_ROOT="$pkgdir" \
MANDIR=usr/share/man \
SBIN="$pkgdir/usr/sbin" \
INIT="$pkgdir/etc/init.d" \
|| return 1
}
package() {
cd "$builddir"
make -j1 BUILD_ROOT="$pkgdir" \
MANDIR=usr/share/man \
SBIN="$pkgdir/usr/sbin" \
INIT="$pkgdir/etc/init.d" \
install
# remove the 2 lines below (and this) if there is no init.d script
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
# install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}
md5sums="12f0d3b4d436e941d0c4dbe358144bfd ipvsadm-1.29.tar.xz
bebb015ea02ead2a84be2bd5af4eb74c ipvsadm.initd"
sha256sums="c3de4a21d90a02c621f0c72ee36a7aa27374b6f29fd4178f33fbf71b4c66c149 ipvsadm-1.29.tar.xz
d18d70c39d5dff6325b7e21fbd61485384b642b15a0dfee935ec9b7d4b9f0b66 ipvsadm.initd"
sha512sums="1fcb5acad6be3a97efc57f594062ad2cd84632f17bd8abbe444fb989ebbb307337a854f3635a695665d7b72039c547946c3931dca61ae1cae9c6ef78b6ba8e8b ipvsadm-1.29.tar.xz
43b2186f48f17d43524c1f4e9de06227c6d491845c466cf6f00214b74fcd5e181e8b855fef8c6fa78c62a924ee3cc3317099278f9656183de8678440bb070625 ipvsadm.initd"