From ea6572f10cfeff67fa582c3bd6e3db2f1b1788cf Mon Sep 17 00:00:00 2001 From: grimmlin Date: Mon, 15 Nov 2010 11:10:56 +0000 Subject: [PATCH] nessus-bin: version bump to 4.4.0 --- net-analyzer/nessus-bin/Manifest | 3 + .../nessus-bin/nessus-bin-4.4.0.ebuild | 86 +++++++++++++++++++ 2 files changed, 89 insertions(+) create mode 100644 net-analyzer/nessus-bin/nessus-bin-4.4.0.ebuild diff --git a/net-analyzer/nessus-bin/Manifest b/net-analyzer/nessus-bin/Manifest index 4bc322cb7..d88685d12 100644 --- a/net-analyzer/nessus-bin/Manifest +++ b/net-analyzer/nessus-bin/Manifest @@ -2,4 +2,7 @@ AUX 90nessus-bin 25 RMD160 f1cc25bf803550981521bf78a0a01fe3d442ddf6 SHA1 94fc6e4 AUX nessusd-initd-42 698 RMD160 924cb2b804642b8f9ae38dc6fb4b0c40aa0aebc2 SHA1 3aef29b6406ac8489f5097812259b039b7c5ca5d SHA256 8e90afdcf5a62f017aeb3039b4c57bc1bd3ba5079e6fd101323a1bd9f5bcdcf4 DIST Nessus-4.2.2-es5.i386.rpm 5655925 RMD160 6f0a3f73f232679d3f1b45c251008f0f63fd5415 SHA1 9c7e1eebfdc2465bb18e65f8a39723ce95abe887 SHA256 8adc1589fcf3bd0d710c91f2161b2658ed2a7dbde8244860e9ff93caa94dbe1f DIST Nessus-4.2.2-es5.x86_64.rpm 6192064 RMD160 bc30273dd11bdbc4eb38222610c31cb6f4890eb3 SHA1 41f6aa0088690504963a3edb25a769731c9631c3 SHA256 8f696ce9e4de69edde86fd49ce371ca56e183d0eaa161a60b6223933e1a61b3d +DIST Nessus-4.4.0-es5.i386.rpm 12241399 RMD160 06c4c67ce7ca511017671471bc4bee3383e2e87b SHA1 bfa28837d78fa5da6b45742ba911d8302be40c3f SHA256 3c17a53cada97f68f7487c97a7c0e7e421c266d8d2dbab293aeaa2542e21ded0 +DIST Nessus-4.4.0-es5.x86_64.rpm 13478055 RMD160 05529890b323e29817a51ddf177eb857ca527304 SHA1 effc8002fcbf6a948b6b6868b141d55593484599 SHA256 10e5a3dc25ed5dfea46ddb59125f1fd22cc3c78c71e3ec7c0ec1c306c60de219 EBUILD nessus-bin-4.2.2-r1.ebuild 2518 RMD160 34532390f92a2983fab81ed07ebc77766fe82fcb SHA1 9b77cd19094dc00a4c4a801d9d7aa6565c143c66 SHA256 349f812a31dcb7ba2f854f5edede72f83754e41c3e6aec5340d1d4c605c046c8 +EBUILD nessus-bin-4.4.0.ebuild 2475 RMD160 1cc78e9e3930ccfad9ac734d9768e6f1f52fdef3 SHA1 113317c212829e1162f9afe7eb65e440dd628232 SHA256 383603026551e58f5186d57ff8f03498b5bc337a050f2ff01e58c471abc04f9d diff --git a/net-analyzer/nessus-bin/nessus-bin-4.4.0.ebuild b/net-analyzer/nessus-bin/nessus-bin-4.4.0.ebuild new file mode 100644 index 000000000..ee7e4d13e --- /dev/null +++ b/net-analyzer/nessus-bin/nessus-bin-4.4.0.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nessus-bin/nessus-bin-3.2.0.ebuild,v 1.3 2009/07/07 23:03:49 flameeyes Exp $ + +inherit rpm + +MY_P="Nessus-${PV}-es5" +# We are using the Red Hat/CentOS binary + +DESCRIPTION="A remote security scanner for Linux" +HOMEPAGE="http://www.nessus.org" +SRC_URI="x86? ( ${MY_P}.i386.rpm ) + amd64? ( ${MY_P}.x86_64.rpm )" +RESTRICT="mirror fetch strip" + +LICENSE="Nessus-EULA" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" + +DEPEND="=sys-libs/db-4.3* + >=dev-libs/openssl-0.9.8 + >=app-arch/rpm2targz-9.0-r7" + +pkg_nofetch() { + if use x86; then + elog "Please download ${MY_P}.i386.rpm from ${HOMEPAGE}/download" + elog "The archive should then be placed into ${DISTDIR}." + fi + + if use amd64; then + elog "Please download ${MY_P}.x86_64.rpm from ${HOMEPAGE}/download" + elog "The archive should then be placed into ${DISTDIR}." + fi +} + +pkg_setup() { + case ${CHOST} in + i586-pc-linux-gnu*) einfo "Found compatible architecture." ;; + i686-pc-linux-gnu*) einfo "Found compatible architecture." ;; + x86_64-pc-linux-gnu*) einfo "Found compatible architecture." ;; + *) die "No compatible architecture found." ;; + esac +} + +src_install() { + # copy files + cp -pPR "${WORKDIR}"/opt "${D}" + + # make sure these directories do not vanish + # nessus will not run properly without them + keepdir /opt/nessus/etc/nessus + keepdir /opt/nessus/var/nessus/jobs + keepdir /opt/nessus/var/nessus/logs + keepdir /opt/nessus/var/nessus/tmp + keepdir /opt/nessus/var/nessus/users + + # add /opt/nessus/lib to LD_PATH + # nessus will not run properly without it + doenvd "${FILESDIR}"/90nessus-bin + + # we have /bin/gzip, not /usr/bin/gzip + sed -i -e "s:/usr/bin/gzip:/bin/gzip:g" \ + "${D}"/opt/nessus/sbin/nessus-update-plugins + + # init script + newinitd "${FILESDIR}"/nessusd-initd-42 nessusd-bin + + # nessusd is linked against these + dosym libssl.so /usr/lib/libssl.so.6 + dosym libcrypto.so /usr/lib/libcrypto.so.6 +} + +pkg_postinst() { + elog "You can get started running the following commands:" + elog "/opt/nessus/sbin/nessus-adduser" + elog "/opt/nessus/sbin/nessus-mkcert" + elog "/etc/init.d/nessusd-bin start" + elog + elog "If you had a previous version of Nessus installed, use" + elog "the following command to update the plugin database:" + elog "/opt/nessus/sbin/nessusd -R" + elog + elog "For more information about nessus, please visit" + elog "${HOMEPAGE}/documentation/" +}