diff options
author | Matthew Kennedy <mkennedy@gentoo.org> | 2002-04-07 06:59:54 +0000 |
---|---|---|
committer | Matthew Kennedy <mkennedy@gentoo.org> | 2002-04-07 06:59:54 +0000 |
commit | 68293d1a57e39e9937300ac0e10b6e1d53c3474c (patch) | |
tree | 709b341283d98beebae61dea1da02caef2168997 /net-misc/snort | |
parent | minor fixes (diff) | |
download | historical-68293d1a57e39e9937300ac0e10b6e1d53c3474c.tar.gz historical-68293d1a57e39e9937300ac0e10b6e1d53c3474c.tar.bz2 historical-68293d1a57e39e9937300ac0e10b6e1d53c3474c.zip |
Added PostgreSQL dep; netlib dep ajustment, version bump.
Diffstat (limited to 'net-misc/snort')
-rw-r--r-- | net-misc/snort/ChangeLog | 10 | ||||
-rw-r--r-- | net-misc/snort/files/digest-snort-1.8.5 | 1 | ||||
-rw-r--r-- | net-misc/snort/snort-1.8.5.ebuild | 87 |
3 files changed, 97 insertions, 1 deletions
diff --git a/net-misc/snort/ChangeLog b/net-misc/snort/ChangeLog index bf32634ae964..dbc91b299c2e 100644 --- a/net-misc/snort/ChangeLog +++ b/net-misc/snort/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for net-misc/snort # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/net-misc/snort/ChangeLog,v 1.2 2002/02/09 00:00:40 woodchip Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/snort/ChangeLog,v 1.3 2002/04/07 06:59:54 mkennedy Exp $ + +*snort-1.8.5 (6 Apr 2002) + + 6 Apr 2002; Matthew Kennedy <mkennedy@gentoo.org> ChangeLog, + snort-1.8.5.ebuild, files/digest-snort-1.8.5: + + Added dependency for PostgreSQL. Moved netlib dep from RDEPEND to + DEPEND (it is statically linked). Version bump to latest. *snort-1.8.3-r1 (8 Feb 2002) diff --git a/net-misc/snort/files/digest-snort-1.8.5 b/net-misc/snort/files/digest-snort-1.8.5 new file mode 100644 index 000000000000..4e028f28f9cf --- /dev/null +++ b/net-misc/snort/files/digest-snort-1.8.5 @@ -0,0 +1 @@ +MD5 c577770b2c347232f4007f138132bab0 snort-1.8.5.tar.gz 1755381 diff --git a/net-misc/snort/snort-1.8.5.ebuild b/net-misc/snort/snort-1.8.5.ebuild new file mode 100644 index 000000000000..d444404a537b --- /dev/null +++ b/net-misc/snort/snort-1.8.5.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Achim Gottinger achim@gentoo.org +# $Header: /var/cvsroot/gentoo-x86/net-misc/snort/snort-1.8.5.ebuild,v 1.1 2002/04/07 06:59:54 mkennedy Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="Libpcap-based packet sniffer/logger/lightweight IDS" +SRC_URI="http://www.snort.org/releases/${P}.tar.gz" +HOMEPAGE="http://www.snort.org" + +DEPEND="virtual/glibc + >=net-libs/libpcap-0.6.2-r1 + >=net-libs/libnet-1.0.2a + postgres? ( >=dev-db/postgresql-7.2 ) + mysql? ( >=dev-db/mysql-3.23.26 ) + ssl? ( >=dev-libs/openssl-0.9.6b )" + +RDEPEND="virtual/glibc + sys-devel/perl + >=net-libs/libpcap-0.6.2-r1 + postgres? ( >=dev-db/postgresql-7.2 ) + mysql? ( >=dev-db/mysql-3.23.26 ) + ssl? ( >=dev-libs/openssl-0.9.6b )" + +src_compile() { + + local myconf + + use postgres && myconf="${myconf} --with-postgresql" \ + || myconf="${myconf} --without-postgresql" + use mysql && myconf="${myconf} --with-mysql" \ + || myconf="${myconf} --without-mysql" + use ssl && myconf="${myconf} --with-openssl" \ + || myconf="${myconf} --without-openssl" + + ./configure \ + --prefix=/usr \ + --without-odbc \ + --without-oracle \ + --enable-pthreads \ + --enable-flexresp \ + --enable-smbalerts \ + --mandir=/usr/share/man \ + --host=${CHOST} ${myconf} || die "bad ./configure" + + emake || die "compile problem" +} + +src_install () { + + make DESTDIR=${D} install || die + + dodir /var/log/snort + + insinto /usr/lib/snort/bin + doins contrib/{create_mysql,snortlog,*.pl} + + dodoc AUTHORS BUGS COPYING CREDITS ChangeLog FAQ INSTALL LICENSE + dodoc NEWS README* RULES.SAMPLE SnortUsersManual.pdf USAGE + docinto contrib ; dodoc contrib/* + + insinto /etc/snort + doins classification.config *.rules + newins snort.conf snort.conf.distrib + + exeinto /etc/init.d ; newexe ${FILESDIR}/snort.rc6 snort + insinto /etc/conf.d ; newins ${FILESDIR}/snort.confd snort +} + +pkg_postinst() { + + if ! grep -q ^snort: /etc/group ; then + groupadd snort || die "problem adding group snort" + fi + if ! grep -q ^snort: /etc/passwd ; then + useradd -g snort -s /dev/null -d /var/log/snort -c "snort" snort + assert "problem adding user snort" + fi + usermod -c "snort" snort || die "usermod problem" + 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 root.snort /var/log/snort + chmod 0770 /var/log/snort +} |