summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchim Gottinger <achim@gentoo.org>2001-11-15 13:18:00 +0000
committerAchim Gottinger <achim@gentoo.org>2001-11-15 13:18:00 +0000
commit5a2e350ca1ce84c0d80df65b8e8f176268b56856 (patch)
tree9ea884bc92b45f684a206598bd4c147d72a04b51
parentA required patch for rc6 (diff)
downloadhistorical-5a2e350ca1ce84c0d80df65b8e8f176268b56856.tar.gz
historical-5a2e350ca1ce84c0d80df65b8e8f176268b56856.tar.bz2
historical-5a2e350ca1ce84c0d80df65b8e8f176268b56856.zip
Update which builds on rc6 with an new rc6 daemon script
-rw-r--r--net-analyzer/nessus/files/digest-nessus-1.0.94
-rw-r--r--net-analyzer/nessus/files/nessus-1.0.9-gentoo.diff60
-rw-r--r--net-analyzer/nessus/files/nessusd-r623
-rw-r--r--net-analyzer/nessus/nessus-1.0.9.ebuild176
4 files changed, 263 insertions, 0 deletions
diff --git a/net-analyzer/nessus/files/digest-nessus-1.0.9 b/net-analyzer/nessus/files/digest-nessus-1.0.9
new file mode 100644
index 000000000000..113e78aa5422
--- /dev/null
+++ b/net-analyzer/nessus/files/digest-nessus-1.0.9
@@ -0,0 +1,4 @@
+MD5 eb4d216e43ec5d30ea0062315db47284 libnasl-1.0.9.tar.gz 233472
+MD5 83af77f6879383a58009fa4cdebc7e74 nessus-core-1.0.9.tar.gz 552960
+MD5 9de5bad530f193afd75ff843578dfefc nessus-libraries-1.0.9.tar.gz 1794048
+MD5 86dc25b2ff26f1f1fe90a3577c09be37 nessus-plugins-1.0.9.tar.gz 507904
diff --git a/net-analyzer/nessus/files/nessus-1.0.9-gentoo.diff b/net-analyzer/nessus/files/nessus-1.0.9-gentoo.diff
new file mode 100644
index 000000000000..9b355ea7cdc8
--- /dev/null
+++ b/net-analyzer/nessus/files/nessus-1.0.9-gentoo.diff
@@ -0,0 +1,60 @@
+--- nessus-core/nessus/nessus.c~ Sun Apr 29 21:15:06 2001
++++ nessus-core/nessus/nessus.c Thu Nov 15 14:14:15 2001
+@@ -750,7 +750,7 @@
+ display_help("nessus");
+ exit (1);
+ }
+- if(optarg[0]=='=')inc_optind(); /* no optind++ on Win32 -- jordan */
++ if(optarg[0]=='=')optind++; /* no optind++ on Win32 -- jordan */
+ if(!strcmp(optarg, "text"))output_func = arglist_to_text;
+ else if(!strcmp(optarg, "html"))output_func = arglist_to_html;
+ else if(!strcmp(optarg, "html_graph"))output_func = arglist_to_html_graph;
+@@ -996,39 +996,39 @@
+
+ /* next arguments: SERVER PORT */
+ #ifdef USE_AF_INET
+- cli_args_server(cli, argv[inc_optind()]);
+- cli_args_port(cli, atoi(argv[inc_optind()]));
++ cli_args_server(cli, argv[optind++]);
++ cli_args_port(cli, atoi(argv[optind++]));
+ #else
+ cli_args_server(cli, "localhost");
+ cli_args_port(cli, 0);
+ #endif
+
+ /* next argument: LOGIN */
+- cli_args_login(cli, argv[inc_optind()]);
++ cli_args_login(cli, argv[optind++]);
+
+ /* next argument: PASSWORD */
+ #ifndef ENABLE_CRYPTO_LAYER
+- cli_args_password(cli, argv[inc_optind()]);
++ cli_args_password(cli, argv[optind++]);
+ #endif
+
+ #ifndef ENABLE_SAVE_TESTS
+ if(!opt_m)
+ {
+- cli_args_target(cli, argv[inc_optind()]);
+- cli_args_results(cli, argv[inc_optind()]);
++ cli_args_target(cli, argv[optind++]);
++ cli_args_results(cli, argv[optind++]);
+ }
+ #else
+ if(!opt_m)
+ {
+ if(restore_session)
+ {
+- cli_args_results(cli, argv[inc_optind()]);
++ cli_args_results(cli, argv[optind++]);
+ }
+ else
+ if(!list_sessions)
+ {
+- cli_args_target(cli, argv[inc_optind()]);
+- cli_args_results(cli, argv[inc_optind()]);
++ cli_args_target(cli, argv[optind++]);
++ cli_args_results(cli, argv[optind++]);
+ }
+ }
+
diff --git a/net-analyzer/nessus/files/nessusd-r6 b/net-analyzer/nessus/files/nessusd-r6
new file mode 100644
index 000000000000..b1956d1c0d92
--- /dev/null
+++ b/net-analyzer/nessus/files/nessusd-r6
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+
+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
+ eend $?
+}
+
+
+
diff --git a/net-analyzer/nessus/nessus-1.0.9.ebuild b/net-analyzer/nessus/nessus-1.0.9.ebuild
new file mode 100644
index 000000000000..4d34b36b82ad
--- /dev/null
+++ b/net-analyzer/nessus/nessus-1.0.9.ebuild
@@ -0,0 +1,176 @@
+#Copyright 2000 Achim Gottinger
+#Distributed under the GPL
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nessus/nessus-1.0.9.ebuild,v 1.1 2001/11/15 13:18:00 achim Exp $
+
+
+# It's better to split it in four different packages
+
+A="nessus-libraries-${PV}.tar.gz nessus-core-${PV}.tar.gz
+ nessus-plugins-${PV}.tar.gz libnasl-${PV}.tar.gz"
+S=${WORKDIR}
+DESCRIPTION="A remote security scanner for Linux"
+SRC_URI="ftp://ftp.nessus.org/pub/nessus/nessus-${PV}/src/nessus-libraries-${PV}.tar.gz
+ ftp://ftp.nessus.org/pub/nessus/nessus-${PV}/src/nessus-core-${PV}.tar.gz
+ ftp://ftp.nessus.org/pub/nessus/nessus-${PV}/src/nessus-plugins-${PV}.tar.gz
+ ftp://ftp.nessus.org/pub/nessus/nessus-${PV}/src/libnasl-${PV}.tar.gz"
+
+HOMEPAGE="http://www.nessus.org/"
+
+DEPEND="virtual/glibc virtual/x11 sys-devel/m4
+ >=dev-libs/gmp-3.1.1
+ >=sys-libs/zlib-1.1.3
+ >=x11-libs/gtk+-1.2.10-r4"
+RDEPEND="virtual/glibc virtual/x11
+ >=dev-libs/gmp-3.1.1
+ >=sys-libs/zlib-1.1.3
+ >=x11-libs/gtk+-1.2.10-r4"
+
+src_unpack() {
+ unpack ${A}
+ patch -p0 < ${FILESDIR}/${PF}-gentoo.diff
+}
+
+src_compile() {
+
+ export PATH=${D}/usr/bin:$PATH
+ export LD_LIBRARY_PATH=${D}/usr/lib:$LD_LIBRARY_PATH
+
+ echo "Compiling libraries..."
+ cd ${S}/nessus-libraries
+ ./configure \
+ --host=${CHOST} \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var/state \
+ --mandir=/usr/share/man \
+ --enable-pthread || die
+ make || die
+ make \
+ prefix=${D}/usr \
+ sysconfdir=${D}/etc \
+ localstatedir=${D}/var/state \
+ mandir=${D}/usr/share/man \
+ install || die
+
+ cd ${D}/usr/bin
+ cp nessus-config nessus-config.orig
+ sed -e "s:^PREFIX=:PREFIX=${D}:" \
+ -e "s:-I/usr:-I${D}/usr: " nessus-config.orig > nessus-config
+
+
+ echo "Compiling libnasl..."
+ cd ${S}/libnasl
+ ./configure \
+ --host=${CHOST} \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var/state \
+ --mandir=/usr/share/man || die
+ make || die
+ make \
+ prefix=${D}/usr \
+ sysconfdir=${D}/etc \
+ localstatedir=${D}/var/state \
+ mandir=${D}/usr/share/man \
+ install || die
+
+ cd ${D}/usr/bin
+ cp nasl-config nasl-config.orig
+ sed -e "s:^PREFIX=:PREFIX=${D}:" nasl-config.orig > nasl-config
+
+ echo "Compiling core..."
+ cd ${S}/nessus-core
+ ./configure \
+ --host=${CHOST} \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var/state \
+ --mandir=/usr/share/man || die
+ make || die
+ make \
+ prefix=${D}/usr \
+ sysconfdir=${D}/etc \
+ localstatedir=${D}/var/state \
+ mandir=${D}/usr/share/man \
+ install || die
+
+
+ echo "Compiling plugins..."
+ cd ${S}/nessus-plugins
+ ./configure \
+ --host=${CHOST} \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var/state \
+ --mandir=/usr/share/man
+ make || die
+ make \
+ prefix=${D}/usr \
+ sysconfdir=${D}/etc \
+ localstatedir=${D}/var/state \
+ mandir=${D}/usr/share/man \
+ install || die
+
+}
+
+src_install() {
+
+ cd ${S}/nessus-libraries
+ make \
+ prefix=${D}/usr \
+ sysconfdir=${D}/etc \
+ localstatedir=${D}/var/state \
+ mandir=${D}/usr/share/man \
+ install || die
+
+ cd ${S}/libnasl
+ make \
+ prefix=${D}/usr \
+ sysconfdir=${D}/etc \
+ localstatedir=${D}/var/state \
+ mandir=${D}/usr/share/man \
+ install || die
+
+ cd ${S}/nessus-core
+ make \
+ prefix=${D}/usr \
+ sysconfdir=${D}/etc \
+ localstatedir=${D}/var/state \
+ mandir=${D}/usr/share/man \
+ install || die
+
+ cp ${ROOT}/config/nessusd.conf ${D}/etc/nessus/
+
+ cd ${S}/nessus-plugins
+ make \
+ prefix=${D}/usr \
+ sysconfdir=${D}/etc \
+ localstatedir=${D}/var/state \
+ mandir=${D}/usr/share/man \
+ install || die
+
+ cd ${S}/nessus-libraries
+ docinto nessus-libraries
+ dodoc README*
+
+ cd ${S}/libnasl
+ docinto libnasl
+ dodoc COPYING TODO
+
+ cd ${S}/nessus-core
+ docinto nessus-core
+ dodoc README* UPGRADE_README CHANGES
+ dodoc doc/*.txt doc/ntp/*
+
+ cd ${S}/nessus-plugins
+ docinto nessus-plugins
+ dodoc docs/*.txt plugins/accounts/accounts.txt
+
+ insinto /etc/init.d
+ insopts -m 755
+ newins ${FILESDIR}/nessusd-r6 nessusd
+}
+
+
+
+