Created
September 18, 2010 00:05
-
-
Save axelson/585174 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $Id: $ | |
# Maintainer: | |
# 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.8.6.1 | |
pkgrel=1 | |
pkgdesc="A lightweight network intrusion detection system" | |
arch=('i686' 'x86_64') | |
url="http://www.snort.org" | |
license=('GPL') | |
depends=('libpcap' 'pcre') | |
backup=(etc/conf.d/snort | |
etc/snort/{snort,threshold}.conf | |
etc/snort/{confreference,classification}.config) | |
install=snort.install | |
source=(snort | |
snort.conf.d | |
snort-2.8.6.1.tar.gz | |
http://www.snort.org/pub-bin/downloads.cgi/Download/comm_rules/snortrules-snapshot-2861.tar.gz | |
snort.conf.patch) | |
options=('!makeflags' '!libtool') | |
build() { | |
cd ${srcdir}/${pkgname}-${pkgver} | |
#patch -Np0 < ${srcdir}/snort.conf.patch || return 1 | |
./configure --prefix=/usr --sysconfdir=/etc/snort --with-libpcap-includes=/usr/include/pcap \ | |
--without-mysql --with-postgresql --without-oracle --without-odbc | |
make || return 1 | |
make DESTDIR=${pkgdir} install | |
mkdir -p ${pkgdir}/{etc/rc.d,etc/snort/rules} | |
install -d -m755 ${pkgdir}/var/log/snort || return 1 | |
install -D -m644 etc/{*.conf*,*.map} ${pkgdir}/etc/snort/ || return 1 | |
install -D -m644 ${srcdir}/snort.conf.d ${pkgdir}/etc/conf.d/snort | return 1 | |
install -D -m644 ${srcdir}/rules/*.rules ${pkgdir}/etc/snort/rules/ || return 1 | |
install -D -m755 ${srcdir}/snort ${pkgdir}/etc/rc.d/snort || return 1 | |
} | |
md5sums=('361b8b9e40b9af0164f6b3e3da2e8277' | |
'b4fb8a68490589cd34df93de7609bfac' | |
'b1119396a32e9df0d80404e4b6c49166' | |
'2aa139b5759bdfb8e69e6df309c2d80e' | |
'd06cfb2024fbb6ad7108e0f0c65d34a7') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment