diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-analyzer/nessus-agent-bin |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-analyzer/nessus-agent-bin')
6 files changed, 229 insertions, 0 deletions
diff --git a/net-analyzer/nessus-agent-bin/Manifest b/net-analyzer/nessus-agent-bin/Manifest new file mode 100644 index 000000000000..efd67d1d9a50 --- /dev/null +++ b/net-analyzer/nessus-agent-bin/Manifest @@ -0,0 +1,8 @@ +AUX nessusagent.initd 563 SHA256 8af63cc2f4c139adb87f71fb7178dd554023a3da82e2b45d8e05b1231b067bc1 SHA512 acc9a64e1cbff1119876f186aa6c40d6f5772c55a919914c410fed9e0974d2ce8fe5b965248aeae590ae5dd551ab530c59dad42c6f793d995193f9b8f9d89718 WHIRLPOOL d827f1607d4745beaf343eee0408a66d6fd2cc7b22c92b63132847b0c6bae80add1f9707054456269e364925b4c4d3a46046700496c0096553154fb206910eef +DIST NessusAgent-6.10.5-es7.x86_64.rpm 15573580 SHA256 47df9f78bc2e79721c4d50c27c7f5d8bf4ddd4f5616ad1dd757d8d6e2d62e853 SHA512 671219b52ad70e5713379447884c4d38488dba62ac44fa9a56145e414ae4890ce9824b99c99218bba1fb3d8ac91ae81674b3c548cf4dc33712ae4ec6438ab826 WHIRLPOOL 75bc381ca9138f0a01a234d34ec45925ef46d08060d35fda0d732efb5779af5d93077b96d592a003542c1534ebb0659464d4129c4b25ce92ceed61c70bbe091c +DIST NessusAgent-6.10.7-es7.x86_64.rpm 15584200 SHA256 36e90c98e3370df45442b78059fd08c67042e8c01e62b18ed61c0b3397fee2cf SHA512 2a9231abc9f694bd74bf0cc7bfbe56d4d7c58aae4602a5288f3becc5d7c2fddc2fe54c71917f71ed1613596198dbe735f780b38d1836e2e39d63bb9ac28d15b4 WHIRLPOOL c70120a1e7a6d05722189b3697e2c2d9d55343ed523e2da197cbfa2e29b00699d2dd1eea6a732092005b0366bc2ca26951e5536250e5f03d8bb462079360f49b +DIST NessusAgent-6.10.9-es7.x86_64.rpm 15578800 SHA256 687b2dd40aef6f0cd27613ee05408aec7d9755bb2eed18d243dbb46ce9357f05 SHA512 f84beee03f872a8c5aae4e5d0b63d02b6de5f9786950cf083bc0c9d266f8f5390d6e738c6cdc041c5f927f0644ab382bb4e715445a383a48b3889e89f2b2ef54 WHIRLPOOL 79529bbadfc8ae7abbda7824d660f282bc4a2515c5e9ff1896ead3ddeb8e432b9a4029e46829986f84e4da0aa64a3fc7d9c5f298b41e33aec144c2bbe708e3b9 +EBUILD nessus-agent-bin-6.10.5.ebuild 1953 SHA256 4b5cf962f150d4a2223377d882a5f3198c9cf2ddf75354c7e1c0ccc4b3a6a50a SHA512 e88f677a4a2b371712ca487bc67a377708b5c9dd8c8d2aed9c6f77fac056c3a6118d204348beee8241faa7d305fbfcc79014eaaae2cda06ff5ac824a316d5d7c WHIRLPOOL 056003844acbaeb3b467149aa3ff671a82304430a8a412f05ee1b2e2c07b467deb274a3de0d053495b8bfb3efa96341ef400107e2f9dff390facbde43877ae5a +EBUILD nessus-agent-bin-6.10.7.ebuild 1953 SHA256 4b5cf962f150d4a2223377d882a5f3198c9cf2ddf75354c7e1c0ccc4b3a6a50a SHA512 e88f677a4a2b371712ca487bc67a377708b5c9dd8c8d2aed9c6f77fac056c3a6118d204348beee8241faa7d305fbfcc79014eaaae2cda06ff5ac824a316d5d7c WHIRLPOOL 056003844acbaeb3b467149aa3ff671a82304430a8a412f05ee1b2e2c07b467deb274a3de0d053495b8bfb3efa96341ef400107e2f9dff390facbde43877ae5a +EBUILD nessus-agent-bin-6.10.9.ebuild 1953 SHA256 4b5cf962f150d4a2223377d882a5f3198c9cf2ddf75354c7e1c0ccc4b3a6a50a SHA512 e88f677a4a2b371712ca487bc67a377708b5c9dd8c8d2aed9c6f77fac056c3a6118d204348beee8241faa7d305fbfcc79014eaaae2cda06ff5ac824a316d5d7c WHIRLPOOL 056003844acbaeb3b467149aa3ff671a82304430a8a412f05ee1b2e2c07b467deb274a3de0d053495b8bfb3efa96341ef400107e2f9dff390facbde43877ae5a +MISC metadata.xml 245 SHA256 1cbbdb363f68b45429ec1f8c22f5c47251f2376210c285a59e0cf6f905131563 SHA512 bd2ae86e550344a79551fe0383e4625d28ca6fad675d84c66fc5b22ed7fe3afbfc2b4d6a7b1a5d02f6efbc56950b8295270a3dba8a1e7e51fde80a370d0c868a WHIRLPOOL 1c76cb23b2bece7265391203746461cfef14ac3966ecb8c411739ba4f7214bd6952deeb910c04f9f3bf6c60f9847ca006654100a6f76e06a90fa2da2f5a68048 diff --git a/net-analyzer/nessus-agent-bin/files/nessusagent.initd b/net-analyzer/nessus-agent-bin/files/nessusagent.initd new file mode 100644 index 000000000000..6f43fc421e1b --- /dev/null +++ b/net-analyzer/nessus-agent-bin/files/nessusagent.initd @@ -0,0 +1,21 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +start() { + ebegin "Starting nessusagent" + start-stop-daemon --start --quiet --exec /opt/nessus_agent/sbin/nessus-service -- -D --quiet + eend $? +} + +stop() { + ebegin "Stopping nessusagent" + start-stop-daemon --stop --quiet --exec /opt/nessus_agent/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-agent-bin/metadata.xml b/net-analyzer/nessus-agent-bin/metadata.xml new file mode 100644 index 000000000000..3e5026ee3754 --- /dev/null +++ b/net-analyzer/nessus-agent-bin/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>marecki@gentoo.org</email> + <name>Marek Szuba</name> + </maintainer> +</pkgmetadata> diff --git a/net-analyzer/nessus-agent-bin/nessus-agent-bin-6.10.5.ebuild b/net-analyzer/nessus-agent-bin/nessus-agent-bin-6.10.5.ebuild new file mode 100644 index 000000000000..f7e50ca245a6 --- /dev/null +++ b/net-analyzer/nessus-agent-bin/nessus-agent-bin-6.10.5.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit rpm pax-utils systemd + +MY_P="NessusAgent-${PV}-es7" + +DESCRIPTION="A remote security scanner for Linux - agent component" +HOMEPAGE="https://www.tenable.com/" +SRC_URI="${MY_P}.x86_64.rpm" + +LICENSE="GPL-2 Nessus-EULA" +SLOT="0" +KEYWORDS="~amd64" + +RESTRICT="mirror fetch strip" + +QA_PREBUILT="opt/nessus_agent/bin/nasl + opt/nessus_agent/bin/nessus-mkrand + opt/nessus_agent/lib/nessus/libjemalloc.so.${PV} + opt/nessus_agent/lib/nessus/libnessus-glibc-fix.so + opt/nessus_agent/lib/nessus/plugins/ovaldi64-rhel7.inc + opt/nessus_agent/sbin/nessus-check-signature + opt/nessus_agent/sbin/nessus-service + opt/nessus_agent/sbin/nessuscli + opt/nessus_agent/sbin/nessusd" + +S="${WORKDIR}" + +pkg_nofetch() { + einfo "Please download ${A} from ${HOMEPAGE}/agent-download" + einfo "The archive should then be placed into ${DISTDIR}." +} + +src_install() { + # Using doins -r would strip executable bits from all binaries + cp -pPR "${S}"/opt "${D}"/ || die "Failed to copy files" + + pax-mark m "${D}"/opt/nessus_agent/sbin/nessusd + + # Make sure these originally empty directories do not vanish, + # Nessus will not run properly without them + keepdir /opt/nessus_agent/com/nessus/CA + keepdir /opt/nessus_agent/etc/nessus + keepdir /opt/nessus_agent/var/nessus/logs + keepdir /opt/nessus_agent/var/nessus/tmp + keepdir /opt/nessus_agent/var/nessus/users + + newinitd "${FILESDIR}"/nessusagent.initd nessusagent + systemd_dounit usr/lib/systemd/system/nessusagent.service +} + +pkg_postinst() { + if [[ -z "${REPLACING_VERSIONS}" ]]; then + elog "In order to link the agent to Tenable.io or an instance of Nessus Manager," + elog "obtain an appropriate linking key and run" + elog "" + elog " /opt/nessus_agent/sbin/nessuscli agent link --key=<key> --host=<host> --port=<port> [optional parameters]" + elog "" + elog "This can be done before the agent is started." + fi +} diff --git a/net-analyzer/nessus-agent-bin/nessus-agent-bin-6.10.7.ebuild b/net-analyzer/nessus-agent-bin/nessus-agent-bin-6.10.7.ebuild new file mode 100644 index 000000000000..f7e50ca245a6 --- /dev/null +++ b/net-analyzer/nessus-agent-bin/nessus-agent-bin-6.10.7.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit rpm pax-utils systemd + +MY_P="NessusAgent-${PV}-es7" + +DESCRIPTION="A remote security scanner for Linux - agent component" +HOMEPAGE="https://www.tenable.com/" +SRC_URI="${MY_P}.x86_64.rpm" + +LICENSE="GPL-2 Nessus-EULA" +SLOT="0" +KEYWORDS="~amd64" + +RESTRICT="mirror fetch strip" + +QA_PREBUILT="opt/nessus_agent/bin/nasl + opt/nessus_agent/bin/nessus-mkrand + opt/nessus_agent/lib/nessus/libjemalloc.so.${PV} + opt/nessus_agent/lib/nessus/libnessus-glibc-fix.so + opt/nessus_agent/lib/nessus/plugins/ovaldi64-rhel7.inc + opt/nessus_agent/sbin/nessus-check-signature + opt/nessus_agent/sbin/nessus-service + opt/nessus_agent/sbin/nessuscli + opt/nessus_agent/sbin/nessusd" + +S="${WORKDIR}" + +pkg_nofetch() { + einfo "Please download ${A} from ${HOMEPAGE}/agent-download" + einfo "The archive should then be placed into ${DISTDIR}." +} + +src_install() { + # Using doins -r would strip executable bits from all binaries + cp -pPR "${S}"/opt "${D}"/ || die "Failed to copy files" + + pax-mark m "${D}"/opt/nessus_agent/sbin/nessusd + + # Make sure these originally empty directories do not vanish, + # Nessus will not run properly without them + keepdir /opt/nessus_agent/com/nessus/CA + keepdir /opt/nessus_agent/etc/nessus + keepdir /opt/nessus_agent/var/nessus/logs + keepdir /opt/nessus_agent/var/nessus/tmp + keepdir /opt/nessus_agent/var/nessus/users + + newinitd "${FILESDIR}"/nessusagent.initd nessusagent + systemd_dounit usr/lib/systemd/system/nessusagent.service +} + +pkg_postinst() { + if [[ -z "${REPLACING_VERSIONS}" ]]; then + elog "In order to link the agent to Tenable.io or an instance of Nessus Manager," + elog "obtain an appropriate linking key and run" + elog "" + elog " /opt/nessus_agent/sbin/nessuscli agent link --key=<key> --host=<host> --port=<port> [optional parameters]" + elog "" + elog "This can be done before the agent is started." + fi +} diff --git a/net-analyzer/nessus-agent-bin/nessus-agent-bin-6.10.9.ebuild b/net-analyzer/nessus-agent-bin/nessus-agent-bin-6.10.9.ebuild new file mode 100644 index 000000000000..f7e50ca245a6 --- /dev/null +++ b/net-analyzer/nessus-agent-bin/nessus-agent-bin-6.10.9.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit rpm pax-utils systemd + +MY_P="NessusAgent-${PV}-es7" + +DESCRIPTION="A remote security scanner for Linux - agent component" +HOMEPAGE="https://www.tenable.com/" +SRC_URI="${MY_P}.x86_64.rpm" + +LICENSE="GPL-2 Nessus-EULA" +SLOT="0" +KEYWORDS="~amd64" + +RESTRICT="mirror fetch strip" + +QA_PREBUILT="opt/nessus_agent/bin/nasl + opt/nessus_agent/bin/nessus-mkrand + opt/nessus_agent/lib/nessus/libjemalloc.so.${PV} + opt/nessus_agent/lib/nessus/libnessus-glibc-fix.so + opt/nessus_agent/lib/nessus/plugins/ovaldi64-rhel7.inc + opt/nessus_agent/sbin/nessus-check-signature + opt/nessus_agent/sbin/nessus-service + opt/nessus_agent/sbin/nessuscli + opt/nessus_agent/sbin/nessusd" + +S="${WORKDIR}" + +pkg_nofetch() { + einfo "Please download ${A} from ${HOMEPAGE}/agent-download" + einfo "The archive should then be placed into ${DISTDIR}." +} + +src_install() { + # Using doins -r would strip executable bits from all binaries + cp -pPR "${S}"/opt "${D}"/ || die "Failed to copy files" + + pax-mark m "${D}"/opt/nessus_agent/sbin/nessusd + + # Make sure these originally empty directories do not vanish, + # Nessus will not run properly without them + keepdir /opt/nessus_agent/com/nessus/CA + keepdir /opt/nessus_agent/etc/nessus + keepdir /opt/nessus_agent/var/nessus/logs + keepdir /opt/nessus_agent/var/nessus/tmp + keepdir /opt/nessus_agent/var/nessus/users + + newinitd "${FILESDIR}"/nessusagent.initd nessusagent + systemd_dounit usr/lib/systemd/system/nessusagent.service +} + +pkg_postinst() { + if [[ -z "${REPLACING_VERSIONS}" ]]; then + elog "In order to link the agent to Tenable.io or an instance of Nessus Manager," + elog "obtain an appropriate linking key and run" + elog "" + elog " /opt/nessus_agent/sbin/nessuscli agent link --key=<key> --host=<host> --port=<port> [optional parameters]" + elog "" + elog "This can be done before the agent is started." + fi +} |