mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
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/
53 lines
1.6 KiB
Plaintext
53 lines
1.6 KiB
Plaintext
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py-impacket
|
|
_pkgname=impacket
|
|
pkgver=0.9.15
|
|
pkgrel=1
|
|
pkgdesc="A collection of Python classes providing access to network packets"
|
|
url="http://code.google.com/p/impacket/"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends=""
|
|
makedepends="python2-dev py-setuptools"
|
|
install=""
|
|
subpackages="py2-${pkgname/py-/}:_py2 $pkgname-doc"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_pkgname-$pkgver
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
python2 setup.py build || return 1
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir"
|
|
install -Dm0644 "$builddir"/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
|
|
}
|
|
|
|
_py() {
|
|
local python=$1
|
|
pkgdesc="$pkgdesc - $python"
|
|
install_if="$pkgname=$pkgver-r$pkgrel $python"
|
|
cd "$builddir"
|
|
$python setup.py install --prefix=/usr --root="$subpkgdir"
|
|
}
|
|
|
|
_py2() {
|
|
_py python2
|
|
replaces="$pkgname"
|
|
depends="py2-asn1 py2-crypto"
|
|
}
|
|
|
|
doc() {
|
|
cd "$builddir"
|
|
mkdir -p "$subpkgdir"/usr/share/doc/$pkgname
|
|
mv impacket/testcases "$subpkgdir"/usr/share/doc/$pkgname
|
|
mv README.md "$subpkgdir"/usr/share/doc/$pkgname
|
|
install -Dm0644 LICENSE "$subpkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
}
|
|
|
|
md5sums="53fb6d1c375dd3ef8fff4ce2b7ff8f15 impacket-0.9.15.tar.gz"
|
|
sha256sums="26af9c0734525448e4a8d56c9c7b05df0146497ec71101c33812f3f3503201eb impacket-0.9.15.tar.gz"
|
|
sha512sums="1d061d19c873c58fc243bc0d49270d39a43fd3c82814862f1d4d1ac0241f162d1f3be765d0778243fd911736c4652dcdd7110ea5f86d1086b1829fa836f61b16 impacket-0.9.15.tar.gz"
|