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 | 0bc910c99a0f0fd9f442f969cd02774c15e07e3a (patch) | |
tree | c08063c0bfcf1d80e9a65c515b6426b6316c558b /net-analyzer | |
parent | fix updating script (Manifest recommit) (diff) | |
download | gentoo-2-0bc910c99a0f0fd9f442f969cd02774c15e07e3a.tar.gz gentoo-2-0bc910c99a0f0fd9f442f969cd02774c15e07e3a.tar.bz2 gentoo-2-0bc910c99a0f0fd9f442f969cd02774c15e07e3a.zip |
Added einfo for MySQL/PostgreSQL usage. Closes #68922.
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/snort/ChangeLog | 6 | ||||
-rw-r--r-- | net-analyzer/snort/snort-2.1.3.ebuild | 35 | ||||
-rw-r--r-- | net-analyzer/snort/snort-2.2.0.ebuild | 35 |
3 files changed, 55 insertions, 21 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/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 } |