# Copyright 1999-2005 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.0.5.ebuild,v 1.4 2007/07/02 14:39:26 peper Exp $ inherit rpm eutils MY_P="NessusClient-${PV}-fc10" # We are using the Fedora binaries DESCRIPTION="A graphical interface for nessusd" 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="app-arch/rpm2targz" #need to double check rdepends: RDEPEND="x11-base/xorg-server x11-libs/qt-gui" pkg_nofetch() { if use x86; then einfo "Please download ${MY_P}.i386.rpm from ${HOMEPAGE}/download" einfo "The archive should then be placed into ${DISTDIR}." fi if use amd64; then einfo "Please download ${MY_P}.x86_64.rpm from ${HOMEPAGE}/download" einfo "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}" # add PATH for convenience doenvd "${FILESDIR}"/90nessus-client domenu usr/share/applications/NessusClient.desktop doicon usr/share/pixmaps/NessusClient.png # add symlink to fullfill dependencies, ugly but needed dosym /usr/lib/libssl.so.0.9.8 /usr/lib/libssl.so.7 dosym /usr/lib/libcrypto.so.0.9.8 /usr/lib/libcrypto.so.7 } pkg_postinst() { elog "You can get started running the following command:" elog "NessusClient" elog "For more information about Nessus, please visit" elog "${HOMEPAGE}/documentation/" }