mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-16 23:57:11 +00:00
48 lines
1.7 KiB
Bash
48 lines
1.7 KiB
Bash
# $Id: PKGBUILD 30472 2009-03-20 01:54:06Z hugo $
|
|
# Maintainer: 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.3.2
|
|
pkgrel=1
|
|
pkgdesc="A lightweight network intrusion detection system"
|
|
arch=('i686' 'x86_64')
|
|
license=('GPL')
|
|
depends=('libpcap>=1.0.0' 'pcre')
|
|
backup=(etc/conf.d/snort
|
|
etc/snort/{snort,threshold}.conf
|
|
etc/snort/{confreference,classification}.config)
|
|
install=snort.install
|
|
source=(http://www.snort.org/dl/${pkgname}-${pkgver}.tar.gz
|
|
snort
|
|
snort.conf.d
|
|
http://www.snort.org/pub-bin/downloads.cgi/Download/comm_rules/Community-Rules-CURRENT.tar.gz
|
|
snort.conf.patch)
|
|
url="http://www.snort.org"
|
|
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 --without-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=('f75547da33446ddb4ca07eefd9ce31dc'
|
|
'361b8b9e40b9af0164f6b3e3da2e8277'
|
|
'b4fb8a68490589cd34df93de7609bfac'
|
|
'f236b8a4ac12e99d3e7bd81bf3b5a482'
|
|
'd06cfb2024fbb6ad7108e0f0c65d34a7')
|