summaryrefslogtreecommitdiff
path: root/community/snort
diff options
context:
space:
mode:
Diffstat (limited to 'community/snort')
-rw-r--r--community/snort/PKGBUILD54
-rw-r--r--community/snort/snort41
-rw-r--r--community/snort/snort.conf.d21
-rw-r--r--community/snort/snort.install26
4 files changed, 0 insertions, 142 deletions
diff --git a/community/snort/PKGBUILD b/community/snort/PKGBUILD
deleted file mode 100644
index bd67007ca..000000000
--- a/community/snort/PKGBUILD
+++ /dev/null
@@ -1,54 +0,0 @@
-# $Id: PKGBUILD 74966 2012-08-10 17:25:48Z lfleischer $
-# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
-# Contributor: Hugo Doria <hugo@archlinux.org>
-# Contributor: Kessia 'even' Pinheiro <kessiapinheiro at gmail.com>
-# Contributor: dorphell <dorphell@archlinux.org>
-# Contributor: Gregor Ibic <gregor.ibic@intelicom.si>
-
-pkgname=snort
-pkgver=2.9.3.1
-pkgrel=1
-pkgdesc='A lightweight network intrusion detection system.'
-arch=('i686' 'x86_64')
-url='http://www.snort.org'
-license=('GPL')
-depends=('libdaq' 'libdnet' 'libpcap' 'pcre' 'zlib')
-makedepends=('ca-certificates')
-backup=('etc/conf.d/snort'
- 'etc/snort/snort.conf'
- 'etc/snort/threshold.conf'
- 'etc/snort/confreference.config'
- 'etc/snort/classification.config')
-options=('!makeflags' '!libtool')
-install='snort.install'
-source=("http://www.snort.org/dl/snort-current/${pkgname}-${pkgver}.tar.gz"{,.sig}
- 'snort'
- 'snort.conf.d')
-md5sums=('b2102605a7ca023ad6a2429821061c29'
- '2ae6566c4fbf40a863e9550f3a85340a'
- '361b8b9e40b9af0164f6b3e3da2e8277'
- 'b4fb8a68490589cd34df93de7609bfac')
-
-build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
-
- ./configure --prefix=/usr --sysconfdir=/etc/snort --with-libpcap-includes=/usr/include/pcap \
- --without-mysql --without-postgresql --without-oracle --without-odbc --enable-zlib \
- --enable-ipv6
- make
-}
-
-package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
-
- make DESTDIR="${pkgdir}" install
-
- mkdir -p "${pkgdir}/"{etc/rc.d,etc/snort/rules}
-
- install -d -m755 "${pkgdir}/var/log/snort"
- install -D -m644 etc/{*.conf*,*.map} "${pkgdir}/etc/snort/"
- install -D -m644 "${srcdir}/snort.conf.d" "${pkgdir}/etc/conf.d/snort"
- install -D -m755 "${srcdir}/snort" "${pkgdir}/etc/rc.d/snort"
-
- sed -i 's#/usr/local/lib/#/usr/lib/#' "${pkgdir}/etc/snort/snort.conf"
-}
diff --git a/community/snort/snort b/community/snort/snort
deleted file mode 100644
index 5dfa72fbf..000000000
--- a/community/snort/snort
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-# source application-specific settings
-[ -f /etc/conf.d/snort ] && . /etc/conf.d/snort
-
-PID=`pidof -o %PPID /usr/bin/snort`
-case "$1" in
- start)
- stat_busy "Starting Intrusion Database System: SNORT"
- [ -z "$PID" ] && /usr/bin/snort ${SNORT_OPTIONS} -u ${USER} -g ${GROUP} \
- -i ${INTERFACE} -c ${SNORT_CONF}
- if [ $? -gt 0 ]; then
- stat_fail
- else
- add_daemon snort
- stat_done
- fi
- ;;
-
- stop)
- stat_busy "Stopping Intrusion Database System: SNORT"
- [ ! -z "$PID" ] && kill $PID &> /dev/null
- if [ $? -gt 0 ]; then
- stat_fail
- else
- rm_daemon snort
- stat_done
- fi
- ;;
- restart)
- $0 stop
- sleep 1
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac
-exit 0
diff --git a/community/snort/snort.conf.d b/community/snort/snort.conf.d
deleted file mode 100644
index 86b566abc..000000000
--- a/community/snort/snort.conf.d
+++ /dev/null
@@ -1,21 +0,0 @@
-#
-# Parameters to be passed to snort
-#
-
-# options taken from Fedora
-# http://cvs.fedoraproject.org/viewcvs/devel/snort/sysconfig.snort?rev=1.2&view=markup
-
-# Where is the snort.conf file.
-SNORT_CONF="/etc/snort/snort.conf"
-
-# What user account should we run under.
-USER="snort"
-
-# What group account should we run under.
-GROUP="snort"
-
-# define the interface we listen on
-INTERFACE="eth0"
-
-# If you are using prelude, delete the '-A fast' option
-SNORT_OPTIONS="-A fast -b -l /var/log/snort -D -p"
diff --git a/community/snort/snort.install b/community/snort/snort.install
deleted file mode 100644
index 673f22c6c..000000000
--- a/community/snort/snort.install
+++ /dev/null
@@ -1,26 +0,0 @@
-post_install() {
- getent group snort >/dev/null || usr/sbin/groupadd -g 29 snort
- getent passwd snort >/dev/null || usr/sbin/useradd -c 'Snort user' -u 29 -g snort -d /var/log/snort -s /bin/false snort
- usr/bin/passwd -l snort &>/dev/null
-
- [ -f var/log/snort/alert ] || : >var/log/snort/alert
- chown snort.snort var/log/snort/ -R
-
-cat << _EOF
-
->>> You have to edit the HOME_NET variable in the /etc/snort/snort.conf file to reflect your local network.
->>> If you do not change it, snort may not work.
-
-_EOF
-}
-
-post_upgrade() {
- post_install $1
-}
-
-pre_remove() {
- usr/sbin/userdel snort &>/dev/null
- usr/sbin/groupdel snort &>/dev/null
-}
-
-# vim:set ts=2 sw=2 et: