# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit rpm MY_P="Nessus-${PV}-suse9.3.i586" # We are using SuSE's binary DESCRIPTION="A remote security scanner for Linux" HOMEPAGE="http://nessus.org" SRC_URI="${MY_P}.rpm" RESTRICT="nomirror fetch" LICENSE="Nessus-EULA" SLOT="0" KEYWORDS="-* ~x86" IUSE="" DEPEND="!net-analyzer/nessus-libraries !net-analyzer/libnasl !net-analyzer/nessus-core !net-analyzer/nessus-plugins !net-analyzer/nessus >=sys-libs/db-4.2.52_p4 >=dev-libs/openssl-0.9.7e-r2" pkg_nofetch() { einfo "Please download ${MY_P}.rpm from ${HOMEPAGE}/download" einfo "The archive should then be placed into ${DISTDIR}." } pkg_setup() { case ${CHOST} in i586-pc-linux-gnu*) einfo "Found compatible architecture." ;; i686-pc-linux-gnu*) einfo "Found compatible architecture." ;; *) die "No compatible architecture found." ;; esac } src_compile() { einfo "Nothing to compile." } src_install() { rm -rf "${WORKDIR}/etc" rm -rf "${WORKDIR}/${MY_P}.tar.gz" mv "${WORKDIR}"/* "${D}" dodir /etc/env.d insinto /etc/env.d; doins "${FILESDIR}"/90nessus-bin } pkg_postinst() { einfo "For more information about nessus, please visit" einfo "${HOMEPAGE}/documentation/" }