summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Holzer <mholzer@gentoo.org>2003-11-07 17:32:16 +0000
committerMartin Holzer <mholzer@gentoo.org>2003-11-07 17:32:16 +0000
commite3ddd780818de631cdb36d3d22d8b5bcc7035d99 (patch)
treee9eb1b4073a85ffa19dc9a2d25290d84a45d0843 /net-analyzer
parentcleanup (diff)
downloadgentoo-2-e3ddd780818de631cdb36d3d22d8b5bcc7035d99.tar.gz
gentoo-2-e3ddd780818de631cdb36d3d22d8b5bcc7035d99.tar.bz2
gentoo-2-e3ddd780818de631cdb36d3d22d8b5bcc7035d99.zip
cleanup
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/snort/Manifest6
-rw-r--r--net-analyzer/snort/files/digest-snort-1.8.61
-rw-r--r--net-analyzer/snort/files/digest-snort-1.8.71
-rw-r--r--net-analyzer/snort/files/digest-snort-1.9.01
-rw-r--r--net-analyzer/snort/files/digest-snort-1.9.11
-rw-r--r--net-analyzer/snort/files/digest-snort-2.0.12
-rw-r--r--net-analyzer/snort/snort-1.8.6.ebuild92
-rw-r--r--net-analyzer/snort/snort-1.8.7.ebuild93
-rw-r--r--net-analyzer/snort/snort-1.9.0.ebuild102
-rw-r--r--net-analyzer/snort/snort-1.9.1.ebuild103
-rw-r--r--net-analyzer/snort/snort-2.0.1.ebuild123
11 files changed, 0 insertions, 525 deletions
diff --git a/net-analyzer/snort/Manifest b/net-analyzer/snort/Manifest
index 5a786490562c..e61bd4c16efa 100644
--- a/net-analyzer/snort/Manifest
+++ b/net-analyzer/snort/Manifest
@@ -1,8 +1,5 @@
MD5 d66befb8651c581d460d52ab6b84c19d ChangeLog 4599
MD5 15408a678cbad1f26faa4878550ddbd9 metadata.xml 956
-MD5 0f5fa043ee086cb03152ff92d1f48694 snort-1.8.6.ebuild 2539
-MD5 b821cbea52c2acabf95c63de10309cc9 snort-1.8.7.ebuild 2565
-MD5 e13014aae2c01a3ea05b2f3501a90d4c snort-1.9.0.ebuild 2698
MD5 b88b02813405df5cc5ae3149269cd6b3 snort-1.9.1-r1.ebuild 2811
MD5 65915f2fc42392b23eeaa1fe96f218c9 snort-1.9.1-r2.ebuild 2804
MD5 010b32b3eb596ccc7aede84f60aafb28 snort-1.9.1-r3.ebuild 2293
@@ -12,9 +9,6 @@ MD5 7b6d0a92b8ed5084b0173f1cd1d2905d snort-2.0.2.ebuild 2651
MD5 a45c40b1fd8165ed1e9616808d8f4d41 files/1.9.1-libnet-1.0.patch 2907
MD5 fe6a25fdd3c6d4b527d89c51d78b8f36 files/2.0.1-libnet-1.0.patch 2753
MD5 fe6a25fdd3c6d4b527d89c51d78b8f36 files/2.0.2-libnet-1.0.patch 2753
-MD5 f709dea91ede4986f0bcd0ec4b8f35b5 files/digest-snort-1.8.6 64
-MD5 02a31a68fbda2df18d79240c1d37775e files/digest-snort-1.8.7 64
-MD5 a4581a4ad1e2bdc3571aaf4694c44899 files/digest-snort-1.9.0 64
MD5 4a957dd6316ffe54d0a8c3f5780aac10 files/digest-snort-1.9.1-r1 63
MD5 4a957dd6316ffe54d0a8c3f5780aac10 files/digest-snort-1.9.1-r2 63
MD5 4a957dd6316ffe54d0a8c3f5780aac10 files/digest-snort-1.9.1-r3 63
diff --git a/net-analyzer/snort/files/digest-snort-1.8.6 b/net-analyzer/snort/files/digest-snort-1.8.6
deleted file mode 100644
index af191dca1aff..000000000000
--- a/net-analyzer/snort/files/digest-snort-1.8.6
+++ /dev/null
@@ -1 +0,0 @@
-MD5 6bba7e1cbc837a5c7404d7c0b496780b snort-1.8.6.tar.gz 1770604
diff --git a/net-analyzer/snort/files/digest-snort-1.8.7 b/net-analyzer/snort/files/digest-snort-1.8.7
deleted file mode 100644
index bb8a7001d365..000000000000
--- a/net-analyzer/snort/files/digest-snort-1.8.7
+++ /dev/null
@@ -1 +0,0 @@
-MD5 29c81d0bc243edb21ba4ab33ee80457e snort-1.8.7.tar.gz 1726082
diff --git a/net-analyzer/snort/files/digest-snort-1.9.0 b/net-analyzer/snort/files/digest-snort-1.9.0
deleted file mode 100644
index a9d90a940a06..000000000000
--- a/net-analyzer/snort/files/digest-snort-1.9.0
+++ /dev/null
@@ -1 +0,0 @@
-MD5 bcd3cbd0e6982345871d02fe60444c5c snort-1.9.0.tar.gz 1866556
diff --git a/net-analyzer/snort/files/digest-snort-1.9.1 b/net-analyzer/snort/files/digest-snort-1.9.1
deleted file mode 100644
index 1d2e3073e602..000000000000
--- a/net-analyzer/snort/files/digest-snort-1.9.1
+++ /dev/null
@@ -1 +0,0 @@
-MD5 50bb526b41f48fb7689bb8342b27e44d snort-1.9.1.tar.gz 1466151
diff --git a/net-analyzer/snort/files/digest-snort-2.0.1 b/net-analyzer/snort/files/digest-snort-2.0.1
deleted file mode 100644
index 210682acbfc7..000000000000
--- a/net-analyzer/snort/files/digest-snort-2.0.1
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 ab5bdd0cab96fe521d11d2c6d804518f snort-2.0.1.tar.gz 1817646
-MD5 ae55efd9ad3cddaf563a9bdbedae6c4a snort-2.0.1+prelude.patch.gz 94867
diff --git a/net-analyzer/snort/snort-1.8.6.ebuild b/net-analyzer/snort/snort-1.8.6.ebuild
deleted file mode 100644
index 74d099bbaed6..000000000000
--- a/net-analyzer/snort/snort-1.8.6.ebuild
+++ /dev/null
@@ -1,92 +0,0 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/snort-1.8.6.ebuild,v 1.12 2003/09/05 23:40:10 msterret Exp $
-
-IUSE="ssl postgres mysql"
-
-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"
-
-SLOT="0"
-LICENSE="GPL-2"
-KEYWORDS="x86 sparc "
-
-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
- dev-lang/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 snort.snort /var/log/snort
- chmod 0770 /var/log/snort
-}
diff --git a/net-analyzer/snort/snort-1.8.7.ebuild b/net-analyzer/snort/snort-1.8.7.ebuild
deleted file mode 100644
index 1c32608e1940..000000000000
--- a/net-analyzer/snort/snort-1.8.7.ebuild
+++ /dev/null
@@ -1,93 +0,0 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/snort-1.8.7.ebuild,v 1.11 2003/09/05 23:40:10 msterret Exp $
-
-IUSE="ssl postgres mysql"
-
-S=${WORKDIR}/${P}
-DESCRIPTION="Libpcap-based packet sniffer/logger/lightweight IDS"
-SRC_URI="http://www.snort.org/dl/${P}.tar.gz"
-HOMEPAGE="http://www.snort.org"
-
-SLOT="0"
-LICENSE="GPL-2"
-KEYWORDS="x86 sparc "
-
-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
- dev-lang/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
- touch ${D}/var/log/snort/.keep
-
- 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 snort.snort /var/log/snort
- chmod 0770 /var/log/snort
-}
diff --git a/net-analyzer/snort/snort-1.9.0.ebuild b/net-analyzer/snort/snort-1.9.0.ebuild
deleted file mode 100644
index b7b7da4772c0..000000000000
--- a/net-analyzer/snort/snort-1.9.0.ebuild
+++ /dev/null
@@ -1,102 +0,0 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/snort-1.9.0.ebuild,v 1.8 2003/09/05 23:40:10 msterret Exp $
-
-IUSE="ssl postgres mysql snmp"
-
-S=${WORKDIR}/${P}
-DESCRIPTION="Libpcap-based packet sniffer/logger/lightweight IDS"
-SRC_URI="http://www.snort.org/dl/${P}.tar.gz"
-HOMEPAGE="http://www.snort.org"
-
-SLOT="0"
-LICENSE="GPL-2"
-KEYWORDS="x86 ~sparc "
-
-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 )
- snmp? ( >=net-analyzer/net-snmp-5.0 )"
-
-RDEPEND="virtual/glibc
- dev-lang/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_unpack() {
- unpack ${A}
-
- cd ${S}
- patch -l -p0 < ${FILESDIR}/${PF}-gentoo.diff
-}
-
-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"
- use snmp && myconf="${myconf} --with-snmp" \
- || myconf="${myconf} --without-snmp"
-
- ./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
- touch ${D}/var/log/snort/.keep
-
- insinto /usr/lib/snort/bin
- doins contrib/{create_mysql,snortlog,*.pl}
-
- dodoc COPYING LICENSE doc/*
- docinto contrib ; dodoc contrib/*
-
- insinto /etc/snort
- doins etc/classification.config rules/*.rules
- newins etc/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 snort.snort /var/log/snort
- chmod 0770 /var/log/snort
-}
diff --git a/net-analyzer/snort/snort-1.9.1.ebuild b/net-analyzer/snort/snort-1.9.1.ebuild
deleted file mode 100644
index 1c01250ba89f..000000000000
--- a/net-analyzer/snort/snort-1.9.1.ebuild
+++ /dev/null
@@ -1,103 +0,0 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/snort-1.9.1.ebuild,v 1.4 2003/09/05 23:40:10 msterret Exp $
-
-inherit eutils
-
-IUSE="ssl postgres mysql snmp"
-S=${WORKDIR}/${P}
-DESCRIPTION="Libpcap-based packet sniffer/logger/lightweight IDS"
-SRC_URI="http://www.snort.org/dl/${P}.tar.gz"
-HOMEPAGE="http://www.snort.org"
-
-SLOT="0"
-LICENSE="GPL-2"
-KEYWORDS="x86 sparc"
-
-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 )
- snmp? ( >=net-analyzer/net-snmp-5.0 )"
-
-RDEPEND="virtual/glibc
- dev-lang/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_unpack() {
- unpack ${A}
-
- cd ${S}
- epatch ${FILESDIR}/${P}-configure.patch
-}
-
-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"
- use snmp && myconf="${myconf} --with-snmp" \
- || myconf="${myconf} --without-snmp"
-
- ./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
- touch ${D}/var/log/snort/.keep
-
- insinto /usr/lib/snort/bin
- doins contrib/{create_mysql,snortlog,*.pl}
-
- dodoc COPYING LICENSE doc/*
- docinto contrib ; dodoc contrib/*
-
- insinto /etc/snort
- doins etc/classification.config rules/*.rules
- newins etc/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 snort.snort /var/log/snort
- chmod 0770 /var/log/snort
-}
diff --git a/net-analyzer/snort/snort-2.0.1.ebuild b/net-analyzer/snort/snort-2.0.1.ebuild
deleted file mode 100644
index 7c51d8c480fb..000000000000
--- a/net-analyzer/snort/snort-2.0.1.ebuild
+++ /dev/null
@@ -1,123 +0,0 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snort/snort-2.0.1.ebuild,v 1.3 2003/09/05 23:40:10 msterret Exp $
-
-inherit eutils
-
-IUSE="ssl postgres mysql prelude"
-
-# snort 2.0.x does not support snmp yet Bug #26310
-# IUSE="${IUSE} snmp"
-
-S=${WORKDIR}/${P}
-DESCRIPTION="Libpcap-based packet sniffer/logger/lightweight IDS"
-SRC_URI="http://www.snort.org/dl/${P}.tar.gz
- prelude? ( mirror://gentoo/${P}+prelude.patch.gz )"
-
-HOMEPAGE="http://www.snort.org"
-
-SLOT="0"
-LICENSE="GPL-2"
-KEYWORDS="~x86 ~sparc -alpha"
-
-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 )
- prelude? ( >=dev-libs/libprelude-0.8 )"
-# snmp? ( >=net-analyzer/net-snmp-5.0 )
-
-RDEPEND="virtual/glibc
- dev-lang/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 )
- prelude? ( >=dev-libs/libprelude-0.8 )"
-
-src_unpack() {
- unpack ${A}
-
- cd ${S}
- #is this needed in 2.0? -Method
- #epatch ${FILESDIR}/${P}-configure.patch
-
- # Following patch contributed in bug #18258
- #is this needed in 2.0? -Method
- #use alpha && epatch ${FILESDIR}/${P}-alpha.patch
-
-
- sed "s:var RULE_PATH ../rules:var RULE_PATH /etc/snort:" < etc/snort.conf > etc/snort.conf.distrib
-
- use prelude && epatch ../${P}+prelude.patch
-}
-
-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"
-# use snmp && myconf="${myconf} --with-snmp" \
-# || myconf="${myconf} --without-snmp"
- use prelude && myconf="${myconf} --with-prelude"
-
-
- ./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
- keepdir /var/log/snort/
-
- insinto /usr/lib/snort/bin
- doins contrib/{create_mysql,snortlog,*.pl}
-
- dodoc COPYING LICENSE doc/*
- docinto contrib ; dodoc contrib/*
-
- insinto /etc/snort
- doins etc/reference.config etc/classification.config rules/*.rules etc/*.map
- doins etc/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 snort.snort /var/log/snort
- chmod 0770 /var/log/snort
-}