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/openvas-manager |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-analyzer/openvas-manager')
9 files changed, 177 insertions, 0 deletions
diff --git a/net-analyzer/openvas-manager/Manifest b/net-analyzer/openvas-manager/Manifest new file mode 100644 index 000000000000..d2452c5c9962 --- /dev/null +++ b/net-analyzer/openvas-manager/Manifest @@ -0,0 +1,11 @@ +AUX openvas-manager-6.0.1-bsdsource.patch 834 SHA256 f188e048ba63ec8d885531189d8b7397deb843a1ac2914be773f60e48c080efc SHA512 82ab5aca2386663c851688fa4606193c3bc18095121ea4205aff78471769e5793167de89581013e5b5e12b86ac4efff57553ba34da2cf8aeedb8d14bbc76bbaa WHIRLPOOL 0ed6098a741b25f2be9fbc583d281e13335e8b48c692aa9293107ac2422a18466f7442d7fe0c8b28a65351d60078839e4ca5a4ceb15d1d9fef00ace429800bd4 +AUX openvasmd 459 SHA256 6763919862a083041d47033f34622dcd222b163fe0a1804033d40ffb7aadfec9 SHA512 0b1f90c04a105eb8a3227a4f79076cfcf0402d9d2b21dd92d394c2461c3b7b8c28ace233cc7654d6662847494f30e84903d4dd8be1701f2df5c7952500d543fb WHIRLPOOL 965ae68100019ab93ff98c6e29d017a13e31b659a31d8b7169c0853ba83b1565b9268cabf2ba5c9e549ac84d4e436630c1c0253b038c0ec8a24fa14016151622 +AUX openvasmd-daemon.conf 377 SHA256 fca0165b3b1a621bb7db5080b6f223797086014a0897c1686b2c55af797b064f SHA512 5094acf77541fe97aff0698efaa4863adc25711118857d468f096174cb71fab249f9a82a4e4b19613ffd62b3c0378043b1384ecd6cacc4a30b9ccb99f3173506 WHIRLPOOL 27882dfc221b0b8769abf02fa3755c8292f085892803ec10e8010cad6435432c5eaf886ae13bc66bdd22cfb4bd8267bb3de35d914e0c6574edc4d4940d014c31 +AUX openvasmd.init 452 SHA256 a480f185d67a138affaff29f8e68384947bb795a9771f9ca3d98698ffe9456b8 SHA512 74c354292b97bbf84e1336e38f768dc8b5ade3d930f20da7d3b9edecf1ea5843a2a2fafdb3ae856878f3f4628ee05ac9199b238ad5bfcad45a4ced532976f3c4 WHIRLPOOL c902744eff27fdc3966ccee8be19a7ef1691a5499f12be55a672da78969e7ad4385c0a39bc0656eec4d80b8317f58178bf1e8ad8a833f6343d2555457b6722e4 +AUX openvasmd.logrotate 178 SHA256 5529967ae9ece3965367739c65aa52512391d2ec540651e418cfb117e20a54cf SHA512 dad461ea48cc49c3f5e77bd69c09f2551a42e588cbd479b91ae1410ba88ae0c783ee5b273a34edb46ca196e7ba19227168efce842b1a5c39e6a46516b6fab5db WHIRLPOOL d873ed8a2b57a125d0075f11fa0b5d1ed20dce5e198fbe8536737c6d4b136977ac2ecba9b658736db37bea6a364ffa03b2bd507001b1867638c2200dec26171e +AUX openvasmd.service 362 SHA256 901d0680e2bacc69880f00b5f93200ec3261304408cb1960c397abab01577625 SHA512 8753699635050da10b7d317caa60361c59f832b6a1624d9fc2cbedffadbd554fddf612a92ad1e0ef057b83420b36468fc9f7ee67e3161d4c37816e0c8e9239a8 WHIRLPOOL 90fe9a6e1fe2f2f4cf473bbf8befa96a36d7ff518fbe7b8efe3b725da0d87a59b39cc997bab6de7bc0326e1062ef9222b59141351f6e54f40dfd4c102dc2ef50 +DIST openvas-manager-6.0.6.tar.gz 1928570 SHA256 4a9b1d3c4235e6ecc531544bda572cc9910d2a52b01115bb8bc0436177664cc4 SHA512 4c4ae0ac35d6fc6820b47da6e5e6aae1b4d14c771791b7ae2e35123d8117319f05c7619de665b96de9d92fb59e417311656d3460dff992d3ce4db217731c5900 WHIRLPOOL 482f5159192cb5f7e52764d1fb5f44b6f9b7c31dd35f187aced333cedb2297a302fd3f6ddb45c383d36743167cf63b03ef7a900c50d0425938da51b214ab388c +EBUILD openvas-manager-6.0.6-r2.ebuild 1273 SHA256 92a30a03d6f6094c3a54684eb3867a1f599d878a964efc3f9a5e889e5535e8b7 SHA512 e2a3323238fc42a6d19efe6cfa1a1b3ab518b94c7614754550da9118f4e28fd8a4d507ec47469ee38d09a3a590f60d7b190b6175ee8ba483bfe5e91ac4ab24d4 WHIRLPOOL 86a722eb5c047f5e4a269309f264dd13086e5a39ddb64ebabde3cdc534d6c6b37f777f7bec4b51b25802014f8f6a1c07c730d361740098cd0c6c244beab8b678 +MISC ChangeLog 4676 SHA256 278b4a57d51fc67d791e81acd19bbc692aeabe0950dc0511dd9fb7ef70c865d9 SHA512 8908ef5b345d2eae66436defe334a85ed4e7cd5294b2c3f373590d70681c2bbfbce38ef51b78a1149009c741ac6cc4b644ac824d1b1e16c8431165c6114c67ec WHIRLPOOL 2264c3e9a2741a75b4598f36f3d59ae8db35afe04d2a2cc3bd7de4ac53d4c2ecd53fb317f695a262b971035827d42c6f847837df9a2fd34381e324411779d578 +MISC ChangeLog-2015 4983 SHA256 225f5c51a01fced892850d12b910ad7d1d040e76f754669af712ca93ed9e7be8 SHA512 f52ea7babe2832d3804ef487b8ef4826f59f79fc1ce05ef97bdf735e1112e6792e66d60fa28680f2010fc09c685d0c50987a0aab06989f1556720ae7bfe0e06e WHIRLPOOL 89d392ef3064cb38245050c8ff9ef1427cb1a1161b9b2eb31d11d5aa782e62b4e9f19ed9f107a62de0142896b1e8dc4457e8503bc47f4c57704f8a57515f520e +MISC metadata.xml 220 SHA256 49e2069f4751ed7f79a433d3b76bc345fcb099ac35f7b1b87b5d6764003c9586 SHA512 d9edbf422ea6f698d0b8de45ce3855e0d0f410d0f346ee85da825ad9f720fdaa367b7790027de2c7cc7ea70d51074eec76ca72ff6528be1ef490e0dcef2c640c WHIRLPOOL 4323fd2e46066082a73ed45401225ec2eba26ac29054bb573afa55f1b5753b020fc280453b03becf0a63dc3c0f9904e4d5c559a1afa68eb0d85b05fcf62174c2 diff --git a/net-analyzer/openvas-manager/files/openvas-manager-6.0.1-bsdsource.patch b/net-analyzer/openvas-manager/files/openvas-manager-6.0.1-bsdsource.patch new file mode 100644 index 000000000000..011880979141 --- /dev/null +++ b/net-analyzer/openvas-manager/files/openvas-manager-6.0.1-bsdsource.patch @@ -0,0 +1,16 @@ + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 4eb89a0..7ccfc5a 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -338,7 +338,7 @@ configure_file (tools/openvas-migrate-to-postgres.in tools/openvas-migrate-to-po + set (HARDENING_FLAGS "-Wformat -Wformat-security -O2 -D_FORTIFY_SOURCE=2 -fstack-protector -Wl,-z,relro -Wl,-z,now") + + set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Werror") +-set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${HARDENING_FLAGS} -Wall -D_BSD_SOURCE -D_ISOC99_SOURCE -D_SVID_SOURCE -D_DEFAULT_SOURCE -D_FILE_OFFSET_BITS=64") ++set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${HARDENING_FLAGS} -Wall -D_DEFAULT_SOURCE -D_ISOC99_SOURCE -D_DEFAULT_SOURCE -D_FILE_OFFSET_BITS=64") + + add_subdirectory (src) + diff --git a/net-analyzer/openvas-manager/files/openvasmd b/net-analyzer/openvas-manager/files/openvasmd new file mode 100644 index 000000000000..4dce1ce4922c --- /dev/null +++ b/net-analyzer/openvas-manager/files/openvasmd @@ -0,0 +1,22 @@ +#!/sbin/openrc-run +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need net openvassd +} + +start() { + ebegin "Starting openvasmd (manager)" + start-stop-daemon --start --name openvasmd \ + --exec /usr/sbin/openvasmd \ + --pidfile /var/run/openvasmd.pid + eend $? +} + +stop() { + ebegin "Stop openvasmd" + start-stop-daemon --stop --name openvasmd \ + --pidfile /var/run/openvasmd.pid + eend $? +} diff --git a/net-analyzer/openvas-manager/files/openvasmd-daemon.conf b/net-analyzer/openvas-manager/files/openvasmd-daemon.conf new file mode 100644 index 000000000000..2393c83f04b3 --- /dev/null +++ b/net-analyzer/openvas-manager/files/openvasmd-daemon.conf @@ -0,0 +1,15 @@ +#Manager listens on given address - by default manager listens on all addresses +#MANAGER_LISTEN=--listen=127.0.0.1 + +#Manager listens on given port - by default 9390 +MANAGER_PORT=--port=9390 + +MANAGER_EXTRA_ARGS="" + +#Contact scanner on given address +SCANNER_LISTEN="--scanner-host=127.0.0.1" + +#Scanner listens on given port - by default 9391 +SCANNER_PORT="--scanner-port=9391" + + diff --git a/net-analyzer/openvas-manager/files/openvasmd.init b/net-analyzer/openvas-manager/files/openvasmd.init new file mode 100644 index 000000000000..d30b8befdd0c --- /dev/null +++ b/net-analyzer/openvas-manager/files/openvasmd.init @@ -0,0 +1,17 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +name="OpenVAS Manager" +command=/usr/sbin/openvasmd +command_args="${MANAGER_LISTEN} ${MANAGER_PORT} ${SCANNER_LISTEN} ${SCANNER_PORT} ${MANAGER_EXTRA_ARGS}" +pidfile="/run/openvasmd.pid" + +depend() { + after bootmisc + need localmount net openvassd +} + +start_pre() { + checkpath --directory --mode 0775 --quiet /var/cache/openvas +} diff --git a/net-analyzer/openvas-manager/files/openvasmd.logrotate b/net-analyzer/openvas-manager/files/openvasmd.logrotate new file mode 100644 index 000000000000..c302b5f34ea9 --- /dev/null +++ b/net-analyzer/openvas-manager/files/openvasmd.logrotate @@ -0,0 +1,11 @@ +# logrotate for openvas-manager +/var/log/openvas/openvasmd.log { + rotate 4 + weekly + compress + delaycompress + missingok + postrotate + /bin/kill -HUP `pidof openvasmd` + endscript +} diff --git a/net-analyzer/openvas-manager/files/openvasmd.service b/net-analyzer/openvas-manager/files/openvasmd.service new file mode 100644 index 000000000000..91edb0087bc4 --- /dev/null +++ b/net-analyzer/openvas-manager/files/openvasmd.service @@ -0,0 +1,16 @@ +[Unit] +Description=OpenVAS Manager +After=network.target +After=openvassd.service + +[Service] +EnvironmentFile=-/etc/openvas/openvasmd.conf +ExecStart=/usr/sbin/openvasmd -f ${MANAGER_LISTEN} ${MANAGER_PORT} ${SCANNER_LISTEN} ${SCANNER_PORT} ${MANAGER_EXTRA_ARGS} +Restart=always +RestartSec=1 +User=root +Group=root +TimeoutSec=1200 + +[Install] +WantedBy=multi-user.target diff --git a/net-analyzer/openvas-manager/metadata.xml b/net-analyzer/openvas-manager/metadata.xml new file mode 100644 index 000000000000..38ce6c17a3f2 --- /dev/null +++ b/net-analyzer/openvas-manager/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>hanno@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/net-analyzer/openvas-manager/openvas-manager-6.0.6-r2.ebuild b/net-analyzer/openvas-manager/openvas-manager-6.0.6-r2.ebuild new file mode 100644 index 000000000000..d852593f5651 --- /dev/null +++ b/net-analyzer/openvas-manager/openvas-manager-6.0.6-r2.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit cmake-utils systemd + +MY_PN=openvasmd + +DL_ID=2195 + +DESCRIPTION="A remote security scanner for Linux (openvas-manager)" +HOMEPAGE="http://www.openvas.org/" +SRC_URI="http://wald.intevation.org/frs/download.php/${DL_ID}/${P/_beta/+beta}.tar.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS=" ~amd64 ~arm ~ppc ~x86" +IUSE="" + +RDEPEND=" + >=net-analyzer/openvas-libraries-8.0.5 + >=dev-db/sqlite-3 + dev-db/redis + !net-analyzer/openvas-administrator" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S="${WORKDIR}"/${P} + +PATCHES=( + "${FILESDIR}"/${PN}-6.0.1-bsdsource.patch + ) + +src_prepare() { + sed \ + -e '/^install.*OPENVAS_CACHE_DIR.*/d' \ + -i CMakeLists.txt || die + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DLOCALSTATEDIR="${EPREFIX}/var" + -DSYSCONFDIR="${EPREFIX}/etc" + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + insinto /etc/openvas/ + doins "${FILESDIR}"/${MY_PN}-daemon.conf + dosym ../openvas/${MY_PN}-daemon.conf /etc/conf.d/${MY_PN} + + insinto /etc/logrotate.d + newins "${FILESDIR}"/${MY_PN}.logrotate ${MY_PN} + + newinitd "${FILESDIR}"/${MY_PN}.init ${MY_PN} + systemd_dounit "${FILESDIR}"/${MY_PN}.service +} |