1 |
commit: bbdf2f8fd5fc4e934d874bbabccb18e51647d026 |
2 |
Author: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 2 10:09:33 2019 +0000 |
4 |
Commit: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 2 10:10:05 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbdf2f8f |
7 |
|
8 |
www-apps/rt: Remove 4.4.2 |
9 |
|
10 |
Package-Manager: Portage-2.3.66, Repoman-2.3.11 |
11 |
Signed-off-by: Aaron W. Swenson <titanofold <AT> gentoo.org> |
12 |
|
13 |
www-apps/rt/Manifest | 1 - |
14 |
www-apps/rt/rt-4.4.2.ebuild | 306 -------------------------------------------- |
15 |
2 files changed, 307 deletions(-) |
16 |
|
17 |
diff --git a/www-apps/rt/Manifest b/www-apps/rt/Manifest |
18 |
index 93b2a75fd49..6dcb2aeb858 100644 |
19 |
--- a/www-apps/rt/Manifest |
20 |
+++ b/www-apps/rt/Manifest |
21 |
@@ -1,3 +1,2 @@ |
22 |
-DIST rt-4.4.2.tar.gz 9572361 BLAKE2B 26e14c187a6d1d741706e4ec1d3a0c718238c63faea6de6ace7c48fb54581b039897c3244f70421d915f5986fa60aa2c19df5f1a0504658f4b00fc4e7f72151d SHA512 23e318d10c49d39c1542664efa2b9f98d1dcd613c279dc8ceca0ad9aed89a5d989316e833492ed3281543ec85f6e0f5141a86f70852776bf0d54166aa126431e |
23 |
DIST rt-4.4.3.tar.gz 9584927 BLAKE2B 9667e37a0f161d41ac1230e8573d05716ac17325d06924acf036d6098116a31e6e271d3a37ef4a415d1ff8dc04e28011b5125eebf2ad00d0b29702dba96730e1 SHA512 0b0b67e4716467aa5361c2756cee4caf661ba7377f0abc84e915cc9a300e7f93c41569d28375c295c2604a1e5fbaca48267920f9d21c2eca76c29bf5b0a45a49 |
24 |
DIST rt-4.4.4.tar.gz 9977845 BLAKE2B bc27a68c880d305e43069887bd4c2dbf09e82413ee9b7f1e0e19252ad5249430f17bd980c94a4c74386a8c7fefc79af50a0e572adbb0ef707e46a4be63e8d3e4 SHA512 95335cfa9e7107300670a5e8631ffb6f402895dae051201d051ac01885b0cb185f838a666acaec773e0f670e1b9d16b7cede72f37ce9832fd83a9da8514e6972 |
25 |
|
26 |
diff --git a/www-apps/rt/rt-4.4.2.ebuild b/www-apps/rt/rt-4.4.2.ebuild |
27 |
deleted file mode 100644 |
28 |
index 3148082aaf3..00000000000 |
29 |
--- a/www-apps/rt/rt-4.4.2.ebuild |
30 |
+++ /dev/null |
31 |
@@ -1,306 +0,0 @@ |
32 |
-# Copyright 1999-2018 Gentoo Foundation |
33 |
-# Distributed under the terms of the GNU General Public License v2 |
34 |
- |
35 |
-EAPI=5 |
36 |
- |
37 |
-inherit webapp eutils depend.apache user |
38 |
- |
39 |
-DESCRIPTION="RT is an enterprise-grade ticketing system" |
40 |
-HOMEPAGE="http://www.bestpractical.com/rt/" |
41 |
-SRC_URI="http://download.bestpractical.com/pub/${PN}/release/${P}.tar.gz" |
42 |
- |
43 |
-KEYWORDS="~amd64" |
44 |
-LICENSE="GPL-2" |
45 |
-IUSE="mysql +postgres fastcgi lighttpd" |
46 |
-REQUIRED_USE="^^ ( mysql postgres )" |
47 |
- |
48 |
-RESTRICT="test" |
49 |
- |
50 |
-DEPEND=" |
51 |
- >=dev-lang/perl-5.10.1 |
52 |
- |
53 |
- >=dev-perl/Apache-Session-1.53 |
54 |
- >=dev-perl/CGI-4 |
55 |
- >=dev-perl/CSS-Squish-0.06 |
56 |
- >=dev-perl/Class-Accessor-0.34 |
57 |
- >=dev-perl/Class-ReturnValue-0.550.0-r1 |
58 |
- >=dev-perl/DBI-1.37 |
59 |
- >=dev-perl/Date-Extract-0.02 |
60 |
- >=dev-perl/DateTime-Format-Natural-0.67 |
61 |
- >=dev-perl/Devel-StackTrace-1.19 |
62 |
- >=dev-perl/Email-Address-1.908.0 |
63 |
- >=dev-perl/HTML-FormatText-WithLinks-0.14 |
64 |
- >=dev-perl/HTML-Mason-1.43 |
65 |
- >=dev-perl/HTML-Scrubber-0.08 |
66 |
- >=dev-perl/HTTP-Server-Simple-0.34 |
67 |
- >=dev-perl/HTTP-Server-Simple-Mason-0.14 |
68 |
- >=dev-perl/Locale-Maketext-Lexicon-0.32 |
69 |
- >=dev-perl/Log-Dispatch-2.410.0 |
70 |
- >=dev-perl/MIME-tools-5.425 |
71 |
- >=dev-perl/MailTools-1.60 |
72 |
- >=dev-perl/Module-Versions-Report-1.05 |
73 |
- >=dev-perl/Role-Basic-0.12 |
74 |
- >=dev-perl/Symbol-Global-Name-0.04 |
75 |
- >=dev-perl/Text-Quoted-2.80.0 |
76 |
- >=dev-perl/Text-WikiFormat-0.76 |
77 |
- >=dev-perl/Tree-Simple-1.04 |
78 |
- >=dev-perl/XML-RSS-1.05 |
79 |
- >=dev-perl/DBIx-SearchBuilder-1.660.0 |
80 |
- >=virtual/perl-Digest-MD5-2.27 |
81 |
- >=virtual/perl-Encode-2.730.0 |
82 |
- >=virtual/perl-File-Spec-0.8 |
83 |
- >=virtual/perl-Getopt-Long-2.24 |
84 |
- >=virtual/perl-Locale-Maketext-1.06 |
85 |
- >=virtual/perl-Storable-2.08 |
86 |
- dev-perl/Business-Hours |
87 |
- dev-perl/CGI-Emulate-PSGI |
88 |
- dev-perl/CGI-PSGI |
89 |
- dev-perl/Cache-Simple-TimedExpiry |
90 |
- dev-perl/Calendar-Simple |
91 |
- dev-perl/Convert-Color |
92 |
- dev-perl/Crypt-Eksblowfish |
93 |
- dev-perl/Crypt-SSLeay |
94 |
- dev-perl/Crypt-X509 |
95 |
- dev-perl/CSS-Minifier-XS |
96 |
- dev-perl/Data-Page-Pageset |
97 |
- dev-perl/DBD-SQLite |
98 |
- dev-perl/Data-GUID |
99 |
- dev-perl/Data-ICal |
100 |
- dev-perl/Date-Manip |
101 |
- dev-perl/Devel-GlobalDestruction |
102 |
- dev-perl/Email-Address-List |
103 |
- dev-perl/File-ShareDir |
104 |
- dev-perl/File-Which |
105 |
- dev-perl/GDGraph |
106 |
- dev-perl/GDTextUtil |
107 |
- dev-perl/GD[png,gif] |
108 |
- dev-perl/GnuPG-Interface |
109 |
- dev-perl/GraphViz |
110 |
- dev-perl/HTML-Formatter |
111 |
- dev-perl/HTML-FormatText-WithLinks-AndTables |
112 |
- dev-perl/HTML-Mason-PSGIHandler |
113 |
- dev-perl/HTML-Parser |
114 |
- dev-perl/HTML-Quoted |
115 |
- dev-perl/HTML-RewriteAttributes |
116 |
- dev-perl/HTML-Tree |
117 |
- dev-perl/IPC-Run3 |
118 |
- dev-perl/JSON |
119 |
- dev-perl/JavaScript-Minifier-XS |
120 |
- dev-perl/MIME-Types |
121 |
- dev-perl/Module-Refresh |
122 |
- dev-perl/Mozilla-CA |
123 |
- dev-perl/Net-CIDR |
124 |
- dev-perl/PerlIO-eol |
125 |
- dev-perl/Plack |
126 |
- dev-perl/Regexp-Common-net-CIDR |
127 |
- dev-perl/Regexp-IPv6 |
128 |
- dev-perl/Scope-Upper |
129 |
- dev-perl/Starlet |
130 |
- dev-perl/String-ShellQuote |
131 |
- dev-perl/TermReadKey |
132 |
- dev-perl/Text-Autoformat |
133 |
- dev-perl/Text-Password-Pronounceable |
134 |
- dev-perl/Time-ParseDate |
135 |
- dev-perl/TimeDate |
136 |
- dev-perl/UNIVERSAL-require |
137 |
- dev-perl/libwww-perl |
138 |
- dev-perl/Locale-Maketext-Fuzzy |
139 |
- dev-perl/Net-IP |
140 |
- dev-perl/Net-Server |
141 |
- dev-perl/Regexp-Common |
142 |
- dev-perl/Text-Template |
143 |
- dev-perl/Text-Wrapper |
144 |
- virtual/perl-Digest |
145 |
- virtual/perl-File-Temp |
146 |
- virtual/perl-Scalar-List-Utils |
147 |
- virtual/perl-Time-HiRes |
148 |
- virtual/perl-libnet |
149 |
- |
150 |
- fastcgi? ( |
151 |
- dev-perl/FCGI |
152 |
- dev-perl/FCGI-ProcManager |
153 |
- ) |
154 |
- !lighttpd? ( |
155 |
- dev-perl/Apache-DBI |
156 |
- !fastcgi? ( >=www-apache/mod_perl-2 ) |
157 |
- ) |
158 |
- lighttpd? ( dev-perl/FCGI ) |
159 |
- mysql? ( >=dev-perl/DBD-mysql-2.1018 ) |
160 |
- postgres? ( >=dev-perl/DBD-Pg-1.43 ) |
161 |
-" |
162 |
- |
163 |
-RDEPEND="${DEPEND} |
164 |
- virtual/mta |
165 |
- !lighttpd? ( ${APACHE2_DEPEND} ) |
166 |
- lighttpd? ( |
167 |
- >=www-servers/lighttpd-1.3.13 |
168 |
- sys-apps/openrc |
169 |
- ) |
170 |
-" |
171 |
- |
172 |
-need_httpd_cgi |
173 |
- |
174 |
-add_user_rt() { |
175 |
- # add new user |
176 |
- # suexec2 requires uid >= 1000; enewuser is of no help here |
177 |
- # From: Mike Frysinger <vapier@g.o> |
178 |
- # Date: Fri, 17 Jun 2005 08:41:44 -0400 |
179 |
- # i'd pick a 5 digit # if i were you |
180 |
- |
181 |
- local euser="rt" |
182 |
- |
183 |
- # first check if username rt exists |
184 |
- if [[ ${euser} == $(egetent passwd "${euser}" | cut -d: -f1) ]] ; then |
185 |
- # check uid |
186 |
- rt_uid=$(egetent passwd "${euser}" | cut -d: -f3) |
187 |
- if $(expr ${rt_uid} '<' 1000 > /dev/null); then |
188 |
- ewarn "uid of user rt is less than 1000. suexec2 will not work." |
189 |
- ewarn "If you want to use FastCGI, please delete the user 'rt'" |
190 |
- ewarn "from your system and re-emerge www-apps/rt" |
191 |
- fi |
192 |
- return 0 # all is well |
193 |
- fi |
194 |
- |
195 |
- # add user |
196 |
- # stolen from enewuser |
197 |
- local pwrange euid |
198 |
- |
199 |
- pwrange=$(seq 10001 11001) |
200 |
- for euid in ${pwrange} ; do |
201 |
- [[ -z $(egetent passwd ${euid}) ]] && break |
202 |
- done |
203 |
- if [[ ${euid} == "11001" ]]; then |
204 |
- # she gets around, doesn't she? |
205 |
- die "No available uid's found" |
206 |
- fi |
207 |
- |
208 |
- elog " - Userid: ${euid}" |
209 |
- |
210 |
- enewuser rt ${euid} -1 /dev/null rt |
211 |
- return 0 |
212 |
-} |
213 |
- |
214 |
-pkg_setup() { |
215 |
- webapp_pkg_setup |
216 |
- |
217 |
- ewarn |
218 |
- ewarn "If you are upgrading from an existing RT installation" |
219 |
- ewarn "make sure to read the related upgrade documentation in" |
220 |
- ewarn "${ROOT}usr/share/doc/${PF}." |
221 |
- ewarn |
222 |
- |
223 |
- enewgroup rt |
224 |
- add_user_rt || die "Could not add user" |
225 |
-} |
226 |
- |
227 |
-src_prepare() { |
228 |
- # add Gentoo-specific layout |
229 |
- cat "${FILESDIR}"/config.layout-gentoo >> config.layout |
230 |
- sed -e "s|PREFIX|${ED}/${MY_HOSTROOTDIR}/${PF}|g" \ |
231 |
- -e "s|HTMLDIR|${ED}/${MY_HTDOCSDIR}|g" \ |
232 |
- -e 's|/\+|/|g' \ |
233 |
- -i ./config.layout || die 'config sed failed' |
234 |
- |
235 |
- # don't need to check dev dependencies |
236 |
- sed -e "s|\$args{'with-DEV'} =1;|#\$args{'with-DEV'} =1;|" \ |
237 |
- -i sbin/rt-test-dependencies.in || die 'dev sed failed' |
238 |
- |
239 |
- epatch "${FILESDIR}/rt-makefile-serialize-install-prereqs.patch" |
240 |
-} |
241 |
- |
242 |
-src_configure() { |
243 |
- local web |
244 |
- local myconf |
245 |
- local depsconf |
246 |
- |
247 |
- if use mysql ; then |
248 |
- myconf="--with-db-type=mysql --with-db-dba=root" |
249 |
- depsconf="--with-MYSQL" |
250 |
- elif use postgres ; then |
251 |
- myconf="--with-db-type=Pg --with-db-dba=postgres" |
252 |
- depsconf="--with-PG" |
253 |
- else |
254 |
- die "Pick a database backend" |
255 |
- fi |
256 |
- |
257 |
- if use fastcgi ; then |
258 |
- myconf+=" --with-web-handler=fastcgi" |
259 |
- web="apache" |
260 |
- depsconf+=" --with-FASTCGI" |
261 |
- elif use lighttpd ; then |
262 |
- myconf+=" --with-web-handler=fastcgi" |
263 |
- web="lighttpd" |
264 |
- depsconf+=" --with-FASTCGI" |
265 |
- else |
266 |
- myconf+=" --with-web-handler=modperl2" |
267 |
- web="apache" |
268 |
- depsconf+=" --with-MODPERL2" |
269 |
- fi |
270 |
- # Any loading Date::Manip from here on |
271 |
- # may fail if TZ=Factory as it is on gentoo install |
272 |
- # media ( affects install as well ) |
273 |
- export TZ=UTC |
274 |
- |
275 |
- ./configure --enable-layout=Gentoo \ |
276 |
- --with-bin-owner=rt \ |
277 |
- --with-libs-owner=rt \ |
278 |
- --with-libs-group=rt \ |
279 |
- --with-rt-group=rt \ |
280 |
- --with-web-user=${web} \ |
281 |
- --with-web-group=${web} \ |
282 |
- ${myconf} |
283 |
- |
284 |
- # check for missing deps and ask to report if something is broken |
285 |
- /usr/bin/perl ./sbin/rt-test-dependencies ${depsconf} > "${T}"/t |
286 |
- if grep -q "MISSING" "${T}"/t; then |
287 |
- ewarn "Missing Perl dependency!" |
288 |
- ewarn |
289 |
- cat "${T}"/t | grep MISSING |
290 |
- ewarn |
291 |
- ewarn "Please run perl-cleaner. If the problem persists," |
292 |
- ewarn "please file a bug in the Gentoo Bugzilla with the information above" |
293 |
- die "Missing dependencies." |
294 |
- fi |
295 |
-} |
296 |
- |
297 |
-src_compile() { :; } |
298 |
- |
299 |
-src_install() { |
300 |
- webapp_src_preinst |
301 |
- emake install |
302 |
- |
303 |
- dodoc -r docs/* |
304 |
- # Disable compression because `perldoc` doesn't decompress transparently |
305 |
- docompress -x /usr/share/doc |
306 |
- |
307 |
- # make sure we don't clobber existing site configuration |
308 |
- rm -f "${ED}"/${MY_HOSTROOTDIR}/${PF}/etc/RT_SiteConfig.pm |
309 |
- |
310 |
- # fix paths |
311 |
- find "${ED}" -type f -print0 | xargs -0 sed -i -e "s:${ED}::g" |
312 |
- |
313 |
- # copy upgrade files |
314 |
- insinto "${MY_HOSTROOTDIR}/${PF}" |
315 |
- doins -r etc/upgrade |
316 |
- |
317 |
- # require the web server's permissions |
318 |
- webapp_serverowned "${MY_HOSTROOTDIR}"/${PF}/var |
319 |
- webapp_serverowned "${MY_HOSTROOTDIR}"/${PF}/var/mason_data/obj |
320 |
- |
321 |
- webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt |
322 |
- webapp_hook_script "${FILESDIR}"/reconfig |
323 |
- |
324 |
- webapp_src_install |
325 |
-} |
326 |
- |
327 |
-pkg_postinst() { |
328 |
- webapp_pkg_postinst |
329 |
- |
330 |
- if use lighttpd ; then |
331 |
- elog "We no longer install initscripts as Best Practical's recommended" |
332 |
- elog "implementation is to let Lighttpd manage the FastCGI instance." |
333 |
- elog |
334 |
- elog "You may find the following helpful:" |
335 |
- elog " perldoc /usr/share/doc/${P}/web_deployment.pod" |
336 |
- fi |
337 |
-} |