1 # Contributor: Penguin <TGates81.at.gmail.dot.com>
6 pkgdesc="Snort plugin that allows automated blocking of IP addresses on several firewalls."
7 url="http://www.snortsam.net/"
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')
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/