# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit rpm MY_P="NessusClient-${PV}-suse10.3.i586" # We are using SuSE's binary DESCRIPTION="A graphical interface for nessusd" HOMEPAGE="http://www.nessus.org" SRC_URI="${MY_P}.rpm" RESTRICT="mirror fetch strip" LICENSE="Nessus-EULA" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="" RDEPEND=">=dev-libs/openssl-0.9.8 >=x11-libs/gtk+-2.8.8" 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_install() { # copy files cp -pPR "${WORKDIR}"/opt "${D}" # add /opt/nessus/lib to LD_PATH # nessus-client will not run properly without it doenvd "${FILESDIR}"/90nessus-client } pkg_postinst() { elog "For more information about nessus, please visit" elog "${HOMEPAGE}/documentation/" }