1 |
wrobel 08/07/01 16:48:46 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: rt-3.6.7.ebuild |
5 |
Removed: rt-3.6.3.ebuild rt-3.6.6.ebuild |
6 |
Log: |
7 |
Removed vulnerable rt-3.6.3, rt-3.6.6, added rt-3.6.7 (sec issue #230007). |
8 |
(Portage version: 2.1.4.4) |
9 |
|
10 |
Revision Changes Path |
11 |
1.57 www-apps/rt/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/rt/ChangeLog?rev=1.57&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/rt/ChangeLog?rev=1.57&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/rt/ChangeLog?r1=1.56&r2=1.57 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/www-apps/rt/ChangeLog,v |
20 |
retrieving revision 1.56 |
21 |
retrieving revision 1.57 |
22 |
diff -u -r1.56 -r1.57 |
23 |
--- ChangeLog 3 Apr 2008 09:57:12 -0000 1.56 |
24 |
+++ ChangeLog 1 Jul 2008 16:48:46 -0000 1.57 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for www-apps/rt |
27 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/www-apps/rt/ChangeLog,v 1.56 2008/04/03 09:57:12 hollow Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/www-apps/rt/ChangeLog,v 1.57 2008/07/01 16:48:46 wrobel Exp $ |
30 |
+ |
31 |
+*rt-3.6.7 (01 Jul 2008) |
32 |
+ |
33 |
+ 01 Jul 2008; wrobel@g.o -rt-3.6.3.ebuild, -rt-3.6.6.ebuild, |
34 |
+ +rt-3.6.7.ebuild: |
35 |
+ Removed vulnerable rt-3.6.3, rt-3.6.6, added rt-3.6.7 (sec issue #230007). |
36 |
|
37 |
03 Apr 2008; Benedikt Böhm <hollow@g.o> |
38 |
-files/3.4.5/postinstall-en.txt, -files/3.4.5/reconfig, |
39 |
|
40 |
|
41 |
|
42 |
1.1 www-apps/rt/rt-3.6.7.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/rt/rt-3.6.7.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/rt/rt-3.6.7.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: rt-3.6.7.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2008 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/www-apps/rt/rt-3.6.7.ebuild,v 1.1 2008/07/01 16:48:46 wrobel Exp $ |
52 |
|
53 |
inherit webapp eutils depend.apache confutils |
54 |
|
55 |
DESCRIPTION="RT is an enterprise-grade ticketing system" |
56 |
HOMEPAGE="http://www.bestpractical.com/rt/" |
57 |
SRC_URI="http://download.bestpractical.com/pub/${PN}/release/${P}.tar.gz" |
58 |
|
59 |
KEYWORDS="~amd64 ~ppc ~x86" |
60 |
LICENSE="GPL-2" |
61 |
IUSE="mysql postgres fastcgi lighttpd" |
62 |
|
63 |
DEPEND=" |
64 |
>=dev-lang/perl-5.8.3 |
65 |
|
66 |
>=dev-perl/Apache-Session-1.53 |
67 |
dev-perl/Cache-Simple-TimedExpiry |
68 |
dev-perl/Calendar-Simple |
69 |
>=dev-perl/class-returnvalue-0.40 |
70 |
>=dev-perl/CSS-Squish-0.06 |
71 |
>=dev-perl/DBI-1.37 |
72 |
>=dev-perl/dbix-searchbuilder-1.53 |
73 |
>=dev-perl/Devel-StackTrace-1.19 |
74 |
dev-perl/GD |
75 |
dev-perl/GDGraph |
76 |
dev-perl/GDTextUtil |
77 |
dev-perl/HTML-Format |
78 |
>dev-perl/HTML-Mason-1.31 |
79 |
dev-perl/HTML-Parser |
80 |
>=dev-perl/HTML-Scrubber-0.08 |
81 |
dev-perl/HTML-Tree |
82 |
>=dev-perl/HTTP-Server-Simple-0.07 |
83 |
>=dev-perl/HTTP-Server-Simple-Mason-0.09 |
84 |
dev-perl/libwww-perl |
85 |
dev-perl/locale-maketext-fuzzy |
86 |
>=dev-perl/locale-maketext-lexicon-0.32 |
87 |
>=dev-perl/log-dispatch-2.0 |
88 |
>=dev-perl/MailTools-1.60 |
89 |
>=dev-perl/MIME-tools-5.417 |
90 |
dev-perl/Module-Versions-Report |
91 |
dev-perl/regexp-common |
92 |
dev-perl/TermReadKey |
93 |
dev-perl/text-autoformat |
94 |
>=dev-perl/Text-Quoted-2.02 |
95 |
dev-perl/text-template |
96 |
>=dev-perl/Text-WikiFormat-0.76 |
97 |
dev-perl/text-wrapper |
98 |
dev-perl/TimeDate |
99 |
dev-perl/Time-modules |
100 |
>=dev-perl/Tree-Simple-1.04 |
101 |
dev-perl/UNIVERSAL-require |
102 |
>=dev-perl/XML-RSS-1.05 |
103 |
>=virtual/perl-CGI-2.92 |
104 |
virtual/perl-digest-base |
105 |
>=virtual/perl-Digest-MD5-2.27 |
106 |
>=virtual/perl-File-Spec-0.8 |
107 |
virtual/perl-File-Temp |
108 |
>=virtual/perl-Getopt-Long-2.24 |
109 |
virtual/perl-libnet |
110 |
>=virtual/perl-locale-maketext-1.06 |
111 |
virtual/perl-Scalar-List-Utils |
112 |
>=virtual/perl-Storable-2.08 |
113 |
virtual/perl-Time-HiRes |
114 |
|
115 |
!lighttpd? ( dev-perl/Apache-DBI ) |
116 |
lighttpd? ( dev-perl/FCGI ) |
117 |
fastcgi? ( dev-perl/FCGI ) |
118 |
mysql? ( >=dev-perl/DBD-mysql-2.1018 ) |
119 |
postgres? ( >=dev-perl/DBD-Pg-1.43 ) |
120 |
" |
121 |
|
122 |
RDEPEND="${DEPEND} |
123 |
virtual/mta |
124 |
!lighttpd? ( ${APACHE2_DEPEND} ) |
125 |
lighttpd? ( >=www-servers/lighttpd-1.3.13 ) |
126 |
" |
127 |
|
128 |
need_httpd_cgi |
129 |
|
130 |
add_user_rt() { |
131 |
# add new user |
132 |
# suexec2 requires uid >= 1000; enewuser is of no help here |
133 |
# From: Mike Frysinger <vapier@g.o> |
134 |
# Date: Fri, 17 Jun 2005 08:41:44 -0400 |
135 |
# i'd pick a 5 digit # if i were you |
136 |
|
137 |
local euser="rt" |
138 |
|
139 |
# first check if username rt exists |
140 |
if [[ ${euser} == $(egetent passwd "${euser}" | cut -d: -f1) ]] ; then |
141 |
# check uid |
142 |
rt_uid=$(egetent passwd "${euser}" | cut -d: -f3) |
143 |
if $(expr ${rt_uid} '<' 1000 > /dev/null); then |
144 |
ewarn "uid of user rt is less than 1000. suexec2 will not work." |
145 |
ewarn "If you want to use FastCGI, please delete the user 'rt'" |
146 |
ewarn "from your system and re-emerge www-apps/rt" |
147 |
epause |
148 |
fi |
149 |
return 0 # all is well |
150 |
fi |
151 |
|
152 |
# add user |
153 |
# stolen from enewuser |
154 |
local pwrange euid |
155 |
|
156 |
pwrange=$(seq 10001 11001) |
157 |
for euid in ${pwrange} ; do |
158 |
[[ -z $(egetent passwd ${euid}) ]] && break |
159 |
done |
160 |
if [[ ${euid} == "11001" ]]; then |
161 |
# she gets around, doesn't she? |
162 |
die "No available uid's found" |
163 |
fi |
164 |
|
165 |
elog " - Userid: ${euid}" |
166 |
|
167 |
enewuser rt ${euid} -1 /dev/null rt > /dev/null |
168 |
return 0 |
169 |
} |
170 |
|
171 |
pkg_setup() { |
172 |
webapp_pkg_setup |
173 |
ewarn |
174 |
ewarn "If you are upgrading from an existing _RT2_ installation," |
175 |
ewarn "stop this ebuild (Ctrl-C now), download the upgrade tool," |
176 |
ewarn "http://bestpractical.com/pub/rt/devel/rt2-to-rt3.tar.gz" |
177 |
ewarn "and follow the included instructions." |
178 |
ewarn |
179 |
epause 5 |
180 |
enewgroup rt >/dev/null |
181 |
add_user_rt || die "Could not add user" |
182 |
} |
183 |
|
184 |
src_unpack() { |
185 |
unpack ${A} |
186 |
cd "${S}" |
187 |
|
188 |
# add Gentoo-specific layout |
189 |
cat "${FILESDIR}"/config.layout-gentoo >> config.layout |
190 |
sed -e "s|PREFIX|${D}/${MY_HOSTROOTDIR}/${PF}| |
191 |
s|HTMLDIR|${D}/${MY_HTDOCSDIR}|g" -i ./config.layout || die |
192 |
|
193 |
# don't need to check dev dependencies |
194 |
sed -e "s|\$args{'with-DEV'} =1;|#\$args{'with-DEV'} =1;|" -i sbin/rt-test-dependencies.in || die |
195 |
} |
196 |
|
197 |
src_compile() { |
198 |
local web="apache" |
199 |
use lighttpd && web="lighttpd" |
200 |
|
201 |
local dbtype dba |
202 |
|
203 |
if use mysql; then |
204 |
dbtype="--with-db-type=mysql" |
205 |
dba="--with-db-dba=root" |
206 |
fi |
207 |
if use postgres;then |
208 |
dbtype="--with-db-type=Pg" |
209 |
dba="--with-db-dba=postgres" |
210 |
fi |
211 |
if use postgres && use mysql; then |
212 |
ewarn "Both mysql and postgres USE flags enabled, default is mysql." |
213 |
ewarn "You can set the default value in RT_SiteConfig before DB init." |
214 |
dbtype="--with-db-type=mysql" |
215 |
dba="--with-db-dba=root" |
216 |
fi |
217 |
|
218 |
./configure --enable-layout=Gentoo \ |
219 |
--with-bin-owner=rt \ |
220 |
--with-libs-owner=rt \ |
221 |
--with-libs-group=rt \ |
222 |
--with-rt-group=rt \ |
223 |
--with-web-user=${web} \ |
224 |
--with-web-group=${web} \ |
225 |
${dbtype} ${dba} |
226 |
|
227 |
# check for missing deps and ask to report if something is broken |
228 |
local myconf="--verbose \ |
229 |
$(enable_extension_withonly mysql mysql) \ |
230 |
$(enable_extension_withonly postgresql postgres) \ |
231 |
$(enable_extension_withonly fastcgi fastcgi) \ |
232 |
$(enable_extension_withonly fastcgi lighttpd)" \ |
233 |
|
234 |
if ! useq fastcgi && ! useq lighttpd; then |
235 |
myconf="${myconf} --with-modperl2" |
236 |
fi |
237 |
|
238 |
/usr/bin/perl ./sbin/rt-test-dependencies ${myconf} > "${T}"/t |
239 |
if grep -q "MISSING" "${T}"/t; then |
240 |
ewarn "Missing Perl dependency!" |
241 |
ewarn |
242 |
cat "${T}"/t | grep MISSING |
243 |
ewarn |
244 |
ewarn "Please run perl-cleaner. If the problem persists," |
245 |
ewarn "please file a bug in the Gentoo Bugzilla with the information above" |
246 |
die "Missing dependencies." |
247 |
fi |
248 |
} |
249 |
|
250 |
src_install() { |
251 |
webapp_src_preinst |
252 |
emake install || die |
253 |
|
254 |
# make sure we don't clobber existing site configuration |
255 |
rm -f "${D}"/${MY_HOSTROOTDIR}/${PF}/etc/RT_SiteConfig.pm |
256 |
|
257 |
# fix paths |
258 |
find "${D}" -type f -print0 | xargs -0 sed -i -e "s:${D}::g" |
259 |
|
260 |
# copy upgrade files |
261 |
insinto "${MY_HOSTROOTDIR}/${PF}" |
262 |
doins -r etc/upgrade |
263 |
|
264 |
if use lighttpd; then |
265 |
newinitd "${FILESDIR}"/${PN}.init.d ${PN} |
266 |
newconfd "${FILESDIR}"/${PN}.conf.d ${PN} |
267 |
dosed "s/@@PF@@/${PF}/g" /etc/conf.d/${PN} |
268 |
else |
269 |
doins "${FILESDIR}"/{rt_apache2_fcgi.conf,rt_apache2.conf} |
270 |
fi |
271 |
|
272 |
webapp_serverowned "${MY_HOSTROOTDIR}"/${PF}/var |
273 |
|
274 |
webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt |
275 |
webapp_hook_script "${FILESDIR}"/reconfig |
276 |
|
277 |
webapp_src_install |
278 |
} |
279 |
|
280 |
|
281 |
|
282 |
-- |
283 |
gentoo-commits@l.g.o mailing list |