summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-analyzer/nessus-bin
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'net-analyzer/nessus-bin')
-rw-r--r--net-analyzer/nessus-bin/Manifest4
-rw-r--r--net-analyzer/nessus-bin/files/90nessus-bin1
-rw-r--r--net-analyzer/nessus-bin/files/nessusd-initd26
-rw-r--r--net-analyzer/nessus-bin/metadata.xml5
-rw-r--r--net-analyzer/nessus-bin/nessus-bin-4.4.1.ebuild69
-rw-r--r--net-analyzer/nessus-bin/nessus-bin-5.0.1.ebuild61
6 files changed, 166 insertions, 0 deletions
diff --git a/net-analyzer/nessus-bin/Manifest b/net-analyzer/nessus-bin/Manifest
new file mode 100644
index 00000000000..e1417086c2d
--- /dev/null
+++ b/net-analyzer/nessus-bin/Manifest
@@ -0,0 +1,4 @@
+DIST Nessus-4.4.1-es6.i686.rpm 11222888 SHA256 91420688688da3347c0f2ad2be38b4495bedc4a94d1a1e159afb6ba5d2029bdc
+DIST Nessus-4.4.1-es6.x86_64.rpm 12516672 SHA256 b06585509ac4bcda874a333a22eaffef78aa9642c79350ef9b5a5a8c169be58a
+DIST Nessus-5.0.1-es6.i686.rpm 20401680 SHA256 540ca445d5eb886335f38b5e7b69f2c1c512eda9f633199cf31e29abc519432e SHA512 5d86549903ee71250a120d5c413e502041f3d36ff4712ff1e567c77750b723ab36b1da55b5035ce3b5e74adc2fb30f42153c2d0bd7bf1ff410daf2ab64a86eab WHIRLPOOL f2f5ec35b7d84ee61ed9a65f97bf7ffcd51e87a8b565fbc4d6836288f0ceb3093a007a9f8d6217f3931c6d21e7a2dd950aa3cd2e5bf43d3591437a4e917e5066
+DIST Nessus-5.0.1-es6.x86_64.rpm 22784992 SHA256 dc5c1af6dfc80b20e6019c86ee5b21178347817b50edd2f8c287f03cec8a1837 SHA512 180066cefabf56f1be416ff97e50171d9c75d19d03980e84696a8c34aba7628bdf12c0189e1c589eb1bba32ca38602023563f6d9e5c30cc3ec3a875fa08cc3a1 WHIRLPOOL 1f574f7984710ed594a67f5050a9672a0a87b34319a5f1c478d9bdd308b6503dd92ac2d4031ee468e62c8eb937ae0f2268ffe78e4c380090cdd44f22f9faa473
diff --git a/net-analyzer/nessus-bin/files/90nessus-bin b/net-analyzer/nessus-bin/files/90nessus-bin
new file mode 100644
index 00000000000..598d86b3cd7
--- /dev/null
+++ b/net-analyzer/nessus-bin/files/90nessus-bin
@@ -0,0 +1 @@
+LDPATH="/opt/nessus/lib"
diff --git a/net-analyzer/nessus-bin/files/nessusd-initd b/net-analyzer/nessus-bin/files/nessusd-initd
new file mode 100644
index 00000000000..af95f2b014c
--- /dev/null
+++ b/net-analyzer/nessus-bin/files/nessusd-initd
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting nessus-service"
+ start-stop-daemon --start --quiet --exec /opt/nessus/sbin/nessus-service -- -D --quiet
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping nessus-service"
+ start-stop-daemon --stop --quiet --exec /opt/nessus/sbin/nessus-service
+ einfo "Waiting for the environment to be sane"
+ while [ -n "$RUNNING" ] ; do
+ sleep 1
+ RUNNING=$(ps aux | grep -m 1 nessusd: | grep -v grep)
+ done
+ sleep 3
+ eend $?
+}
diff --git a/net-analyzer/nessus-bin/metadata.xml b/net-analyzer/nessus-bin/metadata.xml
new file mode 100644
index 00000000000..03aa50bab7e
--- /dev/null
+++ b/net-analyzer/nessus-bin/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>netmon</herd>
+</pkgmetadata>
diff --git a/net-analyzer/nessus-bin/nessus-bin-4.4.1.ebuild b/net-analyzer/nessus-bin/nessus-bin-4.4.1.ebuild
new file mode 100644
index 00000000000..fedfed164e4
--- /dev/null
+++ b/net-analyzer/nessus-bin/nessus-bin-4.4.1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit multilib rpm
+
+MY_P="Nessus-${PV}-es6"
+# We are using the Red Hat/CentOS binary
+
+DESCRIPTION="A remote security scanner for Linux"
+HOMEPAGE="http://www.nessus.org/"
+SRC_URI="
+ x86? ( ${MY_P}.i686.rpm )
+ amd64? ( ${MY_P}.x86_64.rpm )"
+
+RESTRICT="mirror fetch strip"
+
+LICENSE="GPL-2 Nessus-EULA"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="X"
+
+pkg_nofetch() {
+ einfo "Please download ${A} from ${HOMEPAGE}/download"
+ einfo "The archive should then be placed into ${DISTDIR}."
+}
+
+pkg_setup() {
+ case ${CHOST} in
+ 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() {
+ cp -pPR "${WORKDIR}"/opt "${D}"/
+
+ # make sure these directories do not vanish
+ # nessus will not run properly without them
+ keepdir /opt/nessus/etc/nessus
+ keepdir /opt/nessus/var/nessus/jobs
+ keepdir /opt/nessus/var/nessus/logs
+ keepdir /opt/nessus/var/nessus/tmp
+ keepdir /opt/nessus/var/nessus/users
+
+ # add PATH and MANPATH for convenience
+ doenvd "${FILESDIR}"/90nessus-bin
+
+ # init script
+ newinitd "${FILESDIR}"/nessusd-initd nessusd-bin
+ dosym libssl.so /usr/$(get_libdir)/libssl.so.10
+ dosym libcrypto.so /usr/$(get_libdir)/libcrypto.so.10
+}
+
+pkg_postinst() {
+ elog "You can get started running the following commands:"
+ elog "/opt/nessus/sbin/nessus-adduser"
+ elog "/opt/nessus/sbin/nessus-mkcert"
+ elog "/opt/nessus/bin/nessus-fetch --register <your registration code>"
+ elog "/etc/init.d/nessusd-bin start"
+ elog
+ elog "If you had a previous version of Nessus installed, use"
+ elog "the following command to update the plugin database:"
+ elog "/opt/nessus/sbin/nessusd -R"
+ elog
+ elog "For more information about nessus, please visit"
+ elog "${HOMEPAGE}/documentation/"
+}
diff --git a/net-analyzer/nessus-bin/nessus-bin-5.0.1.ebuild b/net-analyzer/nessus-bin/nessus-bin-5.0.1.ebuild
new file mode 100644
index 00000000000..27b0440ab42
--- /dev/null
+++ b/net-analyzer/nessus-bin/nessus-bin-5.0.1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit multilib rpm
+
+MY_P="Nessus-${PV}-es6"
+# We are using the Red Hat/CentOS binary
+
+DESCRIPTION="A remote security scanner for Linux"
+HOMEPAGE="http://www.nessus.org/"
+SRC_URI="
+ x86? ( ${MY_P}.i686.rpm )
+ amd64? ( ${MY_P}.x86_64.rpm )"
+
+RESTRICT="mirror fetch strip"
+
+LICENSE="GPL-2 Nessus-EULA"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="X"
+
+pkg_nofetch() {
+ einfo "Please download ${A} from ${HOMEPAGE}/download"
+ einfo "The archive should then be placed into ${DISTDIR}."
+}
+
+src_install() {
+ cp -pPR "${WORKDIR}"/opt "${D}"/
+
+ # make sure these directories do not vanish
+ # nessus will not run properly without them
+ keepdir /opt/nessus/etc/nessus
+ keepdir /opt/nessus/var/nessus/jobs
+ keepdir /opt/nessus/var/nessus/logs
+ keepdir /opt/nessus/var/nessus/tmp
+ keepdir /opt/nessus/var/nessus/users
+
+ # add PATH and MANPATH for convenience
+ doenvd "${FILESDIR}"/90nessus-bin
+
+ # init script
+ newinitd "${FILESDIR}"/nessusd-initd nessusd-bin
+ dosym libssl.so /usr/$(get_libdir)/libssl.so.10
+ dosym libcrypto.so /usr/$(get_libdir)/libcrypto.so.10
+}
+
+pkg_postinst() {
+ elog "You can get started running the following commands:"
+ elog "/opt/nessus/sbin/nessus-adduser"
+ elog "/opt/nessus/sbin/nessus-mkcert"
+ elog "/opt/nessus/bin/nessus-fetch --register <your registration code>"
+ elog "/etc/init.d/nessusd-bin start"
+ elog
+ elog "If you had a previous version of Nessus installed, use"
+ elog "the following command to update the plugin database:"
+ elog "/opt/nessus/sbin/nessusd -R"
+ elog
+ elog "For more information about nessus, please visit"
+ elog "${HOMEPAGE}/documentation/"
+}