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