summaryrefslogtreecommitdiff
path: root/app-admin/lsat
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/lsat')
-rw-r--r--app-admin/lsat/Manifest8
-rw-r--r--app-admin/lsat/files/lsat-0.9.7.1-gentoo.patch42
-rw-r--r--app-admin/lsat/files/lsat-0.9.7.1-segfault-fix.patch45
-rw-r--r--app-admin/lsat/lsat-0.9.7.1-r1.ebuild47
-rw-r--r--app-admin/lsat/lsat-0.9.7.1-r2.ebuild54
-rw-r--r--app-admin/lsat/metadata.xml15
6 files changed, 211 insertions, 0 deletions
diff --git a/app-admin/lsat/Manifest b/app-admin/lsat/Manifest
new file mode 100644
index 000000000000..3e8e96dfa03e
--- /dev/null
+++ b/app-admin/lsat/Manifest
@@ -0,0 +1,8 @@
+AUX lsat-0.9.7.1-gentoo.patch 1484 SHA256 f76f127f56139d8d8cf20ead7dd3e72b0a91b90dc85c4f5730bbb5388b35dcca SHA512 55d0806addabf5b431ac18016f1f1737a30994b3558dc511a850d747f7b11f344c2070c0ea239c24a11511bccdb0693f54701586561d4b018934fa7ffd63ef69 WHIRLPOOL 6081f011f9a9cc93a12a5cc43a888d5a2d7983a0534ff85700c1bcc8b7b6118612f2000a5e1e2c39ca0cec0c59e5923a346b0a9e2364535d2bbc9ba60fa6c07b
+AUX lsat-0.9.7.1-segfault-fix.patch 1695 SHA256 ffdd87e42c0e7cb83f38e5c2876fe539b3af303bf7df041a7d86e49cecd0cac9 SHA512 8be007761729ed7b0162cdba3d90a86ccb4caa10064f64a0fe3c10434227b3a5e185c9ca4509ea877a605161bd0482d8ce8758c1cb853756fe81ac37d41832b2 WHIRLPOOL 28db1025c2db54cbe34e6bab69e40f14d57f14dcd03e1765d41da6c5b27a1c31aa57cf839bf4fa82b02cefc1a8e161d8b800df3a28ed310c2b705ee1f5ea7a20
+DIST lsat-0.9.7.1.tgz 86077 SHA256 825b4578e7e90f937c492722801fd6b35785264747cd6e7e45bded2545d2d956 SHA512 fa67b5ebb03d11e3ee023c921977ddb64ea1fafca1d4cdb4b0fc5dbfa6edf46d57e488e9702175afbbde360a63d02ee5839fdf6576d974354a3b1d57f8860ffb WHIRLPOOL 81db8c06bf9bd8ae82a29ca751e378ffbc051e8184e7dac208e43064960949fe9483522600f023d064411338ea76d83e0cbc8b5d1f7f8d7861a2d73581fbc71b
+EBUILD lsat-0.9.7.1-r1.ebuild 1034 SHA256 b460bddd630e07af65daf7b4ac904c580fd00f6ac3c82b52f079738f61a3c3d8 SHA512 4912b221df15b5bda32fbf5269bdea29259b25785e07b3c30dc1043934d9441e6c81edfcea4d0cb5f0191f22976a1335e167de6c5ae87cf805089094f17b292c WHIRLPOOL febf456566200f07fa308c298db03eed9f87cab06bc8967f8faee7d8bf997b1f7687064c365c7495f10bf11d1829a80c7a505e9d4f080695ee96a94fa5f419f4
+EBUILD lsat-0.9.7.1-r2.ebuild 1005 SHA256 964647ca94f428e7ffdbdc6d5d69f14a0f9289ae99415a775c913243840c07cb SHA512 5b912cca76ecd34375b71c7dffd1341be6936e5998d1f5cc3a3933889308c1982e5e6044edf1a769835a102e88c11e39e6904d744c9fda1bfb39a48a103f450c WHIRLPOOL dee88e861267deadab348a8d2cfd01ac0ae91e7808a4f60e9c13dd83fbf901dce4aa09ac00b8dfa6bc0cc7d628a3417543285b9b286e36d21ca1f6b82023579e
+MISC ChangeLog 3146 SHA256 010b9fb14d1940293eb57e49873b4935a9e4849b36196837bbc9980cacd98acc SHA512 bd6ffe74138743c0214b25bfe30677656ec77063fcbec94ecf8067920be2d210e6a1855ec1edb9f4c1880280f9a1ae2f13537b8b1749c1ea26d2ce578d66f266 WHIRLPOOL 32726ba6d2f1390ea964d0ccc08df181b757560b9fae1fcb49e42920ba6ad9bf1f959368f67782820d5e29cfe22a390bff5ba6a3215742fc64dc4d1bf4143b79
+MISC ChangeLog-2015 3982 SHA256 25b25af260af6e45ba1fb74dd1587cfda19e1fee97d551cf4bf23189d21d3b8a SHA512 259aa7f99549c2f2c272c355f323790362c1dc2e249319a3f6d7b54e23ef1e8efcd07bb6f122e1463ed9ee7bf2b9479d3a659b7eedb73ff853fe5ec4185ad6dc WHIRLPOOL f6ce1cc2c0afb7a4448a9b1972b3406a262a7edaccb7392b654dcf3d9685fb7e3575e1cc9df0230bb5249ab43ce357e5e7cd67eb773d4b522d929a6fef914b40
+MISC metadata.xml 608 SHA256 d2f0c6de69d5254deb78229fcbf6f865e5f135be3b8945948a580b32f3a57d39 SHA512 05e9c4d8f92ce5ffabefe6ecab78023c2b0df2c6cc83e7e9c6db837b94b5c3c0f8248d5a3179641eec3513cd646557d2a1028283a03059c722be42c2f230481a WHIRLPOOL 2845a1c38f3b52a0f1201001b4ef6319dd93913379e1cbfb720cbf8a1b012f9273da065416c7f4ddff7d62dd67fd157a3b0ad612d9b27c90e1cb7c5aabe67325
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
new file mode 100644
index 000000000000..631dcd7322f7
--- /dev/null
+++ b/app-admin/lsat/files/lsat-0.9.7.1-gentoo.patch
@@ -0,0 +1,42 @@
+diff -Naur lsat-0.9.6.orig/Makefile.in lsat-0.9.6/Makefile.in
+--- lsat-0.9.6.orig/Makefile.in 2007-05-22 11:38:28.000000000 +0900
++++ lsat-0.9.6/Makefile.in 2007-05-25 18:55:25.000000000 +0900
+@@ -12,6 +12,7 @@
+ PROGRAM= lsat
+ INSTALL = /usr/bin/install -c
+ prefix = @prefix@
++exec_prefix = @exec_prefix@
+ BINDIR = @bindir@
+ DATADIR = @datadir@
+ MANDIR = @mandir@
+@@ -38,9 +39,7 @@
+ rm -f $(PROGRAM) $(OBJECTS) Makefile config.* lsat.old lsatmd5.out lsatmd5.old
+
+ manpage:
+- pod2man $(PROGRAM).pod > $(PROGRAM).tmp
+- sed 's/perl v5.6.1/LSAT/g' $(PROGRAM).tmp| \
+-sed 's/Perl/LSAT/g'\
++ pod2man $(PROGRAM).pod -r LSAT -c 'User Contributed LSAT Documentation' \
+ > $(PROGRAM).1
+ rm -f $(PROGRAM).tmp
+ # cp -vf $(PROGRAM).1 debian/manpage.1.ex
+diff -Naur lsat-0.9.6.orig/checkpkgs.c lsat-0.9.6/checkpkgs.c
+--- lsat-0.9.6.orig/checkpkgs.c 2007-04-27 00:48:31.000000000 +0900
++++ lsat-0.9.6/checkpkgs.c 2007-05-25 18:46:00.000000000 +0900
+@@ -113,14 +113,14 @@
+ }
+
+
+- /* if distro = gentoo, use pkglist */
++ /* if distro = gentoo, use qpkg */
+ if (distribution == 4)
+ {
+ if (verbose > 0)
+ {
+ printf(" Generating list of pkgs on system.\n");
+ }
+- shellcode = "/usr/lib/portage/bin/pkglist 2>/dev/null >>/tmp/lsat1.lsat";
++ shellcode = "/usr/bin/qpkg -I -nc 2>/dev/null >>/tmp/lsat1.lsat";
+ if ((dostuff(tempfile, 0, shellcode, 0, html)) < 0)
+ {
+ /* rhut-rho...something bad happened */
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
new file mode 100644
index 000000000000..558c8de60321
--- /dev/null
+++ b/app-admin/lsat/files/lsat-0.9.7.1-segfault-fix.patch
@@ -0,0 +1,45 @@
+--- lsat-0.9.7.1/lsatmain.c.orig 2008-12-29 11:09:04.000000000 -0500
++++ lsat-0.9.7.1/lsatmain.c 2008-12-29 13:31:00.000000000 -0500
+@@ -232,7 +232,7 @@ int versions(char release[], char kernel
+ } /* end while (fgets...) */
+ close(fileval);
+ /* clean up even though we will rm it */
+- close(infile);
++ close((int)infile);
+
+ if ( (system("rm -f /tmp/lsat1.lsat")) < 0)
+ {
+@@ -308,9 +308,9 @@ int main(int argc, char *argv[])
+ */
+ char release[50]; /* array for release level */
+ char kernel[50]; /* what kernel user is running */
+- static char *man_distro; /* if the user specifies a distribution */
++ static char man_distro[10]; /* if the user specifies a distribution */
+ const char * header =NULL; /* to print out the header */
+- static char *out_file = "lsat.out"; /* output filename var */
++ static char out_file[255] = "lsat.out"; /* output filename var */
+ char xlist[100]; /* modules to exclude */
+ 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};
+ int somethinginxlist = 0;
+@@ -350,10 +350,10 @@ int main(int argc, char *argv[])
+ diff = 1;
+ break;
+ case 'm':
+- strcpy(man_distro, argv[i]+3);
++ strncpy(man_distro, argv[i]+3,sizeof(man_distro));
+ break;
+ case 'o':
+- strcpy(out_file, argv[i]+3);
++ strncpy(out_file, argv[i]+3,sizeof(out_file));
+ break;
+ case 'r':
+ rpmmodule = 1;
+@@ -366,7 +366,7 @@ int main(int argc, char *argv[])
+ break;
+ case 'w':
+ html = 1;
+- out_file="lsat.html";
++ strcpy(out_file,"lsat.html");
+ break;
+ case 'x': strcpy(xlist,argv[i]+3);
+ somethinginxlist = 1;
diff --git a/app-admin/lsat/lsat-0.9.7.1-r1.ebuild b/app-admin/lsat/lsat-0.9.7.1-r1.ebuild
new file mode 100644
index 000000000000..2df288ba1a6e
--- /dev/null
+++ b/app-admin/lsat/lsat-0.9.7.1-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="The Linux Security Auditing Tool"
+HOMEPAGE="http://usat.sourceforge.net/"
+SRC_URI="http://usat.sourceforge.net/code/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="minimal"
+
+DEPEND="dev-lang/perl" # pod2man
+RDEPEND="!minimal? (
+ app-portage/portage-utils
+ net-analyzer/nmap
+ sys-apps/iproute2
+ sys-apps/which
+ sys-process/lsof
+ )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+
+ # patch for segmentation fault see bug #184488
+ epatch "${FILESDIR}"/${P}-segfault-fix.patch
+ sed -i Makefile.in \
+ -e '/^LDFLAGS=/d' \
+ -e '/^CFLAGS=/d' \
+ || die "sed Makefile.in"
+}
+
+src_compile() {
+ tc-export CC
+ econf
+ emake CFLAGS="${CFLAGS}" all manpage || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install installman || die "emake install failed"
+ dodoc README* *.txt
+ dohtml modules.html changelog/changelog.html
+}
diff --git a/app-admin/lsat/lsat-0.9.7.1-r2.ebuild b/app-admin/lsat/lsat-0.9.7.1-r2.ebuild
new file mode 100644
index 000000000000..ca91252d82d5
--- /dev/null
+++ b/app-admin/lsat/lsat-0.9.7.1-r2.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="The Linux Security Auditing Tool"
+HOMEPAGE="http://usat.sourceforge.net/"
+SRC_URI="http://usat.sourceforge.net/code/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="minimal"
+
+DEPEND="dev-lang/perl" # pod2man
+RDEPEND="
+ ${DEPEND}
+ !minimal? (
+ app-portage/portage-utils
+ net-analyzer/nmap
+ sys-apps/iproute2
+ sys-apps/which
+ sys-process/lsof
+ )"
+
+PATCHES=(
+ "${FILESDIR}/${P}-gentoo.patch"
+ "${FILESDIR}/${P}-segfault-fix.patch"
+)
+
+HTML_DOCS=( modules.html changelog/changelog.html )
+
+src_prepare() {
+ default
+
+ # patch for segmentation fault see bug #184488
+ sed -i Makefile.in \
+ -e '/^LDFLAGS=/d' \
+ -e '/^CFLAGS=/d' \
+ || die "sed Makefile.in"
+}
+
+src_compile() {
+ tc-export CC
+ emake CFLAGS="${CFLAGS}" all manpage
+}
+
+src_install() {
+ emake DESTDIR="${D}" install installman
+ dodoc README* *.txt
+ einstalldocs
+}
diff --git a/app-admin/lsat/metadata.xml b/app-admin/lsat/metadata.xml
new file mode 100644
index 000000000000..301bfd358039
--- /dev/null
+++ b/app-admin/lsat/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <longdescription lang="en">
+ Linux Security Auditing Tool (LSAT) is a post install security auditing
+ tool. It is modular in design, so new features can be added quickly. It
+ checks inetd entries and scans for unneeded RPM packages. It is being
+ expanded to work with Linux distributions other than Red Hat, and checks
+ for kernel versions.
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge">usat</remote-id>
+ </upstream>
+</pkgmetadata>