aports/community/bareos-webui/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.9 KiB
Plaintext

# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
_php=php7
pkgname=bareos-webui
pkgver=17.2.4
pkgrel=0
pkgdesc="Bareos Web User Interface"
url="http://www.bareos.org/en/bareos-webui.html"
arch="noarch"
options="!check"
license="AGPL-3.0"
depends="$_php-bz2 $_php-ctype $_php-curl $_php-dom $_php-fileinfo $_php-gettext $_php-gd
$_php-iconv $_php-intl $_php-json $_php-mbstring $_php-openssl $_php-session
$_php-simplexml $_php-xml $_php-xmlreader $_php-xmlwriter $_php-zip
"
makedepends="apache2-dev findutils gettext"
subpackages="$pkgname-apache2 $pkgname-nginx"
source="$pkgname-$pkgver.tar.gz::https://github.com/bareos/$pkgname/archive/Release/$pkgver.tar.gz
nginx-conf.patch"
builddir="$srcdir"/$pkgname-Release-$pkgver
prepare() {
default_prepare
sed -i -e "s/mod_php5/mod_$_php/" "$builddir"/install/apache/$pkgname.conf
sed -i -e "s/-dir//" "$builddir"/install/directors.ini
}
build() {
cd "$builddir"
./configure --prefix=/usr \
--with-httpd-conf=/etc/apache2/conf.d
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
mv "$pkgdir"/etc/bareos/bareos-dir.d/console/admin.conf.example \
"$pkgdir"/etc/bareos/bareos-dir.d/console/admin.conf
}
apache2() {
pkgdesc="$pkgdesc (apache2 configuration files)"
depends="$pkgname $_php-apache2"
mkdir -p "$subpkgdir"/etc/
mv "$pkgdir"/etc/apache2 "$subpkgdir"/etc/
}
nginx() {
pkgdesc="$pkgdesc (nginx configuration files)"
depends="$pkgname nginx"
install -Dm644 "$builddir"/install/nginx/$pkgname.conf "$subpkgdir"/etc/nginx/conf.d/$pkgname.conf
}
sha512sums="6b5ebb64285d08d18341dcd3c020785949c36d32f825061c757f91763b4c934805f84321f005987fcca2544a95644920ef44fa6773e663e70a032448289812cf bareos-webui-17.2.4.tar.gz
f015fed04d1ab2d1410d3abe37329d2b48ecc54cd5fa0a0dd560c83ce0b9f04383219e6fa77d6a42752aeec8c26f9a27d53048edf0672435ef1e0cadaf2bae17 nginx-conf.patch"