/[gentoo-x86]/net-analyzer/nessus-bin/nessus-bin-5.0.1.ebuild
Gentoo

Contents of /net-analyzer/nessus-bin/nessus-bin-5.0.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Oct 6 17:35:27 2012 UTC (22 months, 3 weeks ago) by pinkbyte
Branch: MAIN
CVS Tags: HEAD
Version bump wrt bug #437376

(Portage version: 2.2.0_alpha134/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 inherit multilib rpm
6
7 MY_P="Nessus-${PV}-es6"
8 # We are using the Red Hat/CentOS binary
9
10 DESCRIPTION="A remote security scanner for Linux"
11 HOMEPAGE="http://www.nessus.org/"
12 SRC_URI="
13 x86? ( ${MY_P}.i686.rpm )
14 amd64? ( ${MY_P}.x86_64.rpm )"
15
16 RESTRICT="mirror fetch strip"
17
18 LICENSE="GPL-2 Nessus-EULA"
19 SLOT="0"
20 KEYWORDS="-* ~amd64 ~x86"
21 IUSE="X"
22
23 pkg_nofetch() {
24 einfo "Please download ${A} from ${HOMEPAGE}/download"
25 einfo "The archive should then be placed into ${DISTDIR}."
26 }
27
28 src_install() {
29 cp -pPR "${WORKDIR}"/opt "${D}"/
30
31 # make sure these directories do not vanish
32 # nessus will not run properly without them
33 keepdir /opt/nessus/etc/nessus
34 keepdir /opt/nessus/var/nessus/jobs
35 keepdir /opt/nessus/var/nessus/logs
36 keepdir /opt/nessus/var/nessus/tmp
37 keepdir /opt/nessus/var/nessus/users
38
39 # add PATH and MANPATH for convenience
40 doenvd "${FILESDIR}"/90nessus-bin
41
42 # init script
43 newinitd "${FILESDIR}"/nessusd-initd nessusd-bin
44 dosym libssl.so /usr/$(get_libdir)/libssl.so.10
45 dosym libcrypto.so /usr/$(get_libdir)/libcrypto.so.10
46 }
47
48 pkg_postinst() {
49 elog "You can get started running the following commands:"
50 elog "/opt/nessus/sbin/nessus-adduser"
51 elog "/opt/nessus/sbin/nessus-mkcert"
52 elog "/opt/nessus/bin/nessus-fetch --register <your registration code>"
53 elog "/etc/init.d/nessusd-bin start"
54 elog
55 elog "If you had a previous version of Nessus installed, use"
56 elog "the following command to update the plugin database:"
57 elog "/opt/nessus/sbin/nessusd -R"
58 elog
59 elog "For more information about nessus, please visit"
60 elog "${HOMEPAGE}/documentation/"
61 }

  ViewVC Help
Powered by ViewVC 1.1.20