diff options
-rw-r--r-- | pcr/snort/PKGBUILD | 19 | ||||
-rw-r--r-- | pcr/snort/snort.conf.d | 21 |
2 files changed, 10 insertions, 30 deletions
diff --git a/pcr/snort/PKGBUILD b/pcr/snort/PKGBUILD index a275d6730..8231cbeb8 100644 --- a/pcr/snort/PKGBUILD +++ b/pcr/snort/PKGBUILD @@ -1,4 +1,4 @@ -# Maintainer (Arch) : M0Rf30 +# Maintainer (Arch) : M0Rf30 # Contributor (Arch) : Lukas Fleischer <archlinux at cryptocrack dot de> # Contributor (Arch) : Hugo Doria <hugo@archlinux.org> # Contributor (Arch) : Kessia 'even' Pinheiro <kessiapinheiro at gmail.com> @@ -8,25 +8,22 @@ pkgname=snort pkgver=2.9.7.2 -pkgrel=1 +pkgrel=2 pkgdesc='A lightweight network intrusion detection system.' -arch=('i686' 'x86_64' 'mips64el') +arch=('i686' 'x86_64') url='http://www.snort.org' license=('GPL') depends=('libdaq' 'libdnet' 'libpcap' 'openssl' 'pcre' 'zlib') backup=('etc/snort/snort.conf' 'etc/snort/threshold.conf' 'etc/snort/reference.config' - 'etc/snort/rules/emerging.conf' - 'etc/snort/classification.config') + 'etc/snort/classification.config' + 'etc/snort/rules/emerging.conf') options=('!makeflags' '!libtool') install='snort.install' source=("https://www.snort.org/downloads/snort/${pkgname}-${pkgver}.tar.gz" "http://rules.emergingthreats.net/open/${pkgname}-2.9.0/emerging.rules.tar.gz" 'snort@.service') -md5sums=('b01e9964827394c39194a0147bc15705' - 'SKIP' - '49c7e8dbde680322ff5c4e0883f2b908') build() { cd "${srcdir}/${pkgname}-${pkgver}" @@ -41,7 +38,7 @@ package() { make DESTDIR="${pkgdir}" install - mkdir -p "${pkgdir}/etc/snort/rules" + 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/" @@ -55,3 +52,7 @@ package() { echo 'include $RULE_PATH/emerging.conf' >> "${pkgdir}/etc/snort/snort.conf" cp ${srcdir}/rules/* "${pkgdir}/etc/snort/rules" } + +md5sums=('b01e9964827394c39194a0147bc15705' + 'SKIP' + '49c7e8dbde680322ff5c4e0883f2b908') 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" |