1 |
pva 11/10/02 18:08:36 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: rt-3.8.10.ebuild |
5 |
Log: |
6 |
Version bump, bug 371467235914 thank Eric Martin for this job. Fixes multiple vulnerabilities, bug #371467 wrt GLSAMaker/CVETool Bot. |
7 |
|
8 |
(Portage version: 2.1.10.20/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.5 www-apps/rt/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/rt/metadata.xml?rev=1.5&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/rt/metadata.xml?rev=1.5&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/rt/metadata.xml?r1=1.4&r2=1.5 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/www-apps/rt/metadata.xml,v |
20 |
retrieving revision 1.4 |
21 |
retrieving revision 1.5 |
22 |
diff -u -r1.4 -r1.5 |
23 |
--- metadata.xml 20 Mar 2009 23:57:40 -0000 1.4 |
24 |
+++ metadata.xml 2 Oct 2011 18:08:36 -0000 1.5 |
25 |
@@ -1,8 +1,17 @@ |
26 |
<?xml version="1.0" encoding="UTF-8"?> |
27 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
28 |
<pkgmetadata> |
29 |
- <herd>web-apps</herd> |
30 |
- <use> |
31 |
- <flag name="lighttpd">Add <pkg>www-servers/lighttpd</pkg> support</flag> |
32 |
- </use> |
33 |
+ <herd>web-apps</herd> |
34 |
+ <maintainer> |
35 |
+ <email>eric.joshua.martin@×××××.com</email> |
36 |
+ <name>Eric Martin</name> |
37 |
+ </maintainer> |
38 |
+ <maintainer> |
39 |
+ <email>pva@g.o</email> |
40 |
+ <name>Peter Volkov</name> |
41 |
+ </maintainer> |
42 |
+ <use> |
43 |
+ <flag name="lighttpd">Add <pkg>www-servers/lighttpd</pkg> support</flag> |
44 |
+ </use> |
45 |
+ <longdescription>RT is an enterprise-grade ticketing system</longdescription> |
46 |
</pkgmetadata> |
47 |
|
48 |
|
49 |
|
50 |
1.61 www-apps/rt/ChangeLog |
51 |
|
52 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/rt/ChangeLog?rev=1.61&view=markup |
53 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/rt/ChangeLog?rev=1.61&content-type=text/plain |
54 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/rt/ChangeLog?r1=1.60&r2=1.61 |
55 |
|
56 |
Index: ChangeLog |
57 |
=================================================================== |
58 |
RCS file: /var/cvsroot/gentoo-x86/www-apps/rt/ChangeLog,v |
59 |
retrieving revision 1.60 |
60 |
retrieving revision 1.61 |
61 |
diff -u -r1.60 -r1.61 |
62 |
--- ChangeLog 8 Jul 2011 10:23:32 -0000 1.60 |
63 |
+++ ChangeLog 2 Oct 2011 18:08:36 -0000 1.61 |
64 |
@@ -1,6 +1,12 @@ |
65 |
# ChangeLog for www-apps/rt |
66 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
67 |
-# $Header: /var/cvsroot/gentoo-x86/www-apps/rt/ChangeLog,v 1.60 2011/07/08 10:23:32 ssuominen Exp $ |
68 |
+# $Header: /var/cvsroot/gentoo-x86/www-apps/rt/ChangeLog,v 1.61 2011/10/02 18:08:36 pva Exp $ |
69 |
+ |
70 |
+*rt-3.8.10 (02 Oct 2011) |
71 |
+ |
72 |
+ 02 Oct 2011; Peter Volkov <pva@g.o> +rt-3.8.10.ebuild, metadata.xml: |
73 |
+ Version bump, bug 371467235914 thank Eric Martin for this job. Fixes multiple |
74 |
+ vulnerabilities, bug #371467 wrt GLSAMaker/CVETool Bot. |
75 |
|
76 |
08 Jul 2011; Samuli Suominen <ssuominen@g.o> rt-3.6.7.ebuild: |
77 |
Convert from "useq" to "use". |
78 |
|
79 |
|
80 |
|
81 |
1.1 www-apps/rt/rt-3.8.10.ebuild |
82 |
|
83 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/rt/rt-3.8.10.ebuild?rev=1.1&view=markup |
84 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/rt/rt-3.8.10.ebuild?rev=1.1&content-type=text/plain |
85 |
|
86 |
Index: rt-3.8.10.ebuild |
87 |
=================================================================== |
88 |
# Copyright 1999-2011 Gentoo Foundation |
89 |
# Distributed under the terms of the GNU General Public License v2 |
90 |
# $Header: /var/cvsroot/gentoo-x86/www-apps/rt/rt-3.8.10.ebuild,v 1.1 2011/10/02 18:08:36 pva Exp $ |
91 |
|
92 |
inherit webapp eutils depend.apache confutils |
93 |
|
94 |
DESCRIPTION="RT is an enterprise-grade ticketing system" |
95 |
HOMEPAGE="http://www.bestpractical.com/rt/" |
96 |
SRC_URI="http://download.bestpractical.com/pub/${PN}/release/${P}.tar.gz" |
97 |
|
98 |
KEYWORDS="~amd64 ~ppc ~x86" |
99 |
LICENSE="GPL-2" |
100 |
IUSE="mysql postgres fastcgi lighttpd" |
101 |
|
102 |
DEPEND=" |
103 |
>=dev-lang/perl-5.8.3 |
104 |
|
105 |
>=dev-perl/Apache-Session-1.53 |
106 |
dev-perl/Cache-Simple-TimedExpiry |
107 |
dev-perl/Calendar-Simple |
108 |
>=dev-perl/class-returnvalue-0.40 |
109 |
>=dev-perl/CSS-Squish-0.06 |
110 |
>=dev-perl/DBI-1.37 |
111 |
>=dev-perl/dbix-searchbuilder-1.53 |
112 |
>=dev-perl/Devel-StackTrace-1.19 |
113 |
dev-perl/GD |
114 |
dev-perl/GDGraph |
115 |
dev-perl/GDTextUtil |
116 |
dev-perl/HTML-Format |
117 |
>dev-perl/HTML-Mason-1.31 |
118 |
dev-perl/HTML-Parser |
119 |
>=dev-perl/HTML-Scrubber-0.08 |
120 |
dev-perl/HTML-Tree |
121 |
>=dev-perl/HTTP-Server-Simple-0.07 |
122 |
>=dev-perl/HTTP-Server-Simple-Mason-0.09 |
123 |
dev-perl/libwww-perl |
124 |
dev-perl/locale-maketext-fuzzy |
125 |
>=dev-perl/locale-maketext-lexicon-0.32 |
126 |
>=dev-perl/log-dispatch-2.0 |
127 |
>=dev-perl/MailTools-1.60 |
128 |
>=dev-perl/MIME-tools-5.417 |
129 |
dev-perl/Module-Versions-Report |
130 |
dev-perl/regexp-common |
131 |
dev-perl/TermReadKey |
132 |
dev-perl/text-autoformat |
133 |
>=dev-perl/Text-Quoted-2.02 |
134 |
dev-perl/text-template |
135 |
>=dev-perl/Text-WikiFormat-0.76 |
136 |
dev-perl/text-wrapper |
137 |
dev-perl/TimeDate |
138 |
dev-perl/Time-modules |
139 |
>=dev-perl/Tree-Simple-1.04 |
140 |
dev-perl/UNIVERSAL-require |
141 |
>=dev-perl/XML-RSS-1.05 |
142 |
>=virtual/perl-CGI-2.92 |
143 |
virtual/perl-digest-base |
144 |
>=virtual/perl-Digest-MD5-2.27 |
145 |
>=virtual/perl-File-Spec-0.8 |
146 |
virtual/perl-File-Temp |
147 |
>=virtual/perl-Getopt-Long-2.24 |
148 |
virtual/perl-libnet |
149 |
>=virtual/perl-locale-maketext-1.06 |
150 |
virtual/perl-Scalar-List-Utils |
151 |
>=virtual/perl-Storable-2.08 |
152 |
virtual/perl-Time-HiRes |
153 |
|
154 |
!lighttpd? ( dev-perl/Apache-DBI ) |
155 |
lighttpd? ( dev-perl/FCGI ) |
156 |
fastcgi? ( dev-perl/FCGI ) |
157 |
mysql? ( >=dev-perl/DBD-mysql-2.1018 ) |
158 |
postgres? ( >=dev-perl/DBD-Pg-1.43 ) |
159 |
" |
160 |
|
161 |
RDEPEND="${DEPEND} |
162 |
virtual/mta |
163 |
!lighttpd? ( ${APACHE2_DEPEND} ) |
164 |
lighttpd? ( >=www-servers/lighttpd-1.3.13 ) |
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 |
epause |
187 |
fi |
188 |
return 0 # all is well |
189 |
fi |
190 |
|
191 |
# add user |
192 |
# stolen from enewuser |
193 |
local pwrange euid |
194 |
|
195 |
pwrange=$(seq 10001 11001) |
196 |
for euid in ${pwrange} ; do |
197 |
[[ -z $(egetent passwd ${euid}) ]] && break |
198 |
done |
199 |
if [[ ${euid} == "11001" ]]; then |
200 |
# she gets around, doesn't she? |
201 |
die "No available uid's found" |
202 |
fi |
203 |
|
204 |
elog " - Userid: ${euid}" |
205 |
|
206 |
enewuser rt ${euid} -1 /dev/null rt > /dev/null |
207 |
return 0 |
208 |
} |
209 |
|
210 |
pkg_setup() { |
211 |
webapp_pkg_setup |
212 |
ewarn |
213 |
ewarn "If you are upgrading from an existing _RT2_ installation," |
214 |
ewarn "stop this ebuild (Ctrl-C now), download the upgrade tool," |
215 |
ewarn "http://bestpractical.com/pub/rt/devel/rt2-to-rt3.tar.gz" |
216 |
ewarn "and follow the included instructions." |
217 |
ewarn |
218 |
epause 5 |
219 |
enewgroup rt >/dev/null |
220 |
add_user_rt || die "Could not add user" |
221 |
} |
222 |
|
223 |
src_unpack() { |
224 |
unpack ${A} |
225 |
cd "${S}" |
226 |
|
227 |
# add Gentoo-specific layout |
228 |
cat "${FILESDIR}"/config.layout-gentoo >> config.layout |
229 |
sed -e "s|PREFIX|${D}/${MY_HOSTROOTDIR}/${PF}| |
230 |
s|HTMLDIR|${D}/${MY_HTDOCSDIR}|g" -i ./config.layout || die |
231 |
|
232 |
# don't need to check dev dependencies |
233 |
sed -e "s|\$args{'with-DEV'} =1;|#\$args{'with-DEV'} =1;|" -i sbin/rt-test-dependencies.in || die |
234 |
} |
235 |
|
236 |
src_compile() { |
237 |
local web="apache" |
238 |
use lighttpd && web="lighttpd" |
239 |
|
240 |
local dbtype dba |
241 |
|
242 |
if use mysql; then |
243 |
dbtype="--with-db-type=mysql" |
244 |
dba="--with-db-dba=root" |
245 |
fi |
246 |
if use postgres;then |
247 |
dbtype="--with-db-type=Pg" |
248 |
dba="--with-db-dba=postgres" |
249 |
fi |
250 |
if use postgres && use mysql; then |
251 |
ewarn "Both mysql and postgres USE flags enabled, default is mysql." |
252 |
ewarn "You can set the default value in RT_SiteConfig before DB init." |
253 |
dbtype="--with-db-type=mysql" |
254 |
dba="--with-db-dba=root" |
255 |
fi |
256 |
|
257 |
./configure --enable-layout=Gentoo \ |
258 |
--with-bin-owner=rt \ |
259 |
--with-libs-owner=rt \ |
260 |
--with-libs-group=rt \ |
261 |
--with-rt-group=rt \ |
262 |
--with-web-user=${web} \ |
263 |
--with-web-group=${web} \ |
264 |
${dbtype} ${dba} |
265 |
|
266 |
# check for missing deps and ask to report if something is broken |
267 |
local myconf="--verbose \ |
268 |
$(enable_extension_withonly mysql mysql) \ |
269 |
$(enable_extension_withonly postgresql postgres) \ |
270 |
$(enable_extension_withonly fastcgi fastcgi) \ |
271 |
$(enable_extension_withonly fastcgi lighttpd)" \ |
272 |
|
273 |
if ! use fastcgi && ! use lighttpd; then |
274 |
myconf="${myconf} --with-modperl2" |
275 |
fi |
276 |
|
277 |
/usr/bin/perl ./sbin/rt-test-dependencies ${myconf} > "${T}"/t |
278 |
if grep -q "MISSING" "${T}"/t; then |
279 |
ewarn "Missing Perl dependency!" |
280 |
ewarn |
281 |
cat "${T}"/t | grep MISSING |
282 |
ewarn |
283 |
ewarn "Please run perl-cleaner. If the problem persists," |
284 |
ewarn "please file a bug in the Gentoo Bugzilla with the information above" |
285 |
die "Missing dependencies." |
286 |
fi |
287 |
} |
288 |
|
289 |
src_install() { |
290 |
webapp_src_preinst |
291 |
emake install || die |
292 |
|
293 |
# make sure we don't clobber existing site configuration |
294 |
rm -f "${D}"/${MY_HOSTROOTDIR}/${PF}/etc/RT_SiteConfig.pm |
295 |
|
296 |
# fix paths |
297 |
find "${D}" -type f -print0 | xargs -0 sed -i -e "s:${D}::g" |
298 |
|
299 |
# copy upgrade files |
300 |
insinto "${MY_HOSTROOTDIR}/${PF}" |
301 |
doins -r etc/upgrade |
302 |
|
303 |
if use lighttpd; then |
304 |
newinitd "${FILESDIR}"/${PN}.init.d ${PN} |
305 |
newconfd "${FILESDIR}"/${PN}.conf.d ${PN} |
306 |
dosed "s/@@PF@@/${PF}/g" /etc/conf.d/${PN} |
307 |
else |
308 |
doins "${FILESDIR}"/{rt_apache2_fcgi.conf,rt_apache2.conf} |
309 |
fi |
310 |
|
311 |
webapp_serverowned "${MY_HOSTROOTDIR}"/${PF}/var |
312 |
|
313 |
webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt |
314 |
webapp_hook_script "${FILESDIR}"/reconfig |
315 |
|
316 |
webapp_src_install |
317 |
} |