diff options
author | Eldad Zack <eldad@gentoo.org> | 2004-10-29 19:47:51 +0000 |
---|---|---|
committer | Eldad Zack <eldad@gentoo.org> | 2004-10-29 19:47:51 +0000 |
commit | 18b31fafd1549ec0ea0a79e6ec4f297afc03de9a (patch) | |
tree | 273127a4f62afea7ffd53703f6bc6be244af75a8 /net-analyzer/snort | |
parent | fix updating script (diff) | |
download | historical-18b31fafd1549ec0ea0a79e6ec4f297afc03de9a.tar.gz historical-18b31fafd1549ec0ea0a79e6ec4f297afc03de9a.tar.bz2 historical-18b31fafd1549ec0ea0a79e6ec4f297afc03de9a.zip |
Added einfo for MySQL/PostgreSQL usage. Closes #68922.
Diffstat (limited to 'net-analyzer/snort')
-rw-r--r-- | net-analyzer/snort/ChangeLog | 6 | ||||
-rw-r--r-- | net-analyzer/snort/Manifest | 14 | ||||
-rw-r--r-- | net-analyzer/snort/snort-2.1.3.ebuild | 35 | ||||
-rw-r--r-- | net-analyzer/snort/snort-2.2.0.ebuild | 35 |
4 files changed, 62 insertions, 28 deletions
diff --git a/net-analyzer/snort/ChangeLog b/net-analyzer/snort/ChangeLog index 82206a9939e3..d2c0ceed5952 100644 --- a/net-analyzer/snort/ChangeLog +++ b/net-analyzer/snort/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-analyzer/snort # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/ChangeLog,v 1.48 2004/08/16 10:57:42 eldad Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/ChangeLog,v 1.49 2004/10/29 19:47:51 eldad Exp $ + + 29 Oct 2004; Eldad Zack <eldad@gentoo.org> snort-2.1.3.ebuild, + snort-2.2.0.ebuild: + Added einfo for MySQL/PostgreSQL usage. Closes #68922. 16 Aug 2004; Eldad Zack <eldad@gentoo.org> snort-2.1.3.ebuild, snort-2.2.0.ebuild: diff --git a/net-analyzer/snort/Manifest b/net-analyzer/snort/Manifest index c59dbb7c1a02..609f3e070467 100644 --- a/net-analyzer/snort/Manifest +++ b/net-analyzer/snort/Manifest @@ -2,10 +2,10 @@ Hash: SHA1 MD5 07860ae96776002e9ae119dbde42f92d snort-2.1.2.ebuild 3519 -MD5 4a3208d69f96614194f69fafe8d616a0 snort-2.2.0.ebuild 3813 +MD5 82ee28ac888dd7bcd1c43e9bffe8f921 snort-2.2.0.ebuild 4391 MD5 8f89d5403bedc2791b69f44b0813bfef snort-2.0.6.ebuild 3139 -MD5 1daf3ca336451d88b41bf95fa807679b snort-2.1.3.ebuild 3805 -MD5 1a2cd383c862f5d774a8f3018033cb1d ChangeLog 9584 +MD5 2075215d2b74257aad1b3ee0dcfd285b snort-2.1.3.ebuild 4383 +MD5 f478485525bbd337222163f24e4fe415 ChangeLog 9729 MD5 53edc4328d9adeaf087c65ea94b1594b metadata.xml 246 MD5 919058894f4983c35900bc8bb98a96d4 files/snort.rc6 764 MD5 ea783bd276257a20df5b6537d3ff5d49 files/snort-drop-calculation.diff 4957 @@ -20,9 +20,9 @@ MD5 fe6a25fdd3c6d4b527d89c51d78b8f36 files/2.1.2-libnet-1.0.patch 2753 MD5 513637a4fadce14177bf85e97e5931f8 files/snort-2.1.2-gcc3.patch 350 MD5 513637a4fadce14177bf85e97e5931f8 files/snort-2.1.3-gcc3.patch 350 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v1.2.4 (GNU/Linux) +Version: GnuPG v1.2.6 (GNU/Linux) -iD8DBQFBKhG4T+MN7JbqCpMRAq8wAKCMfiurgllUWI+Tq/lgiE8xaNAP/QCfVtJ0 -4TwjFyWUtLaEvCf3v7vSf1k= -=su/X +iD8DBQFBgp6fT+MN7JbqCpMRAjuBAKCSFIVmPrut/nHapTyy4EBqReak7ACbBZUU +vXfij+ycdnFq3iCKxemoeaM= +=oSgB -----END PGP SIGNATURE----- diff --git a/net-analyzer/snort/snort-2.1.3.ebuild b/net-analyzer/snort/snort-2.1.3.ebuild index 89a11a7ac251..308c3f9cbb93 100644 --- a/net-analyzer/snort/snort-2.1.3.ebuild +++ b/net-analyzer/snort/snort-2.1.3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/snort-2.1.3.ebuild,v 1.5 2004/08/16 11:02:54 eldad Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/snort-2.1.3.ebuild,v 1.6 2004/10/29 19:47:51 eldad Exp $ inherit eutils gnuconfig @@ -96,6 +96,15 @@ src_compile() { emake || die "compile problem" } +pkg_preinst() { + enewgroup snort + enewuser snort -1 /dev/null /var/log/snort snort + usermod -d "/var/log/snort" snort || die "usermod problem" + usermod -g "snort" snort || die "usermod problem" + usermod -s "/dev/null" snort || die "usermod problem" + echo "ignore any message about CREATE_HOME above..." +} + src_install() { make DESTDIR=${D} install || die @@ -115,16 +124,22 @@ src_install() { exeinto /etc/init.d ; newexe ${FILESDIR}/snort.rc6 snort insinto /etc/conf.d ; newins ${FILESDIR}/snort.confd snort + + chown snort:snort ${D}/var/log/snort + chmod 0770 ${D}/var/log/snort } pkg_postinst() { - enewgroup snort - enewuser snort -1 /dev/null /var/log/snort snort - usermod -d "/var/log/snort" snort || die "usermod problem" - usermod -g "snort" snort || die "usermod problem" - usermod -s "/dev/null" snort || die "usermod problem" - echo "ignore any message about CREATE_HOME above..." - - chown snort:snort /var/log/snort - chmod 0770 /var/log/snort + if use mysql || use postgres + then + einfo "To use a database as a backend for snort you'll have to" + einfo "import the correct tables to the database." + einfo "You'll have to setup a user called snort first." + einfo "" + use mysql && einfo " MySQL: zcat /usr/share/doc/${P}/contrib/create_mysql.gz | mysql -p snort" + use postgres && einfo " PostgreSQL: import /usr/share/doc/${P}/contrib/create_postgresql.gz" + einfo "" + einfo "Also, read the following Gentoo forums article:" + einfo ' http://forums.gentoo.org/viewtopic.php?t=78718' + fi } diff --git a/net-analyzer/snort/snort-2.2.0.ebuild b/net-analyzer/snort/snort-2.2.0.ebuild index 63cd025cca09..87422d3f4f71 100644 --- a/net-analyzer/snort/snort-2.2.0.ebuild +++ b/net-analyzer/snort/snort-2.2.0.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/snort-2.2.0.ebuild,v 1.2 2004/08/16 10:57:42 eldad Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/snort-2.2.0.ebuild,v 1.3 2004/10/29 19:47:51 eldad Exp $ inherit eutils gnuconfig @@ -96,6 +96,15 @@ src_compile() { emake || die "compile problem" } +pkg_preinst() { + enewgroup snort + enewuser snort -1 /dev/null /var/log/snort snort + usermod -d "/var/log/snort" snort || die "usermod problem" + usermod -g "snort" snort || die "usermod problem" + usermod -s "/dev/null" snort || die "usermod problem" + echo "ignore any message about CREATE_HOME above..." +} + src_install() { make DESTDIR=${D} install || die @@ -115,16 +124,22 @@ src_install() { exeinto /etc/init.d ; newexe ${FILESDIR}/snort.rc6 snort insinto /etc/conf.d ; newins ${FILESDIR}/snort.confd snort + + chown snort:snort ${D}/var/log/snort + chmod 0770 ${D}/var/log/snort } pkg_postinst() { - enewgroup snort - enewuser snort -1 /dev/null /var/log/snort snort - usermod -d "/var/log/snort" snort || die "usermod problem" - usermod -g "snort" snort || die "usermod problem" - usermod -s "/dev/null" snort || die "usermod problem" - echo "ignore any message about CREATE_HOME above..." - - chown snort:snort /var/log/snort - chmod 0770 /var/log/snort + if use mysql || use postgres + then + einfo "To use a database as a backend for snort you'll have to" + einfo "import the correct tables to the database." + einfo "You'll have to setup a user called snort first." + einfo "" + use mysql && einfo " MySQL: zcat /usr/share/doc/${P}/contrib/create_mysql.gz | mysql -p snort" + use postgres && einfo " PostgreSQL: import /usr/share/doc/${P}/contrib/create_postgresql.gz" + einfo "" + einfo "Also, read the following Gentoo forums article:" + einfo ' http://forums.gentoo.org/viewtopic.php?t=78718' + fi } |