mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-31 03:11:18 +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/
46 lines
1.3 KiB
Plaintext
46 lines
1.3 KiB
Plaintext
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
|
|
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
|
|
_php=php5
|
|
_realname=suhosin
|
|
pkgname=${_php}-$_realname
|
|
pkgver=0.9.38
|
|
pkgrel=0
|
|
pkgdesc="SUHOSIN - 수호신 - The PHP security extension."
|
|
url="https://www.suhosin.org"
|
|
arch="all"
|
|
license="PHP-3.0"
|
|
depends=""
|
|
makedepends="${_php}-dev autoconf linux-headers"
|
|
source="https://download.suhosin.org/suhosin-$pkgver.tar.gz
|
|
fix-LOCK-undeclared.patch
|
|
"
|
|
builddir="$srcdir/suhosin-$pkgver"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
phpize5
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--with-php-config=/usr/bin/php-config5
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
# tests/funcs/crypt_blowfish.phpt failure reported to php
|
|
# the test asks for an email address due to this failure
|
|
# make test
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make INSTALL_ROOT="$pkgdir" install
|
|
mkdir -p "$pkgdir"/etc/${_php}/conf.d
|
|
echo "extension=suhosin.so" > "$pkgdir"/etc/${_php}/conf.d/suhosin.ini
|
|
}
|
|
|
|
sha512sums="cc4eb38b5d6673cc3f2dc395e5a8b5461d3221019ac9849b747b6d5bae423cd5bd01a75b9432414dc7c26c78bab9f2381a5414712a6906a999f3ec9dc77ebc45 suhosin-0.9.38.tar.gz
|
|
8d41d5cf3cf31c086ecc07fa786232df3e821a659dc4ff4e08f9d30f57bce453abcf16345b911b6dba683dd421c2cbe11e0966ef3bb7976d1d6627d8bc66a15e fix-LOCK-undeclared.patch"
|