mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 11:37:20 -08:00
net-analyzer: remove lastrited nessus and co.
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
This commit is contained in:
@@ -1 +0,0 @@
|
||||
DIST libnasl-2.2.9.tar.gz 366960 BLAKE2B 4d5b5259c6bd1184d2bdf8f72a0e1f327666150f7d943c0343560d8ff0596819db10437f714c5fb7440afadf947492112c667bf224248f994be474ceb87243d9 SHA512 74a637d39f0d61c9e0f692d3a6754000ef635690a61b05c88608fd5bbee438ce720597babe25af80bccd4fca52f22531b3fc913820a13147c179f8a16c034e03
|
||||
@@ -1,29 +0,0 @@
|
||||
--- a/nasl/nasl_grammar.y
|
||||
+++ b/nasl/nasl_grammar.y
|
||||
@@ -1,4 +1,6 @@
|
||||
-%pure_parser
|
||||
+%pure-parser
|
||||
+%parse-param {naslctxt * parm}
|
||||
+%lex-param {naslctxt * parm}
|
||||
%expect 1
|
||||
%{
|
||||
/* Nessus Attack Scripting Language version 2
|
||||
@@ -31,7 +33,7 @@
|
||||
#include "nasl_lex_ctxt.h"
|
||||
#include "nasl_debug.h"
|
||||
|
||||
-static void naslerror(const char *);
|
||||
+static void naslerror(naslctxt *, const char *);
|
||||
#define YYERROR_VERBOSE
|
||||
%}
|
||||
|
||||
@@ -465,8 +467,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
-static void
|
||||
-naslerror(const char *s)
|
||||
+static void naslerror(naslctxt *parm, const char *s)
|
||||
{
|
||||
fputs(s, stderr);
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
index 860653d..82bdf2f 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1,7 +1,7 @@
|
||||
include nasl.tmpl
|
||||
|
||||
all:
|
||||
- cd nasl && ${MAKE}
|
||||
+ ${MAKE} -C nasl
|
||||
|
||||
nasl.tmpl: nasl.tmpl.in configure
|
||||
$(SHELL) configure $(CONFIGURE_ARGS)
|
||||
--- a/nasl/Makefile
|
||||
+++ b/nasl/Makefile
|
||||
@@ -97,11 +97,11 @@ cflags :
|
||||
@echo "echo \"$(NESSUS_CFLAGS) $(include) $(DEFS) \"" > cflags
|
||||
@chmod +x cflags
|
||||
|
||||
-nasl : cflags $(OBJS) nasl.c
|
||||
- $(CC) $(CFLAGS) $(NESSUS_INCLUDE) $(include) -o nasl -DVERSION=\"$(VERSION)\" nasl.c $(OBJS) $(NESSUS_LIBS)
|
||||
+nasl : cflags $(OBJS) nasl.c libnasl.la
|
||||
+ $(CC) $(CFLAGS) $(LDFLAGS) $(NESSUS_INCLUDE) $(include) -o nasl -DVERSION=\"$(VERSION)\" nasl.c $(OBJS) $(NESSUS_LIBS)
|
||||
|
||||
libnasl.la : cflags $(OBJS)
|
||||
- $(COMPILE) $(NESSUS_LIBS) -o libnasl.la $(LO_OBJS) -rpath ${libdir} \
|
||||
+ $(COMPILE) $(NESSUS_LIBS) $(LDFLAGS) -o libnasl.la $(LO_OBJS) -rpath ${libdir} \
|
||||
-version-info ${PACKAGE_VERSION}
|
||||
|
||||
install : libnasl.la nasl
|
||||
@@ -1,45 +0,0 @@
|
||||
http://bugs.gentoo.org/326545
|
||||
|
||||
--- a/nasl/nasl_crypto.c
|
||||
+++ b/nasl/nasl_crypto.c
|
||||
@@ -22,7 +22,9 @@
|
||||
*/
|
||||
#include <includes.h>
|
||||
#ifdef HAVE_SSL
|
||||
+#ifdef HAVE_OPENSSL_MD2_H
|
||||
#include <openssl/md2.h>
|
||||
+#endif
|
||||
#include <openssl/md4.h>
|
||||
#include <openssl/md5.h>
|
||||
#include <openssl/ripemd.h>
|
||||
@@ -45,6 +47,7 @@
|
||||
|
||||
|
||||
/*-------------------[ Std. HASH ]-------------------------------------*/
|
||||
+#ifdef HAVE_OPENSSL_MD2_H
|
||||
tree_cell * nasl_md2(lex_ctxt * lexic)
|
||||
{
|
||||
char * data = get_str_var_by_num(lexic, 0);
|
||||
@@ -63,6 +66,7 @@
|
||||
retc->size = MD2_DIGEST_LENGTH;
|
||||
return retc;
|
||||
}
|
||||
+#endif
|
||||
|
||||
tree_cell * nasl_md4(lex_ctxt * lexic)
|
||||
{
|
||||
@@ -192,12 +196,12 @@
|
||||
return retc;
|
||||
}
|
||||
|
||||
-
|
||||
+#ifdef HAVE_OPENSSL_MD2_H
|
||||
tree_cell * nasl_hmac_md2(lex_ctxt * lexic)
|
||||
{
|
||||
return nasl_hmac(lexic, EVP_md2());
|
||||
}
|
||||
-
|
||||
+#endif
|
||||
|
||||
tree_cell * nasl_hmac_md5(lex_ctxt * lexic)
|
||||
{
|
||||
@@ -1,54 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="A remote security scanner for Linux (libnasl)"
|
||||
HOMEPAGE="http://www.nessus.org/"
|
||||
SRC_URI="ftp://ftp.nessus.org/pub/nessus/nessus-${PV}/src/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux"
|
||||
IUSE="static-libs"
|
||||
|
||||
RDEPEND="
|
||||
~net-analyzer/nessus-libraries-${PV}
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
sys-devel/bison
|
||||
"
|
||||
|
||||
S=${WORKDIR}/${PN}
|
||||
|
||||
src_prepare() {
|
||||
epatch \
|
||||
"${FILESDIR}"/${P}-openssl-1.patch \
|
||||
"${FILESDIR}"/${P}-gentoo.patch \
|
||||
"${FILESDIR}"/${P}-bison3.patch
|
||||
|
||||
sed \
|
||||
-e "/^LDFLAGS/s:$:${LDFLAGS}:g" \
|
||||
-i nasl.tmpl.in || die
|
||||
|
||||
tc-export CC
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable static-libs static) \
|
||||
--enable-shared
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# emake fails for >= -j2. bug #16471.
|
||||
emake -C nasl cflags
|
||||
emake
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
prune_libtool_files
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>netmon@gentoo.org</email>
|
||||
<name>Gentoo network monitoring and analysis project</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
@@ -1,2 +0,0 @@
|
||||
DIST NessusClient-1.0.2.tar.gz 2058324 BLAKE2B 8e2d27bc2c88d57bb57088d6061119144282db547d3f21bb242c9ba20e7f091fdbae3ee26f21ab4b8c33b8a3ff901c311e77ecb2d28aecf3d066152db2d2efcc SHA512 999e8ba11208351ffc37bad9fabc8c0b01e4abc2a638660818a1877cdb21a5d3b40d330b722debe9833e87db60e4f8aef53044f14fe5eeb8ffe57f3522bfa927
|
||||
DIST nessus-client.png.bz2 10043 BLAKE2B 471dabb9effab168d6a92595a258679e961e8e1a64c29aa4b0ff0d013b67bf5b417d764390eddfff6bd9bdae0f385d1858890ec97dfbffa2f1d45b26e40c7dc3 SHA512 39e2b41e3b4fcfdace80085c917754fb0a4cfebcf1f684d97e36e5212e8e2e3539f10527909d7e4e350afdc73801ac1fb5bff2bb5c12be4770e2bb27487542af
|
||||
@@ -1,74 +0,0 @@
|
||||
--- a/Makefile 2006-12-23 15:27:39.000000000 +0100
|
||||
+++ b/Makefile 2010-08-23 01:12:51.000000000 +0200
|
||||
@@ -2,8 +2,10 @@
|
||||
|
||||
ALLDEPS = nessus.tmpl
|
||||
|
||||
-all: libnessus-client client sslstuff
|
||||
-
|
||||
+all:
|
||||
+ $(MAKE) -C libnessus
|
||||
+ $(MAKE) -C nessus
|
||||
+ $(MAKE) -C ssl
|
||||
|
||||
nessus.tmpl: nessus.tmpl.in configure VERSION
|
||||
$(SHELL) configure $(CONFIGURE_ARGS)
|
||||
@@ -21,20 +23,17 @@
|
||||
$(INSTALL) -m $(CLIENTMODE) nessusclient-mkcert $(DESTDIR)${bindir}
|
||||
$(INSTALL) -m $(CLIENTMODE) ssl/nessusclient-mkrand $(DESTDIR)${bindir}
|
||||
|
||||
-sslstuff:
|
||||
- cd ssl && $(MAKE)
|
||||
-
|
||||
install-man:
|
||||
@echo installing man pages ...
|
||||
@test -d $(DESTDIR)${mandir}/man1 || $(INSTALL_DIR) $(DESTDIR)${mandir}/man1
|
||||
@test -d $(DESTDIR)${mandir}/man8 || $(INSTALL_DIR) $(DESTDIR)${mandir}/man8
|
||||
@test -d $(DESTDIR)${datadir}/doc/ || $(INSTALL_DIR) $(DESTDIR)${datadir}/doc/
|
||||
- @test -d $(DESTDIR)${datadir}/doc/NessusClient || $(INSTALL_DIR) $(DESTDIR)${datadir}/doc/NessusClient
|
||||
+ @test -d $(NESSUS_DOCDIR) || $(INSTALL_DIR) $(NESSUS_DOCDIR)
|
||||
|
||||
$(INSTALL) -c -m 0444 ${MAN_NESSUS_1} $(DESTDIR)${mandir}/man1/NessusClient.1
|
||||
$(INSTALL) -c -m 0444 doc/nessusclient-mkcert.1 $(DESTDIR)${mandir}/man1/nessusclient-mkcert.1
|
||||
$(INSTALL) -c -m 0444 doc/nessusclient-mkrand.1 $(DESTDIR)${mandir}/man1/nessusclient-mkrand.1
|
||||
- $(INSTALL) -c -m 0444 doc/NessusClient_UserGuide.pdf $(DESTDIR)${datadir}/doc/NessusClient/NessusClient_UserGuide.pdf
|
||||
+ $(INSTALL) -c -m 0444 doc/NessusClient_UserGuide.pdf $(NESSUS_DOCDIR)/NessusClient_UserGuide.pdf
|
||||
|
||||
win32: ${MAN_NESSUS_1}
|
||||
$(MANROFF) ${MAN_NESSUS_1} > doc/NessusClient.1.cat
|
||||
@@ -45,23 +44,15 @@
|
||||
@echo ' --------------------------------------------------------------'
|
||||
@echo
|
||||
|
||||
-client-install : client
|
||||
+client-install : nessus
|
||||
test -d $(DESTDIR)${bindir} || $(INSTALL_DIR) -m 755 $(DESTDIR)${bindir}
|
||||
$(INSTALL) -m $(CLIENTMODE) ${make_bindir}/NessusClient $(DESTDIR)${bindir}
|
||||
|
||||
-client :
|
||||
- cd nessus && $(MAKE)
|
||||
-
|
||||
-libnessus-client:
|
||||
- cd libnessus && $(MAKE)
|
||||
-
|
||||
-
|
||||
doc : $(MAN_NESSUS_1)
|
||||
|
||||
$(MAN_NESSUS_1) : $(MAN_NESSUS_1).in
|
||||
@sed -e 's?@NESSUSD_CONFDIR@?${NESSUSD_CONFDIR}?g;s?@NESSUSD_DATADIR@?${NESSUSD_DATADIR}?g;s?@NESSUSD_PLUGINS@?${NESSUSD_PLUGINS}?g;' $(MAN_NESSUS_1).in >$(MAN_NESSUS_1)
|
||||
|
||||
-
|
||||
clean:
|
||||
cd nessus && $(MAKE) clean
|
||||
cd libnessus && $(MAKE) clean
|
||||
--- a/ssl/Makefile 2006-09-12 23:41:31.000000000 +0200
|
||||
+++ b/ssl/Makefile 2010-08-23 01:16:51.000000000 +0200
|
||||
@@ -6,7 +6,7 @@
|
||||
all : nessusclient-mkrand
|
||||
|
||||
nessusclient-mkrand: $(OBJS)
|
||||
- $(CC) $(OBJS) -o nessusclient-mkrand -lm
|
||||
+ $(CC) $(LDFLAGS) $(OBJS) -o nessusclient-mkrand -lm
|
||||
|
||||
nessusclient-mkrand.o: nessusclient-mkrand.c
|
||||
$(CC) $(CFLAGS) -c nessusclient-mkrand.c
|
||||
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>netmon@gentoo.org</email>
|
||||
<name>Gentoo network monitoring and analysis project</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
@@ -1,57 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
MY_PN=NessusClient
|
||||
MY_P=${MY_PN}-${PV}
|
||||
|
||||
DESCRIPTION="A client for the Nessus vulnerability scanner"
|
||||
HOMEPAGE="http://www.nessus.org/"
|
||||
SRC_URI="mirror://gentoo/${MY_P}.tar.gz
|
||||
mirror://gentoo/nessus-client.png.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="libressl doc"
|
||||
|
||||
RDEPEND="!net-analyzer/nessus-core
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
>=x11-libs/gtk+-2.8.8:2"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
doc? ( app-text/htmldoc )"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-make.patch
|
||||
sed -i \
|
||||
-e "/NESSUS_DOCDIR/s|/doc/NessusClient|/doc/${PF}|g" \
|
||||
nessus.tmpl.in || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
tc-export CC
|
||||
econf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die
|
||||
dodoc CHANGES README_SSL VERSION
|
||||
|
||||
doicon "${WORKDIR}"/${PN}.png
|
||||
make_desktop_entry NessusClient "Nessus Client" nessus-client "Network"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if ! use doc; then
|
||||
elog "If you do not have documentation installed, nessus-client"
|
||||
elog "will complain. To install documentation, please emerge with"
|
||||
elog "the doc useflag set. Beware that it will emerge app-text/htmldoc,"
|
||||
elog "a big package."
|
||||
fi
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
DIST nessus-core-2.2.9.tar.gz 674390 BLAKE2B 76599f5a6521d7f2a38d75c647eeaa4faa5d5482803ea1cf21ae0ffbe37f7d638f03c1710b65f5a442af55ccf5eea07385393c34761549441afee6e466b4eadd SHA512 7ec7f35a2b407126d174b6015e7d9566535892d64c5ea4d05297fbf93493016a885ca15c9102abfd515422b49fcd23585e7d41537a4f1afc0b6278c28690fcb1
|
||||
@@ -1,15 +0,0 @@
|
||||
--- nessus-core/nessus/auth.c 2007-08-31 23:12:36.000000000 +0200
|
||||
+++ nessus-core/nessus/auth.c 2007-08-31 23:12:52.000000000 +0200
|
||||
@@ -92,11 +92,11 @@
|
||||
char * buffer = emalloc(s);
|
||||
int len, n = 0;
|
||||
signal(SIGPIPE, sighand_pipe);
|
||||
- va_start(param, data);
|
||||
|
||||
|
||||
for(;;)
|
||||
{
|
||||
+ va_start(param, data);
|
||||
r = vsnprintf(buffer, s - 1, data, param);
|
||||
if(r >= 0 && r < s)break;
|
||||
s = r > s ? r + 2 : s * 2;
|
||||
@@ -1,58 +0,0 @@
|
||||
Makefile | 10 +++++-----
|
||||
nessus-fetch/Makefile | 2 +-
|
||||
ssl/Makefile | 2 +-
|
||||
3 files changed, 7 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index b1485b3..382900a 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -86,17 +86,17 @@ client-install : client
|
||||
$(INSTALL) -m $(CLIENTMODE) ${make_bindir}/nessus $(DESTDIR)${bindir}
|
||||
|
||||
client :
|
||||
- cd nessus && $(MAKE)
|
||||
+ $(MAKE) -C nessus
|
||||
|
||||
-server :
|
||||
- cd nessusd && $(MAKE)
|
||||
+server : client
|
||||
+ $(MAKE) -C nessusd
|
||||
|
||||
sslstuff :
|
||||
- cd ssl && $(MAKE)
|
||||
+ $(MAKE) -C ssl
|
||||
|
||||
|
||||
fetchtool:
|
||||
- cd nessus-fetch && $(MAKE)
|
||||
+ $(MAKE) -C nessus-fetch
|
||||
|
||||
|
||||
doc : $(MAN_NESSUS_1) $(MAN_NESSUSD_8)
|
||||
diff --git a/nessus-fetch/Makefile b/nessus-fetch/Makefile
|
||||
index 63439bc..89fd8c9 100644
|
||||
--- a/nessus-fetch/Makefile
|
||||
+++ b/nessus-fetch/Makefile
|
||||
@@ -5,7 +5,7 @@ include ../nessus.tmpl
|
||||
all: nessus-fetch
|
||||
|
||||
nessus-fetch: nessus-fetch.o
|
||||
- $(CC) nessus-fetch.o -o nessus-fetch $(LIBS)
|
||||
+ $(CC) $(LDFLAGS) nessus-fetch.o -o nessus-fetch $(LIBS)
|
||||
|
||||
nessus-fetch.o: nessus-fetch.c
|
||||
$(CC) $(NESSUS_CFLAGS) ${include} $(DEFS) $(NESSUS_DEFS) -c nessus-fetch.c
|
||||
diff --git a/ssl/Makefile b/ssl/Makefile
|
||||
index 738a692..5e51426 100644
|
||||
--- a/ssl/Makefile
|
||||
+++ b/ssl/Makefile
|
||||
@@ -6,7 +6,7 @@ OBJS = nessus-mkrand.o
|
||||
all : nessus-mkrand
|
||||
|
||||
nessus-mkrand: $(OBJS)
|
||||
- $(CC) $(OBJS) -o nessus-mkrand -lm
|
||||
+ $(CC) $(LDFLAGS) $(OBJS) -o nessus-mkrand -lm
|
||||
|
||||
nessus-mkrand.o: nessus-mkrand.c
|
||||
$(CC) $(CFLAGS) -c nessus-mkrand.c
|
||||
@@ -1,11 +0,0 @@
|
||||
--- nessus-core/nessusd/detached.c.orig
|
||||
+++ nessus-core/nessusd/detached.c
|
||||
@@ -408,7 +408,7 @@
|
||||
char * target;
|
||||
{
|
||||
char * fname = detached_fname(globals);
|
||||
- int f = open(fname, O_CREAT|O_WRONLY|O_TRUNC);
|
||||
+ int f = open(fname, O_CREAT|O_WRONLY|O_TRUNC, 0600);
|
||||
if(f >= 0)
|
||||
{
|
||||
write(f, target, strlen(target));
|
||||
@@ -1,25 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2004 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
depend() {
|
||||
need net
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting nessusd"
|
||||
start-stop-daemon --start --quiet --exec /usr/sbin/nessusd -- -D
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stop nessusd"
|
||||
start-stop-daemon --stop --quiet --exec /usr/sbin/nessusd
|
||||
einfo "Waiting for the environment to be sane"
|
||||
while [ -n "$RUNNING" ] ; do
|
||||
sleep 1
|
||||
RUNNING=$(ps aux | grep -m 1 nessusd: | grep -v grep)
|
||||
done
|
||||
sleep 3
|
||||
eend $?
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>netmon@gentoo.org</email>
|
||||
<name>Gentoo network monitoring and analysis project</name>
|
||||
</maintainer>
|
||||
<longdescription>A remote security scanner for Linux (nessus-core)</longdescription>
|
||||
</pkgmetadata>
|
||||
@@ -1,65 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit toolchain-funcs eutils autotools
|
||||
|
||||
DESCRIPTION="A remote security scanner for Linux (nessus-core)"
|
||||
HOMEPAGE="http://www.nessus.org/"
|
||||
SRC_URI="ftp://ftp.nessus.org/pub/nessus/nessus-${PV}/src/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
|
||||
IUSE="debug gtk prelude tcpd"
|
||||
|
||||
RDEPEND="
|
||||
~net-analyzer/nessus-libraries-${PV}
|
||||
~net-analyzer/libnasl-${PV}
|
||||
tcpd? ( sys-apps/tcp-wrappers )
|
||||
gtk? ( x11-libs/gtk+:2 )
|
||||
prelude? ( dev-libs/libprelude )
|
||||
!net-analyzer/nessus-client"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
S="${WORKDIR}"/${PN}
|
||||
|
||||
DOCS="README* UPGRADE_README CHANGES doc/*.txt doc/ntp/*"
|
||||
|
||||
src_prepare() {
|
||||
tc-export CC
|
||||
epatch \
|
||||
"${FILESDIR}"/${PV}-gentoo.patch \
|
||||
"${FILESDIR}"/${PV}-crash.patch \
|
||||
"${FILESDIR}"/${P}-open.patch
|
||||
|
||||
sed -i -e "/^LDFLAGS/s:$:${LDFLAGS}:g" nessus.tmpl.in || die
|
||||
sed -i -e 's:CFLAGS="-g"; ::' configure.in || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable tcpd tcpwrappers) \
|
||||
$(use_enable debug) \
|
||||
$(use_enable gtk)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake -C nessus cflags
|
||||
emake -C nessusd cflags
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
newinitd "${FILESDIR}"/nessusd-r7 nessusd
|
||||
keepdir /var/lib/nessus/logs
|
||||
keepdir /var/lib/nessus/users
|
||||
# newer version is provided by nessus-libraries
|
||||
# should be fixed upstream in version 2.2.6
|
||||
rm "${ED}"/usr/include/nessus/includes.h
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
DIST nessus-libraries-2.2.9.tar.gz 426560 BLAKE2B 0ad26fa0cccbe9229b0f02d9a2d4000895fd04a3f37cbccf9562e7dc852364b5ba71c4f3ab70dae69c6326ef243879ebb771679cc6c7fccf5e500824df32de1f SHA512 4a87ad07cde5ca82d673efbe2b2d951231880533bc30be4b265ea1f81fba39ae90ef150293486e8bba227a1c174e89cde6e8f95b60f2250f7c2c9ae910d52cff
|
||||
@@ -1,61 +0,0 @@
|
||||
Makefile | 4 ++--
|
||||
libhosts_gatherer/Makefile | 2 +-
|
||||
libnessus/Makefile | 4 ++--
|
||||
libnessus/kb.c | 1 +
|
||||
4 files changed, 6 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 938d1b2..672d8cf 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -3,8 +3,8 @@ include nessus.tmpl
|
||||
ALLDEPS = nessus.tmpl nessus-config
|
||||
|
||||
all: $(ALLDEPS) $(PCAP_MAKE)
|
||||
- cd libnessus && ${MAKE}
|
||||
- cd libhosts_gatherer && ${MAKE}
|
||||
+ ${MAKE} -C libnessus
|
||||
+ ${MAKE} -C libhosts_gatherer
|
||||
|
||||
nessus-config: nessus-config.pre Makefile nessus.tmpl
|
||||
@echo Creating $@ ...
|
||||
diff --git a/libhosts_gatherer/Makefile b/libhosts_gatherer/Makefile
|
||||
index e2a647c..7d628d8 100644
|
||||
--- a/libhosts_gatherer/Makefile
|
||||
+++ b/libhosts_gatherer/Makefile
|
||||
@@ -22,7 +22,7 @@ install : libhosts_gatherer.la
|
||||
$(LIBTOOL) --finish $(DESTDIR)${libdir}
|
||||
|
||||
libhosts_gatherer.la : $(OBJS)
|
||||
- $(LIBTOOL) $(CC) -o libhosts_gatherer.la $(LO_OBJS) -rpath ${libdir} \
|
||||
+ $(LIBTOOL) $(CC) $(LDFLAGS) -o libhosts_gatherer.la $(LO_OBJS) -rpath ${libdir} \
|
||||
-version-info ${PACKAGE_VERSION}
|
||||
|
||||
hg_utils.o : hg_utils.h hosts_gatherer.h hg_utils.c
|
||||
diff --git a/libnessus/Makefile b/libnessus/Makefile
|
||||
index c5a96db..211f57a 100644
|
||||
--- a/libnessus/Makefile
|
||||
+++ b/libnessus/Makefile
|
||||
@@ -100,8 +100,8 @@ kb.o: kb.c
|
||||
snprintf.o : snprintf.c
|
||||
$(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c snprintf.c
|
||||
libnessus.la: $(OBJS)
|
||||
- $(LIBTOOL) $(CC) -o libnessus.la $(LO_OBJS) -rpath ${libdir} \
|
||||
- -version-info ${PACKAGE_VERSION}
|
||||
+ $(LIBTOOL) $(CC) $(LDFLAGS) -o libnessus.la $(LO_OBJS) -rpath ${libdir} \
|
||||
+ -version-info ${PACKAGE_VERSION} `pcap-config --libs` `pkg-config --libs openssl`
|
||||
|
||||
install : libnessus.la
|
||||
test -d $(DESTDIR)${libdir} || $(INSTALL_DIR) -m 755 $(DESTDIR)${libdir}
|
||||
diff --git a/libnessus/kb.c b/libnessus/kb.c
|
||||
index 921c1a1..cbfd840 100644
|
||||
--- a/libnessus/kb.c
|
||||
+++ b/libnessus/kb.c
|
||||
@@ -20,6 +20,7 @@
|
||||
*/
|
||||
|
||||
#include <includes.h>
|
||||
+#include <fnmatch.h>
|
||||
#define HASH_MAX 65537
|
||||
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>netmon@gentoo.org</email>
|
||||
<name>Gentoo network monitoring and analysis project</name>
|
||||
</maintainer>
|
||||
<longdescription>A remote security scanner for Linux (nessus-libraries)</longdescription>
|
||||
</pkgmetadata>
|
||||
@@ -1,48 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils multilib toolchain-funcs
|
||||
|
||||
DESCRIPTION="A remote security scanner for Linux (nessus-libraries)"
|
||||
HOMEPAGE="http://www.nessus.org/"
|
||||
SRC_URI="ftp://ftp.nessus.org/pub/nessus/nessus-${PV}/src/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux"
|
||||
IUSE="crypt debug libressl static-libs"
|
||||
|
||||
# Hard dep on SSL since libnasl won't compile when this package is emerged -ssl.
|
||||
DEPEND="
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
net-libs/libpcap"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}"/${PN}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-linking.patch
|
||||
|
||||
sed -i -e "s:^\(LDFLAGS=\):\1 ${LDFLAGS}:g" nessus.tmpl.in || die
|
||||
sed -i -e '/sbindir/d' Makefile || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
tc-export CC
|
||||
econf \
|
||||
$(use_enable crypt cypher) \
|
||||
$(use_enable debug) \
|
||||
$(use_enable debug debug-ssl) \
|
||||
$(use_enable static-libs static) \
|
||||
--enable-shared \
|
||||
--with-ssl="${EPREFIX}/usr/$(get_libdir)" \
|
||||
--disable-nessuspcap
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
use static-libs || find "${ED}" -name '*.la' -delete
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
DIST nessus-plugins-GPL-2.2.9.tar.gz 1064740 BLAKE2B 347559036c5054f0b6a890b41f9fba27cb44be5a4885e5d6e3594241006b9723037297d9af82c78844305bc8b46573e81d7bc6bed137ee1044cff47cb877cb37 SHA512 b76a77be29409bca00fb014ae8e35878283e5d8adccef570da08b65df760f46438ef0392c4435366831b4bc456715f7af9c0ad5e20dd5554f1e4b8c9e8791b04
|
||||
@@ -1,58 +0,0 @@
|
||||
plugins/find_service/Makefile | 2 +-
|
||||
plugins/nessus_tcp_scanner/Makefile | 2 +-
|
||||
plugins/ssl_ciphers/Makefile | 2 +-
|
||||
plugins/synscan/Makefile | 2 +-
|
||||
4 files changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/plugins/find_service/Makefile b/plugins/find_service/Makefile
|
||||
index f4fd8e3..12e62a3 100644
|
||||
--- a/plugins/find_service/Makefile
|
||||
+++ b/plugins/find_service/Makefile
|
||||
@@ -5,7 +5,7 @@ PLUGNAME=find_service
|
||||
all : $(PLUGNAME).nes
|
||||
$(PLUGNAME).nes : $(PLUGNAME).c
|
||||
$(LIBTOOL) $(CC) $(DEFS) $(include) -c $(PLUGNAME).c
|
||||
- $(LIBTOOL) $(CC) $(DEFS) -o lib$(PLUGNAME).la $(PLUGNAME).lo $(LIBS) \
|
||||
+ $(LIBTOOL) $(CC) $(LDFLAGS) $(DEFS) -o lib$(PLUGNAME).la $(PLUGNAME).lo $(LIBS) \
|
||||
-rpath $(rootdir)/bin/plugins
|
||||
../install_plug $(PLUGNAME) $(rootdir)
|
||||
clean :
|
||||
diff --git a/plugins/nessus_tcp_scanner/Makefile b/plugins/nessus_tcp_scanner/Makefile
|
||||
index 8cf6c6d..7a27495 100644
|
||||
--- a/plugins/nessus_tcp_scanner/Makefile
|
||||
+++ b/plugins/nessus_tcp_scanner/Makefile
|
||||
@@ -8,7 +8,7 @@ PLUGNAME=nessus_tcp_scanner
|
||||
all : $(PLUGNAME).nes
|
||||
$(PLUGNAME).nes : $(PLUGNAME).c
|
||||
$(LIBTOOL) $(CC) $(DEFS) $(include) -c $(PLUGNAME).c
|
||||
- $(LIBTOOL) $(CC) $(DEFS) -o lib$(PLUGNAME).la $(PLUGNAME).lo $(LIBS) -lm $(LIBUTIL) \
|
||||
+ $(LIBTOOL) $(CC) $(LDFLAGS) $(DEFS) -o lib$(PLUGNAME).la $(PLUGNAME).lo $(LIBS) -lm $(LIBUTIL) \
|
||||
-rpath $(rootdir)/bin/plugins
|
||||
../install_plug $(PLUGNAME) $(rootdir)
|
||||
clean :
|
||||
diff --git a/plugins/ssl_ciphers/Makefile b/plugins/ssl_ciphers/Makefile
|
||||
index dc10e64..1747745 100644
|
||||
--- a/plugins/ssl_ciphers/Makefile
|
||||
+++ b/plugins/ssl_ciphers/Makefile
|
||||
@@ -5,7 +5,7 @@ PLUGNAME=ssl_ciphers
|
||||
all : $(PLUGNAME).nes
|
||||
$(PLUGNAME).nes : $(PLUGNAME).c
|
||||
$(LIBTOOL) $(CC) $(DEFS) $(include) -c $(PLUGNAME).c
|
||||
- $(LIBTOOL) $(CC) -o lib$(PLUGNAME).la $(PLUGNAME).lo $(LIBS) \
|
||||
+ $(LIBTOOL) $(CC) $(LDFLAGS) -o lib$(PLUGNAME).la $(PLUGNAME).lo $(LIBS) \
|
||||
-rpath $(rootdir)/bin/plugins
|
||||
../install_plug $(PLUGNAME) $(rootdir)
|
||||
clean :
|
||||
diff --git a/plugins/synscan/Makefile b/plugins/synscan/Makefile
|
||||
index 16aefa1..c434b92 100644
|
||||
--- a/plugins/synscan/Makefile
|
||||
+++ b/plugins/synscan/Makefile
|
||||
@@ -5,7 +5,7 @@ PLUGNAME=synscan
|
||||
all : $(PLUGNAME).nes
|
||||
$(PLUGNAME).nes : $(PLUGNAME).c
|
||||
$(LIBTOOL) $(CC) $(DEFS) $(include) -c $(PLUGNAME).c
|
||||
- $(LIBTOOL) $(CC) $(DEFS) -o lib$(PLUGNAME).la $(PLUGNAME).lo $(LIBS) \
|
||||
+ $(LIBTOOL) $(CC) $(DEFS) $(LDFLAGS) -o lib$(PLUGNAME).la $(PLUGNAME).lo $(LIBS) \
|
||||
-rpath $(rootdir)/bin/plugins
|
||||
../install_plug $(PLUGNAME) $(rootdir)
|
||||
clean :
|
||||
@@ -1,9 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>netmon@gentoo.org</email>
|
||||
<name>Gentoo network monitoring and analysis project</name>
|
||||
</maintainer>
|
||||
<longdescription>A remote security scanner for Linux (nessus-plugins)</longdescription>
|
||||
</pkgmetadata>
|
||||
@@ -1,35 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="A remote security scanner for Linux (nessus-plugins)"
|
||||
HOMEPAGE="http://www.nessus.org/"
|
||||
SRC_URI="ftp://ftp.nessus.org/pub/nessus/nessus-${PV}/src/nessus-plugins-GPL-${PV}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
|
||||
IUSE="libressl"
|
||||
|
||||
RDEPEND="
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
~net-analyzer/nessus-core-${PV}
|
||||
~net-analyzer/nessus-libraries-${PV}
|
||||
net-libs/libpcap"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S="${WORKDIR}"/${PN}
|
||||
|
||||
src_prepare() {
|
||||
tc-export CC
|
||||
epatch "${FILESDIR}"/${PV}-gentoo.patch
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
dodoc docs/*.txt
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>netmon@gentoo.org</email>
|
||||
<name>Gentoo network monitoring and analysis project</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
@@ -1,36 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=0
|
||||
|
||||
DESCRIPTION="A remote security scanner"
|
||||
HOMEPAGE="http://www.nessus.org/"
|
||||
SRC_URI=""
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="
|
||||
~net-analyzer/nessus-libraries-${PV}
|
||||
~net-analyzer/libnasl-${PV}
|
||||
~net-analyzer/nessus-core-${PV}
|
||||
~net-analyzer/nessus-plugins-${PV}"
|
||||
|
||||
pkg_postinst() {
|
||||
elog "The following article may be useful to get started:"
|
||||
elog "http://www.securityfocus.com/infocus/1741"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
elog "Note: this is a META ebuild for ${P}."
|
||||
elog "to remove it completely or before re-emerging"
|
||||
elog "either use 'depclean', or remove/re-emerge these packages:"
|
||||
elog
|
||||
for dep in ${RDEPEND}; do
|
||||
elog " ${dep}"
|
||||
done
|
||||
echo
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
DIST prelude-correlation-20021107.tar.bz2 7613 BLAKE2B d943bf569af306647a527b40e455813bb13da09c1c2b46006a42c76d05facddd7073e995fda59246d1773f36598acda272cd6c11fe0ee05ac1e0c5f8282c46f5 SHA512 2dcc1d038d9385bef8082476fccce768a47f04eac7c687d684739cd837b9e02f4514bb6296ad98ecc17d0208ec7c39d7401de5abd212ef403b349a76faa0ee79
|
||||
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
</pkgmetadata>
|
||||
@@ -1,25 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=4
|
||||
|
||||
DESCRIPTION="Nessus Correlation support for Prelude-IDS"
|
||||
HOMEPAGE="http://www.rstack.org/oudot/prelude/correlation/"
|
||||
|
||||
MY_P="${P/nessus/correlation}"
|
||||
|
||||
SRC_URI="mirror://gentoo/${MY_P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-lang/perl"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_install() {
|
||||
dobin *.pl
|
||||
dodoc CORRELATION_README EXAMPLES NEWS vuln.conf_example
|
||||
}
|
||||
Reference in New Issue
Block a user