mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-18 15:12:02 +01: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/
190 lines
5.8 KiB
Plaintext
190 lines
5.8 KiB
Plaintext
# Contributor: Valery Kartel <valery.kartel@gmail.com>
|
|
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
|
|
pkgname=otrs
|
|
pkgver=5.0.23
|
|
pkgrel=0
|
|
pkgdesc="Flexible Open Source Service Management Software"
|
|
url="http://www.otrs.org/"
|
|
arch="noarch"
|
|
license="AGPL-3.0"
|
|
pkgusers="otrs"
|
|
pkggroups="www-data"
|
|
depends="perl perl-archive-zip perl-crypt-eksblowfish perl-crypt-ssleay
|
|
perl-date-format perl-dbi perl-encode-hanextra perl-io-socket-ssl perl-json-xs
|
|
perl-ldap perl-libwww perl-mail-imapclient perl-net-dns perl-template-toolkit
|
|
perl-text-csv perl-text-csv_xs perl-uri perl-xml-libxml perl-xml-libxslt
|
|
perl-xml-parser perl-yaml-xs ttf-dejavu"
|
|
makedepends=""
|
|
subpackages="$pkgname-doc $pkgname-dev $pkgname-setup $pkgname-apache2
|
|
$pkgname-fastcgi $pkgname-nginx $pkgname-bash-completion:bashcomp"
|
|
install="$pkgname.pre-install $pkgname.post-install $pkgname.post-upgrade
|
|
$pkgname-setup.post-install $pkgname-setup.post-deinstall"
|
|
source="http://ftp.otrs.org/pub/$pkgname/$pkgname-$pkgver.tar.bz2
|
|
$pkgname.initd
|
|
$pkgname.spawn-fcgi
|
|
$pkgname.nginx.conf
|
|
"
|
|
builddir="$srcdir/$pkgname-$pkgver"
|
|
|
|
# Security fixes:
|
|
# 5.0.23:
|
|
# - CVE-2017-14635
|
|
|
|
prepare() {
|
|
default_prepare || return 1
|
|
|
|
find "$builddir" -type f -exec \
|
|
sed -i 's:/opt/otrs:/var/lib/otrs:g' {} + \
|
|
|| return 1
|
|
}
|
|
|
|
package() {
|
|
local file
|
|
|
|
mkdir -p "$pkgdir"/var/lib/$pkgname
|
|
|
|
cd "$pkgdir"
|
|
|
|
cp -r "$builddir"/* var/lib/$pkgname || return 1
|
|
install -Dm755 "$srcdir"/$pkgname.initd etc/init.d/$pkgname || return 1
|
|
|
|
# switch to system fonts
|
|
rm -fr var/lib/$pkgname/var/fonts
|
|
ln -s /usr/share/fonts/ttf-dejavu \
|
|
var/lib/$pkgname/var/fonts
|
|
|
|
# fix *.dist files
|
|
for file in var/lib/$pkgname/var/cron/*.dist \
|
|
var/lib/$pkgname/Kernel/Config.pod.dist
|
|
do
|
|
mv $file ${file%.dist} || return 1
|
|
done
|
|
}
|
|
|
|
check() {
|
|
"$builddir"/bin/otrs.CheckModules.pl
|
|
}
|
|
|
|
doc() {
|
|
local file;
|
|
default_doc || return 1
|
|
|
|
mkdir -p "$subpkgdir"/var/lib/$pkgname/scripts
|
|
|
|
mv "$pkgdir"/var/lib/$pkgname/doc \
|
|
"$subpkgdir"/var/lib/$pkgname || return 1
|
|
|
|
for file in $(find "$pkgdir" -name "*.md" -o -name "*.pod" -o -name "*.txt" \
|
|
-o -name "ARCHIVE" -o -name "README" \
|
|
-o -name "UPGRADING" -o -name "COPYING*")
|
|
do
|
|
file=${file#$pkgdir}
|
|
mkdir -p "$subpkgdir"/${file%/*} || return 1
|
|
mv "$pkgdir"/$file "$subpkgdir"/$file || return 1
|
|
done
|
|
}
|
|
|
|
dev() {
|
|
local file
|
|
default_dev || return 1
|
|
|
|
mkdir -p "$subpkgdir"/var/lib/$pkgname/scripts \
|
|
"$subpkgdir"/var/lib/$pkgname/var/httpd/htdocs/js
|
|
|
|
mv "$pkgdir"/var/lib/$pkgname/scripts/auto_build \
|
|
"$pkgdir"/var/lib/$pkgname/scripts/tools \
|
|
"$pkgdir"/var/lib/$pkgname/scripts/test \
|
|
"$pkgdir"/var/lib/$pkgname/scripts/contrib \
|
|
"$pkgdir"/var/lib/$pkgname/scripts/rpc-example.pl \
|
|
"$subpkgdir"/var/lib/$pkgname/scripts || return 1
|
|
|
|
for file in processes webservices; do
|
|
mkdir -p "$subpkgdir"/var/lib/$pkgname/var/$file
|
|
mv "$pkgdir"/var/lib/$pkgname/var/$file/examples \
|
|
"$subpkgdir"/var/lib/$pkgname/var/$file || return 1
|
|
done
|
|
|
|
mv "$pkgdir"/var/lib/$pkgname/var/httpd/htdocs/js/test \
|
|
"$subpkgdir"/var/lib/$pkgname/var/httpd/htdocs/js
|
|
}
|
|
|
|
setup() {
|
|
local file
|
|
pkgdesc="$pkgdesc (initial setup)"
|
|
depends="$pkgname"
|
|
|
|
mkdir -p "$subpkgdir"/var/lib/$pkgname/scripts \
|
|
"$subpkgdir"/var/lib/$pkgname/bin/cgi-bin \
|
|
"$subpkgdir"/var/lib/$pkgname/bin/fcgi-bin
|
|
|
|
mv "$pkgdir"/var/lib/$pkgname/scripts/DBUpdate-* \
|
|
"$pkgdir"/var/lib/$pkgname/scripts/database \
|
|
"$subpkgdir"/var/lib/$pkgname/scripts || return 1
|
|
|
|
mv "$pkgdir"/var/lib/$pkgname/bin/cgi-bin/installer.pl \
|
|
"$subpkgdir"/var/lib/$pkgname/bin/cgi-bin/installer.pl || return 1
|
|
|
|
mv "$pkgdir"/var/lib/$pkgname/bin/fcgi-bin/installer.pl \
|
|
"$subpkgdir"/var/lib/$pkgname/bin/fcgi-bin/installer.pl || return 1
|
|
|
|
for file in CheckModules CheckSum; do
|
|
mv "$pkgdir"/var/lib/$pkgname/bin/$pkgname.$file.pl \
|
|
"$subpkgdir"/var/lib/$pkgname/bin/$pkgname.$file.pl || return 1
|
|
done
|
|
|
|
for file in fetchmailrc mailfilter procmailrc; do
|
|
install -Dm644 "$builddir"/.$file.dist \
|
|
"$subpkgdir"/var/lib/$pkgname/.$file.dist || return 1
|
|
done
|
|
|
|
mv "$pkgdir"/var/lib/$pkgname/scripts/apache2-httpd-plack-proxy.conf \
|
|
"$subpkgdir"/var/lib/$pkgname/scripts
|
|
}
|
|
|
|
apache2() {
|
|
pkgdesc="$pkgdesc (apache2 configuration)"
|
|
depends="$pkgname apache2 apache2-mod-perl"
|
|
|
|
mkdir -p "$subpkgdir"/etc/apache2/conf.d \
|
|
"$subpkgdir"/var/lib/$pkgname/scripts
|
|
|
|
mv "$pkgdir"/var/lib/$pkgname/scripts/apache2-httpd.include.conf \
|
|
"$subpkgdir"/etc/apache2/conf.d/$pkgname.conf || return 1
|
|
|
|
mv "$pkgdir"/var/lib/$pkgname/scripts/apache2-perl-startup.pl \
|
|
"$subpkgdir"/var/lib/$pkgname/scripts
|
|
}
|
|
|
|
fastcgi() {
|
|
pkgdesc="$pkgdesc (fastcgi configuration)"
|
|
depends="$pkgname fcgiwrap perl-cgi-fast spawn-fcgi"
|
|
|
|
install -Dm644 "$srcdir"/$pkgname.spawn-fcgi \
|
|
"$subpkgdir"/etc/conf.d/spawn-fcgi.$pkgname || return 1
|
|
|
|
mkdir -p "$subpkgdir"/etc/init.d
|
|
ln -s spawn-fcgi "$subpkgdir"/etc/init.d/spawn-fcgi.$pkgname
|
|
}
|
|
|
|
nginx() {
|
|
pkgdesc="$pkgdesc (nginx configuration)"
|
|
depends="$pkgname $pkgname-fastcgi nginx"
|
|
|
|
install -Dm644 "$srcdir"/$pkgname.nginx.conf \
|
|
"$subpkgdir"/etc/nginx/$pkgname.conf || return 1
|
|
}
|
|
|
|
bashcomp() {
|
|
pkgdesc="$pkgdesc (bash completion)"
|
|
depends=""
|
|
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
|
|
|
|
install -Dm644 "$builddir"/.bash_completion \
|
|
"$subpkgdir"/var/lib/$pkgname/.bash_completion
|
|
}
|
|
|
|
sha512sums="c6ae594178e1f0eb59b87a8d08b610940ba7ad0a44699ba73568c6844a49fc03e2486bce393aaf0dd78da9c64790b9fae72cfad65c9c6955c0524fbf27b95d7e otrs-5.0.23.tar.bz2
|
|
90d43b350a00fa1648c8add5e2af9b88f78cb583f71438306a9b80ee45a939eda903472b84db1327e0579a5d8c5fd88e3c1e7d55a15106aeef426b16e932363d otrs.initd
|
|
7bab58132a5705c8e8ecade8e4aea3b0f04af66a71e4ae08cfeda91b0e143607de350debdc49bf2ce022277ee3804aead3ca8825804d073690c2f5f3a19d776e otrs.spawn-fcgi
|
|
f79474575ac7c734edcfbaf56fc8062c3594749791f9d1fa4328c6bde71747f0ce6219d47ba7ab409927b7343b36dc0c4aa29cd03600c2d806ed5409edab6b14 otrs.nginx.conf"
|