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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Sep 13 07:14:05 2012 UTC (19 months ago) by pinkbyte
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Add GPL-2 to LICENSE variable, cause init.d script are under it, wrt bug #425998

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

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nessus-bin/nessus-bin-4.4.1.ebuild,v 1.2 2012/06/12 02:55:10 zmedico Exp $
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="~x86 ~amd64"
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 pkg_setup() {
29 case ${CHOST} in
30 i686-pc-linux-gnu*) einfo "Found compatible architecture." ;;
31 x86_64-pc-linux-gnu*) einfo "Found compatible architecture." ;;
32 *) die "No compatible architecture found." ;;
33 esac
34 }
35
36 src_install() {
37 cp -pPR "${WORKDIR}"/opt "${D}"/
38
39 # make sure these directories do not vanish
40 # nessus will not run properly without them
41 keepdir /opt/nessus/etc/nessus
42 keepdir /opt/nessus/var/nessus/jobs
43 keepdir /opt/nessus/var/nessus/logs
44 keepdir /opt/nessus/var/nessus/tmp
45 keepdir /opt/nessus/var/nessus/users
46
47 # add PATH and MANPATH for convenience
48 doenvd "${FILESDIR}"/90nessus-bin
49
50 # init script
51 newinitd "${FILESDIR}"/nessusd-initd nessusd-bin
52 dosym libssl.so /usr/$(get_libdir)/libssl.so.10
53 dosym libcrypto.so /usr/$(get_libdir)/libcrypto.so.10
54 }
55
56 pkg_postinst() {
57 elog "You can get started running the following commands:"
58 elog "/opt/nessus/sbin/nessus-adduser"
59 elog "/opt/nessus/sbin/nessus-mkcert"
60 elog "/opt/nessus/bin/nessus-fetch --register <your registration code>"
61 elog "/etc/init.d/nessusd-bin start"
62 elog
63 elog "If you had a previous version of Nessus installed, use"
64 elog "the following command to update the plugin database:"
65 elog "/opt/nessus/sbin/nessusd -R"
66 elog
67 elog "For more information about nessus, please visit"
68 elog "${HOMEPAGE}/documentation/"
69 }

  ViewVC Help
Powered by ViewVC 1.1.20