Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/lxr/files/, www-apps/lxr/, profiles/
Date: Sat, 01 Dec 2018 18:24:24
Message-Id: 1543688485.c4a294c1dfc7d80fd7ad07c962d74449db47a069.mgorny@gentoo
1 commit: c4a294c1dfc7d80fd7ad07c962d74449db47a069
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 1 18:21:25 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 1 18:21:25 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4a294c1
7
8 www-apps/lxr: Remove last-rited pkg
9
10 Closes: https://bugs.gentoo.org/444368
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 profiles/package.mask | 5 --
14 www-apps/lxr/Manifest | 1 -
15 www-apps/lxr/files/lxr-0.9.8-initdb-mysql.patch | 13 ----
16 www-apps/lxr/files/postinstall-en.txt | 44 -------------
17 www-apps/lxr/files/reconfig | 21 ------
18 www-apps/lxr/lxr-0.9.8-r1.ebuild | 85 -------------------------
19 www-apps/lxr/metadata.xml | 11 ----
20 7 files changed, 180 deletions(-)
21
22 diff --git a/profiles/package.mask b/profiles/package.mask
23 index a9a1fee737e..46bebed8202 100644
24 --- a/profiles/package.mask
25 +++ b/profiles/package.mask
26 @@ -465,11 +465,6 @@ dev-python/pygoocanvas
27 # Removal in a month.
28 mail-filter/assp
29
30 -# Pacho Ramos <pacho@g.o> (01 Nov 2018)
31 -# Outdated, needs to be bumped to latest release to fix multiple security
32 -# bugs (#444368). Removal in a month.
33 -www-apps/lxr
34 -
35 # Pacho Ramos <pacho@g.o> (01 Nov 2018)
36 # All this packages are broken and need major version bumps to fix them. See
37 # bug #504114, #486510, #510550, #511096, #517260, #551784, #616490, #
38
39 diff --git a/www-apps/lxr/Manifest b/www-apps/lxr/Manifest
40 deleted file mode 100644
41 index fe324342344..00000000000
42 --- a/www-apps/lxr/Manifest
43 +++ /dev/null
44 @@ -1 +0,0 @@
45 -DIST lxr-0.9.8.tgz 104246 BLAKE2B 9088f00a47c2cd9e4822b7f79554f820dd3fb97973f25dbb6eacdccc6e436aa6eb9a50806b726b53a6347d8266ceaf1c35c54c221030fe7edcd65294567fa3ec SHA512 2ee9965448edc63a35a3c9d51b2e22c142e5e0aed8e487a590ad3e8a9f840f94fbe38736fe139fb02941ab4e5c891821460b0f32b56a52bf295988c6ef432318
46
47 diff --git a/www-apps/lxr/files/lxr-0.9.8-initdb-mysql.patch b/www-apps/lxr/files/lxr-0.9.8-initdb-mysql.patch
48 deleted file mode 100644
49 index f2860468378..00000000000
50 --- a/www-apps/lxr/files/lxr-0.9.8-initdb-mysql.patch
51 +++ /dev/null
52 @@ -1,13 +0,0 @@
53 ---- initdb-mysql 2004-07-20 11:31:24.000000000 -0400
54 -+++ initdb-mysql.patched 2006-01-26 15:41:43.000000000 -0500
55 -@@ -34,8 +34,8 @@ create table lxr_indexes (
56 -
57 - create table lxr_releases
58 - (fileid int not null references lxr_files,
59 -- releaseid char(255) binary not null,
60 -- primary key (fileid,releaseid)
61 -+ `releaseid` char(255) binary not null,
62 -+ primary key (fileid,`releaseid`)
63 - );
64 -
65 - create table lxr_usage
66
67 diff --git a/www-apps/lxr/files/postinstall-en.txt b/www-apps/lxr/files/postinstall-en.txt
68 deleted file mode 100644
69 index 07412c4da55..00000000000
70 --- a/www-apps/lxr/files/postinstall-en.txt
71 +++ /dev/null
72 @@ -1,44 +0,0 @@
73 -0. Create a db for lxr:
74 -
75 - MySQL: run mysql and read in the initdb file using:
76 - \. ${MY_SQLSCRIPTSDIR}/mysql/${PVR}_create.sql
77 -
78 - PostgreSQL:
79 - createuser lxr
80 - createdb -U lxr lxr
81 - psql -U lxr lxr
82 - \i ${MY_SQLSCRIPTSDIR}/postgresql/${PVR}_create.sql
83 -
84 -1. Edit ${MY_INSTALLDIR}/lxr.conf and set:
85 - - db settings
86 - - 'v'
87 - - 'sourceroot'
88 - - 'graphicfile'
89 - - 'filetype'
90 - - 'incprefix'
91 -
92 -2. If you want to use CVS, also set:
93 - 'range' => sub { return
94 - ($files->allreleases($LXR::Common::pathname),
95 - $files->allrevisions($LXR::Common::pathname))
96 - }, # deferred function call.
97 -
98 - You should also set the default version retrieved to a version that really
99 - does exist otherwise you will receive errors when generating your index.
100 -
101 - A good value for the default version is head.
102 - 'default' => 'head'
103 - Set 'sourceroot' and 'sourcerootname'.
104 -
105 -3. If you want to use swish-e:
106 - Create a directory for the swish index files to go in, and put the
107 - path of this directory in the 'swishdir' variable.
108 -
109 -4. An .htaccess file has been installed into ${MY_INSTALLDIR}. Please note that
110 -you must take special care not to make lxr.conf visible to the world. If you
111 -are not using mod_perl, use .htaccess_cgi instead.
112 -
113 -5. Create the index:
114 - ${MY_INSTALLDIR}/genxref --url http://${VHOST_HOSTNAME}${VHOST_APPDIR}
115 -
116 -6. Browse to http://${VHOST_HOSTNAME}${VHOST_APPDIR}/source
117
118 diff --git a/www-apps/lxr/files/reconfig b/www-apps/lxr/files/reconfig
119 deleted file mode 100644
120 index e9e2f47b3f6..00000000000
121 --- a/www-apps/lxr/files/reconfig
122 +++ /dev/null
123 @@ -1,21 +0,0 @@
124 -#!/bin/bash
125 -
126 -die() {
127 - echo "#####"
128 - echo "$@"
129 - echo "#####"
130 - exit 1
131 -}
132 -
133 -if [[ $1 == "install" ]] ; then
134 - cd "${MY_INSTALLDIR}" || die
135 - files="lxr.conf $(ls ._cfg*lxr.conf 2>/dev/null)"
136 - sed -i \
137 - -e "s|/lxr|${VHOST_APPDIR}|" \
138 - -e "s|192.168.1.3/lxr|${VHOST_HOSTNAME}${VHOST_APPDIR}|" \
139 - ${files} || die
140 -elif [[ $1 = "clean" ]] ; then
141 - echo $1
142 -fi
143 -
144 -exit 0
145
146 diff --git a/www-apps/lxr/lxr-0.9.8-r1.ebuild b/www-apps/lxr/lxr-0.9.8-r1.ebuild
147 deleted file mode 100644
148 index b7ffd3e3f5a..00000000000
149 --- a/www-apps/lxr/lxr-0.9.8-r1.ebuild
150 +++ /dev/null
151 @@ -1,85 +0,0 @@
152 -# Copyright 1999-2014 Gentoo Foundation
153 -# Distributed under the terms of the GNU General Public License v2
154 -
155 -EAPI=5
156 -
157 -inherit perl-module webapp multilib eutils depend.apache
158 -
159 -DESCRIPTION="general purpose source code indexer and cross-referener with web-based frontend"
160 -HOMEPAGE="https://sourceforge.net/projects/lxr"
161 -SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
162 -
163 -LICENSE="GPL-2"
164 -KEYWORDS="~amd64 ppc ~x86"
165 -IUSE="cvs mysql postgres"
166 -WEBAPP_MANUAL_SLOT="yes"
167 -SLOT="0"
168 -
169 -RDEPEND="dev-util/ctags
170 - dev-lang/perl
171 - dev-perl/DBI
172 - dev-perl/File-MMagic
173 - cvs? ( dev-vcs/rcs )
174 - postgres? ( dev-perl/DBD-Pg )
175 - mysql? ( dev-perl/DBD-mysql )"
176 -
177 -need_apache2
178 -
179 -pkg_setup() {
180 - webapp_pkg_setup
181 -}
182 -
183 -src_prepare() {
184 -
185 - epatch "${FILESDIR}/${PN}-0.9.8-initdb-mysql.patch"
186 -
187 - sed -i \
188 - -e 's|/usr/local/bin/swish-e|/usr/bin/swish-e|' \
189 - -e 's|/usr/bin/ctags|/usr/bin/exuberant-ctags|' \
190 - -e "s|'glimpse|#'glimpse|g" \
191 - -e "s:/path/to/lib:${VENDOR_LIB}:" \
192 - templates/lxr.conf || die "sed failed"
193 - sed -i \
194 - -e 's|Apache::Registry|ModPerl::PerlRun|' \
195 - .htaccess-apache1 || die "sed failed"
196 - sed -i \
197 - -e 's|require Local;|require LXR::Local;|' \
198 - -e 's|use Local;|use LXR::Local;|' \
199 - -e 's|package Local;|package LXR::Local;|' \
200 - Local.pm lib/LXR/Common.pm diff find ident search source || die "sed failed"
201 -}
202 -
203 -# prevent eclasses from overriding this
204 -src_compile() { :; }
205 -
206 -src_install() {
207 - perl_set_version
208 - webapp_src_preinst
209 -
210 - insinto "${VENDOR_LIB}"
211 - doins -r lib/LXR
212 - insinto "${VENDOR_LIB}"/LXR
213 - doins Local.pm
214 -
215 - dodoc BUGS CREDITS.txt ChangeLog HACKING INSTALL notes .htaccess* swish-e.conf
216 -
217 - exeinto "${MY_HTDOCSDIR}"
218 - doexe diff find genxref ident search source
219 - insinto "${MY_HTDOCSDIR}"
220 - doins .htaccess* templates/*
221 -
222 - webapp_configfile "${MY_HTDOCSDIR}"/lxr.conf "${MY_HTDOCSDIR}"/.htaccess-apache1
223 - webapp_sqlscript mysql initdb-mysql
224 - webapp_sqlscript postgresql initdb-postgres
225 - webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
226 - webapp_hook_script "${FILESDIR}"/reconfig
227 - webapp_src_install
228 -}
229 -
230 -pkg_postinst() {
231 - webapp_pkg_postinst
232 -}
233 -
234 -pkg_prerm() {
235 - webapp_pkg_prerm
236 -}
237
238 diff --git a/www-apps/lxr/metadata.xml b/www-apps/lxr/metadata.xml
239 deleted file mode 100644
240 index b1a40455a1f..00000000000
241 --- a/www-apps/lxr/metadata.xml
242 +++ /dev/null
243 @@ -1,11 +0,0 @@
244 -<?xml version="1.0" encoding="UTF-8"?>
245 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
246 -<pkgmetadata>
247 - <maintainer type="project">
248 - <email>web-apps@g.o</email>
249 - <name>Gentoo Webapps</name>
250 - </maintainer>
251 - <upstream>
252 - <remote-id type="sourceforge">lxr</remote-id>
253 - </upstream>
254 -</pkgmetadata>