diff options
author | Achim Gottinger <achim@gentoo.org> | 2000-08-08 16:06:07 +0000 |
---|---|---|
committer | Achim Gottinger <achim@gentoo.org> | 2000-08-08 16:06:07 +0000 |
commit | a04a706e61d9cbc9188b0fc2d9217a45b4b34b24 (patch) | |
tree | f74158447207ab89b2bfea29fb57195dbfa5ff5f /net-analyzer/nessus | |
parent | *** empty log message *** (diff) | |
download | gentoo-2-a04a706e61d9cbc9188b0fc2d9217a45b4b34b24.tar.gz gentoo-2-a04a706e61d9cbc9188b0fc2d9217a45b4b34b24.tar.bz2 gentoo-2-a04a706e61d9cbc9188b0fc2d9217a45b4b34b24.zip |
*** empty log message ***
Diffstat (limited to 'net-analyzer/nessus')
-rw-r--r-- | net-analyzer/nessus/files/digest | 5 | ||||
-rw-r--r-- | net-analyzer/nessus/nessus-1.0.4-r1.ebuild | 99 |
2 files changed, 104 insertions, 0 deletions
diff --git a/net-analyzer/nessus/files/digest b/net-analyzer/nessus/files/digest new file mode 100644 index 000000000000..80fa82965a3c --- /dev/null +++ b/net-analyzer/nessus/files/digest @@ -0,0 +1,5 @@ +MD5 1fe60e282532c6018ed402a275903c15 nessus-libraries-1.0.4.tar.gz +MD5 b6d66f613b3c45526195df9e0087dd63 nessus-core-1.0.4.tar.gz +MD5 dc6a2758761428f3bf66d0a06806d66a nessus-plugins-1.0.4.tar.gz +MD5 3a91b6d6a42b8b73124990a13bbd0da2 libnasl-1.0.4.tar.gz +MD5 a5588935d8d656de4ac3b95e8d3484ea libnasl-patch-1 diff --git a/net-analyzer/nessus/nessus-1.0.4-r1.ebuild b/net-analyzer/nessus/nessus-1.0.4-r1.ebuild new file mode 100644 index 000000000000..9b71874eedd7 --- /dev/null +++ b/net-analyzer/nessus/nessus-1.0.4-r1.ebuild @@ -0,0 +1,99 @@ +#Copyright 2000 Achim Gottinger +#Distributed under the GPL + +# It's better to split it in four different packages + +P=nessus-1.0.4 +A="nessus-libraries-1.0.4.tar.gz nessus-core-1.0.4.tar.gz + nessus-plugins-1.0.4.tar.gz libnasl-1.0.4.tar.gz libnasl-patch-1" +S=${WORKDIR} +CATEGORY="net-analyzer" +DESCRIPTION="Nessus" +SRC_URI="ftp://ftp.nessus.org/pub/nessus/nessus-1.0.4/src/nessus-libraries-1.0.4.tar.gz + ftp://ftp.nessus.org/pub/nessus/nessus-1.0.4/src/nessus-core-1.0.4.tar.gz + ftp://ftp.nessus.org/pub/nessus/nessus-1.0.4/src/nessus-plugins-1.0.4.tar.gz + ftp://ftp.nessus.org/pub/nessus/nessus-1.0.4/src/libnasl-1.0.4.tar.gz + ftp://ftp.nessus.org/pub/nessus/nessus-1.0.4/src/libnasl-patch-1" + +HOMEPAGE="http://www.nessus.org/" + +src_unpack () { + unpack nessus-libraries-1.0.4.tar.gz + unpack nessus-core-1.0.4.tar.gz + unpack nessus-plugins-1.0.4.tar.gz + unpack libnasl-1.0.4.tar.gz + cd ${S}/libnasl/nasl + patch -p0 < ${DISTDIR}/libnasl-patch-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 + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/state + make + 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 + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/state + make + 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 + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/state + make + make prefix=${D}/usr sysconfdir=${D}/etc localstatedir=${D}/var/state install + + + echo "Compiling plugins..." + cd ${S}/nessus-plugins + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/state + make + make prefix=${D}/usr sysconfdir=${D}/etc localstatedir=${D}/var/state install + +} + +src_install() { + cd ${S}/nessus-libraries + make prefix=${D}/usr sysconfdir=${D}/etc localstatedir=${D}/var/state install + + cd ${S}/libnasl + make prefix=${D}/usr sysconfdir=${D}/etc localstatedir=${D}/var/state install + + cd ${S}/nessus-core + make prefix=${D}/usr sysconfdir=${D}/etc localstatedir=${D}/var/state install + cp ${ROOT}/config/nessusd.conf ${D}/etc/nessus/ + + cd ${S}/nessus-plugins + 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 +} + + + |