summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Kursawe <phosphan@gentoo.org>2003-08-26 14:26:40 +0000
committerPatrick Kursawe <phosphan@gentoo.org>2003-08-26 14:26:40 +0000
commitfc854044f1e39157553dddfc86228b0dc34ec503 (patch)
tree08cdc478313263a268b6f68b604c6eb48d206978 /net-analyzer
parentIncluding patch for prelude (diff)
downloadgentoo-2-fc854044f1e39157553dddfc86228b0dc34ec503.tar.gz
gentoo-2-fc854044f1e39157553dddfc86228b0dc34ec503.tar.bz2
gentoo-2-fc854044f1e39157553dddfc86228b0dc34ec503.zip
Including patch for prelude
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/nessus-core/ChangeLog8
-rw-r--r--net-analyzer/nessus-core/Manifest5
-rw-r--r--net-analyzer/nessus-core/files/digest-nessus-core-2.0.7-r12
-rw-r--r--net-analyzer/nessus-core/files/patch_1.nessus-core.2.0.721
-rw-r--r--net-analyzer/nessus-core/nessus-core-2.0.7-r1.ebuild75
5 files changed, 107 insertions, 4 deletions
diff --git a/net-analyzer/nessus-core/ChangeLog b/net-analyzer/nessus-core/ChangeLog
index 44ab1dd08d69..b5a32aa4117a 100644
--- a/net-analyzer/nessus-core/ChangeLog
+++ b/net-analyzer/nessus-core/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-analyzer/nessus-core
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nessus-core/ChangeLog,v 1.20 2003/07/17 08:38:57 phosphan Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nessus-core/ChangeLog,v 1.21 2003/08/26 14:26:31 phosphan Exp $
+
+*nessus-core-2.0.7-r1 (26 Aug 2003)
+
+ 26 Aug 2003; Patrick Kursawe <phosphan@gentoo.org>
+ nessus-core-2.0.7-r1.ebuild, files/patch_1.nessus-core.2.0.7:
+ Included prelude patch from bug 19673 with minor changes.
*nessus-core-2.0.6a-r1 (17 Jul 2003)
diff --git a/net-analyzer/nessus-core/Manifest b/net-analyzer/nessus-core/Manifest
index a9133fc5bf3a..717c96549da2 100644
--- a/net-analyzer/nessus-core/Manifest
+++ b/net-analyzer/nessus-core/Manifest
@@ -1,8 +1,7 @@
-MD5 fe7cb396dd04f288b9e6e53bd6196c6e nessus-core-2.0.7.ebuild.orig 1697
MD5 409ac84bd5941401688b12b11fc9c24a nessus-core-2.0.6a-r1.ebuild 1613
MD5 c543c8098fe41be92e923af6588ddf0d nessus-core-2.0.7.ebuild 1611
-MD5 1073b23f85078be73bdfd586f3d82508 nessus-core-2.0.7-r1.ebuild 2033
-MD5 2dca7791d9fa41a337422453580a08c1 ChangeLog 3412
+MD5 bcc3be83d20e3c33a6d108348964ff83 nessus-core-2.0.7-r1.ebuild 2024
+MD5 6205d766de208340c847a5a89b0d71c1 ChangeLog 3627
MD5 23192ff5f68a5dcd5ac8483ee86a03eb files/digest-nessus-core-2.0.7-r1 138
MD5 9679a5b09be067d39a0c15b4354fa1ab files/digest-nessus-core-2.0.7 69
MD5 6313ca96c5003e927303b24c8df0ab64 files/nessus-core-2.0.6a.patch 675
diff --git a/net-analyzer/nessus-core/files/digest-nessus-core-2.0.7-r1 b/net-analyzer/nessus-core/files/digest-nessus-core-2.0.7-r1
new file mode 100644
index 000000000000..287872be3eb0
--- /dev/null
+++ b/net-analyzer/nessus-core/files/digest-nessus-core-2.0.7-r1
@@ -0,0 +1,2 @@
+MD5 d9e214bbdd93f5ce1376897d96e7b859 nessus-core-2.0.7.tar.gz 649225
+MD5 67cebc91a36613efe6524cea3631290e patch_0.nessus-core.2.0.7 54443
diff --git a/net-analyzer/nessus-core/files/patch_1.nessus-core.2.0.7 b/net-analyzer/nessus-core/files/patch_1.nessus-core.2.0.7
new file mode 100644
index 000000000000..bf8d33ed15a6
--- /dev/null
+++ b/net-analyzer/nessus-core/files/patch_1.nessus-core.2.0.7
@@ -0,0 +1,21 @@
+--- nessus-core/nessus/prelude_output_orig.c 2003-07-21 09:16:58.000000000 +0800
++++ nessus-core/nessus/prelude_output.c 2003-07-23 00:07:29.000000000 +0800
+@@ -612,7 +612,8 @@
+ class->origin = cve;
+ idmef_string_set(&class->name, ref_cve);
+
+- len += strlen(ref_cve) + 1;
++ /* len += strlen(ref_cve) + 1; */
++ len = strlen(ref_cve) + strlen(CVE_URL) + 1;
+ cve_url = malloc(len);
+ if ( ! cve_url ) {
+ if ( usage & OPT_KB_SRC )
+@@ -621,7 +622,7 @@
+ }
+
+ sprintf(cve_url, "%s%s", CVE_URL, ref_cve);
+- cve_url[len] = '\0';
++ cve_url[len-1] = '\0';
+
+ idmef_string_set(&class->url, cve_url);
+
diff --git a/net-analyzer/nessus-core/nessus-core-2.0.7-r1.ebuild b/net-analyzer/nessus-core/nessus-core-2.0.7-r1.ebuild
new file mode 100644
index 000000000000..b95f1adb2e4a
--- /dev/null
+++ b/net-analyzer/nessus-core/nessus-core-2.0.7-r1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nessus-core/nessus-core-2.0.7-r1.ebuild,v 1.1 2003/08/26 14:26:31 phosphan Exp $
+
+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
+ http://www.exaprobe.com/labs/downloads/Nessus_Patch/patch_0.nessus-core.2.0.7"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc -sparc ~alpha"
+IUSE="tcpd X gtk gtk2 debug prelude"
+
+DEPEND="=net-analyzer/libnasl-${PV}
+ tcpd? ( sys-apps/tcp-wrappers )
+ X? ( x11-base/xfree )
+ gtk? ( =x11-libs/gtk+-1.2* )
+ gtk2? ( =x11-libs/gtk+-2* )
+ prelude? ( dev-libs/libprelude )"
+
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+ unpack ${A}
+ epatch ${FILESDIR}/${PN}-${PV}.patch
+ use prelude && (
+ epatch ${DISTDIR}/patch_0.nessus-core.2.0.7
+ epatch ${FILESDIR}/patch_1.nessus-core.2.0.7
+ )
+}
+
+src_compile() {
+ local myconf
+ use X && myconf="--with-x" || myconf="--without-x"
+ if [ `use gtk` ]; then
+ myconf="${myconf} --enable-gtk"
+ elif [ `use gtk2` ]; then
+ myconf="${myconf} --enable-gtk"
+ else
+ myconf="${myconf} --disable-gtk"
+ fi
+ myconf="${myconf} `use_enable tcpd tcpwrappers`"
+ if [ `use debug` ]; then
+ myconf="${myconf} --enable-debug"
+ else
+ myconf="${myconf} --disable-debug"
+ fi
+ if [ `use prelude` ]; then
+ export LIBPRELUDE_CONFIG=/usr/bin/libprelude-config
+ fi
+ if [ `use prelude` ]; then
+ export LIBPRELUDE_CONFIG=/usr/bin/libprelude-config
+ fi
+ econf ${myconf} || die "configure failed"
+ emake || die "emake failed"
+
+}
+
+src_install() {
+ make \
+ prefix=${D}/usr \
+ sysconfdir=${D}/etc \
+ localstatedir=${D}/var/lib \
+ mandir=${D}/usr/share/man \
+ install || die "Install failed nessus-core"
+ cd ${S}
+ dodoc README* UPGRADE_README CHANGES
+ dodoc doc/*.txt doc/ntp/*
+ insinto /etc/init.d
+ insopts -m 755
+ newins ${FILESDIR}/nessusd-r6 nessusd
+ keepdir /var/lib/nessus/logs
+ keepdir /var/lib/nessus/users
+}