summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2015-07-26 13:00:08 +0000
committerPatrick Lauer <patrick@gentoo.org>2015-07-26 13:00:08 +0000
commit68861b918a41ac326a7b3009f45682aa5edb81b1 (patch)
treed2c6243e4fdec66b4a97c153f352acf2e04085fc /net-analyzer
parentBump (diff)
downloadhistorical-68861b918a41ac326a7b3009f45682aa5edb81b1.tar.gz
historical-68861b918a41ac326a7b3009f45682aa5edb81b1.tar.bz2
historical-68861b918a41ac326a7b3009f45682aa5edb81b1.zip
Bump
Package-Manager: portage-2.2.20/cvs/Linux x86_64
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/snort/ChangeLog7
-rw-r--r--net-analyzer/snort/Manifest4
-rw-r--r--net-analyzer/snort/snort-2.9.7.5.ebuild250
3 files changed, 259 insertions, 2 deletions
diff --git a/net-analyzer/snort/ChangeLog b/net-analyzer/snort/ChangeLog
index e8fee166a927..49237c2a7c47 100644
--- a/net-analyzer/snort/ChangeLog
+++ b/net-analyzer/snort/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-analyzer/snort
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/ChangeLog,v 1.209 2015/05/26 04:05:44 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/ChangeLog,v 1.210 2015/07/26 12:59:42 patrick Exp $
+
+*snort-2.9.7.5 (26 Jul 2015)
+
+ 26 Jul 2015; Patrick Lauer <patrick@gentoo.org> +snort-2.9.7.5.ebuild:
+ Bump
*snort-2.9.7.3 (26 May 2015)
diff --git a/net-analyzer/snort/Manifest b/net-analyzer/snort/Manifest
index 10204f60fecb..58f85674c23a 100644
--- a/net-analyzer/snort/Manifest
+++ b/net-analyzer/snort/Manifest
@@ -8,6 +8,7 @@ DIST snort-2.9.6.2.tar.gz 5229232 SHA256 8e1d7fc5e1523a786d845ca0102cc474abfcebf
DIST snort-2.9.7.0.tar.gz 6340553 SHA256 9738afea45d20b7f77997cc00055e7dd70f6aea0101209d87efec4bc4eace49b SHA512 f2cbdd2cf2ad15bd4cf3f8658c2a4880ee2069589db89c11aaea637984dde270ef6242c6dd43d5e12f829ed2464388950ee791dbbfa8df796843942c415fbc2f WHIRLPOOL d018f7f4cc9820057642bc691c0812866083a54f9399421f1b6eedfdb55e8cdfd42b0088c12e15facbfbeccd76a6df6351b0103eac35b5d5ca43900521ee274a
DIST snort-2.9.7.2.tar.gz 6352738 SHA256 db57c532919d9ababac127f29dbdc05ed832394880e46cad81a5dde713ccb4be SHA512 4732014d0049671b1a81857e25a5ffbc3cbccb698be2b3406f69a45603a6b9f34343469ee14fa513199cf9b890a278cc777b42493850cff6fcb3493bb9b73dce WHIRLPOOL 2eec2345e0b945ff504025b2e552729bb5542d351bf1d92e2806be0f1e8d251283d4f984d89058731f5a0150bb1c2a7dd012e9bfbfbd0a3596bfc50321a93cb9
DIST snort-2.9.7.3.tar.gz 6300073 SHA256 8cc3613b888fc54947a2beec773c76d9a20368f2659b31d45a9f0b11e66cc229 SHA512 949213d44d08c7f70bd45bc4947c9c35bfcd2ca3a54ec8a28d0c03e3868a485d2c208ec7850398f69d706c74fbad1389af445eb1107e678ff95714b5696f27b7 WHIRLPOOL 6d6e2da52f7f141bf6702c8604855ef351c055dbce2805341af16deafa5a0e288266e9632f770e29d209a59cce0d9c17f017bfb612f870dbf5b88c8c0d75e46d
+DIST snort-2.9.7.5.tar.gz 6312847 SHA256 ad03f11b5301b16642199a86aa90388eaa53f5003f83b0c5595745a490047be1 SHA512 fa1b299c72a44a8cb64361e8dab9fad5bfec36bbb05ebed2407002b2c5d97256d7d67599cb1f29406b5ee0916f2f85a173610d403cd34c57f74f7049c10eb038 WHIRLPOOL 6c7270d7edfc552f074fa2fb8ed067a12a48e4e159ceaa4be1f3c877996df5630aa42721aa637a846701072834e167445a67bbfa2deb93933048b1e4f70a8e1b
EBUILD snort-2.9.4.6-r1.ebuild 8684 SHA256 7a6bc0033e52d5a4d1c3b0a5c2eeca1e3751232af46bf2773f54e94a61cb73e4 SHA512 098a90677def25487a9a2b786fc2e3fb1c12cd988fc77306a4ddc194851e844c54b2bcf8df906e3e6231df53234a3bb300283896e53a9d3cb21a5619cbb36ee5 WHIRLPOOL 37f7857fbfe6602e8b313739b459af802af858fd2d1a3c6340799b3ae7e9f622a150bbac093d1baab0bf2a486eddad6126676d72555f1d2caa09fab4e0a25d2c
EBUILD snort-2.9.5.6.ebuild 8678 SHA256 9f87362e0a6985cee737d78b00e5b70e03831afa1e6b2fb33792f145f80c3b05 SHA512 8ebac2a153f6d342a286c44d77037bd4c438bbb592521f6add0d536fae77a76cce1ff3276f9b3f6347ecb2f6bfce9f5f0d065bbd047bbd15006202f0e4d0e44c WHIRLPOOL fb9ff629611151cc3a3a85fecb31f2a373584fbf78db72866ebcfb1e0d99072de23d8d6e84b7e1e8ea4d9a2a5efe19dff0f48495f52074cc6dc16a5162b7669d
EBUILD snort-2.9.6.0.ebuild 8727 SHA256 96d77ecb89534df0cc87381375c8a438b979aa749c7c2d6e0e26d58bee466ba3 SHA512 b0b7a645392625314a46a5ae672570fcd06e84849b879b5325ac6fe67ae6d79ac0b208575d3ac6bc4f2d50318382fe694c21400fbf0ef67290b37d8f26f427e0 WHIRLPOOL 340dfbafcfa5fe175ba46c897f09be18237bb0ead4ef2802ea34ed9d08bdea02483df26dffe44dba675553a5106e0781facfb316c0c427805f654cd1e9d24ab2
@@ -16,5 +17,6 @@ EBUILD snort-2.9.6.2.ebuild 8732 SHA256 51597405d909df309c75cb0d79a2a7d6e7d92805
EBUILD snort-2.9.7.0.ebuild 8661 SHA256 a8efb6438e153ab637eb60af200f294f4d354b5754a033853072bdf151070902 SHA512 ab1bb5cad0312d5a77adb360c75c85452e4ee32f3a17779d8ec50afc4c8116bab74639ba82d0a9da75a70f4d94b2ba8a7acc343e44c2d5e605061bfe07193783 WHIRLPOOL bad75ff24a1851dc755cef1a346be49b1d4a0a3d43e0de0bcc70cb7b8e67acefad4920e62d355ee67b8f416a4d05ba9fedc707ad8ec3cfd1fb0b39edbc704bec
EBUILD snort-2.9.7.2.ebuild 8661 SHA256 b2f87036378a771885431dbd4f04a10bdf384ded9f7f1e32c906618b03c55dcb SHA512 1f5f69c2bd7f17d11cdcc3520fe85c4a9a6b829a26e0bbabeb4576d8f382756de2c098a8f446ce79745397de8dacbdec67202ae77cfb605e205b2be2078d44a4 WHIRLPOOL 91d36f27e5f130cdefe3eb47e4a9bea1ea7d363dade151553c5eeac57f14b886c815bfa8294226a398b0f42dbfc8339ee146ff8f1d2d7f20a77a5078c16dc694
EBUILD snort-2.9.7.3.ebuild 8661 SHA256 0b3a1411b13cea60533b8044a75764c2dd77ece672541ba45f6eb01e7e84b2ef SHA512 00103b877df8985d1ec79b8cae033e0740e8b3f41a000b0bced65c2e5ced4742f43c68e5366e5374ac7479952bb5f2a662cd7cbdb482c391883f174f08005f5b WHIRLPOOL fdd57225a259cfc76314b430d215a429b21a7dace127bdb93a916973fe24d094c384d164009ca22ea337c94289a2929d5b96a274a95b6cfb9b15a967e5e25af6
-MISC ChangeLog 36443 SHA256 051efba9292ef389bdd834b3e043b24fc4374454b2856c6c9a1fd8d790256c93 SHA512 af6d5123aab6e52293b37338b507c3907775b1b9bbf480be4c4419ab2998c6db3b2adbf750259a8629d77bd6b4df3fcead6d4e327b5c3cc36be2e68471ba2f7d WHIRLPOOL 540488c5759781d96416855ba91d16381a92760b9f181c34bc41e2e596c08f1cbf6e8859db6a0e8623985368c8717b7308e9ade79dc9cd9f802f531cfc664329
+EBUILD snort-2.9.7.5.ebuild 8661 SHA256 b0ca5d89e4270d4e3696fc2a1392e8c43d154b360b79c1cb0a61f1d847d7672f SHA512 bfdc67fceb9ec5a51f43148ff4ae6acf341584c23c18c9bb134472134a2c54fb9fa8847719e7191857a98279c2e7bc7026c19bfccaa8ea503b1cbb93bcd9fb7d WHIRLPOOL 77ac484ef6c92c083f56da049e299b28632f8de5d3dbaceaece16bef9ea4da36ddca956425c760b01e6758ffa1ed6fe82cd18974249bff513577a51caee89a21
+MISC ChangeLog 36554 SHA256 2ec7c84ae8da30cc4c2e1b6dea4a05910ce8dcc4b7a3b43bc10420b2396aa82f SHA512 cc24cde8374d0ad8ab31f403928e8cf313f9a0b4173b3de94bc4620b591821f0166531d932fdc64d2a71c64bf18d903472a7330714a4a6e96ac2231a2f0150d0 WHIRLPOOL ad5d457d0a2cb6a01ca18cd769106358ba1035af4cce893b6b67c26355481cc234b1c460b560dd04d6ea112243e9d8b0ed7941fde83b20b2d65c009249ad43bd
MISC metadata.xml 5163 SHA256 1cba429bc6c631439913bdb2cd5ac6d1c8ea73330d6e034f3f43143e6f37dd4a SHA512 0a741ee8ac244ab387e1a8e783cc62da07c595e9e78dfc0fd14a099327b4de2234b0d30d05853db8acc0386275f60314eb682104b6bef900d3183d6d1004f3ec WHIRLPOOL 0dddc308a4e42c0b1cb724aa366e6d83987fdee3db06271ce2f95de5ef9f04df5ee3ffb35b4a5114dc68c781fc7caea8fc3a3415ac94687dccdf2be458245946
diff --git a/net-analyzer/snort/snort-2.9.7.5.ebuild b/net-analyzer/snort/snort-2.9.7.5.ebuild
new file mode 100644
index 000000000000..e573946f3824
--- /dev/null
+++ b/net-analyzer/snort/snort-2.9.7.5.ebuild
@@ -0,0 +1,250 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/snort-2.9.7.5.ebuild,v 1.1 2015/07/26 12:59:42 patrick Exp $
+
+EAPI="5"
+inherit autotools multilib user
+
+DESCRIPTION="The de facto standard for intrusion detection/prevention"
+HOMEPAGE="http://www.snort.org/"
+SRC_URI="https://www.snort.org/downloads/${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
+}