diff options
author | Achim Gottinger <achim@gentoo.org> | 2000-11-26 20:55:03 +0000 |
---|---|---|
committer | Achim Gottinger <achim@gentoo.org> | 2000-11-26 20:55:03 +0000 |
commit | 541f14235634ec9414e89e8089beca533ffca899 (patch) | |
tree | 86d726368da8d5082e4e7b43278d3a356de0605c /net-analyzer | |
parent | *** empty log message *** (diff) | |
download | gentoo-2-541f14235634ec9414e89e8089beca533ffca899.tar.gz gentoo-2-541f14235634ec9414e89e8089beca533ffca899.tar.bz2 gentoo-2-541f14235634ec9414e89e8089beca533ffca899.zip |
*** empty log message ***
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/nessus/files/digest-nessus-1.0.6 | 4 | ||||
-rw-r--r-- | net-analyzer/nessus/nessus-1.0.6.ebuild | 101 |
2 files changed, 105 insertions, 0 deletions
diff --git a/net-analyzer/nessus/files/digest-nessus-1.0.6 b/net-analyzer/nessus/files/digest-nessus-1.0.6 new file mode 100644 index 000000000000..3dcbddc0152e --- /dev/null +++ b/net-analyzer/nessus/files/digest-nessus-1.0.6 @@ -0,0 +1,4 @@ +MD5 a216154152049118d234172f18c4d3b5 nessus-libraries-1.0.6.tar.gz +MD5 d904ae36d5d7a8e22d538a5e48a7a23e nessus-core-1.0.6.tar.gz +MD5 97e8fafd4745813fb2eaed669560ff26 nessus-plugins-1.0.6.tar.gz +MD5 bf2663ff9704089dbf924bb167d4edc1 libnasl-1.0.6.tar.gz diff --git a/net-analyzer/nessus/nessus-1.0.6.ebuild b/net-analyzer/nessus/nessus-1.0.6.ebuild new file mode 100644 index 000000000000..9db713bd62a9 --- /dev/null +++ b/net-analyzer/nessus/nessus-1.0.6.ebuild @@ -0,0 +1,101 @@ +#Copyright 2000 Achim Gottinger +#Distributed under the GPL + +# 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=">=sys-apps/bash-2.04 + >=sys-libs/glibc-2.1.3 + >=dev-libs/glib-1.2.8 + >=x11-libs/gtk+-1.2.8 + >=x11-base/xfree-4.0.1" + +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 + try ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/state \ + --enable-pthread + try make + try make prefix=${D}/usr sysconfdir=${D}/etc localstatedir=${D}/var/state install + 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 + try ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/state + try make + try make prefix=${D}/usr sysconfdir=${D}/etc localstatedir=${D}/var/state install + 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 + try ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/state + try make + try make prefix=${D}/usr sysconfdir=${D}/etc localstatedir=${D}/var/state install + + + echo "Compiling plugins..." + cd ${S}/nessus-plugins + try ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/state + try make + try make prefix=${D}/usr sysconfdir=${D}/etc localstatedir=${D}/var/state install + +} + +src_install() { + cd ${S}/nessus-libraries + try make prefix=${D}/usr sysconfdir=${D}/etc localstatedir=${D}/var/state install + + cd ${S}/libnasl + try make prefix=${D}/usr sysconfdir=${D}/etc localstatedir=${D}/var/state install + + cd ${S}/nessus-core + try make prefix=${D}/usr sysconfdir=${D}/etc localstatedir=${D}/var/state install + cp ${ROOT}/config/nessusd.conf ${D}/etc/nessus/ + + cd ${S}/nessus-plugins + try make prefix=${D}/usr sysconfdir=${D}/etc localstatedir=${D}/var/state install + + 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 + prepman + + insinto /etc/rc.d/init.d + insopts -m 755 + doins ${FILESDIR}/nessusd +} + + + + |