summaryrefslogtreecommitdiff
path: root/net-analyzer
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-01-22 10:09:44 +0000
committerV3n3RiX <venerix@redcorelinux.org>2019-01-22 10:09:44 +0000
commit09351e78166b5e864197c4456ebae3f89dd0bed9 (patch)
tree41a96399f56ed3aa399006871bfce4430db84aa2 /net-analyzer
parentc8a77dfe4d3d307c1d5dd2650b7297447d8b609d (diff)
gentoo resync : 22.01.2019
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/Manifest.gzbin49486 -> 49491 bytes
-rw-r--r--net-analyzer/linkchecker/Manifest4
-rw-r--r--net-analyzer/linkchecker/linkchecker-9.4.0.ebuild62
-rw-r--r--net-analyzer/linkchecker/linkchecker-9999.ebuild16
-rw-r--r--net-analyzer/metasploit/Manifest2
-rw-r--r--net-analyzer/metasploit/metasploit-4.17.21-r4.ebuild6
-rw-r--r--net-analyzer/nagios-core/Manifest2
-rw-r--r--net-analyzer/nagios-core/nagios-core-4.4.3-r1.ebuild213
-rw-r--r--net-analyzer/nagios/Manifest1
-rw-r--r--net-analyzer/nagios/nagios-4.4.3.ebuild15
-rw-r--r--net-analyzer/snort/Manifest18
-rw-r--r--net-analyzer/snort/metadata.xml30
-rw-r--r--net-analyzer/snort/snort-2.9.4.6-r1.ebuild251
-rw-r--r--net-analyzer/snort/snort-2.9.7.0.ebuild249
-rw-r--r--net-analyzer/snort/snort-2.9.7.2.ebuild249
-rw-r--r--net-analyzer/snort/snort-2.9.7.3.ebuild249
-rw-r--r--net-analyzer/snort/snort-2.9.7.5.ebuild249
-rw-r--r--net-analyzer/snort/snort-2.9.8.0.ebuild249
-rw-r--r--net-analyzer/snort/snort-2.9.8.2.ebuild249
-rw-r--r--net-analyzer/snort/snort-2.9.8.3-r1.ebuild248
-rw-r--r--net-analyzer/snort/snort-2.9.8.3.ebuild249
21 files changed, 310 insertions, 2301 deletions
diff --git a/net-analyzer/Manifest.gz b/net-analyzer/Manifest.gz
index f15fc99aceb1..4259608bcbc5 100644
--- a/net-analyzer/Manifest.gz
+++ b/net-analyzer/Manifest.gz
Binary files differ
diff --git a/net-analyzer/linkchecker/Manifest b/net-analyzer/linkchecker/Manifest
index 1c02a235cfb7..d0d495333183 100644
--- a/net-analyzer/linkchecker/Manifest
+++ b/net-analyzer/linkchecker/Manifest
@@ -3,6 +3,8 @@ AUX linkchecker-9.3-bash-completion.patch 621 BLAKE2B bce120caf1cddcd11e49c06b5c
AUX linkchecker-9.3.1-build-fix.patch 450 BLAKE2B 176f2617c0e2285473d500b351a918d9a48ef631662f6ecbfe7abe8ac37a6a8fd0406838193f068c42a9baeb09d9630e70aa518f51e480dfc3dc0c8ae17d6e9a SHA512 47c30bb1e2724ec96ca0c5223dce4ab0c79e30752be799498e84ff5953f78d9495265f59635a337690d28e6d44740296d9771c342cee6a88b30fe46bf2c58952
AUX linkchecker-9.3.1-requests.patch 1870 BLAKE2B 6ac551b151b805f373b2bccf6d47e08158e85c894721c640d8d1701e177e52a4bd780b0b195503bf0e8e3709175f1ec73c8f7e24dd578aa63846cfd17b851e47 SHA512 fbfd999cdb48628bb3ce14bca2f114e104a69c0355a00c9b81a543c5ac10a8bec0ab71dcbbefc81bc8f468a7e17a9a89dcd5d795ce565b9452131ac2ee6e5fe3
DIST linkchecker-9.3.1.tar.gz 779286 BLAKE2B eec374a3455b5348533b29b03ab14558dd19a20e1058947eed9d8027a8b1705b63525e6b8fcf2c4feb59a782ca0e0ad8567e321ca4679320e9d6f256e14df990 SHA512 355c9d262502e123732807b5aaabc17060d267de44a6dc1fee9dd6655c56320ded0c1ff638d985c2dbec366d15803cfb78fae4c1a9943de11c5b4292f5a99305
+DIST linkchecker-9.4.0.tar.gz 489909 BLAKE2B 1c9d9af96778f9d2b542a078ba9da8751d6f7bc170809d5eefef6e8e2d5587e969f1cba3d6ae116b6de981949dd638b0d78fc416ce5055b3156da308b5a95d67 SHA512 3423f710a46d921c4387ffcfe1a8632cb889bcfdb4d56cbabcae87ca41547221e854546efd6e440e798ea85531c34a35f3ab779cd6bc2b6e63095015ad0537ba
EBUILD linkchecker-9.3.1-r1.ebuild 1635 BLAKE2B ffe1b02ded5cacb0a1906696634220f69a61d3a426a1cd1d592f88c11a0ac1bcfd2cbd44a6ad61bbd0f4b896bcde56be6ec277181cdde85da84bc18bbd306e36 SHA512 b91819cb02a957f9a3ae3e891e66a27305834983b92384430c24cdf82e2e1b744b17df16b60ffd80d70923de5f6fa1f83a02e27f747044a2b7753c0bcc9478b0
-EBUILD linkchecker-9999.ebuild 1231 BLAKE2B 70802ebb8b458727728294ba3d2aac0357e209979d30a53764bf12098bbf8970d057ea1b9cc51fbce7a85f7ee5ade1cb2d3929ade4e0598870a7e8e2397fd3c6 SHA512 aec5c48e7971069a604d95a6ed5576c4b50470ce9b739f6e3ca36b7325cc1537240534fa061eb05cec1beaf483c3e768963796435f73053d6250a8b473acbb1a
+EBUILD linkchecker-9.4.0.ebuild 1419 BLAKE2B f32d87a0a8e33e7d9f2f4d95ca82878ebcb42ad819f0fa16c9de677270c2bc19aee6769c156f339368eeba061ec4aba1f755cc746c4bc58b0d580736425d6c79 SHA512 6a07c71e0224e95c8c0bcd77c5b5444b645770efb0a090daa08e9752fc266227105518eeffff88db925d65b6761c68bcd99af9b079d9a88e6db3448ab81bf8a5
+EBUILD linkchecker-9999.ebuild 1221 BLAKE2B 0193a2f063e41a641b2b008e4b84abce2aa41826d9a84f51582b21dcafaa5633bbeb6c771f232f9cafcc49c1d3c9f2ca50c3b473b9d208839e2d3b6153ef3abe SHA512 970acb72a0edc5fd6792b6d06bfc2807682ee9e7c275187b6b80248322e575363db3b485828845abbb58ed3e1dacdbce3fe98d0b6a8538df96dc2f1237e2c92d
MISC metadata.xml 319 BLAKE2B dbf67b67a9a9a65ff108e9ee4c5881023a53533d9bbeee71e9ba1a55658f2a746b408859515f593ce2ef0fd93f938fbb17c5c7a70fa48eda4be977634d11e7c5 SHA512 2fbc3b85bcfd178e2614ef73d55c633e6e3b5ee59d39ca0a6099ffd7e8067e890f69252666d8d6d9a173371d95c4b1fbb8157cb94fd307ee20672fb9ff4182fb
diff --git a/net-analyzer/linkchecker/linkchecker-9.4.0.ebuild b/net-analyzer/linkchecker/linkchecker-9.4.0.ebuild
new file mode 100644
index 000000000000..18909f2d05d6
--- /dev/null
+++ b/net-analyzer/linkchecker/linkchecker-9.4.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="sqlite?"
+
+inherit bash-completion-r1 distutils-r1 eutils
+
+DESCRIPTION="Check websites for broken links"
+HOMEPAGE="https://github.com/linkcheck/linkchecker"
+SRC_URI="https://github.com/linkcheck/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~ppc-macos ~x64-solaris"
+IUSE="sqlite"
+
+RDEPEND="
+ dev-python/pyxdg[${PYTHON_USEDEP}]
+ >=dev-python/requests-2.2[${PYTHON_USEDEP}]
+ virtual/python-dnspython[${PYTHON_USEDEP}]
+"
+DEPEND=""
+
+RESTRICT="test"
+
+python_prepare_all() {
+ local PATCHES=(
+ "${FILESDIR}/${PN}-9.3-bash-completion.patch"
+ )
+
+ distutils-r1_python_prepare_all
+}
+
+python_install_all() {
+ delete_gui() {
+ rm -rf \
+ "${ED}"/usr/bin/linkchecker-gui* \
+ "${ED}"/$(python_get_sitedir)/linkcheck/gui* || die
+ }
+
+ DOCS=(
+ doc/changelog.txt
+ doc/development.mdwn
+ doc/python3.txt
+ doc/upgrading.txt
+ )
+ distutils-r1_python_install_all
+
+ python_foreach_impl delete_gui
+ rm -f "${ED}"/usr/share/applications/linkchecker*.desktop || die
+
+ newbashcomp config/linkchecker-completion ${PN}
+}
+
+pkg_postinst() {
+ optfeature "bash-completion support" dev-python/argcomplete[${PYTHON_USEDEP}]
+ optfeature "Virus scanning" app-antivirus/clamav
+ optfeature "Geo IP support" dev-python/geoip-python[${PYTHON_USEDEP}]
+}
diff --git a/net-analyzer/linkchecker/linkchecker-9999.ebuild b/net-analyzer/linkchecker/linkchecker-9999.ebuild
index 81a23e9d21b6..528d4f9fc6cc 100644
--- a/net-analyzer/linkchecker/linkchecker-9999.ebuild
+++ b/net-analyzer/linkchecker/linkchecker-9999.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
PYTHON_COMPAT=( python2_7 )
PYTHON_REQ_USE="sqlite?"
@@ -16,29 +16,31 @@ SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
-IUSE="gnome sqlite"
+IUSE="sqlite"
RDEPEND="
dev-python/pyxdg[${PYTHON_USEDEP}]
+ >=dev-python/requests-2.4[${PYTHON_USEDEP}]
virtual/python-dnspython[${PYTHON_USEDEP}]
- gnome? ( dev-python/pygtk:2[${PYTHON_USEDEP}] )
"
DEPEND=""
RESTRICT="test"
python_prepare_all() {
- local PATCHES=( "${FILESDIR}"/${PN}-9.3-bash-completion.patch )
+ local PATCHES=(
+ "${FILESDIR}/${PN}-9.3-bash-completion.patch"
+ )
distutils-r1_python_prepare_all
}
python_install_all() {
DOCS=(
- doc/upgrading.txt
- doc/python3.txt
doc/changelog.txt
doc/development.mdwn
+ doc/python3.txt
+ doc/upgrading.txt
)
distutils-r1_python_install_all
diff --git a/net-analyzer/metasploit/Manifest b/net-analyzer/metasploit/Manifest
index 93faf880e626..e707226397ec 100644
--- a/net-analyzer/metasploit/Manifest
+++ b/net-analyzer/metasploit/Manifest
@@ -2,6 +2,6 @@ AUX database.yml 613 BLAKE2B c724103b21f7650e4c6a221a22984cbff1be21ae761b62666db
DIST metasploit-4.14.16.tar.gz 23726763 BLAKE2B ab2d3f10c948db394643f2bcd9b08822f16133ef81abe7048b6c4e49bf635abded40d7359b9787f7f955ba6eccfdb81ff6372d24dd2acd732ba9f16cb41ca8b4 SHA512 882968e68ff5adf10426f6e8480f3eac7cd9b289c1e641a91e537d31a434858f2c47b4f7b5bf23fcfc22eceecd2527eedb7eac3e9a8ad4a212187762b1b9aab2
DIST metasploit-4.17.21.tar.gz 28812125 BLAKE2B 15ff8ccac99d783b7b9cd20d6512df551b3143b4947d2f347b2558d1bafd2861d41fe6b051034c75cd25030ad85d26f261ffe9149dd27d551f92f17fcc0b4075 SHA512 00763f515bc6b556d4dbe15a7c58fac3c7febb64fb339fd5c05ad2b18b5b55bdf8815daca35f24bb22bea3d376db4f4610918730d813079e5ac3f8d5ad16d2d9
EBUILD metasploit-4.14.16-r2.ebuild 11790 BLAKE2B 8b2fb60ffa9bf4636f4c0cbd25802fa531339d4e439478118fbef1fd2b411095544984195bccf69100049ecdca7f7e276e2f79ca489d953e2a597f9ce6cfde34 SHA512 a9a189b1d3eef0054aa63628b16b51a5c16be4861b12afae2442083cffbc37e3e18fd8ed0955d4e9190fefe0c72417b4623aca17a68c35d363097eeb4dcfaf17
-EBUILD metasploit-4.17.21-r4.ebuild 12232 BLAKE2B 6634d2be9375e19e5048ced4801f55424ac143b46b1675be8040230ee51a586e6512821509ad00dcb841411ebe715615ee8ec36715d14e1b17a1fa68206a767a SHA512 abbb8fa6cb57158bd38457456d3b63d5bf2f1a8aa2bef5a7512492bebc1174cf1572f0250801f6a954ae3f717542b864ae029993fa4581ec92c20379a9af0940
+EBUILD metasploit-4.17.21-r4.ebuild 12241 BLAKE2B bd8f424eb18242dcf6113c99ce1ec2b22d3a493a3b54ba1de1af358c2efece5e93e8430ae6726ffc3011cccddff656cfe6b4e51ea229f4656d39018739872bf5 SHA512 56b1bcf9388914ef39adf2b438bbc168fbe88b27404c753441843581efc35cb280a39240125c47a005834f8e1acad05a098d4fca472d4f364835d32fe4dabd80
EBUILD metasploit-9999.ebuild 12233 BLAKE2B 43593e3349db4932a2c4808be403b07e4dceb79abdad407a3285a515f31209ddddbeddf371822fc71156f99c1dae3dbbee8423d776370926a6108adcafa4dcce SHA512 eea4237aaaf6a6c36f6df83a1b4475126797c3fa2c2c5758042e28079b46637e56e0b509abe28eaa149029dd5db683111773d479c59c972b4b4f1d258483e799
MISC metadata.xml 853 BLAKE2B 9b0b2e6c82a4df1327ded8b8381fa1e557ba4353ae5dab9665e7b59950d36e61faead5d8672e2cc10dad68b5a3250126a7fb1c4edc7f6814f28ea3f6df663473 SHA512 9af2dae0c12ae84ae2a7887fad0e7f5ea1d945a8b6e6674ba9e3c3bbff167b00a4aeff2da8b457ff8657f83d617dad67f633b260578a1e9608475fe45585cad0
diff --git a/net-analyzer/metasploit/metasploit-4.17.21-r4.ebuild b/net-analyzer/metasploit/metasploit-4.17.21-r4.ebuild
index 9c5d8872886b..d749f104d93e 100644
--- a/net-analyzer/metasploit/metasploit-4.17.21-r4.ebuild
+++ b/net-analyzer/metasploit/metasploit-4.17.21-r4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
@@ -12,13 +12,13 @@ if [[ ${PV} == "9999" ]] ; then
EGIT_BRANCH="4.x"
EGIT_CHECKOUT_DIR="${WORKDIR}"/all
inherit git-r3
- KEYWORDS=""
+ KEYWORDS="~arm"
SLOT="9999"
else
##Tags https://github.com/rapid7/metasploit-framework/releases
MY_PV=${PV/_p/-}
SRC_URI="https://github.com/rapid7/metasploit-framework/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
- KEYWORDS="~amd64 ~x86"
+ KEYWORDS="~amd64 ~arm ~x86"
RUBY_S="${PN}-framework-${MY_PV}"
inherit eapi7-ver
SLOT="$(ver_cut 1).$(ver_cut 2)"
diff --git a/net-analyzer/nagios-core/Manifest b/net-analyzer/nagios-core/Manifest
index 18c2c27e6e2e..3c1451e5122d 100644
--- a/net-analyzer/nagios-core/Manifest
+++ b/net-analyzer/nagios-core/Manifest
@@ -4,7 +4,9 @@ AUX nagios-4.4.2-pre.patch 7936 BLAKE2B 143d1d80ae6d940165f5bff8e27deaee216f2a06
AUX nagios-4.4.3-pre.patch 1479 BLAKE2B cc3f4b1e04f82ec97c5b15e7cb15defb7d700d776ee4faf0123d74afac998b8897796f77924e30e3dd1999d48f15b112481dd4bac4a6d5f5f01774881aad3b3c SHA512 fea7837f745efb85e64450b6cf3795cb011d3d5cf4d70e1e51b5037474f09943d94e2216839d9290fa8507176b14794c1028fd26d2c84f3259e728a3dcbca994
DIST nagios-4.3.4.tar.gz 11101966 BLAKE2B 6cb8182f40a4f83875c94df040bb1c62ce078d4130e10fa8595ea0b14cf715fc2a237ffb34199da9c1528e4789f3ce8deae3d993b5b795ad712d48b1e5fdb820 SHA512 f4e92aa98151739442a225a245871d93b5560d89510bdacb1a615959b9687f7a92675f10fcba71078b104ca8f237b0155a9261d67ec66f80aec7f033b4b3e316
DIST nagios-4.4.2.tar.gz 11301454 BLAKE2B 1b5ffa775bbf147e96d07edd36a387db271802d58cc1a1d1eb867645955aec0044e757785578a60c12549bd4e66e4c95ef06dd0f3f8be3599187d0ef0bcc8a4b SHA512 a6ddb2d8ca1c523d02659a2af0b9c67a3802893c946279bb15be53645dc64c997cd5562b77eab9dae03e756ec6622a9a641f7bd68269aba4ddd56ee21f50959e
+DIST nagios-4.4.3.tar.gz 11302228 BLAKE2B d22ab64268832897dfa67d805a5d74656f7aa96ce1427c7326b632060d8c1ea0fbd07564f3c7a978bb5e2c0cba0c06290e7b0d579017fe73b900eb290c7853ae SHA512 07c91a796d634ffda73305edb54e01e46cb4fc9dc996c937e657c18f8067d7e2d31421b058a04b7395ef739962445ea149c486caaac94b7d422b4032bdaa07d4
DIST nagios-core-gentoo-icons-20141125.tar 40960 BLAKE2B 31c1953e1160c7c7b89606b72b1a80407e4c1b7a7938b40bd1c577cd0c309dd88ca6b775d692a9b846dbf67736537fa9c91e56aa15fdd447769608ca525bff09 SHA512 bf109879cddd6136b76baba55d0b60b2596e37431dcf5ce0905d34a9fa292ebf7e4bde82d9a084362c486e8fac344c76d88f9298b1b85541ed70ffd608493766
EBUILD nagios-core-4.3.4.ebuild 6633 BLAKE2B b179113b24ff38a5c147de20cd48db21fa1379f4ab377c7c354a1f107f9651f1b348f7dbd26825aaacb1fe8ce54d8feedbd7a44b65d3c897480d1c87a1fd4183 SHA512 43668b229464870ff2843790b1fd3bed7e3e2c4ba58f8cc19b90d8e85418c0e86b3b604089ccf52a63f24f6c0fb5e9ea4045769b2f63df96dc7d70c53d3e8411
EBUILD nagios-core-4.4.2.ebuild 6692 BLAKE2B cef816faef6561bb8ee0dae09266fb0fce684ac0d6e2c65227e0e6aa2080bf20ff4612e189d269f66c946de516dd7620820f9acc76d6cbb89380dbda1d552a0d SHA512 26524450d6a3c207d5d05562767f635f04828f19e7d065ab2e0a826b5c82c444811d344cc3380bee814d2369451a82423aab4047feadae84077e97c1b1130963
+EBUILD nagios-core-4.4.3-r1.ebuild 6606 BLAKE2B 158f1629920032d07ccef39a5f6c8b596f894a957fae83b4efee89a42560f20eb4c2c248c0634ceac84b7315e1e0825a7608f1053a5485ab58d83b3b4dc33a44 SHA512 79985b40a69782d73780b5c0d85d758c96e57e87f24725d2bb338c8e761cadca4ac17e82d22a3662657408bb8cc1b03cc1e1eea2220424d75314f81fdccc6e75
MISC metadata.xml 1466 BLAKE2B 655e382c72b7fcf8f4283055a503e2ad79dbfc695f730980543e6a7381f5aa093ab279341cd2df19a1d5e5053b2c686ecf6884c541a7b984dce60fc1ae4d4599 SHA512 51f819fc2cbe3b87ee96b048fd0e622f78673a29d5b42b2b8f1d963f6f71ead679b057863f5f1a56e997c1e19ff26edf52697c02f79ba89ed6a5480d0ae2296b
diff --git a/net-analyzer/nagios-core/nagios-core-4.4.3-r1.ebuild b/net-analyzer/nagios-core/nagios-core-4.4.3-r1.ebuild
new file mode 100644
index 000000000000..74ddb853c43e
--- /dev/null
+++ b/net-analyzer/nagios-core/nagios-core-4.4.3-r1.ebuild
@@ -0,0 +1,213 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs user
+
+MY_P=${PN/-core}-${PV}
+DESCRIPTION="Nagios core - monitoring daemon, web GUI, and documentation"
+HOMEPAGE="https://www.nagios.org/"
+
+# The name of the directory into which our Gentoo icons will be
+# extracted, and also the basename of the archive containing it.
+GENTOO_ICONS="${PN}-gentoo-icons-20141125"
+SRC_URI="mirror://sourceforge/nagios/${MY_P}.tar.gz
+ web? ( https://dev.gentoo.org/~mjo/distfiles/${GENTOO_ICONS}.tar )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="apache2 classicui lighttpd perl +web vim-syntax"
+
+# In pkg_postinst(), we change the group of the Nagios configuration
+# directory to that of the web server user. It can't belong to both
+# apache/lighttpd groups at the same time, so we block this combination
+# for our own sanity.
+#
+# This could be made to work, but we would need a better way to allow
+# the web user read-only access to Nagios's configuration directory.
+#
+REQUIRED_USE="apache2? ( !lighttpd )"
+
+#
+# Note, we require one of the apache2 CGI modules:
+#
+# * mod_cgi
+# * mod_cgid
+# * mod_fcgid
+#
+# We just don't care /which/ one. And of course PHP supports both CGI
+# (USE=cgi) and FastCGI (USE=fpm). We're pretty lenient with the
+# dependencies, and expect the user not to do anything /too/
+# stupid. (For example, installing Apache with only FastCGI support, and
+# PHP with only CGI support.)
+#
+# Another annoyance is that the upstream Makefile uses app-arch/unzip to
+# extract a snapshot of AngularJS, but that's only needed when USE=web.
+#
+MOD_ALIAS=apache2_modules_alias
+DEPEND="dev-libs/libltdl:0
+ virtual/mailx
+ perl? ( dev-lang/perl:= )
+ web? (
+ app-arch/unzip
+ media-libs/gd[jpeg,png]
+ lighttpd? ( www-servers/lighttpd[php] )
+ apache2? (
+ || (
+ >=www-servers/apache-2.4[${MOD_ALIAS},apache2_modules_cgi]
+ >=www-servers/apache-2.4[${MOD_ALIAS},apache2_modules_cgid]
+ >=www-servers/apache-2.4[${MOD_ALIAS},apache2_modules_fcgid] )
+ || (
+ dev-lang/php:*[apache2]
+ dev-lang/php:*[cgi]
+ dev-lang/php:*[fpm] )
+ )
+ )"
+RDEPEND="${DEPEND}
+ vim-syntax? ( app-vim/nagios-syntax )"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ enewgroup nagios
+ enewuser nagios -1 /bin/bash /var/nagios/home nagios
+}
+
+src_configure() {
+ local myconf
+
+ if use perl; then
+ myconf="${myconf} --enable-embedded-perl --with-perlcache"
+ fi
+
+ if use !apache2 && use !lighttpd ; then
+ myconf="${myconf} --with-command-group=nagios"
+ else
+ if use apache2 ; then
+ myconf="${myconf} --with-command-group=apache"
+ myconf="${myconf} --with-httpd-conf=/etc/apache2/conf.d"
+ elif use lighttpd ; then
+ myconf="${myconf} --with-command-group=lighttpd"
+ fi
+ fi
+
+ econf ${myconf} \
+ --prefix=/usr \
+ --bindir=/usr/sbin \
+ --localstatedir=/var/nagios \
+ --sysconfdir=/etc/nagios \
+ --libexecdir=/usr/$(get_libdir)/nagios/plugins \
+ --with-cgibindir=/usr/$(get_libdir)/nagios/cgi-bin \
+ --with-webdir=/usr/share/nagios/htdocs
+}
+
+src_compile() {
+ emake CC=$(tc-getCC) nagios
+
+ if use web; then
+ # Only compile the CGIs/HTML when USE=web is set.
+ emake CC=$(tc-getCC) DESTDIR="${D}" cgis html
+ fi
+}
+
+src_install() {
+ dodoc Changelog CONTRIBUTING.md README.md THANKS UPGRADING
+
+ # There is no way to install the CGIs unstripped from the top-level
+ # makefile, so descend into base/ here. The empty INSTALL_OPTS
+ # ensures that root:root: owns the nagios executables.
+ cd "${S}/base" || die
+ emake INSTALL_OPTS="" DESTDIR="${D}" install-unstripped
+ cd "${S}" || die
+
+ # Otherwise this gets installed as 770 and you get "access denied"
+ # for some reason or other when starting nagios. The permissions
+ # on nagiostats are just for consistency (these should both get
+ # fixed upstream).
+ fperms 775 /usr/sbin/nagios /usr/sbin/nagiostats
+
+ # INSTALL_OPTS are needed for most of install-basic, but we don't
+ # want them on the LIBEXECDIR, argh.
+ emake DESTDIR="${D}" install-basic
+ fowners root:root /usr/$(get_libdir)/nagios/plugins
+
+ # Don't make the configuration owned by the nagios user, because
+ # then he can edit nagios.cfg and trick nagios into running as root
+ # and doing his bidding.
+ emake INSTALL_OPTS="" DESTDIR="${D}" install-config
+
+ # No INSTALL_OPTS used in install-commandmode, thankfully.
+ emake DESTDIR="${D}" install-commandmode
+
+ if use web; then
+ # There is no way to install the CGIs unstripped from the
+ # top-level makefile, so descend into cgi/ here. The empty
+ # INSTALL_OPTS ensures that root:root: owns the CGI executables.
+ cd "${S}/cgi" || die
+ emake INSTALL_OPTS="" DESTDIR="${D}" install-unstripped
+ cd "${S}" || die
+
+ # install-html installs the new exfoliation theme
+ emake INSTALL_OPTS="" DESTDIR="${D}" install-html
+
+ if use classicui; then
+ # This overwrites the already-installed exfoliation theme
+ emake INSTALL_OPTS="" DESTDIR="${D}" install-classicui
+ fi
+
+ # Install cute Gentoo icons (bug #388323), setting their
+ # owner, group, and mode to match those of the rest of Nagios's
+ # images.
+ insinto /usr/share/nagios/htdocs/images/logos
+ doins "${WORKDIR}/${GENTOO_ICONS}"/*.*
+ fi
+
+ newinitd startup/openrc-init nagios
+
+ if use web ; then
+ if use apache2 ; then
+ # Install the Nagios configuration file for Apache.
+ insinto "/etc/apache2/modules.d"
+ doins "${FILESDIR}"/99_nagios4.conf
+ elif use lighttpd ; then
+ # Install the Nagios configuration file for Lighttpd.
+ insinto /etc/lighttpd
+ newins "${FILESDIR}/lighttpd_nagios4.conf" nagios.conf
+ else
+ ewarn "${CATEGORY}/${PF} only supports apache or lighttpd"
+ ewarn "out of the box. Since you are not using one of them, you"
+ ewarn "will have to configure your webserver yourself."
+ fi
+ fi
+}
+
+pkg_postinst() {
+
+ if use web; then
+ if use apache2 || use lighttpd ; then
+ if use apache2; then
+ elog "To enable the Nagios web front-end, please edit"
+ elog "${ROOT}etc/conf.d/apache2 and add \"-D NAGIOS -D PHP\""
+ elog "to APACHE2_OPTS. Then Nagios will be available at,"
+ elog
+ elif use lighttpd; then
+ elog "To enable the Nagios web front-end, please add"
+ elog "'include \"nagios.conf\"' to the lighttpd configuration"
+ elog "file at ${ROOT}etc/lighttpd/lighttpd.conf. Then Nagios"
+ elog "will be available at,"
+ elog
+ fi
+
+ elog " http://localhost/nagios/"
+ fi
+ fi
+
+ elog
+ elog "If your kernel has /proc protection, nagios"
+ elog "will not be happy as it relies on accessing the proc"
+ elog "filesystem. You can fix this by adding nagios into"
+ elog "the group wheel, but this is not recomended."
+ elog
+}
diff --git a/net-analyzer/nagios/Manifest b/net-analyzer/nagios/Manifest
index 627d99120a11..bf6ac57decfe 100644
--- a/net-analyzer/nagios/Manifest
+++ b/net-analyzer/nagios/Manifest
@@ -1,3 +1,4 @@
EBUILD nagios-4.3.4.ebuild 391 BLAKE2B 31a1586c68f74b862b0ee308ae8818c574a1e33f94a2b3daaa6d3a7d52622a61bcda61a5c968dcd911ad55ac03797dd0b54f85d4d98ebc79630fb0ed655c671e SHA512 80f20980638b39862e3026ff34e1a4827161366ad1c8079a32b8bd2736a67a3d4da2d042e9da54b6c0eef6dd2b3d196c7cdcb2949ac796d614e92fa9817cd85b
EBUILD nagios-4.4.2.ebuild 400 BLAKE2B fbd1d3c6d07c27bae1f9ebe45385f5c02797e85c557b1ea2276de7a211cb0afe4edb7589e6b492d466daa66906cf14ce4cb73fccdd3915ce99a4f861a1d24e01 SHA512 e766f3e115adb6e8c1ad8e490b107d8dfc1d8125e7290ce854332198f49d9d2cf0ee7adc5c9091250b8ca2357dc1f48e875fe31e7f0b811b4e631e79cc1efb93
+EBUILD nagios-4.4.3.ebuild 397 BLAKE2B 244121a98f46b570281d36276ca17413b51a015a46835b1bd1f568328d0b12a90bd5f001199a3bd11f4121287bb78762e36007f9e206e75dcfad5af792ce10e0 SHA512 c260ebfa1f7578fd20bb76ba8ae0dfe9dcd495b185c8c5272b09657918b08d194b539428642f4e9e20afa9ba6cdb73a73806f47e9e4e80a321021e04c3f5b405
MISC metadata.xml 1110 BLAKE2B a3577be74f7ae7da47c1add86da6b9cd2972ebea1e4e4241886027e7c4aecb936ffa776a32bcc0b77498c393ebb4c81aa9a98a3c8d45cbd5556f8b9014384e52 SHA512 7614b25879899b4939a136de6cd4cbd3995372747e95d2d6b90ccd8e074800b6acb738df5f9c852625c34f5a72c3072c0dec910266068ec8a72184f75aa204e1
diff --git a/net-analyzer/nagios/nagios-4.4.3.ebuild b/net-analyzer/nagios/nagios-4.4.3.ebuild
new file mode 100644
index 000000000000..39d47b09dafc
--- /dev/null
+++ b/net-analyzer/nagios/nagios-4.4.3.ebuild
@@ -0,0 +1,15 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="The Nagios metapackage"
+HOMEPAGE="https://www.nagios.org/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND="~net-analyzer/nagios-core-${PV}
+ || ( net-analyzer/nagios-plugins net-analyzer/monitoring-plugins )"
diff --git a/net-analyzer/snort/Manifest b/net-analyzer/snort/Manifest
index faf5a0854497..44a4189f73b1 100644
--- a/net-analyzer/snort/Manifest
+++ b/net-analyzer/snort/Manifest
@@ -6,23 +6,7 @@ AUX snort.rc12 1469 BLAKE2B 6238dfc0f9e178fca864ee9485b8cf59c3056d8b047ee5fd6208
AUX snort.tmpfiles 32 BLAKE2B 39e4f2491f52d2a369b1c4747468ea3a9d5f2c05a85adb4666e733929be16b9cf868ea6878d3d71271dd8ee05ad8e8fac52c4f4ebfd17da873a3dc64c5368810 SHA512 705e49c172ba7bc0afee9910dcbf7b4ee96f05e6d3030c7928bbeb0df658aefb5f61fddd0da078b257ee9a0c86d1750e7b44d6f61d8e56ab799044cd141964b5
AUX snort_at.service 327 BLAKE2B 36039657ae5a5b7a37585baebc3de15f32f457b3df6313621eea6bafe3e8a34626960bd4adafe110f36f75a15bae8fc045a6e3267b960249536a0f10ac05b88f SHA512 af48018d232eec181eff2f3aa240e11744911874ee08a0311474d73bffcf1e567102ea6d42a26520dd5a1a3c66530d8d3f19fc4b4753b6ac0ae55eb3200747e0
DIST snort-2.9.12.tar.gz 6456877 BLAKE2B af5584fe01caf9af2f2188e1362bd927a884354ddcb3026af514dddc1264b557691e1644d3c24e85c3b5b5f515dd9fccdd8d38ebc7c28d2f384fb822e27d8bb8 SHA512 6f759b321ca5496abf27c9e4f4fa003cd5167f8c8a160bf5f0b1aee1a93aa8d27de89b84bdf993a0bfb3a93c6315cb2bdbdc3fdb3b09b8d4d1d3c22b69c6783f
-DIST snort-2.9.4.6.tar.gz 5338762 BLAKE2B d7d663028fcfeffd2f2996a4ebf81aa723b4564a0aa38158f5fef104385866164d8ddd538d920f08e4102da0b055157c8574e42f2e306187eb82283db5ad2c78 SHA512 e35e22cab3b98bbd42ffb4b88c4c4cc9b1c11e35952a9f3f4f684c02c81ca8604b45d16f42b3d0a6c792eeab86a8e319d8ebdd7b1a5215f93ec0e70b6ef53f98
-DIST snort-2.9.7.0.tar.gz 6340553 BLAKE2B 97fc2699fd93278edd5b350db498733f60ea9a78fe8f9f755c153380be77b3b97caec3aa7cce633650dd0e5d193deab675855aa68c2efcb04dc6df04b77ccb4c SHA512 f2cbdd2cf2ad15bd4cf3f8658c2a4880ee2069589db89c11aaea637984dde270ef6242c6dd43d5e12f829ed2464388950ee791dbbfa8df796843942c415fbc2f
-DIST snort-2.9.7.2.tar.gz 6352738 BLAKE2B c2c67395d9a214886ecf033b692f841da58284d0687ee4c219f77850246b1c2e134b874aba6dfd30dcb1f3c71d54a6c4e5dc70e613eb28a59c51f31dc9498b41 SHA512 4732014d0049671b1a81857e25a5ffbc3cbccb698be2b3406f69a45603a6b9f34343469ee14fa513199cf9b890a278cc777b42493850cff6fcb3493bb9b73dce
-DIST snort-2.9.7.3.tar.gz 6300073 BLAKE2B f81611aadd282ebf01e92c7a62c28fad980dab36d86635c32b89fb4691b3723c4cdfaf123f7b703bdf1132419bed4b55533861c1665012af310bf916665b8bf2 SHA512 949213d44d08c7f70bd45bc4947c9c35bfcd2ca3a54ec8a28d0c03e3868a485d2c208ec7850398f69d706c74fbad1389af445eb1107e678ff95714b5696f27b7
-DIST snort-2.9.7.5.tar.gz 6312847 BLAKE2B a8ef86fd5fded47495fe50ee5fcc81d9f066b6ce099fd17496707ea01c77c9581526444ad3601d4025c1be8ada533bfc34e7aca7c616bf4f43c3f940742d0272 SHA512 fa1b299c72a44a8cb64361e8dab9fad5bfec36bbb05ebed2407002b2c5d97256d7d67599cb1f29406b5ee0916f2f85a173610d403cd34c57f74f7049c10eb038
-DIST snort-2.9.8.0.tar.gz 6323095 BLAKE2B f1febbc585e1921af5c599e3d0a4035f38045dd7ea6dd001a6aa9f887a7632e7ad0aecc3fe45f7ba0b44e87dfa50eceeb51df044483baf55ff60ded66cad6867 SHA512 46e5f19be5eccad2d5b4d3d55ce42fe616cd5f605b7178ed98e86cc8f2f4cf0f796fad80033d81b71bea7da2abfb6d0b340815ee158190f9b974f671045bf002
-DIST snort-2.9.8.2.tar.gz 6311793 BLAKE2B 82b4587221a43ade2d6c1d9c38889a5d329d0eb5894bdbd84fac5fa2965ddafc0b1b15f286719a82a8a4df3daf3c20847a298eeae84422867ccefb2d50a7ea71 SHA512 60f660b2093ae88211dcef9256edf35441c0ffc61ec8240b6d25e947b55b0fdb23482913246e2288a8a533dbaff4e5ea2d8f51298ab9aa67baa1ab74d1c4f7a4
DIST snort-2.9.8.3.tar.gz 6244304 BLAKE2B cb77c80dde0b5b32ba0fe36cd07e1f6f465127e4be207ba6cd3b7c7dff75f4537c86c6a88d744a924b99d0b4ac864add2c9111c63e51dc4c7dc23f8d19a6c792 SHA512 2f3dfe46e14a5106a02ca60b2d334549f4924ff916de0804b2b7792cdd31e104fbb454b4b932855b5f25a861698db0f8988844782b12b0e5fa132d88d4a7a687
EBUILD snort-2.9.12.ebuild 8872 BLAKE2B 84895cf9afb5ddf3079773ff50d730c56af2b01fc912c9d1fa74bead53fe30332d4971dde35cd3091057fadb06f32c25971823904c8d00caf185d9547ec32a63 SHA512 26ed8dc6c1d020a1fb73d1f12a81700a3d18103038340d00eb44d9891391eb49b2e8a611a3f46bf4d8423cb0586e8449933e7863e0184030f152b246e6696070
-EBUILD snort-2.9.4.6-r1.ebuild 8579 BLAKE2B 76c4436513f235a59f382faeb2dac52f224b7936d5c2a31ef97c4609dca055c423228b64d21b8362aababefc1eaeafb60849d8e0593d076b27f060d25f50a2df SHA512 cba04818f77f258dd847869f87aa03be44462da6fcd997e5fea012d9fdd6d9498d24f5e4ec6af5b71dbba4b624b6325585c66457258b2b3536e1a2e45f229535
-EBUILD snort-2.9.7.0.ebuild 8554 BLAKE2B eaf2bd2a509c205c55f7a388dd5cc6f8838aac23848ee0ad191967b4b1955139d91547a4b3eb61237e501f8b39b36a093a8a2e5e489b0f1f2d30f80239b9228c SHA512 ec01e6e3bc88d16da3b25fb99be6377175c4bdc704508aaf5badaec511e43d40de5ce25d34315de7407a1cf8c778e81643eb056ebe1cf0c033fe6ceef6f7c8f6
-EBUILD snort-2.9.7.2.ebuild 8554 BLAKE2B eaf2bd2a509c205c55f7a388dd5cc6f8838aac23848ee0ad191967b4b1955139d91547a4b3eb61237e501f8b39b36a093a8a2e5e489b0f1f2d30f80239b9228c SHA512 ec01e6e3bc88d16da3b25fb99be6377175c4bdc704508aaf5badaec511e43d40de5ce25d34315de7407a1cf8c778e81643eb056ebe1cf0c033fe6ceef6f7c8f6
-EBUILD snort-2.9.7.3.ebuild 8554 BLAKE2B eaf2bd2a509c205c55f7a388dd5cc6f8838aac23848ee0ad191967b4b1955139d91547a4b3eb61237e501f8b39b36a093a8a2e5e489b0f1f2d30f80239b9228c SHA512 ec01e6e3bc88d16da3b25fb99be6377175c4bdc704508aaf5badaec511e43d40de5ce25d34315de7407a1cf8c778e81643eb056ebe1cf0c033fe6ceef6f7c8f6
-EBUILD snort-2.9.7.5.ebuild 8554 BLAKE2B eaf2bd2a509c205c55f7a388dd5cc6f8838aac23848ee0ad191967b4b1955139d91547a4b3eb61237e501f8b39b36a093a8a2e5e489b0f1f2d30f80239b9228c SHA512 ec01e6e3bc88d16da3b25fb99be6377175c4bdc704508aaf5badaec511e43d40de5ce25d34315de7407a1cf8c778e81643eb056ebe1cf0c033fe6ceef6f7c8f6
-EBUILD snort-2.9.8.0.ebuild 8554 BLAKE2B eaf2bd2a509c205c55f7a388dd5cc6f8838aac23848ee0ad191967b4b1955139d91547a4b3eb61237e501f8b39b36a093a8a2e5e489b0f1f2d30f80239b9228c SHA512 ec01e6e3bc88d16da3b25fb99be6377175c4bdc704508aaf5badaec511e43d40de5ce25d34315de7407a1cf8c778e81643eb056ebe1cf0c033fe6ceef6f7c8f6
-EBUILD snort-2.9.8.2.ebuild 8554 BLAKE2B eaf2bd2a509c205c55f7a388dd5cc6f8838aac23848ee0ad191967b4b1955139d91547a4b3eb61237e501f8b39b36a093a8a2e5e489b0f1f2d30f80239b9228c SHA512 ec01e6e3bc88d16da3b25fb99be6377175c4bdc704508aaf5badaec511e43d40de5ce25d34315de7407a1cf8c778e81643eb056ebe1cf0c033fe6ceef6f7c8f6
-EBUILD snort-2.9.8.3-r1.ebuild 8347 BLAKE2B 8c7d2738ff0e1ba01b4915f2f4dcb7c37135798118b0ebcc27c5ffba959e830ba84739eb664b436eeaaf98cdf9396a03db6caf515597932ed3dae0c9d4d9a444 SHA512 2dfbb80f30c6051ddc7d090e91715077b97a8e94ffc186d428abda3cf06a9fc8f507d4eebe4bb94dc01e87b1c58869b3d4653ed21057681e8dba96fbdcbd6fd5
EBUILD snort-2.9.8.3-r2.ebuild 8505 BLAKE2B 82e9e4dbb2527f80ff87f3c95befb2b141e8ca55e1b097581b688c65e990c7cc0206388d98859f47e0f6b0a9ea52d2f6ff566ed67085de4f33c5023e7e4b86dc SHA512 8444c62e53db68fa39a85048b1ce01f30d16d636f4dd5eb3e51a1a5af3e393ca9bf0d4615c44b38bd57de050735b3666222c542c215b08f4f75c49613988a390
-EBUILD snort-2.9.8.3.ebuild 8554 BLAKE2B eaf2bd2a509c205c55f7a388dd5cc6f8838aac23848ee0ad191967b4b1955139d91547a4b3eb61237e501f8b39b36a093a8a2e5e489b0f1f2d30f80239b9228c SHA512 ec01e6e3bc88d16da3b25fb99be6377175c4bdc704508aaf5badaec511e43d40de5ce25d34315de7407a1cf8c778e81643eb056ebe1cf0c033fe6ceef6f7c8f6
-MISC metadata.xml 5278 BLAKE2B 064f738fa204f31a53a5964c755b3c828c38c06c39a5528fbb4860e339e8f8b601f3a07544e74407087551a4aa6b643f975d7109157c8e377f19b99cf8cc430a SHA512 3de9ffe710b163675b0126c9df110222b58191f7f6a6e43c7063f56385ccc780d71fdf4532313a3e6636cebca68a136619bf807772d7aaa04d28e793d92055db
+MISC metadata.xml 4042 BLAKE2B 931c99e6b1aee3727e47f32dff6399dc821624fc9cc3be496ba711d480edb04920d2ffcdc9ce4fe6a253be2bbcd4bb45f56a34da530c6dd60140c77b5cc45856 SHA512 2ade0995e40052f3be40a073458a19ea380bb2f75e24905c06b45e88d8956b118db73fbb0a1062e5c0ca837e04d1805a54785a84283e701534ec47c320833b1f
diff --git a/net-analyzer/snort/metadata.xml b/net-analyzer/snort/metadata.xml
index 4478a084a217..be9d2aed013e 100644
--- a/net-analyzer/snort/metadata.xml
+++ b/net-analyzer/snort/metadata.xml
@@ -30,11 +30,6 @@
<flag name="control-socket">
Enables Snort's control socket.
</flag>
- <flag name="dynamicplugin">
- Enable ability to dynamically load preprocessors, detection engine,
- and rules library. This is required if you want to use shared
- object (SO) snort rules.
- </flag>
<flag name="file-inspect">
Enables extended file inspection capabilities.
</flag>
@@ -57,11 +52,6 @@
Enable accurate statistics reporting through /proc on systems with
multipule processors.
</flag>
- <flag name="mpls">
- Enables support for processing and inspecting Multiprotocol Label
- Switching MPLS network network traffic. Only needed if you are
- monitoring an MPLS network.
- </flag>
<flag name="non-ether-decoders">
Enable decoding of non-ethernet protocols such as TokenRing, FDDI,
IPX, etc.
@@ -95,40 +85,20 @@
Enables Sourcefire specific build options, which include
--enable-perfprofiling and --enable-ppm.
</flag>
- <flag name="targetbased">
- Enables support in snort for using a host attibute XML file
- (attribute_table.dtd). This file needs to be created by the user
- and should define the IP address, operating system, and services
- for all hosts on the monitored network. This is cumbersome, but
- can improve intrusion detection accuracy.
- </flag>
<flag name="reload-error-restart">
Enables support for completely restarting snort if an error is
detected durring a reload.
</flag>
- <flag name="zlib">
- Enables HTTP inspection of compressed web traffic. Requires
- dynamicplugin be enabled.
- </flag>
<flag name="active-response">
Enables support for automatically sending TCP resets and ICMP
unreachable messages to terminate connections. Used with inline
deployments.
</flag>
- <flag name="normalizer">
- Enables support for normalizing packets in inline deployments to
- help minimize the chances of detection evasion.
- </flag>
<flag name="flexresp3">
Enables support for new flexable response preprocessor for enabling
connection tearing for inline deployments. Replaces flexresp and
flexresp2.
</flag>
- <flag name="paf">
- Enables support for Protocol Aware Flushing. This allows Snort to
- statefully scan a stream and reassemble a complete protocol data
- unit regardless of segmentation.
- </flag>
<flag name="large-pcap-64bit">
Allows Snort to read pcap files that are larger than 2 GB. ONLY
VALID FOR 64bit SYSTEMS!
diff --git a/net-analyzer/snort/snort-2.9.4.6-r1.ebuild b/net-analyzer/snort/snort-2.9.4.6-r1.ebuild
deleted file mode 100644
index 4b7042f75768..000000000000
--- a/net-analyzer/snort/snort-2.9.4.6-r1.ebuild
+++ /dev/null
@@ -1,251 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-inherit autotools multilib user
-
-DESCRIPTION="The de facto standard for intrusion detection/prevention"
-HOMEPAGE="https://www.snort.org"
-SRC_URI="https://www.snort.org/downloads/archive/${PN}/${P}.tar.gz"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86"
-IUSE="static +dynamicplugin +zlib +gre +mpls +targetbased
-+ppm +perfprofiling +non-ether-decoders control-socket
-shared-rep sourcefire linux-smp-stats inline-init-failopen
-+threads debug +active-response +normalizer reload-error-restart
-+react +flexresp3 +paf large-pcap-64bit selinux"
-
-DEPEND=">=net-libs/libpcap-1.3.0
- >=net-libs/daq-2.0.0
- >=dev-libs/libpcre-8.33
- dev-libs/libdnet
- zlib? ( sys-libs/zlib )"
-
-RDEPEND="${DEPEND}
- selinux? ( sec-policy/selinux-snort )"
-
-REQUIRED_USE="zlib? ( dynamicplugin )
- !kernel_linux? ( !shared-rep )"
-
-pkg_setup() {
-
- # pre_inst() is a better place to put this
- # but we need it here for the 'fowners' statements in src_install()
- enewgroup snort
- enewuser snort -1 -1 /dev/null snort
-
-}
-
-src_prepare() {
-
- # Multilib fix for the sf_engine
- ebegin "Applying multilib fix"
- sed -i -e 's|${exec_prefix}/lib|${exec_prefix}/'$(get_libdir)'|g' \
- "${WORKDIR}/${P}/src/dynamic-plugins/sf_engine/Makefile.am" \
- || die "sed for sf_engine failed"
-
- # Multilib fix for the curent set of dynamic-preprocessors
- for i in ftptelnet smtp ssh dns ssl dcerpc2 sdf imap pop rzb_saac sip reputation gtp modbus dnp3; do
- sed -i -e 's|${exec_prefix}/lib|${exec_prefix}/'$(get_libdir)'|g' \
- "${WORKDIR}/${P}/src/dynamic-preprocessors/$i/Makefile.am" \
- || die "sed for $i failed."
- done
- eend
-
- AT_M4DIR=m4 eautoreconf
-}
-
-src_configure() {
-
- econf \
- $(use_enable !static shared) \
- $(use_enable static) \
- $(use_enable static so-with-static-lib) \
- $(use_enable dynamicplugin) \
- $(use_enable zlib) \
- $(use_enable gre) \
- $(use_enable mpls) \
- $(use_enable targetbased) \
- $(use_enable control-socket) \
- $(use_enable non-ether-decoders) \
- $(use_enable shared-rep) \
- $(use_enable sourcefire) \
- $(use_enable ppm) \
- $(use_enable perfprofiling) \
- $(use_enable linux-smp-stats) \
- $(use_enable inline-init-failopen) \
- $(use_enable threads pthread) \
- $(use_enable debug) \
- $(use_enable debug debug-msgs) \
- $(use_enable debug corefiles) \
- $(use_enable !debug dlclose) \
- $(use_enable active-response) \
- $(use_enable normalizer) \
- $(use_enable reload-error-restart) \
- $(use_enable react) \
- $(use_enable flexresp3) \
- $(use_enable paf) \
- $(use_enable large-pcap-64bit large-pcap) \
- --enable-reload \
- --disable-build-dynamic-examples \
- --disable-profile \
- --disable-ppm-test \
- --disable-intel-soft-cpm \
- --disable-static-daq \
- --disable-rzb-saac
-}
-
-src_install() {
-
- emake DESTDIR="${D}" install
-
- dodir /var/log/snort \
- /var/run/snort \
- /etc/snort/rules \
- /etc/snort/so_rules \
- /usr/$(get_libdir)/snort_dynamicrules
-
- # config.log and build.log are needed by Sourcefire
- # to trouble shoot build problems and bug reports so we are
- # perserving them incase the user needs upstream support.
- dodoc RELEASE.NOTES ChangeLog \
- doc/* \
- tools/u2boat/README.u2boat
-
- insinto /etc/snort
- doins etc/attribute_table.dtd \
- etc/classification.config \
- etc/gen-msg.map \
- etc/reference.config \
- etc/threshold.conf \
- etc/unicode.map
-
- # We use snort.conf.distrib because the config file is complicated
- # and the one shipped with snort can change drastically between versions.
- # Users should migrate setting by hand and not with etc-update.
- newins etc/snort.conf snort.conf.distrib
-
- # config.log and build.log are needed by Sourcefire
- # to troubleshoot build problems and bug reports so we are
- # preserving them incase the user needs upstream support.
- if [ -f "${WORKDIR}/${PF}/config.log" ]; then
- dodoc "${WORKDIR}/${PF}/config.log"
- fi
- if [ -f "${T}/build.log" ]; then
- dodoc "${T}/build.log"
- fi
-
- insinto /etc/snort/preproc_rules
- doins preproc_rules/decoder.rules \
- preproc_rules/preprocessor.rules \
- preproc_rules/sensitive-data.rules
-
- fowners -R snort:snort \
- /var/log/snort \
- /var/run/snort \
- /etc/snort
-
- newinitd "${FILESDIR}/snort.rc12" snort
- newconfd "${FILESDIR}/snort.confd.2" snort
-
- # Sourcefire uses Makefiles to install docs causing Bug #297190.
- # This removes the unwanted doc directory and rogue Makefiles.
- rm -rf "${D}"usr/share/doc/snort || die "Failed to remove SF doc directories"
- rm "${D}"usr/share/doc/"${PF}"/Makefile* || die "Failed to remove doc make files"
-
- #Remove unneeded .la files (Bug #382863)
- rm "${D}"usr/$(get_libdir)/snort_dynamicengine/libsf_engine.la || die
- rm "${D}"usr/$(get_libdir)/snort_dynamicpreprocessor/libsf_*_preproc.la || die "Failed to remove libsf_?_preproc.la"
-
- # Set the correct lib path for dynamicengine, dynamicpreprocessor, and dynamicdetection
- sed -i -e 's|/usr/local/lib|/usr/'$(get_libdir)'|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the correct rule location in the config
- sed -i -e 's|RULE_PATH ../rules|RULE_PATH /etc/snort/rules|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the correct preprocessor/decoder rule location in the config
- sed -i -e 's|PREPROC_RULE_PATH ../preproc_rules|PREPROC_RULE_PATH /etc/snort/preproc_rules|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Enable the preprocessor/decoder rules
- sed -i -e 's|^# include $PREPROC_RULE_PATH|include $PREPROC_RULE_PATH|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- sed -i -e 's|^# dynamicdetection directory|dynamicdetection directory|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Just some clean up of trailing /'s in the config
- sed -i -e 's|snort_dynamicpreprocessor/$|snort_dynamicpreprocessor|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Make it clear in the config where these are...
- sed -i -e 's|^include classification.config|include /etc/snort/classification.config|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- sed -i -e 's|^include reference.config|include /etc/snort/reference.config|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Disable all rule files by default.
- sed -i -e 's|^include $RULE_PATH|# include $RULE_PATH|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Disable normalizer preprocessor config if normalizer USE flag not set.
- if ! use normalizer; then
- sed -i -e 's|^preprocessor normalize|#preprocessor normalize|g' \
- "${D}etc/snort/snort.conf.distrib" || die
- fi
-
- # Set the configured DAQ to afpacket
- sed -i -e 's|^# config daq: <type>|config daq: afpacket|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the location of the DAQ modules
- sed -i -e 's|^# config daq_dir: <dir>|config daq_dir: /usr/'$(get_libdir)'/daq|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the DAQ mode to passive
- sed -i -e 's|^# config daq_mode: <mode>|config daq_mode: passive|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set snort to run as snort:snort
- sed -i -e 's|^# config set_gid:|config set_gid: snort|g' \
- "${D}etc/snort/snort.conf.distrib" || die
- sed -i -e 's|^# config set_uid:|config set_uid: snort|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the default log dir
- sed -i -e 's|^# config logdir:|config logdir: /var/log/snort/|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the correct so_rule location in the config
- sed -i -e 's|SO_RULE_PATH ../so_rules|SO_RULE_PATH /etc/snort/so_rules|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-}
-
-pkg_postinst() {
-
- einfo "There have been a number of improvements and new features"
- einfo "added to ${P}. Please review the RELEASE.NOTES and"
- einfo "ChangLog located in /usr/share/doc/${PF}."
- einfo
- elog "The Sourcefire Vulnerability Research Team (VRT) recommends that"
- elog "users migrate their snort.conf customizations to the latest config"
- elog "file released by the VRT. You can find the latest version of the"
- elog "Snort config file in /etc/snort/snort.conf.distrib."
- elog
- elog "!! It is important that you migrate to this new snort.conf file !!"
- elog
- elog "This version of the ebuild includes an updated init.d file and"
- elog "conf.d file that rely on options found in the latest Snort"
- elog "config file provided by the VRT."
-
- if use debug; then
- elog "You have the 'debug' USE flag enabled. If this has been done to"
- elog "troubleshoot an issue by producing a core dump or a back trace,"
- elog "then you need to also ensure the FEATURES variable in make.conf"
- elog "contains the 'nostrip' option."
- fi
-}
diff --git a/net-analyzer/snort/snort-2.9.7.0.ebuild b/net-analyzer/snort/snort-2.9.7.0.ebuild
deleted file mode 100644
index a22c0902ec33..000000000000
--- a/net-analyzer/snort/snort-2.9.7.0.ebuild
+++ /dev/null
@@ -1,249 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-inherit autotools multilib user
-
-DESCRIPTION="The de facto standard for intrusion detection/prevention"
-HOMEPAGE="https://www.snort.org"
-SRC_URI="https://www.snort.org/downloads/archive/${PN}/${P}.tar.gz"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86"
-IUSE="static +gre +mpls +targetbased +ppm +perfprofiling
-+non-ether-decoders control-socket file-inspect high-availability
-shared-rep side-channel sourcefire linux-smp-stats inline-init-failopen
-+threads debug +active-response +normalizer reload-error-restart
-+react +flexresp3 large-pcap-64bit selinux"
-
-DEPEND=">=net-libs/libpcap-1.3.0
- >=net-libs/daq-2.0.2
- >=dev-libs/libpcre-8.33
- dev-libs/libdnet
- sys-libs/zlib"
-
-RDEPEND="${DEPEND}
- selinux? ( sec-policy/selinux-snort )"
-
-REQUIRED_USE="!kernel_linux? ( !shared-rep )"
-
-pkg_setup() {
-
- # pre_inst() is a better place to put this
- # but we need it here for the 'fowners' statements in src_install()
- enewgroup snort
- enewuser snort -1 -1 /dev/null snort
-
-}
-
-src_prepare() {
-
- # Multilib fix for the sf_engine
- ebegin "Applying multilib fix"
- sed -i -e 's|${exec_prefix}/lib|${exec_prefix}/'$(get_libdir)'|g' \
- "${WORKDIR}/${P}/src/dynamic-plugins/sf_engine/Makefile.am" \
- || die "sed for sf_engine failed"
-
- # Multilib fix for the curent set of dynamic-preprocessors
- for i in file ftptelnet smtp ssh dns ssl dcerpc2 sdf imap pop sip reputation gtp modbus dnp3; do
- sed -i -e 's|${exec_prefix}/lib|${exec_prefix}/'$(get_libdir)'|g' \
- "${WORKDIR}/${P}/src/dynamic-preprocessors/$i/Makefile.am" \
- || die "sed for $i failed."
- done
- eend
-
- AT_M4DIR=m4 eautoreconf
-}
-
-src_configure() {
-
- econf \
- $(use_enable !static shared) \
- $(use_enable static) \
- $(use_enable static so-with-static-lib) \
- $(use_enable gre) \
- $(use_enable mpls) \
- $(use_enable targetbased) \
- $(use_enable control-socket) \
- $(use_enable file-inspect) \
- $(use_enable high-availability ha) \
- $(use_enable non-ether-decoders) \
- $(use_enable shared-rep) \
- $(use_enable side-channel) \
- $(use_enable sourcefire) \
- $(use_enable ppm) \
- $(use_enable perfprofiling) \
- $(use_enable linux-smp-stats) \
- $(use_enable inline-init-failopen) \
- $(use_enable threads pthread) \
- $(use_enable debug) \
- $(use_enable debug debug-msgs) \
- $(use_enable debug corefiles) \
- $(use_enable !debug dlclose) \
- $(use_enable active-response) \
- $(use_enable normalizer) \
- $(use_enable reload-error-restart) \
- $(use_enable react) \
- $(use_enable flexresp3) \
- $(use_enable large-pcap-64bit large-pcap) \
- --enable-reload \
- --disable-build-dynamic-examples \
- --disable-profile \
- --disable-ppm-test \
- --disable-intel-soft-cpm \
- --disable-static-daq
-}
-
-src_install() {
-
- emake DESTDIR="${D}" install
-
- dodir /var/log/snort \
- /var/run/snort \
- /etc/snort/rules \
- /etc/snort/so_rules \
- /usr/$(get_libdir)/snort_dynamicrules
-
- # config.log and build.log are needed by Sourcefire
- # to trouble shoot build problems and bug reports so we are
- # perserving them incase the user needs upstream support.
- dodoc RELEASE.NOTES ChangeLog \
- doc/* \
- tools/u2boat/README.u2boat
-
- insinto /etc/snort
- doins etc/attribute_table.dtd \
- etc/classification.config \
- etc/gen-msg.map \
- etc/reference.config \
- etc/threshold.conf \
- etc/unicode.map
-
- # We use snort.conf.distrib because the config file is complicated
- # and the one shipped with snort can change drastically between versions.
- # Users should migrate setting by hand and not with etc-update.
- newins etc/snort.conf snort.conf.distrib
-
- # config.log and build.log are needed by Sourcefire
- # to troubleshoot build problems and bug reports so we are
- # preserving them incase the user needs upstream support.
- if [ -f "${WORKDIR}/${PF}/config.log" ]; then
- dodoc "${WORKDIR}/${PF}/config.log"
- fi
- if [ -f "${T}/build.log" ]; then
- dodoc "${T}/build.log"
- fi
-
- insinto /etc/snort/preproc_rules
- doins preproc_rules/decoder.rules \
- preproc_rules/preprocessor.rules \
- preproc_rules/sensitive-data.rules
-
- fowners -R snort:snort \
- /var/log/snort \
- /var/run/snort \
- /etc/snort
-
- newinitd "${FILESDIR}/snort.rc12" snort
- newconfd "${FILESDIR}/snort.confd.2" snort
-
- # Sourcefire uses Makefiles to install docs causing Bug #297190.
- # This removes the unwanted doc directory and rogue Makefiles.
- rm -rf "${D}"usr/share/doc/snort || die "Failed to remove SF doc directories"
- rm "${D}"usr/share/doc/"${PF}"/Makefile* || die "Failed to remove doc make files"
-
- # Remove unneeded .la files (Bug #382863)
- rm "${D}"usr/$(get_libdir)/snort_dynamicengine/libsf_engine.la || die
- rm "${D}"usr/$(get_libdir)/snort_dynamicpreprocessor/libsf_*_preproc.la || die "Failed to remove libsf_?_preproc.la"
-
- # Set the correct lib path for dynamicengine, dynamicpreprocessor, and dynamicdetection
- sed -i -e 's|/usr/local/lib|/usr/'$(get_libdir)'|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the correct rule location in the config
- sed -i -e 's|RULE_PATH ../rules|RULE_PATH /etc/snort/rules|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the correct preprocessor/decoder rule location in the config
- sed -i -e 's|PREPROC_RULE_PATH ../preproc_rules|PREPROC_RULE_PATH /etc/snort/preproc_rules|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Enable the preprocessor/decoder rules
- sed -i -e 's|^# include $PREPROC_RULE_PATH|include $PREPROC_RULE_PATH|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- sed -i -e 's|^# dynamicdetection directory|dynamicdetection directory|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Just some clean up of trailing /'s in the config
- sed -i -e 's|snort_dynamicpreprocessor/$|snort_dynamicpreprocessor|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Make it clear in the config where these are...
- sed -i -e 's|^include classification.config|include /etc/snort/classification.config|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- sed -i -e 's|^include reference.config|include /etc/snort/reference.config|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Disable all rule files by default.
- sed -i -e 's|^include $RULE_PATH|# include $RULE_PATH|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Disable normalizer preprocessor config if normalizer USE flag not set.
- if ! use normalizer; then
- sed -i -e 's|^preprocessor normalize|#preprocessor normalize|g' \
- "${D}etc/snort/snort.conf.distrib" || die
- fi
-
- # Set the configured DAQ to afpacket
- sed -i -e 's|^# config daq: <type>|config daq: afpacket|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the location of the DAQ modules
- sed -i -e 's|^# config daq_dir: <dir>|config daq_dir: /usr/'$(get_libdir)'/daq|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the DAQ mode to passive
- sed -i -e 's|^# config daq_mode: <mode>|config daq_mode: passive|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set snort to run as snort:snort
- sed -i -e 's|^# config set_gid:|config set_gid: snort|g' \
- "${D}etc/snort/snort.conf.distrib" || die
- sed -i -e 's|^# config set_uid:|config set_uid: snort|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the default log dir
- sed -i -e 's|^# config logdir:|config logdir: /var/log/snort/|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the correct so_rule location in the config
- sed -i -e 's|SO_RULE_PATH ../so_rules|SO_RULE_PATH /etc/snort/so_rules|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-}
-
-pkg_postinst() {
-
- einfo "There have been a number of improvements and new features"
- einfo "added to ${P}. Please review the RELEASE.NOTES and"
- einfo "ChangLog located in /usr/share/doc/${PF}."
- einfo
- elog "The Sourcefire Vulnerability Research Team (VRT) recommends that"
- elog "users migrate their snort.conf customizations to the latest config"
- elog "file released by the VRT. You can find the latest version of the"
- elog "Snort config file in /etc/snort/snort.conf.distrib."
- elog
- elog "!! It is important that you migrate to this new snort.conf file !!"
- elog
- elog "This version of the ebuild includes an updated init.d file and"
- elog "conf.d file that rely on options found in the latest Snort"
- elog "config file provided by the VRT."
-
- if use debug; then
- elog "You have the 'debug' USE flag enabled. If this has been done to"
- elog "troubleshoot an issue by producing a core dump or a back trace,"
- elog "then you need to also ensure the FEATURES variable in make.conf"
- elog "contains the 'nostrip' option."
- fi
-}
diff --git a/net-analyzer/snort/snort-2.9.7.2.ebuild b/net-analyzer/snort/snort-2.9.7.2.ebuild
deleted file mode 100644
index a22c0902ec33..000000000000
--- a/net-analyzer/snort/snort-2.9.7.2.ebuild
+++ /dev/null
@@ -1,249 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-inherit autotools multilib user
-
-DESCRIPTION="The de facto standard for intrusion detection/prevention"
-HOMEPAGE="https://www.snort.org"
-SRC_URI="https://www.snort.org/downloads/archive/${PN}/${P}.tar.gz"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86"
-IUSE="static +gre +mpls +targetbased +ppm +perfprofiling
-+non-ether-decoders control-socket file-inspect high-availability
-shared-rep side-channel sourcefire linux-smp-stats inline-init-failopen
-+threads debug +active-response +normalizer reload-error-restart
-+react +flexresp3 large-pcap-64bit selinux"
-
-DEPEND=">=net-libs/libpcap-1.3.0
- >=net-libs/daq-2.0.2
- >=dev-libs/libpcre-8.33
- dev-libs/libdnet
- sys-libs/zlib"
-
-RDEPEND="${DEPEND}
- selinux? ( sec-policy/selinux-snort )"
-
-REQUIRED_USE="!kernel_linux? ( !shared-rep )"
-
-pkg_setup() {
-
- # pre_inst() is a better place to put this
- # but we need it here for the 'fowners' statements in src_install()
- enewgroup snort
- enewuser snort -1 -1 /dev/null snort
-
-}
-
-src_prepare() {
-
- # Multilib fix for the sf_engine
- ebegin "Applying multilib fix"
- sed -i -e 's|${exec_prefix}/lib|${exec_prefix}/'$(get_libdir)'|g' \
- "${WORKDIR}/${P}/src/dynamic-plugins/sf_engine/Makefile.am" \
- || die "sed for sf_engine failed"
-
- # Multilib fix for the curent set of dynamic-preprocessors
- for i in file ftptelnet smtp ssh dns ssl dcerpc2 sdf imap pop sip reputation gtp modbus dnp3; do
- sed -i -e 's|${exec_prefix}/lib|${exec_prefix}/'$(get_libdir)'|g' \
- "${WORKDIR}/${P}/src/dynamic-preprocessors/$i/Makefile.am" \
- || die "sed for $i failed."
- done
- eend
-
- AT_M4DIR=m4 eautoreconf
-}
-
-src_configure() {
-
- econf \
- $(use_enable !static shared) \
- $(use_enable static) \
- $(use_enable static so-with-static-lib) \
- $(use_enable gre) \
- $(use_enable mpls) \
- $(use_enable targetbased) \
- $(use_enable control-socket) \
- $(use_enable file-inspect) \
- $(use_enable high-availability ha) \
- $(use_enable non-ether-decoders) \
- $(use_enable shared-rep) \
- $(use_enable side-channel) \
- $(use_enable sourcefire) \
- $(use_enable ppm) \
- $(use_enable perfprofiling) \
- $(use_enable linux-smp-stats) \
- $(use_enable inline-init-failopen) \
- $(use_enable threads pthread) \
- $(use_enable debug) \
- $(use_enable debug debug-msgs) \
- $(use_enable debug corefiles) \
- $(use_enable !debug dlclose) \
- $(use_enable active-response) \
- $(use_enable normalizer) \
- $(use_enable reload-error-restart) \
- $(use_enable react) \
- $(use_enable flexresp3) \
- $(use_enable large-pcap-64bit large-pcap) \
- --enable-reload \
- --disable-build-dynamic-examples \
- --disable-profile \
- --disable-ppm-test \
- --disable-intel-soft-cpm \
- --disable-static-daq
-}
-
-src_install() {
-
- emake DESTDIR="${D}" install
-
- dodir /var/log/snort \
- /var/run/snort \
- /etc/snort/rules \
- /etc/snort/so_rules \
- /usr/$(get_libdir)/snort_dynamicrules
-
- # config.log and build.log are needed by Sourcefire
- # to trouble shoot build problems and bug reports so we are
- # perserving them incase the user needs upstream support.
- dodoc RELEASE.NOTES ChangeLog \
- doc/* \
- tools/u2boat/README.u2boat
-
- insinto /etc/snort
- doins etc/attribute_table.dtd \
- etc/classification.config \
- etc/gen-msg.map \
- etc/reference.config \
- etc/threshold.conf \
- etc/unicode.map
-
- # We use snort.conf.distrib because the config file is complicated
- # and the one shipped with snort can change drastically between versions.
- # Users should migrate setting by hand and not with etc-update.
- newins etc/snort.conf snort.conf.distrib
-
- # config.log and build.log are needed by Sourcefire
- # to troubleshoot build problems and bug reports so we are
- # preserving them incase the user needs upstream support.
- if [ -f "${WORKDIR}/${PF}/config.log" ]; then
- dodoc "${WORKDIR}/${PF}/config.log"
- fi
- if [ -f "${T}/build.log" ]; then
- dodoc "${T}/build.log"
- fi
-
- insinto /etc/snort/preproc_rules
- doins preproc_rules/decoder.rules \
- preproc_rules/preprocessor.rules \
- preproc_rules/sensitive-data.rules
-
- fowners -R snort:snort \
- /var/log/snort \
- /var/run/snort \
- /etc/snort
-
- newinitd "${FILESDIR}/snort.rc12" snort
- newconfd "${FILESDIR}/snort.confd.2" snort
-
- # Sourcefire uses Makefiles to install docs causing Bug #297190.
- # This removes the unwanted doc directory and rogue Makefiles.
- rm -rf "${D}"usr/share/doc/snort || die "Failed to remove SF doc directories"
- rm "${D}"usr/share/doc/"${PF}"/Makefile* || die "Failed to remove doc make files"
-
- # Remove unneeded .la files (Bug #382863)
- rm "${D}"usr/$(get_libdir)/snort_dynamicengine/libsf_engine.la || die
- rm "${D}"usr/$(get_libdir)/snort_dynamicpreprocessor/libsf_*_preproc.la || die "Failed to remove libsf_?_preproc.la"
-
- # Set the correct lib path for dynamicengine, dynamicpreprocessor, and dynamicdetection
- sed -i -e 's|/usr/local/lib|/usr/'$(get_libdir)'|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the correct rule location in the config
- sed -i -e 's|RULE_PATH ../rules|RULE_PATH /etc/snort/rules|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the correct preprocessor/decoder rule location in the config
- sed -i -e 's|PREPROC_RULE_PATH ../preproc_rules|PREPROC_RULE_PATH /etc/snort/preproc_rules|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Enable the preprocessor/decoder rules
- sed -i -e 's|^# include $PREPROC_RULE_PATH|include $PREPROC_RULE_PATH|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- sed -i -e 's|^# dynamicdetection directory|dynamicdetection directory|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Just some clean up of trailing /'s in the config
- sed -i -e 's|snort_dynamicpreprocessor/$|snort_dynamicpreprocessor|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Make it clear in the config where these are...
- sed -i -e 's|^include classification.config|include /etc/snort/classification.config|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- sed -i -e 's|^include reference.config|include /etc/snort/reference.config|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Disable all rule files by default.
- sed -i -e 's|^include $RULE_PATH|# include $RULE_PATH|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Disable normalizer preprocessor config if normalizer USE flag not set.
- if ! use normalizer; then
- sed -i -e 's|^preprocessor normalize|#preprocessor normalize|g' \
- "${D}etc/snort/snort.conf.distrib" || die
- fi
-
- # Set the configured DAQ to afpacket
- sed -i -e 's|^# config daq: <type>|config daq: afpacket|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the location of the DAQ modules
- sed -i -e 's|^# config daq_dir: <dir>|config daq_dir: /usr/'$(get_libdir)'/daq|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the DAQ mode to passive
- sed -i -e 's|^# config daq_mode: <mode>|config daq_mode: passive|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set snort to run as snort:snort
- sed -i -e 's|^# config set_gid:|config set_gid: snort|g' \
- "${D}etc/snort/snort.conf.distrib" || die
- sed -i -e 's|^# config set_uid:|config set_uid: snort|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the default log dir
- sed -i -e 's|^# config logdir:|config logdir: /var/log/snort/|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the correct so_rule location in the config
- sed -i -e 's|SO_RULE_PATH ../so_rules|SO_RULE_PATH /etc/snort/so_rules|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-}
-
-pkg_postinst() {
-
- einfo "There have been a number of improvements and new features"
- einfo "added to ${P}. Please review the RELEASE.NOTES and"
- einfo "ChangLog located in /usr/share/doc/${PF}."
- einfo
- elog "The Sourcefire Vulnerability Research Team (VRT) recommends that"
- elog "users migrate their snort.conf customizations to the latest config"
- elog "file released by the VRT. You can find the latest version of the"
- elog "Snort config file in /etc/snort/snort.conf.distrib."
- elog
- elog "!! It is important that you migrate to this new snort.conf file !!"
- elog
- elog "This version of the ebuild includes an updated init.d file and"
- elog "conf.d file that rely on options found in the latest Snort"
- elog "config file provided by the VRT."
-
- if use debug; then
- elog "You have the 'debug' USE flag enabled. If this has been done to"
- elog "troubleshoot an issue by producing a core dump or a back trace,"
- elog "then you need to also ensure the FEATURES variable in make.conf"
- elog "contains the 'nostrip' option."
- fi
-}
diff --git a/net-analyzer/snort/snort-2.9.7.3.ebuild b/net-analyzer/snort/snort-2.9.7.3.ebuild
deleted file mode 100644
index a22c0902ec33..000000000000
--- a/net-analyzer/snort/snort-2.9.7.3.ebuild
+++ /dev/null
@@ -1,249 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-inherit autotools multilib user
-
-DESCRIPTION="The de facto standard for intrusion detection/prevention"
-HOMEPAGE="https://www.snort.org"
-SRC_URI="https://www.snort.org/downloads/archive/${PN}/${P}.tar.gz"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86"
-IUSE="static +gre +mpls +targetbased +ppm +perfprofiling
-+non-ether-decoders control-socket file-inspect high-availability
-shared-rep side-channel sourcefire linux-smp-stats inline-init-failopen
-+threads debug +active-response +normalizer reload-error-restart
-+react +flexresp3 large-pcap-64bit selinux"
-
-DEPEND=">=net-libs/libpcap-1.3.0
- >=net-libs/daq-2.0.2
- >=dev-libs/libpcre-8.33
- dev-libs/libdnet
- sys-libs/zlib"
-
-RDEPEND="${DEPEND}
- selinux? ( sec-policy/selinux-snort )"
-
-REQUIRED_USE="!kernel_linux? ( !shared-rep )"
-
-pkg_setup() {
-
- # pre_inst() is a better place to put this
- # but we need it here for the 'fowners' statements in src_install()
- enewgroup snort
- enewuser snort -1 -1 /dev/null snort
-
-}
-
-src_prepare() {
-
- # Multilib fix for the sf_engine
- ebegin "Applying multilib fix"
- sed -i -e 's|${exec_prefix}/lib|${exec_prefix}/'$(get_libdir)'|g' \
- "${WORKDIR}/${P}/src/dynamic-plugins/sf_engine/Makefile.am" \
- || die "sed for sf_engine failed"
-
- # Multilib fix for the curent set of dynamic-preprocessors
- for i in file ftptelnet smtp ssh dns ssl dcerpc2 sdf imap pop sip reputation gtp modbus dnp3; do
- sed -i -e 's|${exec_prefix}/lib|${exec_prefix}/'$(get_libdir)'|g' \
- "${WORKDIR}/${P}/src/dynamic-preprocessors/$i/Makefile.am" \
- || die "sed for $i failed."
- done
- eend
-
- AT_M4DIR=m4 eautoreconf
-}
-
-src_configure() {
-
- econf \
- $(use_enable !static shared) \
- $(use_enable static) \
- $(use_enable static so-with-static-lib) \
- $(use_enable gre) \
- $(use_enable mpls) \
- $(use_enable targetbased) \
- $(use_enable control-socket) \
- $(use_enable file-inspect) \
- $(use_enable high-availability ha) \
- $(use_enable non-ether-decoders) \
- $(use_enable shared-rep) \
- $(use_enable side-channel) \
- $(use_enable sourcefire) \
- $(use_enable ppm) \
- $(use_enable perfprofiling) \
- $(use_enable linux-smp-stats) \
- $(use_enable inline-init-failopen) \
- $(use_enable threads pthread) \
- $(use_enable debug) \
- $(use_enable debug debug-msgs) \
- $(use_enable debug corefiles) \
- $(use_enable !debug dlclose) \
- $(use_enable active-response) \
- $(use_enable normalizer) \
- $(use_enable reload-error-restart) \
- $(use_enable react) \
- $(use_enable flexresp3) \
- $(use_enable large-pcap-64bit large-pcap) \
- --enable-reload \
- --disable-build-dynamic-examples \
- --disable-profile \
- --disable-ppm-test \
- --disable-intel-soft-cpm \
- --disable-static-daq
-}
-
-src_install() {
-
- emake DESTDIR="${D}" install
-
- dodir /var/log/snort \
- /var/run/snort \
- /etc/snort/rules \
- /etc/snort/so_rules \
- /usr/$(get_libdir)/snort_dynamicrules
-
- # config.log and build.log are needed by Sourcefire
- # to trouble shoot build problems and bug reports so we are
- # perserving them incase the user needs upstream support.
- dodoc RELEASE.NOTES ChangeLog \
- doc/* \
- tools/u2boat/README.u2boat
-
- insinto /etc/snort
- doins etc/attribute_table.dtd \
- etc/classification.config \
- etc/gen-msg.map \
- etc/reference.config \
- etc/threshold.conf \
- etc/unicode.map
-
- # We use snort.conf.distrib because the config file is complicated
- # and the one shipped with snort can change drastically between versions.
- # Users should migrate setting by hand and not with etc-update.
- newins etc/snort.conf snort.conf.distrib
-
- # config.log and build.log are needed by Sourcefire
- # to troubleshoot build problems and bug reports so we are
- # preserving them incase the user needs upstream support.
- if [ -f "${WORKDIR}/${PF}/config.log" ]; then
- dodoc "${WORKDIR}/${PF}/config.log"
- fi
- if [ -f "${T}/build.log" ]; then
- dodoc "${T}/build.log"
- fi
-
- insinto /etc/snort/preproc_rules
- doins preproc_rules/decoder.rules \
- preproc_rules/preprocessor.rules \
- preproc_rules/sensitive-data.rules
-
- fowners -R snort:snort \
- /var/log/snort \
- /var/run/snort \
- /etc/snort
-
- newinitd "${FILESDIR}/snort.rc12" snort
- newconfd "${FILESDIR}/snort.confd.2" snort
-
- # Sourcefire uses Makefiles to install docs causing Bug #297190.
- # This removes the unwanted doc directory and rogue Makefiles.
- rm -rf "${D}"usr/share/doc/snort || die "Failed to remove SF doc directories"
- rm "${D}"usr/share/doc/"${PF}"/Makefile* || die "Failed to remove doc make files"
-
- # Remove unneeded .la files (Bug #382863)
- rm "${D}"usr/$(get_libdir)/snort_dynamicengine/libsf_engine.la || die
- rm "${D}"usr/$(get_libdir)/snort_dynamicpreprocessor/libsf_*_preproc.la || die "Failed to remove libsf_?_preproc.la"
-
- # Set the correct lib path for dynamicengine, dynamicpreprocessor, and dynamicdetection
- sed -i -e 's|/usr/local/lib|/usr/'$(get_libdir)'|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the correct rule location in the config
- sed -i -e 's|RULE_PATH ../rules|RULE_PATH /etc/snort/rules|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the correct preprocessor/decoder rule location in the config
- sed -i -e 's|PREPROC_RULE_PATH ../preproc_rules|PREPROC_RULE_PATH /etc/snort/preproc_rules|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Enable the preprocessor/decoder rules
- sed -i -e 's|^# include $PREPROC_RULE_PATH|include $PREPROC_RULE_PATH|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- sed -i -e 's|^# dynamicdetection directory|dynamicdetection directory|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Just some clean up of trailing /'s in the config
- sed -i -e 's|snort_dynamicpreprocessor/$|snort_dynamicpreprocessor|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Make it clear in the config where these are...
- sed -i -e 's|^include classification.config|include /etc/snort/classification.config|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- sed -i -e 's|^include reference.config|include /etc/snort/reference.config|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Disable all rule files by default.
- sed -i -e 's|^include $RULE_PATH|# include $RULE_PATH|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Disable normalizer preprocessor config if normalizer USE flag not set.
- if ! use normalizer; then
- sed -i -e 's|^preprocessor normalize|#preprocessor normalize|g' \
- "${D}etc/snort/snort.conf.distrib" || die
- fi
-
- # Set the configured DAQ to afpacket
- sed -i -e 's|^# config daq: <type>|config daq: afpacket|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the location of the DAQ modules
- sed -i -e 's|^# config daq_dir: <dir>|config daq_dir: /usr/'$(get_libdir)'/daq|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the DAQ mode to passive
- sed -i -e 's|^# config daq_mode: <mode>|config daq_mode: passive|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set snort to run as snort:snort
- sed -i -e 's|^# config set_gid:|config set_gid: snort|g' \
- "${D}etc/snort/snort.conf.distrib" || die
- sed -i -e 's|^# config set_uid:|config set_uid: snort|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the default log dir
- sed -i -e 's|^# config logdir:|config logdir: /var/log/snort/|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the correct so_rule location in the config
- sed -i -e 's|SO_RULE_PATH ../so_rules|SO_RULE_PATH /etc/snort/so_rules|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-}
-
-pkg_postinst() {
-
- einfo "There have been a number of improvements and new features"
- einfo "added to ${P}. Please review the RELEASE.NOTES and"
- einfo "ChangLog located in /usr/share/doc/${PF}."
- einfo
- elog "The Sourcefire Vulnerability Research Team (VRT) recommends that"
- elog "users migrate their snort.conf customizations to the latest config"
- elog "file released by the VRT. You can find the latest version of the"
- elog "Snort config file in /etc/snort/snort.conf.distrib."
- elog
- elog "!! It is important that you migrate to this new snort.conf file !!"
- elog
- elog "This version of the ebuild includes an updated init.d file and"
- elog "conf.d file that rely on options found in the latest Snort"
- elog "config file provided by the VRT."
-
- if use debug; then
- elog "You have the 'debug' USE flag enabled. If this has been done to"
- elog "troubleshoot an issue by producing a core dump or a back trace,"
- elog "then you need to also ensure the FEATURES variable in make.conf"
- elog "contains the 'nostrip' option."
- fi
-}
diff --git a/net-analyzer/snort/snort-2.9.7.5.ebuild b/net-analyzer/snort/snort-2.9.7.5.ebuild
deleted file mode 100644
index a22c0902ec33..000000000000
--- a/net-analyzer/snort/snort-2.9.7.5.ebuild
+++ /dev/null
@@ -1,249 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-inherit autotools multilib user
-
-DESCRIPTION="The de facto standard for intrusion detection/prevention"
-HOMEPAGE="https://www.snort.org"
-SRC_URI="https://www.snort.org/downloads/archive/${PN}/${P}.tar.gz"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86"
-IUSE="static +gre +mpls +targetbased +ppm +perfprofiling
-+non-ether-decoders control-socket file-inspect high-availability
-shared-rep side-channel sourcefire linux-smp-stats inline-init-failopen
-+threads debug +active-response +normalizer reload-error-restart
-+react +flexresp3 large-pcap-64bit selinux"
-
-DEPEND=">=net-libs/libpcap-1.3.0
- >=net-libs/daq-2.0.2
- >=dev-libs/libpcre-8.33
- dev-libs/libdnet
- sys-libs/zlib"
-
-RDEPEND="${DEPEND}
- selinux? ( sec-policy/selinux-snort )"
-
-REQUIRED_USE="!kernel_linux? ( !shared-rep )"
-
-pkg_setup() {
-
- # pre_inst() is a better place to put this
- # but we need it here for the 'fowners' statements in src_install()
- enewgroup snort
- enewuser snort -1 -1 /dev/null snort
-
-}
-
-src_prepare() {
-
- # Multilib fix for the sf_engine
- ebegin "Applying multilib fix"
- sed -i -e 's|${exec_prefix}/lib|${exec_prefix}/'$(get_libdir)'|g' \
- "${WORKDIR}/${P}/src/dynamic-plugins/sf_engine/Makefile.am" \
- || die "sed for sf_engine failed"
-
- # Multilib fix for the curent set of dynamic-preprocessors
- for i in file ftptelnet smtp ssh dns ssl dcerpc2 sdf imap pop sip reputation gtp modbus dnp3; do
- sed -i -e 's|${exec_prefix}/lib|${exec_prefix}/'$(get_libdir)'|g' \
- "${WORKDIR}/${P}/src/dynamic-preprocessors/$i/Makefile.am" \
- || die "sed for $i failed."
- done
- eend
-
- AT_M4DIR=m4 eautoreconf
-}
-
-src_configure() {
-
- econf \
- $(use_enable !static shared) \
- $(use_enable static) \
- $(use_enable static so-with-static-lib) \
- $(use_enable gre) \
- $(use_enable mpls) \
- $(use_enable targetbased) \
- $(use_enable control-socket) \
- $(use_enable file-inspect) \
- $(use_enable high-availability ha) \
- $(use_enable non-ether-decoders) \
- $(use_enable shared-rep) \
- $(use_enable side-channel) \
- $(use_enable sourcefire) \
- $(use_enable ppm) \
- $(use_enable perfprofiling) \
- $(use_enable linux-smp-stats) \
- $(use_enable inline-init-failopen) \
- $(use_enable threads pthread) \
- $(use_enable debug) \
- $(use_enable debug debug-msgs) \
- $(use_enable debug corefiles) \
- $(use_enable !debug dlclose) \
- $(use_enable active-response) \
- $(use_enable normalizer) \
- $(use_enable reload-error-restart) \
- $(use_enable react) \
- $(use_enable flexresp3) \
- $(use_enable large-pcap-64bit large-pcap) \
- --enable-reload \
- --disable-build-dynamic-examples \
- --disable-profile \
- --disable-ppm-test \
- --disable-intel-soft-cpm \
- --disable-static-daq
-}
-
-src_install() {
-
- emake DESTDIR="${D}" install
-
- dodir /var/log/snort \
- /var/run/snort \
- /etc/snort/rules \
- /etc/snort/so_rules \
- /usr/$(get_libdir)/snort_dynamicrules
-
- # config.log and build.log are needed by Sourcefire
- # to trouble shoot build problems and bug reports so we are
- # perserving them incase the user needs upstream support.
- dodoc RELEASE.NOTES ChangeLog \
- doc/* \
- tools/u2boat/README.u2boat
-
- insinto /etc/snort
- doins etc/attribute_table.dtd \
- etc/classification.config \
- etc/gen-msg.map \
- etc/reference.config \
- etc/threshold.conf \
- etc/unicode.map
-
- # We use snort.conf.distrib because the config file is complicated
- # and the one shipped with snort can change drastically between versions.
- # Users should migrate setting by hand and not with etc-update.
- newins etc/snort.conf snort.conf.distrib
-
- # config.log and build.log are needed by Sourcefire
- # to troubleshoot build problems and bug reports so we are
- # preserving them incase the user needs upstream support.
- if [ -f "${WORKDIR}/${PF}/config.log" ]; then
- dodoc "${WORKDIR}/${PF}/config.log"
- fi
- if [ -f "${T}/build.log" ]; then
- dodoc "${T}/build.log"
- fi
-
- insinto /etc/snort/preproc_rules
- doins preproc_rules/decoder.rules \
- preproc_rules/preprocessor.rules \
- preproc_rules/sensitive-data.rules
-
- fowners -R snort:snort \
- /var/log/snort \
- /var/run/snort \
- /etc/snort
-
- newinitd "${FILESDIR}/snort.rc12" snort
- newconfd "${FILESDIR}/snort.confd.2" snort
-
- # Sourcefire uses Makefiles to install docs causing Bug #297190.
- # This removes the unwanted doc directory and rogue Makefiles.
- rm -rf "${D}"usr/share/doc/snort || die "Failed to remove SF doc directories"
- rm "${D}"usr/share/doc/"${PF}"/Makefile* || die "Failed to remove doc make files"
-
- # Remove unneeded .la files (Bug #382863)
- rm "${D}"usr/$(get_libdir)/snort_dynamicengine/libsf_engine.la || die
- rm "${D}"usr/$(get_libdir)/snort_dynamicpreprocessor/libsf_*_preproc.la || die "Failed to remove libsf_?_preproc.la"
-
- # Set the correct lib path for dynamicengine, dynamicpreprocessor, and dynamicdetection
- sed -i -e 's|/usr/local/lib|/usr/'$(get_libdir)'|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the correct rule location in the config
- sed -i -e 's|RULE_PATH ../rules|RULE_PATH /etc/snort/rules|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the correct preprocessor/decoder rule location in the config
- sed -i -e 's|PREPROC_RULE_PATH ../preproc_rules|PREPROC_RULE_PATH /etc/snort/preproc_rules|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Enable the preprocessor/decoder rules
- sed -i -e 's|^# include $PREPROC_RULE_PATH|include $PREPROC_RULE_PATH|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- sed -i -e 's|^# dynamicdetection directory|dynamicdetection directory|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Just some clean up of trailing /'s in the config
- sed -i -e 's|snort_dynamicpreprocessor/$|snort_dynamicpreprocessor|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Make it clear in the config where these are...
- sed -i -e 's|^include classification.config|include /etc/snort/classification.config|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- sed -i -e 's|^include reference.config|include /etc/snort/reference.config|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Disable all rule files by default.
- sed -i -e 's|^include $RULE_PATH|# include $RULE_PATH|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Disable normalizer preprocessor config if normalizer USE flag not set.
- if ! use normalizer; then
- sed -i -e 's|^preprocessor normalize|#preprocessor normalize|g' \
- "${D}etc/snort/snort.conf.distrib" || die
- fi
-
- # Set the configured DAQ to afpacket
- sed -i -e 's|^# config daq: <type>|config daq: afpacket|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the location of the DAQ modules
- sed -i -e 's|^# config daq_dir: <dir>|config daq_dir: /usr/'$(get_libdir)'/daq|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the DAQ mode to passive
- sed -i -e 's|^# config daq_mode: <mode>|config daq_mode: passive|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set snort to run as snort:snort
- sed -i -e 's|^# config set_gid:|config set_gid: snort|g' \
- "${D}etc/snort/snort.conf.distrib" || die
- sed -i -e 's|^# config set_uid:|config set_uid: snort|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the default log dir
- sed -i -e 's|^# config logdir:|config logdir: /var/log/snort/|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the correct so_rule location in the config
- sed -i -e 's|SO_RULE_PATH ../so_rules|SO_RULE_PATH /etc/snort/so_rules|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-}
-
-pkg_postinst() {
-
- einfo "There have been a number of improvements and new features"
- einfo "added to ${P}. Please review the RELEASE.NOTES and"
- einfo "ChangLog located in /usr/share/doc/${PF}."
- einfo
- elog "The Sourcefire Vulnerability Research Team (VRT) recommends that"
- elog "users migrate their snort.conf customizations to the latest config"
- elog "file released by the VRT. You can find the latest version of the"
- elog "Snort config file in /etc/snort/snort.conf.distrib."
- elog
- elog "!! It is important that you migrate to this new snort.conf file !!"
- elog
- elog "This version of the ebuild includes an updated init.d file and"
- elog "conf.d file that rely on options found in the latest Snort"
- elog "config file provided by the VRT."
-
- if use debug; then
- elog "You have the 'debug' USE flag enabled. If this has been done to"
- elog "troubleshoot an issue by producing a core dump or a back trace,"
- elog "then you need to also ensure the FEATURES variable in make.conf"
- elog "contains the 'nostrip' option."
- fi
-}
diff --git a/net-analyzer/snort/snort-2.9.8.0.ebuild b/net-analyzer/snort/snort-2.9.8.0.ebuild
deleted file mode 100644
index a22c0902ec33..000000000000
--- a/net-analyzer/snort/snort-2.9.8.0.ebuild
+++ /dev/null
@@ -1,249 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-inherit autotools multilib user
-
-DESCRIPTION="The de facto standard for intrusion detection/prevention"
-HOMEPAGE="https://www.snort.org"
-SRC_URI="https://www.snort.org/downloads/archive/${PN}/${P}.tar.gz"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86"
-IUSE="static +gre +mpls +targetbased +ppm +perfprofiling
-+non-ether-decoders control-socket file-inspect high-availability
-shared-rep side-channel sourcefire linux-smp-stats inline-init-failopen
-+threads debug +active-response +normalizer reload-error-restart
-+react +flexresp3 large-pcap-64bit selinux"
-
-DEPEND=">=net-libs/libpcap-1.3.0
- >=net-libs/daq-2.0.2
- >=dev-libs/libpcre-8.33
- dev-libs/libdnet
- sys-libs/zlib"
-
-RDEPEND="${DEPEND}
- selinux? ( sec-policy/selinux-snort )"
-
-REQUIRED_USE="!kernel_linux? ( !shared-rep )"
-
-pkg_setup() {
-
- # pre_inst() is a better place to put this
- # but we need it here for the 'fowners' statements in src_install()
- enewgroup snort
- enewuser snort -1 -1 /dev/null snort
-
-}
-
-src_prepare() {
-
- # Multilib fix for the sf_engine
- ebegin "Applying multilib fix"
- sed -i -e 's|${exec_prefix}/lib|${exec_prefix}/'$(get_libdir)'|g' \
- "${WORKDIR}/${P}/src/dynamic-plugins/sf_engine/Makefile.am" \
- || die "sed for sf_engine failed"
-
- # Multilib fix for the curent set of dynamic-preprocessors
- for i in file ftptelnet smtp ssh dns ssl dcerpc2 sdf imap pop sip reputation gtp modbus dnp3; do
- sed -i -e 's|${exec_prefix}/lib|${exec_prefix}/'$(get_libdir)'|g' \
- "${WORKDIR}/${P}/src/dynamic-preprocessors/$i/Makefile.am" \
- || die "sed for $i failed."
- done
- eend
-
- AT_M4DIR=m4 eautoreconf
-}
-
-src_configure() {
-
- econf \
- $(use_enable !static shared) \
- $(use_enable static) \
- $(use_enable static so-with-static-lib) \
- $(use_enable gre) \
- $(use_enable mpls) \
- $(use_enable targetbased) \
- $(use_enable control-socket) \
- $(use_enable file-inspect) \
- $(use_enable high-availability ha) \
- $(use_enable non-ether-decoders) \
- $(use_enable shared-rep) \
- $(use_enable side-channel) \
- $(use_enable sourcefire) \
- $(use_enable ppm) \
- $(use_enable perfprofiling) \
- $(use_enable linux-smp-stats) \
- $(use_enable inline-init-failopen) \
- $(use_enable threads pthread) \
- $(use_enable debug) \
- $(use_enable debug debug-msgs) \
- $(use_enable debug corefiles) \
- $(use_enable !debug dlclose) \
- $(use_enable active-response) \
- $(use_enable normalizer) \
- $(use_enable reload-error-restart) \
- $(use_enable react) \
- $(use_enable flexresp3) \
- $(use_enable large-pcap-64bit large-pcap) \
- --enable-reload \
- --disable-build-dynamic-examples \
- --disable-profile \
- --disable-ppm-test \
- --disable-intel-soft-cpm \
- --disable-static-daq
-}
-
-src_install() {
-
- emake DESTDIR="${D}" install
-
- dodir /var/log/snort \
- /var/run/snort \
- /etc/snort/rules \
- /etc/snort/so_rules \
- /usr/$(get_libdir)/snort_dynamicrules
-
- # config.log and build.log are needed by Sourcefire
- # to trouble shoot build problems and bug reports so we are
- # perserving them incase the user needs upstream support.
- dodoc RELEASE.NOTES ChangeLog \
- doc/* \
- tools/u2boat/README.u2boat
-
- insinto /etc/snort
- doins etc/attribute_table.dtd \
- etc/classification.config \
- etc/gen-msg.map \
- etc/reference.config \
- etc/threshold.conf \
- etc/unicode.map
-
- # We use snort.conf.distrib because the config file is complicated
- # and the one shipped with snort can change drastically between versions.
- # Users should migrate setting by hand and not with etc-update.
- newins etc/snort.conf snort.conf.distrib
-
- # config.log and build.log are needed by Sourcefire
- # to troubleshoot build problems and bug reports so we are
- # preserving them incase the user needs upstream support.
- if [ -f "${WORKDIR}/${PF}/config.log" ]; then
- dodoc "${WORKDIR}/${PF}/config.log"
- fi
- if [ -f "${T}/build.log" ]; then
- dodoc "${T}/build.log"
- fi
-
- insinto /etc/snort/preproc_rules
- doins preproc_rules/decoder.rules \
- preproc_rules/preprocessor.rules \
- preproc_rules/sensitive-data.rules
-
- fowners -R snort:snort \
- /var/log/snort \
- /var/run/snort \
- /etc/snort
-
- newinitd "${FILESDIR}/snort.rc12" snort
- newconfd "${FILESDIR}/snort.confd.2" snort
-
- # Sourcefire uses Makefiles to install docs causing Bug #297190.
- # This removes the unwanted doc directory and rogue Makefiles.
- rm -rf "${D}"usr/share/doc/snort || die "Failed to remove SF doc directories"
- rm "${D}"usr/share/doc/"${PF}"/Makefile* || die "Failed to remove doc make files"
-
- # Remove unneeded .la files (Bug #382863)
- rm "${D}"usr/$(get_libdir)/snort_dynamicengine/libsf_engine.la || die
- rm "${D}"usr/$(get_libdir)/snort_dynamicpreprocessor/libsf_*_preproc.la || die "Failed to remove libsf_?_preproc.la"
-
- # Set the correct lib path for dynamicengine, dynamicpreprocessor, and dynamicdetection
- sed -i -e 's|/usr/local/lib|/usr/'$(get_libdir)'|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the correct rule location in the config
- sed -i -e 's|RULE_PATH ../rules|RULE_PATH /etc/snort/rules|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the correct preprocessor/decoder rule location in the config
- sed -i -e 's|PREPROC_RULE_PATH ../preproc_rules|PREPROC_RULE_PATH /etc/snort/preproc_rules|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Enable the preprocessor/decoder rules
- sed -i -e 's|^# include $PREPROC_RULE_PATH|include $PREPROC_RULE_PATH|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- sed -i -e 's|^# dynamicdetection directory|dynamicdetection directory|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Just some clean up of trailing /'s in the config
- sed -i -e 's|snort_dynamicpreprocessor/$|snort_dynamicpreprocessor|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Make it clear in the config where these are...
- sed -i -e 's|^include classification.config|include /etc/snort/classification.config|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- sed -i -e 's|^include reference.config|include /etc/snort/reference.config|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Disable all rule files by default.
- sed -i -e 's|^include $RULE_PATH|# include $RULE_PATH|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Disable normalizer preprocessor config if normalizer USE flag not set.
- if ! use normalizer; then
- sed -i -e 's|^preprocessor normalize|#preprocessor normalize|g' \
- "${D}etc/snort/snort.conf.distrib" || die
- fi
-
- # Set the configured DAQ to afpacket
- sed -i -e 's|^# config daq: <type>|config daq: afpacket|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the location of the DAQ modules
- sed -i -e 's|^# config daq_dir: <dir>|config daq_dir: /usr/'$(get_libdir)'/daq|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the DAQ mode to passive
- sed -i -e 's|^# config daq_mode: <mode>|config daq_mode: passive|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set snort to run as snort:snort
- sed -i -e 's|^# config set_gid:|config set_gid: snort|g' \
- "${D}etc/snort/snort.conf.distrib" || die
- sed -i -e 's|^# config set_uid:|config set_uid: snort|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the default log dir
- sed -i -e 's|^# config logdir:|config logdir: /var/log/snort/|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the correct so_rule location in the config
- sed -i -e 's|SO_RULE_PATH ../so_rules|SO_RULE_PATH /etc/snort/so_rules|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-}
-
-pkg_postinst() {
-
- einfo "There have been a number of improvements and new features"
- einfo "added to ${P}. Please review the RELEASE.NOTES and"
- einfo "ChangLog located in /usr/share/doc/${PF}."
- einfo
- elog "The Sourcefire Vulnerability Research Team (VRT) recommends that"
- elog "users migrate their snort.conf customizations to the latest config"
- elog "file released by the VRT. You can find the latest version of the"
- elog "Snort config file in /etc/snort/snort.conf.distrib."
- elog
- elog "!! It is important that you migrate to this new snort.conf file !!"
- elog
- elog "This version of the ebuild includes an updated init.d file and"
- elog "conf.d file that rely on options found in the latest Snort"
- elog "config file provided by the VRT."
-
- if use debug; then
- elog "You have the 'debug' USE flag enabled. If this has been done to"
- elog "troubleshoot an issue by producing a core dump or a back trace,"
- elog "then you need to also ensure the FEATURES variable in make.conf"
- elog "contains the 'nostrip' option."
- fi
-}
diff --git a/net-analyzer/snort/snort-2.9.8.2.ebuild b/net-analyzer/snort/snort-2.9.8.2.ebuild
deleted file mode 100644
index a22c0902ec33..000000000000
--- a/net-analyzer/snort/snort-2.9.8.2.ebuild
+++ /dev/null
@@ -1,249 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-inherit autotools multilib user
-
-DESCRIPTION="The de facto standard for intrusion detection/prevention"
-HOMEPAGE="https://www.snort.org"
-SRC_URI="https://www.snort.org/downloads/archive/${PN}/${P}.tar.gz"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86"
-IUSE="static +gre +mpls +targetbased +ppm +perfprofiling
-+non-ether-decoders control-socket file-inspect high-availability
-shared-rep side-channel sourcefire linux-smp-stats inline-init-failopen
-+threads debug +active-response +normalizer reload-error-restart
-+react +flexresp3 large-pcap-64bit selinux"
-
-DEPEND=">=net-libs/libpcap-1.3.0
- >=net-libs/daq-2.0.2
- >=dev-libs/libpcre-8.33
- dev-libs/libdnet
- sys-libs/zlib"
-
-RDEPEND="${DEPEND}
- selinux? ( sec-policy/selinux-snort )"
-
-REQUIRED_USE="!kernel_linux? ( !shared-rep )"
-
-pkg_setup() {
-
- # pre_inst() is a better place to put this
- # but we need it here for the 'fowners' statements in src_install()
- enewgroup snort
- enewuser snort -1 -1 /dev/null snort
-
-}
-
-src_prepare() {
-
- # Multilib fix for the sf_engine
- ebegin "Applying multilib fix"
- sed -i -e 's|${exec_prefix}/lib|${exec_prefix}/'$(get_libdir)'|g' \
- "${WORKDIR}/${P}/src/dynamic-plugins/sf_engine/Makefile.am" \
- || die "sed for sf_engine failed"
-
- # Multilib fix for the curent set of dynamic-preprocessors
- for i in file ftptelnet smtp ssh dns ssl dcerpc2 sdf imap pop sip reputation gtp modbus dnp3; do
- sed -i -e 's|${exec_prefix}/lib|${exec_prefix}/'$(get_libdir)'|g' \
- "${WORKDIR}/${P}/src/dynamic-preprocessors/$i/Makefile.am" \
- || die "sed for $i failed."
- done
- eend
-
- AT_M4DIR=m4 eautoreconf
-}
-
-src_configure() {
-
- econf \
- $(use_enable !static shared) \
- $(use_enable static) \
- $(use_enable static so-with-static-lib) \
- $(use_enable gre) \
- $(use_enable mpls) \
- $(use_enable targetbased) \
- $(use_enable control-socket) \
- $(use_enable file-inspect) \
- $(use_enable high-availability ha) \
- $(use_enable non-ether-decoders) \
- $(use_enable shared-rep) \
- $(use_enable side-channel) \
- $(use_enable sourcefire) \
- $(use_enable ppm) \
- $(use_enable perfprofiling) \
- $(use_enable linux-smp-stats) \
- $(use_enable inline-init-failopen) \
- $(use_enable threads pthread) \
- $(use_enable debug) \
- $(use_enable debug debug-msgs) \
- $(use_enable debug corefiles) \
- $(use_enable !debug dlclose) \
- $(use_enable active-response) \
- $(use_enable normalizer) \
- $(use_enable reload-error-restart) \
- $(use_enable react) \
- $(use_enable flexresp3) \
- $(use_enable large-pcap-64bit large-pcap) \
- --enable-reload \
- --disable-build-dynamic-examples \
- --disable-profile \
- --disable-ppm-test \
- --disable-intel-soft-cpm \
- --disable-static-daq
-}
-
-src_install() {
-
- emake DESTDIR="${D}" install
-
- dodir /var/log/snort \
- /var/run/snort \
- /etc/snort/rules \
- /etc/snort/so_rules \
- /usr/$(get_libdir)/snort_dynamicrules
-
- # config.log and build.log are needed by Sourcefire
- # to trouble shoot build problems and bug reports so we are
- # perserving them incase the user needs upstream support.
- dodoc RELEASE.NOTES ChangeLog \
- doc/* \
- tools/u2boat/README.u2boat
-
- insinto /etc/snort
- doins etc/attribute_table.dtd \
- etc/classification.config \
- etc/gen-msg.map \
- etc/reference.config \
- etc/threshold.conf \
- etc/unicode.map
-
- # We use snort.conf.distrib because the config file is complicated
- # and the one shipped with snort can change drastically between versions.
- # Users should migrate setting by hand and not with etc-update.
- newins etc/snort.conf snort.conf.distrib
-
- # config.log and build.log are needed by Sourcefire
- # to troubleshoot build problems and bug reports so we are
- # preserving them incase the user needs upstream support.
- if [ -f "${WORKDIR}/${PF}/config.log" ]; then
- dodoc "${WORKDIR}/${PF}/config.log"
- fi
- if [ -f "${T}/build.log" ]; then
- dodoc "${T}/build.log"
- fi
-
- insinto /etc/snort/preproc_rules
- doins preproc_rules/decoder.rules \
- preproc_rules/preprocessor.rules \
- preproc_rules/sensitive-data.rules
-
- fowners -R snort:snort \
- /var/log/snort \
- /var/run/snort \
- /etc/snort
-
- newinitd "${FILESDIR}/snort.rc12" snort
- newconfd "${FILESDIR}/snort.confd.2" snort
-
- # Sourcefire uses Makefiles to install docs causing Bug #297190.
- # This removes the unwanted doc directory and rogue Makefiles.
- rm -rf "${D}"usr/share/doc/snort || die "Failed to remove SF doc directories"
- rm "${D}"usr/share/doc/"${PF}"/Makefile* || die "Failed to remove doc make files"
-
- # Remove unneeded .la files (Bug #382863)
- rm "${D}"usr/$(get_libdir)/snort_dynamicengine/libsf_engine.la || die
- rm "${D}"usr/$(get_libdir)/snort_dynamicpreprocessor/libsf_*_preproc.la || die "Failed to remove libsf_?_preproc.la"
-
- # Set the correct lib path for dynamicengine, dynamicpreprocessor, and dynamicdetection
- sed -i -e 's|/usr/local/lib|/usr/'$(get_libdir)'|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the correct rule location in the config
- sed -i -e 's|RULE_PATH ../rules|RULE_PATH /etc/snort/rules|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the correct preprocessor/decoder rule location in the config
- sed -i -e 's|PREPROC_RULE_PATH ../preproc_rules|PREPROC_RULE_PATH /etc/snort/preproc_rules|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Enable the preprocessor/decoder rules
- sed -i -e 's|^# include $PREPROC_RULE_PATH|include $PREPROC_RULE_PATH|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- sed -i -e 's|^# dynamicdetection directory|dynamicdetection directory|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Just some clean up of trailing /'s in the config
- sed -i -e 's|snort_dynamicpreprocessor/$|snort_dynamicpreprocessor|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Make it clear in the config where these are...
- sed -i -e 's|^include classification.config|include /etc/snort/classification.config|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- sed -i -e 's|^include reference.config|include /etc/snort/reference.config|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Disable all rule files by default.
- sed -i -e 's|^include $RULE_PATH|# include $RULE_PATH|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Disable normalizer preprocessor config if normalizer USE flag not set.
- if ! use normalizer; then
- sed -i -e 's|^preprocessor normalize|#preprocessor normalize|g' \
- "${D}etc/snort/snort.conf.distrib" || die
- fi
-
- # Set the configured DAQ to afpacket
- sed -i -e 's|^# config daq: <type>|config daq: afpacket|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the location of the DAQ modules
- sed -i -e 's|^# config daq_dir: <dir>|config daq_dir: /usr/'$(get_libdir)'/daq|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the DAQ mode to passive
- sed -i -e 's|^# config daq_mode: <mode>|config daq_mode: passive|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set snort to run as snort:snort
- sed -i -e 's|^# config set_gid:|config set_gid: snort|g' \
- "${D}etc/snort/snort.conf.distrib" || die
- sed -i -e 's|^# config set_uid:|config set_uid: snort|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the default log dir
- sed -i -e 's|^# config logdir:|config logdir: /var/log/snort/|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the correct so_rule location in the config
- sed -i -e 's|SO_RULE_PATH ../so_rules|SO_RULE_PATH /etc/snort/so_rules|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-}
-
-pkg_postinst() {
-
- einfo "There have been a number of improvements and new features"
- einfo "added to ${P}. Please review the RELEASE.NOTES and"
- einfo "ChangLog located in /usr/share/doc/${PF}."
- einfo
- elog "The Sourcefire Vulnerability Research Team (VRT) recommends that"
- elog "users migrate their snort.conf customizations to the latest config"
- elog "file released by the VRT. You can find the latest version of the"
- elog "Snort config file in /etc/snort/snort.conf.distrib."
- elog
- elog "!! It is important that you migrate to this new snort.conf file !!"
- elog
- elog "This version of the ebuild includes an updated init.d file and"
- elog "conf.d file that rely on options found in the latest Snort"
- elog "config file provided by the VRT."
-
- if use debug; then
- elog "You have the 'debug' USE flag enabled. If this has been done to"
- elog "troubleshoot an issue by producing a core dump or a back trace,"
- elog "then you need to also ensure the FEATURES variable in make.conf"
- elog "contains the 'nostrip' option."
- fi
-}
diff --git a/net-analyzer/snort/snort-2.9.8.3-r1.ebuild b/net-analyzer/snort/snort-2.9.8.3-r1.ebuild
deleted file mode 100644
index af7a8f5ec0c2..000000000000
--- a/net-analyzer/snort/snort-2.9.8.3-r1.ebuild
+++ /dev/null
@@ -1,248 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-inherit autotools multilib user
-
-DESCRIPTION="The de facto standard for intrusion detection/prevention"
-HOMEPAGE="https://www.snort.org"
-SRC_URI="https://www.snort.org/downloads/archive/${PN}/${P}.tar.gz"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86"
-IUSE="static +gre +ppm +perfprofiling
-+non-ether-decoders control-socket file-inspect high-availability
-shared-rep side-channel sourcefire linux-smp-stats inline-init-failopen
-+threads debug +active-response reload-error-restart
-+react +flexresp3 large-pcap-64bit selinux"
-
-DEPEND=">=net-libs/libpcap-1.3.0
- >=net-libs/daq-2.0.2
- >=dev-libs/libpcre-8.33
- dev-libs/libdnet
- sys-libs/zlib"
-
-RDEPEND="${DEPEND}
- selinux? ( sec-policy/selinux-snort )"
-
-REQUIRED_USE="!kernel_linux? ( !shared-rep )"
-
-PATCHES=(
- "${FILESDIR}"/${P}-no-implicit.patch
-)
-
-pkg_setup() {
-
- # pre_inst() is a better place to put this
- # but we need it here for the 'fowners' statements in src_install()
- enewgroup snort
- enewuser snort -1 -1 /dev/null snort
-
-}
-
-src_prepare() {
- default
-
- # Multilib fix for the sf_engine
- ebegin "Applying multilib fix"
- sed -i -e 's|${exec_prefix}/lib|${exec_prefix}/'$(get_libdir)'|g' \
- "${WORKDIR}/${P}/src/dynamic-plugins/sf_engine/Makefile.am" \
- || die "sed for sf_engine failed"
-
- # Multilib fix for the curent set of dynamic-preprocessors
- for i in file ftptelnet smtp ssh dns ssl dcerpc2 sdf imap pop sip reputation gtp modbus dnp3; do
- sed -i -e 's|${exec_prefix}/lib|${exec_prefix}/'$(get_libdir)'|g' \
- "${WORKDIR}/${P}/src/dynamic-preprocessors/$i/Makefile.am" \
- || die "sed for $i failed."
- done
- eend
-
- AT_M4DIR=m4 eautoreconf
-}
-
-src_configure() {
-
- econf \
- $(use_enable !static shared) \
- $(use_enable static) \
- $(use_enable static so-with-static-lib) \
- $(use_enable gre) \
- $(use_enable control-socket) \
- $(use_enable file-inspect) \
- $(use_enable high-availability ha) \
- $(use_enable non-ether-decoders) \
- $(use_enable shared-rep) \
- $(use_enable side-channel) \
- $(use_enable sourcefire) \
- $(use_enable ppm) \
- $(use_enable perfprofiling) \
- $(use_enable linux-smp-stats) \
- $(use_enable inline-init-failopen) \
- $(use_enable threads pthread) \
- $(use_enable debug) \
- $(use_enable debug debug-msgs) \
- $(use_enable debug corefiles) \
- $(use_enable !debug dlclose) \
- $(use_enable active-response) \
- $(use_enable reload-error-restart) \
- $(use_enable react) \
- $(use_enable flexresp3) \
- $(use_enable large-pcap-64bit large-pcap) \
- --enable-mpls \
- --enable-normalizer \
- --enable-reload \
- --enable-targetbased \
- --disable-build-dynamic-examples \
- --disable-profile \
- --disable-ppm-test \
- --disable-intel-soft-cpm \
- --disable-static-daq
-}
-
-src_install() {
-
- emake DESTDIR="${D}" install
-
- dodir /var/log/snort \
- /var/run/snort \
- /etc/snort/rules \
- /etc/snort/so_rules \
- /usr/$(get_libdir)/snort_dynamicrules
-
- # config.log and build.log are needed by Sourcefire
- # to trouble shoot build problems and bug reports so we are
- # perserving them incase the user needs upstream support.
- dodoc RELEASE.NOTES ChangeLog \
- doc/* \
- tools/u2boat/README.u2boat
-
- insinto /etc/snort
- doins etc/attribute_table.dtd \
- etc/classification.config \
- etc/gen-msg.map \
- etc/reference.config \
- etc/threshold.conf \
- etc/unicode.map
-
- # We use snort.conf.distrib because the config file is complicated
- # and the one shipped with snort can change drastically between versions.
- # Users should migrate setting by hand and not with etc-update.
- newins etc/snort.conf snort.conf.distrib
-
- # config.log and build.log are needed by Sourcefire
- # to troubleshoot build problems and bug reports so we are
- # preserving them incase the user needs upstream support.
- if [ -f "${WORKDIR}/${PF}/config.log" ]; then
- dodoc "${WORKDIR}/${PF}/config.log"
- fi
- if [ -f "${T}/build.log" ]; then
- dodoc "${T}/build.log"
- fi
-
- insinto /etc/snort/preproc_rules
- doins preproc_rules/decoder.rules \
- preproc_rules/preprocessor.rules \
- preproc_rules/sensitive-data.rules
-
- fowners -R snort:snort \
- /var/log/snort \
- /var/run/snort \
- /etc/snort
-
- newinitd "${FILESDIR}/snort.rc12" snort
- newconfd "${FILESDIR}/snort.confd.2" snort
-
- # Sourcefire uses Makefiles to install docs causing Bug #297190.
- # This removes the unwanted doc directory and rogue Makefiles.
- rm -rf "${D}"usr/share/doc/snort || die "Failed to remove SF doc directories"
- rm "${D}"usr/share/doc/"${PF}"/Makefile* || die "Failed to remove doc make files"
-
- # Remove unneeded .la files (Bug #382863)
- rm "${D}"usr/$(get_libdir)/snort_dynamicengine/libsf_engine.la || die
- rm "${D}"usr/$(get_libdir)/snort_dynamicpreprocessor/libsf_*_preproc.la || die "Failed to remove libsf_?_preproc.la"
-
- # Set the correct lib path for dynamicengine, dynamicpreprocessor, and dynamicdetection
- sed -i -e 's|/usr/local/lib|/usr/'$(get_libdir)'|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the correct rule location in the config
- sed -i -e 's|RULE_PATH ../rules|RULE_PATH /etc/snort/rules|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the correct preprocessor/decoder rule location in the config
- sed -i -e 's|PREPROC_RULE_PATH ../preproc_rules|PREPROC_RULE_PATH /etc/snort/preproc_rules|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Enable the preprocessor/decoder rules
- sed -i -e 's|^# include $PREPROC_RULE_PATH|include $PREPROC_RULE_PATH|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- sed -i -e 's|^# dynamicdetection directory|dynamicdetection directory|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Just some clean up of trailing /'s in the config
- sed -i -e 's|snort_dynamicpreprocessor/$|snort_dynamicpreprocessor|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Make it clear in the config where these are...
- sed -i -e 's|^include classification.config|include /etc/snort/classification.config|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- sed -i -e 's|^include reference.config|include /etc/snort/reference.config|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Disable all rule files by default.
- sed -i -e 's|^include $RULE_PATH|# include $RULE_PATH|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the configured DAQ to afpacket
- sed -i -e 's|^# config daq: <type>|config daq: afpacket|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the location of the DAQ modules
- sed -i -e 's|^# config daq_dir: <dir>|config daq_dir: /usr/'$(get_libdir)'/daq|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the DAQ mode to passive
- sed -i -e 's|^# config daq_mode: <mode>|config daq_mode: passive|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set snort to run as snort:snort
- sed -i -e 's|^# config set_gid:|config set_gid: snort|g' \
- "${D}etc/snort/snort.conf.distrib" || die
- sed -i -e 's|^# config set_uid:|config set_uid: snort|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the default log dir
- sed -i -e 's|^# config logdir:|config logdir: /var/log/snort/|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the correct so_rule location in the config
- sed -i -e 's|SO_RULE_PATH ../so_rules|SO_RULE_PATH /etc/snort/so_rules|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-}
-
-pkg_postinst() {
-
- einfo "There have been a number of improvements and new features"
- einfo "added to ${P}. Please review the RELEASE.NOTES and"
- einfo "ChangLog located in /usr/share/doc/${PF}."
- einfo
- elog "The Sourcefire Vulnerability Research Team (VRT) recommends that"
- elog "users migrate their snort.conf customizations to the latest config"
- elog "file released by the VRT. You can find the latest version of the"
- elog "Snort config file in /etc/snort/snort.conf.distrib."
- elog
- elog "!! It is important that you migrate to this new snort.conf file !!"
- elog
- elog "This version of the ebuild includes an updated init.d file and"
- elog "conf.d file that rely on options found in the latest Snort"
- elog "config file provided by the VRT."
-
- if use debug; then
- elog "You have the 'debug' USE flag enabled. If this has been done to"
- elog "troubleshoot an issue by producing a core dump or a back trace,"
- elog "then you need to also ensure the FEATURES variable in make.conf"
- elog "contains the 'nostrip' option."
- fi
-}
diff --git a/net-analyzer/snort/snort-2.9.8.3.ebuild b/net-analyzer/snort/snort-2.9.8.3.ebuild
deleted file mode 100644
index a22c0902ec33..000000000000
--- a/net-analyzer/snort/snort-2.9.8.3.ebuild
+++ /dev/null
@@ -1,249 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-inherit autotools multilib user
-
-DESCRIPTION="The de facto standard for intrusion detection/prevention"
-HOMEPAGE="https://www.snort.org"
-SRC_URI="https://www.snort.org/downloads/archive/${PN}/${P}.tar.gz"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86"
-IUSE="static +gre +mpls +targetbased +ppm +perfprofiling
-+non-ether-decoders control-socket file-inspect high-availability
-shared-rep side-channel sourcefire linux-smp-stats inline-init-failopen
-+threads debug +active-response +normalizer reload-error-restart
-+react +flexresp3 large-pcap-64bit selinux"
-
-DEPEND=">=net-libs/libpcap-1.3.0
- >=net-libs/daq-2.0.2
- >=dev-libs/libpcre-8.33
- dev-libs/libdnet
- sys-libs/zlib"
-
-RDEPEND="${DEPEND}
- selinux? ( sec-policy/selinux-snort )"
-
-REQUIRED_USE="!kernel_linux? ( !shared-rep )"
-
-pkg_setup() {
-
- # pre_inst() is a better place to put this
- # but we need it here for the 'fowners' statements in src_install()
- enewgroup snort
- enewuser snort -1 -1 /dev/null snort
-
-}
-
-src_prepare() {
-
- # Multilib fix for the sf_engine
- ebegin "Applying multilib fix"
- sed -i -e 's|${exec_prefix}/lib|${exec_prefix}/'$(get_libdir)'|g' \
- "${WORKDIR}/${P}/src/dynamic-plugins/sf_engine/Makefile.am" \
- || die "sed for sf_engine failed"
-
- # Multilib fix for the curent set of dynamic-preprocessors
- for i in file ftptelnet smtp ssh dns ssl dcerpc2 sdf imap pop sip reputation gtp modbus dnp3; do
- sed -i -e 's|${exec_prefix}/lib|${exec_prefix}/'$(get_libdir)'|g' \
- "${WORKDIR}/${P}/src/dynamic-preprocessors/$i/Makefile.am" \
- || die "sed for $i failed."
- done
- eend
-
- AT_M4DIR=m4 eautoreconf
-}
-
-src_configure() {
-
- econf \
- $(use_enable !static shared) \
- $(use_enable static) \
- $(use_enable static so-with-static-lib) \
- $(use_enable gre) \
- $(use_enable mpls) \
- $(use_enable targetbased) \
- $(use_enable control-socket) \
- $(use_enable file-inspect) \
- $(use_enable high-availability ha) \
- $(use_enable non-ether-decoders) \
- $(use_enable shared-rep) \
- $(use_enable side-channel) \
- $(use_enable sourcefire) \
- $(use_enable ppm) \
- $(use_enable perfprofiling) \
- $(use_enable linux-smp-stats) \
- $(use_enable inline-init-failopen) \
- $(use_enable threads pthread) \
- $(use_enable debug) \
- $(use_enable debug debug-msgs) \
- $(use_enable debug corefiles) \
- $(use_enable !debug dlclose) \
- $(use_enable active-response) \
- $(use_enable normalizer) \
- $(use_enable reload-error-restart) \
- $(use_enable react) \
- $(use_enable flexresp3) \
- $(use_enable large-pcap-64bit large-pcap) \
- --enable-reload \
- --disable-build-dynamic-examples \
- --disable-profile \
- --disable-ppm-test \
- --disable-intel-soft-cpm \
- --disable-static-daq
-}
-
-src_install() {
-
- emake DESTDIR="${D}" install
-
- dodir /var/log/snort \
- /var/run/snort \
- /etc/snort/rules \
- /etc/snort/so_rules \
- /usr/$(get_libdir)/snort_dynamicrules
-
- # config.log and build.log are needed by Sourcefire
- # to trouble shoot build problems and bug reports so we are
- # perserving them incase the user needs upstream support.
- dodoc RELEASE.NOTES ChangeLog \
- doc/* \
- tools/u2boat/README.u2boat
-
- insinto /etc/snort
- doins etc/attribute_table.dtd \
- etc/classification.config \
- etc/gen-msg.map \
- etc/reference.config \
- etc/threshold.conf \
- etc/unicode.map
-
- # We use snort.conf.distrib because the config file is complicated
- # and the one shipped with snort can change drastically between versions.
- # Users should migrate setting by hand and not with etc-update.
- newins etc/snort.conf snort.conf.distrib
-
- # config.log and build.log are needed by Sourcefire
- # to troubleshoot build problems and bug reports so we are
- # preserving them incase the user needs upstream support.
- if [ -f "${WORKDIR}/${PF}/config.log" ]; then
- dodoc "${WORKDIR}/${PF}/config.log"
- fi
- if [ -f "${T}/build.log" ]; then
- dodoc "${T}/build.log"
- fi
-
- insinto /etc/snort/preproc_rules
- doins preproc_rules/decoder.rules \
- preproc_rules/preprocessor.rules \
- preproc_rules/sensitive-data.rules
-
- fowners -R snort:snort \
- /var/log/snort \
- /var/run/snort \
- /etc/snort
-
- newinitd "${FILESDIR}/snort.rc12" snort
- newconfd "${FILESDIR}/snort.confd.2" snort
-
- # Sourcefire uses Makefiles to install docs causing Bug #297190.
- # This removes the unwanted doc directory and rogue Makefiles.
- rm -rf "${D}"usr/share/doc/snort || die "Failed to remove SF doc directories"
- rm "${D}"usr/share/doc/"${PF}"/Makefile* || die "Failed to remove doc make files"
-
- # Remove unneeded .la files (Bug #382863)
- rm "${D}"usr/$(get_libdir)/snort_dynamicengine/libsf_engine.la || die
- rm "${D}"usr/$(get_libdir)/snort_dynamicpreprocessor/libsf_*_preproc.la || die "Failed to remove libsf_?_preproc.la"
-
- # Set the correct lib path for dynamicengine, dynamicpreprocessor, and dynamicdetection
- sed -i -e 's|/usr/local/lib|/usr/'$(get_libdir)'|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the correct rule location in the config
- sed -i -e 's|RULE_PATH ../rules|RULE_PATH /etc/snort/rules|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the correct preprocessor/decoder rule location in the config
- sed -i -e 's|PREPROC_RULE_PATH ../preproc_rules|PREPROC_RULE_PATH /etc/snort/preproc_rules|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Enable the preprocessor/decoder rules
- sed -i -e 's|^# include $PREPROC_RULE_PATH|include $PREPROC_RULE_PATH|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- sed -i -e 's|^# dynamicdetection directory|dynamicdetection directory|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Just some clean up of trailing /'s in the config
- sed -i -e 's|snort_dynamicpreprocessor/$|snort_dynamicpreprocessor|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Make it clear in the config where these are...
- sed -i -e 's|^include classification.config|include /etc/snort/classification.config|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- sed -i -e 's|^include reference.config|include /etc/snort/reference.config|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Disable all rule files by default.
- sed -i -e 's|^include $RULE_PATH|# include $RULE_PATH|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Disable normalizer preprocessor config if normalizer USE flag not set.
- if ! use normalizer; then
- sed -i -e 's|^preprocessor normalize|#preprocessor normalize|g' \
- "${D}etc/snort/snort.conf.distrib" || die
- fi
-
- # Set the configured DAQ to afpacket
- sed -i -e 's|^# config daq: <type>|config daq: afpacket|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the location of the DAQ modules
- sed -i -e 's|^# config daq_dir: <dir>|config daq_dir: /usr/'$(get_libdir)'/daq|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the DAQ mode to passive
- sed -i -e 's|^# config daq_mode: <mode>|config daq_mode: passive|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set snort to run as snort:snort
- sed -i -e 's|^# config set_gid:|config set_gid: snort|g' \
- "${D}etc/snort/snort.conf.distrib" || die
- sed -i -e 's|^# config set_uid:|config set_uid: snort|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the default log dir
- sed -i -e 's|^# config logdir:|config logdir: /var/log/snort/|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-
- # Set the correct so_rule location in the config
- sed -i -e 's|SO_RULE_PATH ../so_rules|SO_RULE_PATH /etc/snort/so_rules|g' \
- "${D}etc/snort/snort.conf.distrib" || die
-}
-
-pkg_postinst() {
-
- einfo "There have been a number of improvements and new features"
- einfo "added to ${P}. Please review the RELEASE.NOTES and"
- einfo "ChangLog located in /usr/share/doc/${PF}."
- einfo
- elog "The Sourcefire Vulnerability Research Team (VRT) recommends that"
- elog "users migrate their snort.conf customizations to the latest config"
- elog "file released by the VRT. You can find the latest version of the"
- elog "Snort config file in /etc/snort/snort.conf.distrib."
- elog
- elog "!! It is important that you migrate to this new snort.conf file !!"
- elog
- elog "This version of the ebuild includes an updated init.d file and"
- elog "conf.d file that rely on options found in the latest Snort"
- elog "config file provided by the VRT."
-
- if use debug; then
- elog "You have the 'debug' USE flag enabled. If this has been done to"
- elog "troubleshoot an issue by producing a core dump or a back trace,"
- elog "then you need to also ensure the FEATURES variable in make.conf"
- elog "contains the 'nostrip' option."
- fi
-}