diff options
author | Justin Lecher <jlec@gentoo.org> | 2011-04-20 12:21:01 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2011-04-20 12:21:01 +0000 |
commit | d887ae181e7c05ce0a1107d5294d3ac26e6e9445 (patch) | |
tree | aab3128ed863096064cad817d4f7ad676b71bbc8 /net-analyzer/nessus-bin/nessus-bin-4.4.1.ebuild | |
parent | Version bump, thanks to scarabeus for his help. (diff) | |
download | gentoo-2-d887ae181e7c05ce0a1107d5294d3ac26e6e9445.tar.gz gentoo-2-d887ae181e7c05ce0a1107d5294d3ac26e6e9445.tar.bz2 gentoo-2-d887ae181e7c05ce0a1107d5294d3ac26e6e9445.zip |
Version BUmp, #265555, #228007, #196035, #210006, #276982; CLeaned old, #276982
(Portage version: 2.2.0_alpha30/cvs/Linux x86_64)
Diffstat (limited to 'net-analyzer/nessus-bin/nessus-bin-4.4.1.ebuild')
-rw-r--r-- | net-analyzer/nessus-bin/nessus-bin-4.4.1.ebuild | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/net-analyzer/nessus-bin/nessus-bin-4.4.1.ebuild b/net-analyzer/nessus-bin/nessus-bin-4.4.1.ebuild new file mode 100644 index 000000000000..80c82cb9ad42 --- /dev/null +++ b/net-analyzer/nessus-bin/nessus-bin-4.4.1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nessus-bin/nessus-bin-4.4.1.ebuild,v 1.1 2011/04/20 12:21:00 jlec Exp $ + +inherit rpm + +MY_P="Nessus-${PV}-es6" +# 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}.i686.rpm ) + amd64? ( ${MY_P}.x86_64.rpm )" + +RESTRICT="mirror fetch strip" + +LICENSE="Nessus-EULA" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="X" + +pkg_nofetch() { + einfo "Please download ${A} from ${HOMEPAGE}/download" + einfo "The archive should then be placed into ${DISTDIR}." +} + +pkg_setup() { + case ${CHOST} in + 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() { + 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 PATH and MANPATH for convenience + doenvd "${FILESDIR}"/90nessus-bin + + # init script + newinitd "${FILESDIR}"/nessusd-initd nessusd-bin + dosym libssl.so /usr/$(get_libdir)/libssl.so.10 + dosym libcrypto.so /usr/$(get_libdir)/libcrypto.so.10 +} + +pkg_postinst() { + elog "You can get started running the following commands:" + elog "/opt/nessus/sbin/nessus-adduser" + elog "/opt/nessus/sbin/nessus-mkcert" + elog "/opt/nessus/bin/nessus-fetch --register <your registration code>" + 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/" +} |