blob: 008252694ed23dbb6d5d3961ca11c90fdb6be792 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=rt4
pkgver=4.0.11
pkgrel=0
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 --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 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="ddf507e9ba9891746224817868c05a34 rt-4.0.11.tar.gz
8efa0bcee373ee111ac08c53bac8354d 0001-email-allow-envelope-from-overriding-from-templates.patch"
sha256sums="7f310de457c61d044efdda42c8231c12b12c3400f03565910a758a1b95602789 rt-4.0.11.tar.gz
afebf39b5e0e8b80870accba0821682c171e181965cc7677407396a567c51458 0001-email-allow-envelope-from-overriding-from-templates.patch"
sha512sums="aea33d2c493fbc4e987ef298e98b1799affa01cfe8e4211a38861e82c3d0f448d149015d9e7dd93d3806072aaefb2bdcc253ce2361039f9590d7acc99f2f91da rt-4.0.11.tar.gz
fbd33ca87930294ee3df0d55b622849506c03c250eb37be34738d769006287c93d8628077fb90486ab3229e32903a1663e280f04984deadcbadcf60b3c6ef824 0001-email-allow-envelope-from-overriding-from-templates.patch"
|