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: app-admin/lsat/files/, profiles/, app-admin/lsat/
Date: Tue, 28 May 2019 13:37:36
Message-Id: 1559050602.3a2400234a2cbaa6ca875377a6fd027953139954.mgorny@gentoo
1 commit: 3a2400234a2cbaa6ca875377a6fd027953139954
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 28 13:36:42 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue May 28 13:36:42 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a240023
7
8 app-admin/lsat: Remove last-rited pkg
9
10 Closes: https://bugs.gentoo.org/684340
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 app-admin/lsat/Manifest | 1 -
14 app-admin/lsat/files/lsat-0.9.7.1-gentoo.patch | 42 -----------------
15 .../lsat/files/lsat-0.9.7.1-segfault-fix.patch | 45 ------------------
16 app-admin/lsat/lsat-0.9.7.1-r2.ebuild | 54 ----------------------
17 app-admin/lsat/metadata.xml | 15 ------
18 profiles/package.mask | 11 -----
19 6 files changed, 168 deletions(-)
20
21 diff --git a/app-admin/lsat/Manifest b/app-admin/lsat/Manifest
22 deleted file mode 100644
23 index 9ff51998af9..00000000000
24 --- a/app-admin/lsat/Manifest
25 +++ /dev/null
26 @@ -1 +0,0 @@
27 -DIST lsat-0.9.7.1.tgz 86077 BLAKE2B 609eb2a3345d147f03d03eea31fc34834ab2c0f95cf8b348ae0289020e092a991ab215160dcb1bee06ec07186fc2b9ee61af59dcff140dbda0fa91ebc7f8574e SHA512 fa67b5ebb03d11e3ee023c921977ddb64ea1fafca1d4cdb4b0fc5dbfa6edf46d57e488e9702175afbbde360a63d02ee5839fdf6576d974354a3b1d57f8860ffb
28
29 diff --git a/app-admin/lsat/files/lsat-0.9.7.1-gentoo.patch b/app-admin/lsat/files/lsat-0.9.7.1-gentoo.patch
30 deleted file mode 100644
31 index 631dcd7322f..00000000000
32 --- a/app-admin/lsat/files/lsat-0.9.7.1-gentoo.patch
33 +++ /dev/null
34 @@ -1,42 +0,0 @@
35 -diff -Naur lsat-0.9.6.orig/Makefile.in lsat-0.9.6/Makefile.in
36 ---- lsat-0.9.6.orig/Makefile.in 2007-05-22 11:38:28.000000000 +0900
37 -+++ lsat-0.9.6/Makefile.in 2007-05-25 18:55:25.000000000 +0900
38 -@@ -12,6 +12,7 @@
39 - PROGRAM= lsat
40 - INSTALL = /usr/bin/install -c
41 - prefix = @prefix@
42 -+exec_prefix = @exec_prefix@
43 - BINDIR = @bindir@
44 - DATADIR = @datadir@
45 - MANDIR = @mandir@
46 -@@ -38,9 +39,7 @@
47 - rm -f $(PROGRAM) $(OBJECTS) Makefile config.* lsat.old lsatmd5.out lsatmd5.old
48 -
49 - manpage:
50 -- pod2man $(PROGRAM).pod > $(PROGRAM).tmp
51 -- sed 's/perl v5.6.1/LSAT/g' $(PROGRAM).tmp| \
52 --sed 's/Perl/LSAT/g'\
53 -+ pod2man $(PROGRAM).pod -r LSAT -c 'User Contributed LSAT Documentation' \
54 - > $(PROGRAM).1
55 - rm -f $(PROGRAM).tmp
56 - # cp -vf $(PROGRAM).1 debian/manpage.1.ex
57 -diff -Naur lsat-0.9.6.orig/checkpkgs.c lsat-0.9.6/checkpkgs.c
58 ---- lsat-0.9.6.orig/checkpkgs.c 2007-04-27 00:48:31.000000000 +0900
59 -+++ lsat-0.9.6/checkpkgs.c 2007-05-25 18:46:00.000000000 +0900
60 -@@ -113,14 +113,14 @@
61 - }
62 -
63 -
64 -- /* if distro = gentoo, use pkglist */
65 -+ /* if distro = gentoo, use qpkg */
66 - if (distribution == 4)
67 - {
68 - if (verbose > 0)
69 - {
70 - printf(" Generating list of pkgs on system.\n");
71 - }
72 -- shellcode = "/usr/lib/portage/bin/pkglist 2>/dev/null >>/tmp/lsat1.lsat";
73 -+ shellcode = "/usr/bin/qpkg -I -nc 2>/dev/null >>/tmp/lsat1.lsat";
74 - if ((dostuff(tempfile, 0, shellcode, 0, html)) < 0)
75 - {
76 - /* rhut-rho...something bad happened */
77
78 diff --git a/app-admin/lsat/files/lsat-0.9.7.1-segfault-fix.patch b/app-admin/lsat/files/lsat-0.9.7.1-segfault-fix.patch
79 deleted file mode 100644
80 index 558c8de6032..00000000000
81 --- a/app-admin/lsat/files/lsat-0.9.7.1-segfault-fix.patch
82 +++ /dev/null
83 @@ -1,45 +0,0 @@
84 ---- lsat-0.9.7.1/lsatmain.c.orig 2008-12-29 11:09:04.000000000 -0500
85 -+++ lsat-0.9.7.1/lsatmain.c 2008-12-29 13:31:00.000000000 -0500
86 -@@ -232,7 +232,7 @@ int versions(char release[], char kernel
87 - } /* end while (fgets...) */
88 - close(fileval);
89 - /* clean up even though we will rm it */
90 -- close(infile);
91 -+ close((int)infile);
92 -
93 - if ( (system("rm -f /tmp/lsat1.lsat")) < 0)
94 - {
95 -@@ -308,9 +308,9 @@ int main(int argc, char *argv[])
96 - */
97 - char release[50]; /* array for release level */
98 - char kernel[50]; /* what kernel user is running */
99 -- static char *man_distro; /* if the user specifies a distribution */
100 -+ static char man_distro[10]; /* if the user specifies a distribution */
101 - const char * header =NULL; /* to print out the header */
102 -- static char *out_file = "lsat.out"; /* output filename var */
103 -+ static char out_file[255] = "lsat.out"; /* output filename var */
104 - char xlist[100]; /* modules to exclude */
105 - int xarray[33] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
106 - int somethinginxlist = 0;
107 -@@ -350,10 +350,10 @@ int main(int argc, char *argv[])
108 - diff = 1;
109 - break;
110 - case 'm':
111 -- strcpy(man_distro, argv[i]+3);
112 -+ strncpy(man_distro, argv[i]+3,sizeof(man_distro));
113 - break;
114 - case 'o':
115 -- strcpy(out_file, argv[i]+3);
116 -+ strncpy(out_file, argv[i]+3,sizeof(out_file));
117 - break;
118 - case 'r':
119 - rpmmodule = 1;
120 -@@ -366,7 +366,7 @@ int main(int argc, char *argv[])
121 - break;
122 - case 'w':
123 - html = 1;
124 -- out_file="lsat.html";
125 -+ strcpy(out_file,"lsat.html");
126 - break;
127 - case 'x': strcpy(xlist,argv[i]+3);
128 - somethinginxlist = 1;
129
130 diff --git a/app-admin/lsat/lsat-0.9.7.1-r2.ebuild b/app-admin/lsat/lsat-0.9.7.1-r2.ebuild
131 deleted file mode 100644
132 index c1285e7e6de..00000000000
133 --- a/app-admin/lsat/lsat-0.9.7.1-r2.ebuild
134 +++ /dev/null
135 @@ -1,54 +0,0 @@
136 -# Copyright 1999-2017 Gentoo Foundation
137 -# Distributed under the terms of the GNU General Public License v2
138 -
139 -EAPI=6
140 -
141 -inherit eutils toolchain-funcs
142 -
143 -DESCRIPTION="The Linux Security Auditing Tool"
144 -HOMEPAGE="http://usat.sourceforge.net/"
145 -SRC_URI="http://usat.sourceforge.net/code/${P}.tgz"
146 -
147 -LICENSE="GPL-2"
148 -SLOT="0"
149 -KEYWORDS="amd64 ppc x86"
150 -IUSE="minimal"
151 -
152 -DEPEND="dev-lang/perl" # pod2man
153 -RDEPEND="
154 - ${DEPEND}
155 - !minimal? (
156 - app-portage/portage-utils
157 - net-analyzer/nmap
158 - sys-apps/iproute2
159 - sys-apps/which
160 - sys-process/lsof
161 - )"
162 -
163 -PATCHES=(
164 - "${FILESDIR}/${P}-gentoo.patch"
165 - "${FILESDIR}/${P}-segfault-fix.patch"
166 -)
167 -
168 -HTML_DOCS=( modules.html changelog/changelog.html )
169 -
170 -src_prepare() {
171 - default
172 -
173 - # patch for segmentation fault see bug #184488
174 - sed -i Makefile.in \
175 - -e '/^LDFLAGS=/d' \
176 - -e '/^CFLAGS=/d' \
177 - || die "sed Makefile.in"
178 -}
179 -
180 -src_compile() {
181 - tc-export CC
182 - emake CFLAGS="${CFLAGS}" all manpage
183 -}
184 -
185 -src_install() {
186 - emake DESTDIR="${D}" install installman
187 - dodoc README* *.txt
188 - einstalldocs
189 -}
190
191 diff --git a/app-admin/lsat/metadata.xml b/app-admin/lsat/metadata.xml
192 deleted file mode 100644
193 index 301bfd35803..00000000000
194 --- a/app-admin/lsat/metadata.xml
195 +++ /dev/null
196 @@ -1,15 +0,0 @@
197 -<?xml version="1.0" encoding="UTF-8"?>
198 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
199 -<pkgmetadata>
200 - <!-- maintainer-needed -->
201 - <longdescription lang="en">
202 - Linux Security Auditing Tool (LSAT) is a post install security auditing
203 - tool. It is modular in design, so new features can be added quickly. It
204 - checks inetd entries and scans for unneeded RPM packages. It is being
205 - expanded to work with Linux distributions other than Red Hat, and checks
206 - for kernel versions.
207 - </longdescription>
208 - <upstream>
209 - <remote-id type="sourceforge">usat</remote-id>
210 - </upstream>
211 -</pkgmetadata>
212
213 diff --git a/profiles/package.mask b/profiles/package.mask
214 index 5199df0baf0..3e422e06553 100644
215 --- a/profiles/package.mask
216 +++ b/profiles/package.mask
217 @@ -344,17 +344,6 @@ net-libs/farstream:0.1
218 # Removal in 30 days.
219 sec-policy/selinux-perdition
220
221 -# Michał Górny <mgorny@g.o> (25 Apr 2019)
222 -# This programs suffers severe code quality problems and should have
223 -# never been added to Gentoo. It looks like a shell script badly
224 -# converted to a C program with a lot of system() calls with globs,
225 -# horribly unreadable code and broken memory management including
226 -# reading past end-of-string (which only recently replaced writing into
227 -# uninitialized memory). Auditing the program completely would probably
228 -# be more costly than rewriting it from scratch.
229 -# Removal in 30 days. Bug #684340.
230 -app-admin/lsat
231 -
232 # Michał Górny <mgorny@g.o> (24 Apr 2019)
233 # Unmaintained. Vulnerable init.d script. Missing dependencies causing
234 # build failures (#514412, #544942). Insecure format strings (#520574).