1 |
titanofold 14/05/28 10:32:06 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: rt-4.2.4.ebuild |
5 |
Log: |
6 |
Version bump fixes bug 422801 and bug 469416. |
7 |
|
8 |
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key D1BBFDA0) |
9 |
|
10 |
Revision Changes Path |
11 |
1.81 www-apps/rt/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/rt/ChangeLog?rev=1.81&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/rt/ChangeLog?rev=1.81&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/rt/ChangeLog?r1=1.80&r2=1.81 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/www-apps/rt/ChangeLog,v |
20 |
retrieving revision 1.80 |
21 |
retrieving revision 1.81 |
22 |
diff -u -r1.80 -r1.81 |
23 |
--- ChangeLog 8 Jan 2014 06:12:48 -0000 1.80 |
24 |
+++ ChangeLog 28 May 2014 10:32:06 -0000 1.81 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for www-apps/rt |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/www-apps/rt/ChangeLog,v 1.80 2014/01/08 06:12:48 vapier Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/www-apps/rt/ChangeLog,v 1.81 2014/05/28 10:32:06 titanofold Exp $ |
30 |
+ |
31 |
+*rt-4.2.4 (28 May 2014) |
32 |
+ |
33 |
+ 28 May 2014; Aaron W. Swenson <titanofold@g.o> +rt-4.2.4.ebuild, |
34 |
+ files/config.layout-gentoo: |
35 |
+ Version bump fixes bug 422801 and bug 469416. |
36 |
|
37 |
08 Jan 2014; Mike Frysinger <vapier@g.o> rt-3.8.11.ebuild, |
38 |
rt-3.8.15.ebuild, rt-4.0.5.ebuild, rt-4.0.8-r1.ebuild, rt-4.0.8.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 www-apps/rt/rt-4.2.4.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/rt/rt-4.2.4.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/rt/rt-4.2.4.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: rt-4.2.4.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2014 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/www-apps/rt/rt-4.2.4.ebuild,v 1.1 2014/05/28 10:32:06 titanofold Exp $ |
52 |
|
53 |
EAPI=5 |
54 |
|
55 |
inherit webapp eutils depend.apache user |
56 |
|
57 |
DESCRIPTION="RT is an enterprise-grade ticketing system" |
58 |
HOMEPAGE="http://www.bestpractical.com/rt/" |
59 |
SRC_URI="http://download.bestpractical.com/pub/${PN}/release/${P}.tar.gz" |
60 |
|
61 |
KEYWORDS="~amd64" |
62 |
LICENSE="GPL-2" |
63 |
IUSE="mysql +postgres fastcgi lighttpd" |
64 |
REQUIRED_USE="^^ ( mysql postgres )" |
65 |
|
66 |
RESTRICT="test" |
67 |
|
68 |
DEPEND=" |
69 |
>=dev-lang/perl-5.10.1 |
70 |
|
71 |
>=dev-perl/Apache-Session-1.53 |
72 |
>=dev-perl/CSS-Squish-0.06 |
73 |
>=dev-perl/Class-Accessor-0.34 |
74 |
>=dev-perl/DBI-1.37 |
75 |
>=dev-perl/Date-Extract-0.02 |
76 |
>=dev-perl/DateTime-Format-Natural-0.67 |
77 |
>=dev-perl/Devel-StackTrace-1.19 |
78 |
>=dev-perl/HTML-FormatText-WithLinks-0.14 |
79 |
>=dev-perl/HTML-Mason-1.43 |
80 |
>=dev-perl/HTML-Scrubber-0.08 |
81 |
>=dev-perl/HTTP-Server-Simple-0.34 |
82 |
>=dev-perl/HTTP-Server-Simple-Mason-0.14 |
83 |
>=dev-perl/MIME-tools-5.425 |
84 |
>=dev-perl/MailTools-1.60 |
85 |
>=dev-perl/Module-Versions-Report-1.05 |
86 |
>=dev-perl/Role-Basic-0.12 |
87 |
>=dev-perl/Symbol-Global-Name-0.04 |
88 |
>=dev-perl/Text-Quoted-2.80.0 |
89 |
>=dev-perl/Text-WikiFormat-0.76 |
90 |
>=dev-perl/Tree-Simple-1.04 |
91 |
>=dev-perl/XML-RSS-1.05 |
92 |
>=dev-perl/class-returnvalue-0.40 |
93 |
>=dev-perl/dbix-searchbuilder-1.59 |
94 |
>=dev-perl/locale-maketext-lexicon-0.32 |
95 |
>=dev-perl/log-dispatch-2.2.3 |
96 |
>=dev-perl/log-dispatch-2.23 |
97 |
>=virtual/perl-CGI-3.38 |
98 |
>=virtual/perl-Digest-MD5-2.27 |
99 |
>=virtual/perl-File-Spec-0.8 |
100 |
>=virtual/perl-Getopt-Long-2.24 |
101 |
>=virtual/perl-Storable-2.08 |
102 |
>=virtual/perl-locale-maketext-1.06 |
103 |
dev-perl/CGI-Emulate-PSGI |
104 |
dev-perl/CGI-PSGI |
105 |
dev-perl/Cache-Simple-TimedExpiry |
106 |
dev-perl/Calendar-Simple |
107 |
dev-perl/Convert-Color |
108 |
dev-perl/Crypt-Eksblowfish |
109 |
dev-perl/Crypt-SSLeay |
110 |
dev-perl/Crypt-X509 |
111 |
dev-perl/DBD-SQLite |
112 |
dev-perl/Data-GUID |
113 |
dev-perl/Data-ICal |
114 |
dev-perl/DateManip |
115 |
dev-perl/Devel-GlobalDestruction |
116 |
dev-perl/Email-Address |
117 |
dev-perl/Email-Address-List |
118 |
dev-perl/File-ShareDir |
119 |
dev-perl/GD |
120 |
dev-perl/GDGraph |
121 |
dev-perl/GDTextUtil |
122 |
dev-perl/GnuPG-Interface |
123 |
dev-perl/GraphViz |
124 |
dev-perl/HTML-Format |
125 |
dev-perl/HTML-FormatText-WithLinks-AndTables |
126 |
dev-perl/HTML-Mason-PSGIHandler |
127 |
dev-perl/HTML-Parser |
128 |
dev-perl/HTML-Quoted |
129 |
dev-perl/HTML-RewriteAttributes |
130 |
dev-perl/HTML-Tree |
131 |
dev-perl/IPC-Run3 |
132 |
dev-perl/JSON |
133 |
dev-perl/JavaScript-Minifier |
134 |
dev-perl/MIME-Types |
135 |
dev-perl/Module-Refresh |
136 |
dev-perl/Mozilla-CA |
137 |
dev-perl/Net-CIDR |
138 |
dev-perl/PerlIO-eol |
139 |
dev-perl/Plack |
140 |
dev-perl/Regexp-Common-net-CIDR |
141 |
dev-perl/Regexp-IPv6 |
142 |
dev-perl/Starlet |
143 |
dev-perl/TermReadKey |
144 |
dev-perl/Text-Password-Pronounceable |
145 |
dev-perl/Time-modules |
146 |
dev-perl/TimeDate |
147 |
dev-perl/UNIVERSAL-require |
148 |
dev-perl/libwww-perl |
149 |
dev-perl/locale-maketext-fuzzy |
150 |
dev-perl/net-server |
151 |
dev-perl/regexp-common |
152 |
dev-perl/text-autoformat |
153 |
dev-perl/text-template |
154 |
dev-perl/text-wrapper |
155 |
virtual/perl-File-Temp |
156 |
virtual/perl-Scalar-List-Utils |
157 |
virtual/perl-Time-HiRes |
158 |
virtual/perl-digest-base |
159 |
virtual/perl-libnet |
160 |
|
161 |
fastcgi? ( |
162 |
dev-perl/FCGI |
163 |
dev-perl/FCGI-ProcManager |
164 |
) |
165 |
!lighttpd? ( dev-perl/Apache-DBI ) |
166 |
lighttpd? ( dev-perl/FCGI ) |
167 |
mysql? ( >=dev-perl/DBD-mysql-2.1018 ) |
168 |
postgres? ( >=dev-perl/DBD-Pg-1.43 ) |
169 |
" |
170 |
|
171 |
RDEPEND="${DEPEND} |
172 |
virtual/mta |
173 |
!lighttpd? ( ${APACHE2_DEPEND} ) |
174 |
lighttpd? ( |
175 |
>=www-servers/lighttpd-1.3.13 |
176 |
sys-apps/openrc |
177 |
) |
178 |
" |
179 |
|
180 |
need_httpd_cgi |
181 |
|
182 |
add_user_rt() { |
183 |
# add new user |
184 |
# suexec2 requires uid >= 1000; enewuser is of no help here |
185 |
# From: Mike Frysinger <vapier@g.o> |
186 |
# Date: Fri, 17 Jun 2005 08:41:44 -0400 |
187 |
# i'd pick a 5 digit # if i were you |
188 |
|
189 |
local euser="rt" |
190 |
|
191 |
# first check if username rt exists |
192 |
if [[ ${euser} == $(egetent passwd "${euser}" | cut -d: -f1) ]] ; then |
193 |
# check uid |
194 |
rt_uid=$(egetent passwd "${euser}" | cut -d: -f3) |
195 |
if $(expr ${rt_uid} '<' 1000 > /dev/null); then |
196 |
ewarn "uid of user rt is less than 1000. suexec2 will not work." |
197 |
ewarn "If you want to use FastCGI, please delete the user 'rt'" |
198 |
ewarn "from your system and re-emerge www-apps/rt" |
199 |
fi |
200 |
return 0 # all is well |
201 |
fi |
202 |
|
203 |
# add user |
204 |
# stolen from enewuser |
205 |
local pwrange euid |
206 |
|
207 |
pwrange=$(seq 10001 11001) |
208 |
for euid in ${pwrange} ; do |
209 |
[[ -z $(egetent passwd ${euid}) ]] && break |
210 |
done |
211 |
if [[ ${euid} == "11001" ]]; then |
212 |
# she gets around, doesn't she? |
213 |
die "No available uid's found" |
214 |
fi |
215 |
|
216 |
elog " - Userid: ${euid}" |
217 |
|
218 |
enewuser rt ${euid} -1 /dev/null rt |
219 |
return 0 |
220 |
} |
221 |
|
222 |
pkg_setup() { |
223 |
webapp_pkg_setup |
224 |
|
225 |
ewarn |
226 |
ewarn "If you are upgrading from an existing RT installation" |
227 |
ewarn "make sure to read the related upgrade documentation in" |
228 |
ewarn "${ROOT}usr/share/doc/${PF}." |
229 |
ewarn |
230 |
|
231 |
enewgroup rt |
232 |
add_user_rt || die "Could not add user" |
233 |
} |
234 |
|
235 |
src_prepare() { |
236 |
# add Gentoo-specific layout |
237 |
cat "${FILESDIR}"/config.layout-gentoo >> config.layout |
238 |
sed -e "s|PREFIX|${D}/${MY_HOSTROOTDIR}/${PF}| |
239 |
s|HTMLDIR|${D}/${MY_HTDOCSDIR}|g" -i ./config.layout || die |
240 |
|
241 |
# don't need to check dev dependencies |
242 |
sed -e "s|\$args{'with-DEV'} =1;|#\$args{'with-DEV'} =1;|" -i sbin/rt-test-dependencies.in || die |
243 |
} |
244 |
|
245 |
src_configure() { |
246 |
local web |
247 |
local myconf |
248 |
local depsconf |
249 |
|
250 |
if use mysql ; then |
251 |
myconf="--with-db-type=mysql --with-db-dba=root" |
252 |
depsconf="--with-MYSQL" |
253 |
elif use postgres ; then |
254 |
myconf="--with-db-type=Pg --with-db-dba=postgres" |
255 |
depsconf="--with-PG" |
256 |
else |
257 |
die "Pick a database backend" |
258 |
fi |
259 |
|
260 |
if use fastcgi ; then |
261 |
myconf+=" --with-web-handler=fastcgi" |
262 |
web="apache" |
263 |
depsconf+=" --with-FASTCGI" |
264 |
elif use lighttpd ; then |
265 |
myconf+=" --with-web-handler=fastcgi" |
266 |
web="lighttpd" |
267 |
depsconf+=" --with-FASTCGI" |
268 |
else |
269 |
myconf+=" --with-web-handler=modperl2" |
270 |
web="apache" |
271 |
depsconf+=" --with-MODPERL2" |
272 |
fi |
273 |
|
274 |
./configure --enable-layout=Gentoo \ |
275 |
--with-bin-owner=rt \ |
276 |
--with-libs-owner=rt \ |
277 |
--with-libs-group=rt \ |
278 |
--with-rt-group=rt \ |
279 |
--with-web-user=${web} \ |
280 |
--with-web-group=${web} \ |
281 |
${myconf} |
282 |
|
283 |
# check for missing deps and ask to report if something is broken |
284 |
/usr/bin/perl ./sbin/rt-test-dependencies ${depsconf} > "${T}"/t |
285 |
if grep -q "MISSING" "${T}"/t; then |
286 |
ewarn "Missing Perl dependency!" |
287 |
ewarn |
288 |
cat "${T}"/t | grep MISSING |
289 |
ewarn |
290 |
ewarn "Please run perl-cleaner. If the problem persists," |
291 |
ewarn "please file a bug in the Gentoo Bugzilla with the information above" |
292 |
die "Missing dependencies." |
293 |
fi |
294 |
} |
295 |
|
296 |
src_compile() { :; } |
297 |
|
298 |
src_install() { |
299 |
webapp_src_preinst |
300 |
emake install |
301 |
|
302 |
dodoc "${S}"/docs/UPGRADING* |
303 |
dodoc "${S}"/docs/*.pod |
304 |
dodoc "${S}"/docs/network-diagram.svg |
305 |
cp -R "${S}"/docs/customizing/ "${D}"/usr/share/doc/"${P}"/ |
306 |
cp -R "${S}"/docs/extending/ "${D}"/usr/share/doc/"${P}"/ |
307 |
|
308 |
# make sure we don't clobber existing site configuration |
309 |
rm -f "${D}"/${MY_HOSTROOTDIR}/${PF}/etc/RT_SiteConfig.pm |
310 |
|
311 |
# fix paths |
312 |
find "${D}" -type f -print0 | xargs -0 sed -i -e "s:${D}::g" |
313 |
|
314 |
# copy upgrade files |
315 |
insinto "${MY_HOSTROOTDIR}/${PF}" |
316 |
doins -r etc/upgrade |
317 |
|
318 |
if use lighttpd ; then |
319 |
newinitd "${FILESDIR}"/${PN}.init.d.2 ${PN} |
320 |
newconfd "${FILESDIR}"/${PN}.conf.d.2 ${PN} |
321 |
sed -i -e "s/@@PF@@/${PF}/g" "${D}"/etc/conf.d/${PN} || die |
322 |
else |
323 |
doins "${FILESDIR}"/{rt_apache2_fcgi.conf,rt_apache2.conf} |
324 |
fi |
325 |
|
326 |
# require the web server's permissions |
327 |
webapp_serverowned "${MY_HOSTROOTDIR}"/${PF}/var |
328 |
webapp_serverowned "${MY_HOSTROOTDIR}"/${PF}/var/mason_data/obj |
329 |
|
330 |
webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt |
331 |
webapp_hook_script "${FILESDIR}"/reconfig |
332 |
|
333 |
webapp_src_install |
334 |
} |