aports/testing/dante/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

58 lines
1.8 KiB
Plaintext

# Contributor: Paul Kilar <pkilar@gmail.com>
# Maintainer: Paul Kilar <pkilar@gmail.com>
pkgname=dante
pkgver="1.4.2"
pkgrel=3
pkgdesc="Dante is SOCKS server and a SOCKS client"
url="http://www.inet.no/dante/index.html"
arch="all"
license="BSD CMU"
depends=""
depends_dev=""
makedepends="bison flex"
install="$pkgname-server.pre-install"
options="libtool"
subpackages="$pkgname-dev $pkgname-doc $pkgname-server"
source="http://www.inet.no/dante/files/$pkgname-$pkgver.tar.gz
ifdev.patch
sockd.initd
sockd.confd"
builddir="$srcdir"/$pkgname-$pkgver
prepare() {
default_prepare || return 1
update_config_guess || return 1
}
build() {
cd "$builddir"
subpackages="$pkgname-dev $pkgname-doc"
ac_cv_func_sched_setscheduler=no ./configure --prefix=/usr
make || return 1
}
package() {
cd "$builddir"
make install DESTDIR=$pkgdir || return 1
}
server() {
depends=
cd "$builddir"
install -D -m644 "example/sockd.conf" \
"$subpkgdir/etc/sockd.conf" || return 1
install -D -m644 "$srcdir"/sockd.confd \
"$subpkgdir"/etc/conf.d/sockd || return 1
install -D -m755 "$srcdir"/sockd.initd \
"$subpkgdir"/etc/init.d/sockd || return 1
install -d "$subpkgdir/usr/sbin"
mv "$pkgdir/usr/sbin/sockd" "$subpkgdir/usr/sbin/sockd"
}
sha512sums="38d4e3086f851fac78e2dbe7f928eba3b8bf1fb9219c42d929b9e1ea324882b0ae583dc59964a2772af4202dfc977387c6f723b320b5abbbe70e1990cd94f53b dante-1.4.2.tar.gz
9fd824db09081e1ff81875e740c9ee4d529e986ce486cbb4270e02c061c0120898cbe57f70ed010cc6b81f1d700114732d8f84b2f055f43d5f3110f2f0e8ba23 ifdev.patch
9ec0c32f6bfb3fbd266f89ccb0ffff0356b88d679bf3099ff4c78e7f4ca78de9b8fb9f6ff136ca333f148c16f9fcb502ac3f5469c106494846e4aa3192d79c4e sockd.initd
09b744340c03369983a9b07e50215288e5a43d15497db479867132bee46f34a7a8e451c980e064f751ad50e5231d77fa5ae9fd5cf2efe3274ae50168bfceaa67 sockd.confd"