diff options
author | Patrick Kursawe <phosphan@gentoo.org> | 2003-07-17 08:39:09 +0000 |
---|---|---|
committer | Patrick Kursawe <phosphan@gentoo.org> | 2003-07-17 08:39:09 +0000 |
commit | 0fa36069d807c8b87d7cbd1dc5f25e2bfa55d109 (patch) | |
tree | 5748ade25251bac66702efdc54b108ac90a9516f /net-analyzer/nessus-core | |
parent | Fixing bug 23106 (diff) | |
download | gentoo-2-0fa36069d807c8b87d7cbd1dc5f25e2bfa55d109.tar.gz gentoo-2-0fa36069d807c8b87d7cbd1dc5f25e2bfa55d109.tar.bz2 gentoo-2-0fa36069d807c8b87d7cbd1dc5f25e2bfa55d109.zip |
Fixing bug 23106
Diffstat (limited to 'net-analyzer/nessus-core')
-rw-r--r-- | net-analyzer/nessus-core/ChangeLog | 8 | ||||
-rw-r--r-- | net-analyzer/nessus-core/Manifest | 6 | ||||
-rw-r--r-- | net-analyzer/nessus-core/files/digest-nessus-core-2.0.6a-r1 | 1 | ||||
-rw-r--r-- | net-analyzer/nessus-core/files/nessus-core-2.0.6a.patch | 26 | ||||
-rw-r--r-- | net-analyzer/nessus-core/nessus-core-2.0.6a-r1.ebuild | 60 | ||||
-rw-r--r-- | net-analyzer/nessus-core/nessus-core-2.0.7.ebuild | 4 |
6 files changed, 99 insertions, 6 deletions
diff --git a/net-analyzer/nessus-core/ChangeLog b/net-analyzer/nessus-core/ChangeLog index b6a3d74feee6..44ab1dd08d69 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.19 2003/07/17 07:27:39 phosphan Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nessus-core/ChangeLog,v 1.20 2003/07/17 08:38:57 phosphan Exp $ + +*nessus-core-2.0.6a-r1 (17 Jul 2003) + + 17 Jul 2003; Patrick Kursawe <phosphan@gentoo.org> + nessus-core-2.0.6a-r1.ebuild: + Fixing bug 23106 17 Jul 2003; Patrick Kursawe <phosphan@gentoo.org> nessus-core-2.0.6a.ebuild: diff --git a/net-analyzer/nessus-core/Manifest b/net-analyzer/nessus-core/Manifest index 9f9588fc0df8..5e56b5f96f6d 100644 --- a/net-analyzer/nessus-core/Manifest +++ b/net-analyzer/nessus-core/Manifest @@ -1,9 +1,9 @@ MD5 d4ffd29ba4f952b6ebc273239a4a2a9c nessus-core-1.2.4.ebuild 1208 MD5 405afa21062d08a621c79e24d25d6c31 nessus-core-2.0.6a.ebuild 1539 -MD5 3770ed190147a31a04a08dc7cdce1f08 nessus-core-2.0.6a-r1.ebuild 1635 -MD5 5dca678223ea7b5a8e6b785781dbea2c nessus-core-2.0.7.ebuild 1637 +MD5 ce1d8a9fddaff7bc1f2fb0a6bea7ef3f nessus-core-2.0.6a-r1.ebuild 1638 +MD5 8cd4f8c51010064dcc0695a9045998d6 nessus-core-2.0.7.ebuild 1637 MD5 b90730330ea5a06dcab28e773d54427c nessus-core-1.2.7.ebuild 1590 -MD5 62ca3633ea9aa8a8227303df6f291cfc ChangeLog 3412 +MD5 2dca7791d9fa41a337422453580a08c1 ChangeLog 3412 MD5 a17f0ead0d1e0ed14ff912d34d5b0ac2 files/digest-nessus-core-2.0.6a 70 MD5 50b68c31acb7ca53c3aeea87032b6d75 files/digest-nessus-core-1.2.4 69 MD5 7568bf966454140c018488a66d91a2c8 files/digest-nessus-core-1.2.7 69 diff --git a/net-analyzer/nessus-core/files/digest-nessus-core-2.0.6a-r1 b/net-analyzer/nessus-core/files/digest-nessus-core-2.0.6a-r1 new file mode 100644 index 000000000000..22e441a7907c --- /dev/null +++ b/net-analyzer/nessus-core/files/digest-nessus-core-2.0.6a-r1 @@ -0,0 +1 @@ +MD5 2dd997d65d1785526fe9d87393ce0417 nessus-core-2.0.6a.tar.gz 648798 diff --git a/net-analyzer/nessus-core/files/nessus-core-2.0.6a.patch b/net-analyzer/nessus-core/files/nessus-core-2.0.6a.patch new file mode 100644 index 000000000000..00c6223632cb --- /dev/null +++ b/net-analyzer/nessus-core/files/nessus-core-2.0.6a.patch @@ -0,0 +1,26 @@ +--- nessus-core/nessus/auth.c 2003-01-27 12:34:22.000000000 +0100 ++++ ../../../nessus-core-2.0.7/work/nessus-core/nessus/auth.c 2003-06-03 15:14:54.000000000 +0200 +@@ -88,19 +88,19 @@ + void network_printf(char * data, ...) + { + va_list param; +- int r, s; +- char * buffer = emalloc(8192); ++ int r, s = 16384; ++ char * buffer = emalloc(s); + int len, n = 0; + signal(SIGPIPE, sighand_pipe); + va_start(param, data); + +- s = 8192; ++ + for(;;) + { + r = vsnprintf(buffer, s, data, param); + if(r >= 0 && r < s)break; + s = r > s ? r + 1 : s * 2; +- buffer = realloc(buffer, s); ++ buffer = erealloc(buffer, s); + } + len = strlen(buffer); + while(n < len) diff --git a/net-analyzer/nessus-core/nessus-core-2.0.6a-r1.ebuild b/net-analyzer/nessus-core/nessus-core-2.0.6a-r1.ebuild new file mode 100644 index 000000000000..293863314e7f --- /dev/null +++ b/net-analyzer/nessus-core/nessus-core-2.0.6a-r1.ebuild @@ -0,0 +1,60 @@ +# 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.6a-r1.ebuild,v 1.1 2003/07/17 08:38:57 phosphan Exp $ + +IUSE="tcpd X gtk gtk2" +S=${WORKDIR}/${PN} +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" +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* )" +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="x86 ppc -sparc alpha" + +src_unpack() { + unpack ${A} + patch -p0 < ${FILESDIR}/${PN}-${PV}.patch || die "patch failed" +} + +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 [ ! -z $DEBUGBUILD ]; then + myconf="${myconf} --enable-debug" + else + myconf="${myconf} --disable-debug" + 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 +} diff --git a/net-analyzer/nessus-core/nessus-core-2.0.7.ebuild b/net-analyzer/nessus-core/nessus-core-2.0.7.ebuild index 109fdb176c0e..586fe4e14cf9 100644 --- a/net-analyzer/nessus-core/nessus-core-2.0.7.ebuild +++ b/net-analyzer/nessus-core/nessus-core-2.0.7.ebuild @@ -1,6 +1,6 @@ # 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.ebuild,v 1.1 2003/07/10 13:36:19 phosphan Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nessus-core/nessus-core-2.0.7.ebuild,v 1.2 2003/07/17 08:38:57 phosphan Exp $ IUSE="tcpd X gtk gtk2" S=${WORKDIR}/${PN} @@ -31,7 +31,7 @@ src_compile() { else myconf="${myconf} --disable-gtk" fi - myconf="${myconf} `use_enable tcpd tcpwrappers`" + myconf="${myconf} `use_enable tcpd tcpwrappers`" if [ ! -z $DEBUGBUILD ]; then myconf="${myconf} --enable-debug" else |