blob: b0a71824662bb13ecee4a5a37e5f79c0c1d92ebd (
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
|
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=rt4
pkgver=4.2.7
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
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
perl-dbix-searchbuilder
perl-mail-tools
perl-crypt-eksblowfish
perl-datetime-format-natural
perl-data-guid
perl-html-formattext-withlinks-andtables
perl-role-basic
perl-module-refresh
perl-date-extract
perl-html-formattext-withlinks
perl-email-address-list
perl-text-quoted
perl-locale-maketext-fuzzy
perl-date-manip
perl-symbol-global-name
perl-crypt-ssleay
perl-mozilla-ca
perl-lwp-protocol-https
perl-crypt-ssleay
perl-crypt-x509
perl-file-which
perl-string-shellquote
perl-lwp-protocol-https
ttf-droid
"
makedepends="$depends autoconf"
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
rt-varpath.patch
rt-autoconf-version.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
# Alpine 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
staticdir: ${datadir}/static
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"
autoconf && ./configure \
--build=$CBUILD \
--host=$CHOST \
--enable-layout=Alpine \
--with-rt-group=rt4 \
--with-web-group=rt4 \
--with-web-user=rt4 \
--disable-gpg \
--disable-graphviz \
|| return 1
make testdeps && 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="7bbb84476ea565eb53a3a1b99d5ff2a1 rt-4.2.7.tar.gz
0f00f58ea2feb15ba0c56f4455feaae1 0001-email-allow-envelope-from-overriding-from-templates.patch
9c1cd44a5e177a73cf92f6790fe5cd78 rt-varpath.patch
344258a3e066d23fb684b3013eb70cd0 rt-autoconf-version.patch"
sha256sums="d1631333e6cf9d6fa7712da5160a5205aa581f88ca97e7a0092e5ce8aece8fea rt-4.2.7.tar.gz
c751d831ec9ad54ae7afd0276cbb36ef57bac291ce4b215000b7364dca20a74d 0001-email-allow-envelope-from-overriding-from-templates.patch
0d1905e29346d1a2a8e8bd5de7931721de872bccfdbb26421f3b6c00e39ca895 rt-varpath.patch
8d7d8398af6a20f847e52408a2fb4b9ab15788cc84cd628fa65e11067df67250 rt-autoconf-version.patch"
sha512sums="1b27d91b516d17ec8106a45b45b0f88f79d1786ed713ebda22af02faa7b3554956a5b579b985a6b5abdaababd9823746197a2bfa454e24caff439edb41c85035 rt-4.2.7.tar.gz
a61cc81d025edf92598023f37517b06145a28edfdc31dfbc94ae2a1f8f13505d5512ad4e332376d46c1e4dd2fdb97569f127503eae3d4af6ce14f63e4e3c3f48 0001-email-allow-envelope-from-overriding-from-templates.patch
8a96b5482d649e373600e0b0e04abe382f61b0ed3ec463625163182fd71569c61c236e2cf48abd496f0d747b11b604acd1f958d8d891a2333bfde7450fb995d3 rt-varpath.patch
cac79f231e1b1915962de8e4a86812fcaa0f1f64384a34557fac860c0fb0ae33d5dfd2371c30c07310391735e7348022e62bd5d453674a41ac7e77865d79dab9 rt-autoconf-version.patch"
|