diff options
author | Markus Ullmann <jokey@gentoo.org> | 2007-09-05 20:07:45 +0000 |
---|---|---|
committer | Markus Ullmann <jokey@gentoo.org> | 2007-09-05 20:07:45 +0000 |
commit | 7a406f6c4b4792856968cef51cefd0494cc5d771 (patch) | |
tree | 2985682113ce2a859bdfaa377cc0799afadb8395 /net-analyzer/snort | |
parent | bumped to new version. Jason Smathers (jsin) <jsin@gentoo.org> (diff) | |
download | historical-7a406f6c4b4792856968cef51cefd0494cc5d771.tar.gz historical-7a406f6c4b4792856968cef51cefd0494cc5d771.tar.bz2 historical-7a406f6c4b4792856968cef51cefd0494cc5d771.zip |
Version bump wrt bug #185501, needs more testing
Package-Manager: portage-2.1.3.7
Diffstat (limited to 'net-analyzer/snort')
-rw-r--r-- | net-analyzer/snort/ChangeLog | 7 | ||||
-rw-r--r-- | net-analyzer/snort/Manifest | 24 | ||||
-rw-r--r-- | net-analyzer/snort/files/digest-snort-2.7.0.1 | 12 | ||||
-rw-r--r-- | net-analyzer/snort/snort-2.7.0.1.ebuild | 182 |
4 files changed, 216 insertions, 9 deletions
diff --git a/net-analyzer/snort/ChangeLog b/net-analyzer/snort/ChangeLog index 0feb36715920..9ced896fe346 100644 --- a/net-analyzer/snort/ChangeLog +++ b/net-analyzer/snort/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-analyzer/snort # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/ChangeLog,v 1.129 2007/04/22 06:21:15 dragonheart Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/ChangeLog,v 1.130 2007/09/05 20:07:45 jokey Exp $ + +*snort-2.7.0.1 (05 Sep 2007) + + 05 Sep 2007; Markus Ullmann <jokey@gentoo.org> +snort-2.7.0.1.ebuild: + Version bump wrt bug #185501, needs more testing 22 Apr 2007; Daniel Black <dragonheart@gentoo.org> +files/snort.rc7, -files/snort.rc9, +snort-2.4.5.ebuild, snort-2.6.1.4.ebuild, diff --git a/net-analyzer/snort/Manifest b/net-analyzer/snort/Manifest index 29b1ec4a6585..d183044e72c7 100644 --- a/net-analyzer/snort/Manifest +++ b/net-analyzer/snort/Manifest @@ -35,6 +35,7 @@ DIST snort-2.4.0-genpatches.tar.bz2 6475 RMD160 9ea99c71892a2cbf409ead3514ae7922 DIST snort-2.4.5.tar.gz 2817837 RMD160 1b697ccd84e1c10406ac20ccc0c46f79ea661e11 SHA1 3ba7dae8058aecf4e4eb1c7a816a7c8a4fb7c550 SHA256 84eb84da542d23e9f1c29b8eb319614c509fb19a745f1fa2a88d07c740645184 DIST snort-2.6.1.3.tar.gz 3700149 RMD160 0c390bd7cdbe705ba43ce8c8894bfec53c3179f6 SHA1 cb944d74ab6c254f88d356d45e4492ba560dfc3c SHA256 8cc112d6e0a55b0a7e0802428abbd1b7815e0d01a1240c84a726ecc563629a79 DIST snort-2.6.1.4.tar.gz 3716052 RMD160 b9768992698fd9967b66b89938d38555260660ab SHA1 2709f1ef0953029a8b9a23c94dea81bcd42b2906 SHA256 5f830d3c95b6fb96b8abaa5539e71c3cdcfd8df95b376c77323149436f7bbf70 +DIST snort-2.7.0.1.tar.gz 3905846 RMD160 c88b71231bfa65e2c1eabd8931f4d6121e92a26a SHA1 9b751a73c611126c32e2dccd0a0e99aaff4e9653 SHA256 c9337c2acb34e34904e3fff8a2c31e1a3a92aa7776a9263454fd4dc5503721fa DIST snortrules-pr-2.4.tar.gz 789097 RMD160 dd2179b3ce8a55699d2e1b857426e5489191a121 SHA1 b8b59754ccb59b1dcf324d2faa399326117a60e9 SHA256 19d2545a2a150dff8b4dbcbd0def389b6865c4c70f5084172d08a7b151e1a504 DIST snortsam-20050110.tar.gz 29395 RMD160 ec80ce024ed7a013da35444ef1098ba3faa6cfc3 SHA1 46a274abeeea4e808849c65b9d510a5b5a221ba6 SHA256 dc428458f3c47684aabb89036ca7e601a6aa92864dbf23b31f33732b76c2a01e EBUILD snort-2.4.5.ebuild 4433 RMD160 44a69a1408b9b6305a855765cd8e020fec879178 SHA1 fea3f91b1ac5963633940da3c92ed4def837ffb0 SHA256 986e45058efed63eca3c4275f9b230bcd0771824b04693fab7ff6ac2a4ed6000 @@ -49,10 +50,14 @@ EBUILD snort-2.6.1.4.ebuild 6001 RMD160 eb79bf4074c0b02856a525024c085ce19f609521 MD5 0a6200bf6beee09deb9ddd3d7faa3042 snort-2.6.1.4.ebuild 6001 RMD160 eb79bf4074c0b02856a525024c085ce19f609521 snort-2.6.1.4.ebuild 6001 SHA256 d25b828ffd843171a501d9289f10abf9568b11159716e538c9059d7a1bc7e3d9 snort-2.6.1.4.ebuild 6001 -MISC ChangeLog 22998 RMD160 5d789b425252d395d1592c25fed065a29ebc5312 SHA1 e9252987b9d5af8cbc0c0b59311368490c5c07b1 SHA256 4d7d7526762e6cbf458309f27e54567c25f050c3da9724e110477bde104d7c0d -MD5 e30e0c252e0f5e75dc749aa54b834723 ChangeLog 22998 -RMD160 5d789b425252d395d1592c25fed065a29ebc5312 ChangeLog 22998 -SHA256 4d7d7526762e6cbf458309f27e54567c25f050c3da9724e110477bde104d7c0d ChangeLog 22998 +EBUILD snort-2.7.0.1.ebuild 5419 RMD160 71d9637d42ec8aeb2e30a35224c7732f01c02b7b SHA1 ad171c5d5f601610c85d914ddcbebc95844d7a21 SHA256 5d497a1d52fd75a642930979b7d3339974716cbaf7fbb38ef29fbe6743d89610 +MD5 27c962884206a522337fe783a2e04a29 snort-2.7.0.1.ebuild 5419 +RMD160 71d9637d42ec8aeb2e30a35224c7732f01c02b7b snort-2.7.0.1.ebuild 5419 +SHA256 5d497a1d52fd75a642930979b7d3339974716cbaf7fbb38ef29fbe6743d89610 snort-2.7.0.1.ebuild 5419 +MISC ChangeLog 23146 RMD160 5ae5aab036aea02eca66b0e770aef8b8ace939da SHA1 0dc422d94cb9ab4e69c53d8eac00dcec16989d79 SHA256 47de1715d508d444498073792e0622889ed32e6ba59a65f559363cb8a2e1a6f2 +MD5 3b62509ff88871fb796786174b9e87de ChangeLog 23146 +RMD160 5ae5aab036aea02eca66b0e770aef8b8ace939da ChangeLog 23146 +SHA256 47de1715d508d444498073792e0622889ed32e6ba59a65f559363cb8a2e1a6f2 ChangeLog 23146 MISC metadata.xml 246 RMD160 427cf3e9767d777650d905a7b4fcad57259908bb SHA1 470a19ab011412f7f219d654304b7a43876082ae SHA256 843ac8d26d6f2f01b254d963268d1b4dc7ec515e5ce16daf47f7c68f2c47584e MD5 53edc4328d9adeaf087c65ea94b1594b metadata.xml 246 RMD160 427cf3e9767d777650d905a7b4fcad57259908bb metadata.xml 246 @@ -66,10 +71,13 @@ SHA256 4bd85630e9420e683d70be000370bcc0c5cf927c25c4ed1406c585d6481f1f9e files/di MD5 0a41105e90aae43a766364d2f7822a41 files/digest-snort-2.6.1.4 1006 RMD160 8046913eb94ba65bf1e82402e64bb4572fd326dd files/digest-snort-2.6.1.4 1006 SHA256 78dac29646fdafa52b5fca59970c439aa43fb3ecf689390e56e7ab011e58af21 files/digest-snort-2.6.1.4 1006 +MD5 3cf4542bb0ed09187eccd499c6df2b0f files/digest-snort-2.7.0.1 1006 +RMD160 654c0ff91fd689ce40732ea31bd0cddcda4b7a79 files/digest-snort-2.7.0.1 1006 +SHA256 1d407b46ca8ba3df7b72a844e81e4475cb623817c6a2a170887cf5b58506bb81 files/digest-snort-2.7.0.1 1006 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.3 (GNU/Linux) +Version: GnuPG v2.0.6 (GNU/Linux) -iD8DBQFGK6EU/ejvha5XGaMRAuKAAJ9I01oyfSsjxa1xJG5tu1i6jYke3ACglQIv -RhpjuCzQCXe73osKpvwjeeA= -=8GSr +iD8DBQFG3wydz974XjDVpbkRAp+NAJ4/IhOdG4B+Y7W/yzHYP4rQOZWAQACfYfYj +RNveVmtIURj3MEBtg7DtSuE= +=JiOP -----END PGP SIGNATURE----- diff --git a/net-analyzer/snort/files/digest-snort-2.7.0.1 b/net-analyzer/snort/files/digest-snort-2.7.0.1 new file mode 100644 index 000000000000..ac066081c692 --- /dev/null +++ b/net-analyzer/snort/files/digest-snort-2.7.0.1 @@ -0,0 +1,12 @@ +MD5 52c0c6bc60d7123cb048e562d25bc34a Community-Rules-2.4.tar.gz 110044 +RMD160 ecfb4444cb0152545d823692eb6e5e2347151b54 Community-Rules-2.4.tar.gz 110044 +SHA256 4c82f90c960626aae5804c2375540f2d7241524c31ae3c7ab69df6c46e295c4c Community-Rules-2.4.tar.gz 110044 +MD5 06d3fa0b326dcdca59a19811f32b013a snort-2.7.0.1.tar.gz 3905846 +RMD160 c88b71231bfa65e2c1eabd8931f4d6121e92a26a snort-2.7.0.1.tar.gz 3905846 +SHA256 c9337c2acb34e34904e3fff8a2c31e1a3a92aa7776a9263454fd4dc5503721fa snort-2.7.0.1.tar.gz 3905846 +MD5 35d9a2486f8c0280bb493aa03c011927 snortrules-pr-2.4.tar.gz 789097 +RMD160 dd2179b3ce8a55699d2e1b857426e5489191a121 snortrules-pr-2.4.tar.gz 789097 +SHA256 19d2545a2a150dff8b4dbcbd0def389b6865c4c70f5084172d08a7b151e1a504 snortrules-pr-2.4.tar.gz 789097 +MD5 2eeef1a7a040d67c3afaf9d749905e47 snortsam-20050110.tar.gz 29395 +RMD160 ec80ce024ed7a013da35444ef1098ba3faa6cfc3 snortsam-20050110.tar.gz 29395 +SHA256 dc428458f3c47684aabb89036ca7e601a6aa92864dbf23b31f33732b76c2a01e snortsam-20050110.tar.gz 29395 diff --git a/net-analyzer/snort/snort-2.7.0.1.ebuild b/net-analyzer/snort/snort-2.7.0.1.ebuild new file mode 100644 index 000000000000..00272c80dda0 --- /dev/null +++ b/net-analyzer/snort/snort-2.7.0.1.ebuild @@ -0,0 +1,182 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/snort-2.7.0.1.ebuild,v 1.1 2007/09/05 20:07:45 jokey Exp $ + +WANT_AUTOCONF="latest" +WANT_AUTOMAKE="latest" +AT_M4DIR=m4 + +inherit eutils autotools + +DESCRIPTION="Libpcap-based packet sniffer/logger/lightweight IDS" +HOMEPAGE="http://www.snort.org/" +SRC_URI="http://www.snort.org/dl/current/${P}.tar.gz + http://www.snort.org/pub-bin/downloads.cgi/Download/comm_rules/Community-Rules-2.4.tar.gz + http://www.snort.org/pub-bin/downloads.cgi/Download/vrt_pr/snortrules-pr-2.4.tar.gz + snortsam? ( mirror://gentoo/snortsam-20050110.tar.gz )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 -sparc ~x86" +IUSE="postgres mysql flexresp selinux snortsam odbc prelude inline dynamicplugin +timestats perfprofiling linux-smp-stats flexresp2 react sguil gre" + +DEPEND="virtual/libc + >=dev-libs/libpcre-4.2-r1 + virtual/libpcap + flexresp? ( ~net-libs/libnet-1.0.2a ) + flexresp2? ( dev-libs/libdnet ) + react? ( ~net-libs/libnet-1.0.2a ) + postgres? ( || ( dev-db/postgresql dev-db/libpq ) ) + mysql? ( virtual/mysql ) + prelude? ( >=dev-libs/libprelude-0.9.0 ) + odbc? ( dev-db/unixODBC ) + >=sys-devel/libtool-1.4 + inline? ( + ~net-libs/libnet-1.0.2a + net-firewall/iptables + )" + +RDEPEND="${DEPEND} + dev-lang/perl + selinux? ( sec-policy/selinux-snort ) + snortsam? ( net-analyzer/snortsam )" + +pkg_setup() { + enewgroup snort + enewuser snort -1 -1 /dev/null snort + + if use flexresp && use flexresp2 ; then + ewarn + ewarn "You have both the 'flexresp' and 'flexresp2' USE" + ewarn "flags set. You can use 'flexresp' or 'flexresp2'" + ewarn "but not both." + ewarn + ewarn "Defaulting to flexresp2..." + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}/${PN}-2.6.1.2-libdir.patch" + epatch "${FILESDIR}/${PN}-2.6.1.1-libnet.patch" + use react && epatch "${FILESDIR}/${PN}-2.6.1.2-react.patch" + sed -i "s:var RULE_PATH ../rules:var RULE_PATH /etc/snort/rules:" \ + etc/snort.conf + + if use prelude ; then + sed -i -e "s:AC_PROG_RANLIB:AC_PROG_LIBTOOL:" configure.in + fi + + if use snortsam ; then + cd .. + einfo "Applying snortsam patch" + sed -i "s/PLUGIN_FWSAM/PLUGIN_FWSAM,/" snortpatch9 || die "sed failed" + ./patchsnort.sh "${S}" || die "snortsam patch failed" + cd "${S}" + fi + + einfo "Regenerating autoconf/automake files" + eautoreconf +} + +src_compile() { + local myconf + + if use flexresp2; then + myconf="${myconf} --enable-flexresp2" + elif use flexresp; then + myconf="${myconf} --enable-flexresp" + fi + + if use react && ! use flexresp; then + myconf="${myconf} --enable-react" + fi + + use gre && myconf="${myconf} --enable-gre" + + myconf="${myconf} --with-libipq-includes=/usr/include/libipq" + + econf \ + --without-oracle \ + $(use_with postgres postgresql) \ + $(use_with mysql) \ + $(use_with odbc) \ + $(use_enable prelude) \ + $(use_enable inline) \ + $(use_enable dynamicplugin) \ + $(use_enable timestats) \ + $(use_enable perfprofiling) \ + $(use_enable linux-smp-stats) \ + ${myconf} || die "econf failed" + + # limit to single as reported by jforman on irc + emake -j1 || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + + keepdir /var/log/snort/ + + dodoc doc/* + dodoc ./RELEASE.NOTES + docinto schemas ; dodoc schemas/* + + insinto /etc/snort + doins etc/reference.config etc/classification.config \ + etc/*.map etc/threshold.conf + use dynamicplugin || sed -i -e 's:^dynamic:# dynamic:g' etc/snort.conf + sed -e "s:/usr/local/lib:/usr/$(get_libdir):g" -e 's:/usr/local/:/usr/:g' \ + etc/snort.conf > "${D}"/etc/snort/snort.conf.distrib + + newinitd "${FILESDIR}/snort.rc8" snort + newconfd "${FILESDIR}/snort.confd" snort + + fowners snort:snort /var/log/snort + fperms 0770 /var/log/snort + + # install rules + insinto /etc/snort/rules + doins -r "${WORKDIR}"/rules/* +} + +pkg_postinst() { + ewarn + ewarn "If you find that snort is using too much memory, your system" + ewarn "freezes, or snort crashes after a few minutes try adding the" + ewarn "following to your snort.conf..." + ewarn + ewarn "'config detection: search-method ac-sparsebands'" + ewarn + ewarn "This will provide high pattern matching performance at a much" + ewarn "lower cost to memory. For more information on the new features" + ewarn "in snort 2.7, please take a look at the release notes located in..." + ewarn + ewarn " /usr/share/doc/${PF}/RELEASE.NOTES.bz2" + ewarn + elog "To use a database as a backend for snort you will have to" + elog "import the correct tables to the database." + elog "You will have to setup a database called snort before doing the" + elog "following..." + elog + elog " MySQL: zcat /usr/share/doc/${PF}/schemas/create_mysql.gz | mysql -p snort" + elog + elog " PostgreSQL: import /usr/share/doc/${PF}/schemas/create_postgresql.gz" + elog + elog " ODBC: look at /usr/share/doc/${PF}/schemas/" + elog + elog "Users using the unified output plugin and barnyard do not need to" + elog "compile database support into snort, but still need to set up their" + elog "database as shown above." + elog + ewarn "Only a basic set of rules was installed." + ewarn "Please add your other sets of rules to /etc/snort/rules." + ewarn "For more information on rules, visit ${HOMEPAGE}." + if use sguil ; then + elog "SGUIL needs to catch up with recent snort. If you plan on using SGUIL" + elog "you should unmerge ${P} and emerge snort-2.4.x" + fi +} |