summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2010-08-22 23:19:39 +0000
committerJeroen Roovers <jer@gentoo.org>2010-08-22 23:19:39 +0000
commitfdfd0565c008506881541b106481490083f5debb (patch)
treea64b29e22c150a1b937ec94338a4836c827fd852 /net-analyzer/nessus-client/nessus-client-1.0.2-r1.ebuild
parentonly dump FUNCTIONS section header when necessary (diff)
downloadgentoo-2-fdfd0565c008506881541b106481490083f5debb.tar.gz
gentoo-2-fdfd0565c008506881541b106481490083f5debb.tar.bz2
gentoo-2-fdfd0565c008506881541b106481490083f5debb.zip
Respect LDFLAGS (bug #333799). Install documentation where it belongs. Fix parallel make.
(Portage version: 2.2_rc67/cvs/Linux i686)
Diffstat (limited to 'net-analyzer/nessus-client/nessus-client-1.0.2-r1.ebuild')
-rw-r--r--net-analyzer/nessus-client/nessus-client-1.0.2-r1.ebuild57
1 files changed, 57 insertions, 0 deletions
diff --git a/net-analyzer/nessus-client/nessus-client-1.0.2-r1.ebuild b/net-analyzer/nessus-client/nessus-client-1.0.2-r1.ebuild
new file mode 100644
index 000000000000..c8eb8daa2166
--- /dev/null
+++ b/net-analyzer/nessus-client/nessus-client-1.0.2-r1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nessus-client/nessus-client-1.0.2-r1.ebuild,v 1.1 2010/08/22 23:19:39 jer Exp $
+
+EAPI="2"
+
+inherit eutils toolchain-funcs
+
+MY_PN="NessusClient"
+MY_P="${MY_PN}-${PV}"
+DESCRIPTION="A client for the Nessus vulnerability scanner"
+HOMEPAGE="http://www.nessus.org/"
+SRC_URI="mirror://gentoo/${MY_P}.tar.gz
+ mirror://gentoo/nessus-client.png.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="doc"
+
+DEPEND="!net-analyzer/nessus-core
+ dev-libs/openssl
+ >=x11-libs/gtk+-2.8.8"
+RDEPEND="doc? ( app-text/htmldoc )"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+cp -av Makefile{,.orig}
+ epatch "${FILESDIR}"/${P}-make.patch
+ sed \
+ -e "/NESSUS_DOCDIR/s|/doc/NessusClient|/doc/${PF}|g" \
+ -i nessus.tmpl.in \
+ || die "sed failed"
+}
+
+src_configure() {
+ tc-export CC
+ econf || die "econf failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc CHANGES README_SSL VERSION
+
+ doicon "${WORKDIR}"/${PN}.png
+ make_desktop_entry NessusClient "Nessus Client" nessus-client "Application;Network;"
+}
+
+pkg_postinst() {
+ if ! use doc ; then
+ elog "If you do not have documentation installed, nessus-client"
+ elog "will complain. To install documentation, please emerge with"
+ elog "the doc useflag set. Beware that it will emerge app-text/htmldoc,"
+ elog "a big package."
+ fi
+}