mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-12 11:21:50 +01:00
151 lines
3.9 KiB
Plaintext
151 lines
3.9 KiB
Plaintext
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=rt4
|
|
pkgver=4.0.17
|
|
pkgrel=2
|
|
pkgdesc="Request Tracker - issue and bug tracker"
|
|
pkgusers="rt4"
|
|
pkggroups="rt4"
|
|
url="http://www.bestpractical.com/rt"
|
|
arch="noarch"
|
|
license="GPLv2+"
|
|
depends="perl
|
|
perl-term-readkey
|
|
perl-cache-simple-timedexpiry
|
|
perl-class-accessor
|
|
perl-dbi
|
|
perl-dbd-pg
|
|
perl-dbd-mysql
|
|
perl-devel-globaldestruction
|
|
perl-devel-stacktrace
|
|
perl-digest-sha1
|
|
perl-email-address
|
|
perl-getopt-long
|
|
perl-locale-maketext-fuzzy
|
|
perl-locale-maketext-lexicon
|
|
perl-log-dispatch
|
|
perl-mime-tools
|
|
perl-net-cidr
|
|
perl-regexp-common-net-cidr
|
|
perl-sub-exporter
|
|
perl-text-password-pronounceable
|
|
perl-text-template
|
|
perl-text-wrapper
|
|
perl-time-hires
|
|
perl-time-modules
|
|
perl-tree-simple
|
|
perl-universal-require
|
|
perl-xml-rss
|
|
perl-text-wikiformat
|
|
perl-convert-color
|
|
perl-data-ical
|
|
perl-mime-types
|
|
perl-html-format
|
|
perl-html-rewriteattributes>=0.05
|
|
perl-html-tree
|
|
perl-html-mason
|
|
perl-javascript-minifier
|
|
perl-cgi-psgi
|
|
perl-cgi-emulate-psgi
|
|
perl-html-mason-psgihandler
|
|
perl-apache-session
|
|
perl-starlet
|
|
perl-html-parser
|
|
perl-file-sharedir
|
|
perl-module-versions-report
|
|
perl-list-moreutils
|
|
perl-css-squish
|
|
perl-dbix-searchbuilder
|
|
perl-regexp-ipv6
|
|
perl-text-quoted
|
|
perl-html-scrubber
|
|
perl-html-quoted
|
|
perl-datetime-locale
|
|
perl-fcgi
|
|
perl-fcgi-procmanager
|
|
perl-datetime
|
|
perl-json
|
|
perl-ipc-run3
|
|
perl-plack
|
|
ttf-droid
|
|
"
|
|
|
|
makedepends="$depends"
|
|
install="$pkgname.pre-install $pkgname.pre-upgrade"
|
|
subpackages=""
|
|
source="http://www.bestpractical.com/pub/rt/release/rt-$pkgver.tar.gz
|
|
0001-email-allow-envelope-from-overriding-from-templates.patch"
|
|
|
|
_builddir="$srcdir"/rt-$pkgver
|
|
prepare() {
|
|
local i
|
|
cd "$_builddir"
|
|
for i in $source; do
|
|
case $i in
|
|
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
|
|
esac
|
|
done
|
|
|
|
sed -i -e 's_$RT::BasePath/share/fonts/_/usr/share/fonts/TTF/_g' \
|
|
"$_builddir"/etc/RT_Config.pm*
|
|
|
|
cat <<'EOF' >> config.layout
|
|
# Alpione directory layout.
|
|
<Layout Alpine>
|
|
prefix: /usr
|
|
exec_prefix: ${prefix}
|
|
bindir: ${exec_prefix}/bin
|
|
sbindir: ${exec_prefix}/sbin
|
|
sysconfdir: /etc/rt4
|
|
mandir: ${prefix}/share/man
|
|
plugindir: ${prefix}/lib/rt4/plugins
|
|
libdir: ${prefix}/lib/rt4/
|
|
datadir: ${prefix}/share/rt4
|
|
htmldir: ${datadir}/html
|
|
fontdir: ${datadir}/fonts
|
|
lexdir: ${datadir}/po
|
|
manualdir: ${datadir}/doc
|
|
localstatedir: /var
|
|
logfiledir: ${localstatedir}/log
|
|
masonstatedir: ${localstatedir}/cache/mason_data
|
|
sessionstatedir: ${localstatedir}/cache/session_data
|
|
customdir: ${prefix}/local
|
|
custometcdir: ${customdir}/etc
|
|
customhtmldir: ${customdir}/html
|
|
customlexdir: ${customdir}/po
|
|
customlibdir: ${customdir}/lib
|
|
customplugindir: ${customdir}/plugins
|
|
</Layout>
|
|
EOF
|
|
}
|
|
|
|
build() {
|
|
cd "$_builddir"
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--enable-layout=Alpine \
|
|
--with-rt-group=rt4 \
|
|
--with-web-group=rt4 \
|
|
--with-web-user=rt4 \
|
|
--disable-gpg \
|
|
|| return 1
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
make -j1 DESTDIR="$pkgdir" install || return 1
|
|
# delete the droid fonts as we get them from ttf-droid
|
|
rm -rf "$pkgdir"/usr/share/rt4/fonts/ \
|
|
"$pkgdir"/usr/local
|
|
|
|
}
|
|
|
|
md5sums="aad39ab243853f991d8f78e85c1181f8 rt-4.0.17.tar.gz
|
|
0f00f58ea2feb15ba0c56f4455feaae1 0001-email-allow-envelope-from-overriding-from-templates.patch"
|
|
sha256sums="dd5cd3104a5c88ce072dbeea1c21ace26acd4e47974006adf0d1a3f9d8abbec4 rt-4.0.17.tar.gz
|
|
c751d831ec9ad54ae7afd0276cbb36ef57bac291ce4b215000b7364dca20a74d 0001-email-allow-envelope-from-overriding-from-templates.patch"
|
|
sha512sums="7a0c0a3e68e39dc18fdda0777e5c20b0b63471ce8560ebfe1e9c05f91f4345d0b8733115a15cbac5762ee1a5028cc37976f574d26aeaa19e2ae6127054c4ea91 rt-4.0.17.tar.gz
|
|
a61cc81d025edf92598023f37517b06145a28edfdc31dfbc94ae2a1f8f13505d5512ad4e332376d46c1e4dd2fdb97569f127503eae3d4af6ce14f63e4e3c3f48 0001-email-allow-envelope-from-overriding-from-templates.patch"
|