updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / snortsam / PKGBUILD
blobf1cff4ee763ec25d8d31866a3bf1b5de9698a6a4
1 # Contributor: Penguin <TGates81.at.gmail.dot.com>
3 pkgname=snortsam
4 pkgver=2.50
5 pkgrel=1
6 pkgdesc="Snort plugin that allows automated blocking of IP addresses on several firewalls."
7 url="http://www.snortsam.net/"
8 license="as-is"
9 depends=('snort-sam')
10 source=(http://www.snortsam.net/files/$pkgname/$pkgname-src-$pkgver.tar.gz)
11 backup=('etc/opsec.conf' 'etc/rootservers.cfg' 'etc/snortsam.conf')
12 md5sums=('b599e706079c170ea53fc9ec3a184e88')
14 build() {
15         cd $startdir/src/$pkgname
16         sed -i "s| -O2 | ${CFLAGS} |g" makesnortsam.sh || return 1
17         sh makesnortsam.sh || return 1
18         find conf/ -type d -name CVS -exec rm -rf {} \; 2>/dev/null
19         find conf/ -type f -name "*.asc" -exec rm -f {} \;
20         mkdir -p $startdir/pkg/{etc,usr/bin}
21         install -m0644 conf/* $startdir/pkg/etc/
22         install -m0755 snortsam $startdir/pkg/usr/bin/
23         install -m0755 snortsam-debug $startdir/pkg/usr/bin/