summaryrefslogtreecommitdiff
path: root/pcr/snort
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-01-28 03:27:16 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-01-28 03:27:16 +0000
commit462391357aa5e749dc9908c15f3baa0b4416f3d8 (patch)
tree11d4d3f054aae9ffd869adc634054f64a16d83b8 /pcr/snort
parent748e32a3a886569b58a27003e85b76be5746153d (diff)
Tue Jan 28 03:22:21 UTC 2014
Diffstat (limited to 'pcr/snort')
-rw-r--r--pcr/snort/PKGBUILD51
-rw-r--r--pcr/snort/snort41
-rw-r--r--pcr/snort/snort.conf.d21
-rw-r--r--pcr/snort/snort.install26
4 files changed, 0 insertions, 139 deletions
diff --git a/pcr/snort/PKGBUILD b/pcr/snort/PKGBUILD
deleted file mode 100644
index 2439a1c73..000000000
--- a/pcr/snort/PKGBUILD
+++ /dev/null
@@ -1,51 +0,0 @@
-# $Id: PKGBUILD 78820 2012-10-25 06:47:28Z foutrelis $
-# Contributor: 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>
-# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io>
-
-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')
-
-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/pcr/snort/snort b/pcr/snort/snort
deleted file mode 100644
index 5dfa72fbf..000000000
--- a/pcr/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/pcr/snort/snort.conf.d b/pcr/snort/snort.conf.d
deleted file mode 100644
index 86b566abc..000000000
--- a/pcr/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/pcr/snort/snort.install b/pcr/snort/snort.install
deleted file mode 100644
index 673f22c6c..000000000
--- a/pcr/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: