diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-02-17 00:52:31 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-02-17 00:52:31 +0000 |
commit | 1054877b63d6ddfef76d85365d0c8e4db7eb1b73 (patch) | |
tree | a5f446db1491ae6bf3657fc470385ceb0d28790e | |
parent | Bump to fix oops with internal tagging (diff) | |
download | portage-1054877b63d6ddfef76d85365d0c8e4db7eb1b73.tar.bz2 portage-1054877b63d6ddfef76d85365d0c8e4db7eb1b73.tar.xz portage-1054877b63d6ddfef76d85365d0c8e4db7eb1b73.zip |
Add NSCA
-rw-r--r-- | net-analyzer/nsca/Manifest | 3 | ||||
-rw-r--r-- | net-analyzer/nsca/files/nsca.service | 12 | ||||
-rw-r--r-- | net-analyzer/nsca/nsca-2.9.2.ebuild | 65 | ||||
-rw-r--r-- | virtual/random-server/Manifest | 2 | ||||
-rw-r--r-- | virtual/random-server/random-server-0.1.15.ebuild (renamed from virtual/random-server/random-server-0.1.14.ebuild) | 1 |
5 files changed, 82 insertions, 1 deletions
diff --git a/net-analyzer/nsca/Manifest b/net-analyzer/nsca/Manifest new file mode 100644 index 0000000..8f3d1af --- /dev/null +++ b/net-analyzer/nsca/Manifest @@ -0,0 +1,3 @@ +AUX nsca.service 201 BLAKE2B 2c1833d255b757891d72fd358a5e0c064475a4ca8b77c5961123e9dfe5cde1217cf675b1daf307a8bc1e5930900588c1ce233ff80765b4cb98a9b7b7c9441619 SHA512 b97e45b4ba6ed09cfc905920ebb7078e705ad54049c3032427a419cb0d7b29026b77b3be113331b5e44d19a4460b6b77374fa559080ac4d0e558b36211e6a1dc +DIST nsca-2.9.2.tar.gz 117299 BLAKE2B 512ecf540d6c89072ea4b0653547150a724281901ae52a012b65c8d7aadeebeae8ae74fa8094113a106b2515111aea01ecf3deb245ef612014bbdd128a05e862 SHA512 a1efbb1c16d5cbfb656ba69305a089282c4de08f5d4cdbcdc499b31975bb690ddfb01c51c61a1e3c0eeb47aa91e97010bcf305c9dda07b45e8f0022c966baff8 +EBUILD nsca-2.9.2.ebuild 1366 BLAKE2B 78a0173f54ce0b959e2ae14223b9108fd0b3fd7a1cf28a1420a7087434684d8df797c74e53a10f0b1705ab9836c2b8d68c0216aae6c7a5272a1e29fdf3d17cca SHA512 707741281d76c908d120e7aebfb3f7f9efa81730228153768e502a3be6ff9210366a66d1f6d29678afc5ffe735084219fe2a90e22df13c815263b3a2302f2822 diff --git a/net-analyzer/nsca/files/nsca.service b/net-analyzer/nsca/files/nsca.service new file mode 100644 index 0000000..11c8db1 --- /dev/null +++ b/net-analyzer/nsca/files/nsca.service @@ -0,0 +1,12 @@ +[Unit] +Description=Nagios Service Check Acceptor + +[Service] +Type=forking +Restart=always +ExecStart=/usr/libexec/nsca -c /etc/nagios/nsca.cfg +PIDFile=/run/nsca.pid + +[Install] +WantedBy=multi-user.target + diff --git a/net-analyzer/nsca/nsca-2.9.2.ebuild b/net-analyzer/nsca/nsca-2.9.2.ebuild new file mode 100644 index 0000000..a9fa17b --- /dev/null +++ b/net-analyzer/nsca/nsca-2.9.2.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit multilib user eutils systemd + +DESCRIPTION="Nagios Service Check Acceptor" +HOMEPAGE="http://www.nagios.org/" +SRC_URI="mirror://sourceforge/nagios/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm ppc ppc64 sparc x86" +IUSE="tcpd +crypt minimal" + +DEPEND="crypt? ( >=dev-libs/libmcrypt-2.5.1-r4 ) + !minimal? ( + acct-group/nagios + acct-user/nagios + tcpd? ( sys-apps/tcp-wrappers ) )" + +RDEPEND="${DEPEND} + !minimal? ( net-analyzer/nagios )" + +src_configure() { + use tcpd || export ac_cv_lib_wrap_main=no + use crypt || export ac_cv_path_LIBMCRYPT_CONFIG=/bin/false + + econf \ + --localstatedir=/var/nagios \ + --sysconfdir=/etc/nagios \ + --with-nsca-user=nagios \ + --with-nsca-grp=nagios +} + +src_compile() { + emake -C src send_nsca $(use minimal || echo nsca) +} + +src_install() { + dodoc LEGAL Changelog README SECURITY + + dobin src/send_nsca + + insinto /etc/nagios + doins "${S}"/sample-config/send_nsca.cfg + + if ! use minimal; then + exeinto /usr/libexec + doexe src/nsca + + insinto /etc/nagios + doins "${S}"/sample-config/nsca.cfg + + systemd_dounit ${FILESDIR}/nsca.service + fi +} + +pkg_postinst() { + if ! use minimal; then + elog "If you are using the nsca daemon, remember to edit" + elog "the config file /etc/nagios/nsca.cfg" + fi +} diff --git a/virtual/random-server/Manifest b/virtual/random-server/Manifest index 626e3b8..5cc5ac3 100644 --- a/virtual/random-server/Manifest +++ b/virtual/random-server/Manifest @@ -1 +1 @@ -EBUILD random-server-0.1.14.ebuild 1389 BLAKE2B 052587e2cc4950c0f92891eae34b105023eff0abe3ac80816eecab4004ec48d889412d3faf3738810c74348deef476dc58436db5881b34389cd81cf75209daa3 SHA512 93246999006c0755e18b12c9f4f35b4319b73e637622d318e968e8f687ed21b97a5f5eab99e633e07c062a05c8edff59630c607cc921d39da00d59a63f773492 +EBUILD random-server-0.1.15.ebuild 1408 BLAKE2B 7357d2906a0a5b5abc9d2417355202c9e158d3ecf9bae90dd10de1cde50e0d582b16930c623eff46053f3bb8a5c6ef1135991b8b6d22e4dfef85f73867f44229 SHA512 df8cca0d064fffee545e625041fb7825503c0046aa54cc1fa239b144906541be997aff61184a6762efb4b47ca0a0a13fc4afd55d5f5cfc5f75e35fbaf792e5ad diff --git a/virtual/random-server/random-server-0.1.14.ebuild b/virtual/random-server/random-server-0.1.15.ebuild index 206fa2a..9fd49a1 100644 --- a/virtual/random-server/random-server-0.1.14.ebuild +++ b/virtual/random-server/random-server-0.1.15.ebuild @@ -41,6 +41,7 @@ RDEPEND=" net-analyzer/fail2ban net-misc/openntpd net-analyzer/nagios + net-analyzer/nsca net-analyzer/nagios-plugin-check_raid sys-apps/lm-sensors net-analyzer/nagios-plugin-check_lm_sensors |