blob: cac4681164779be2d403554cf425927f60274e38 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Maintainer: GI Jack <GI_Jack@hackermail.com>
# Contributor: Colin Shea <colin@evaryont.me>
pkgname=fwsnort
pkgver=1.6.8
pkgrel=1
pkgdesc="Fwsnort translates Snort rules into equivalent iptables rules"
arch=('any')
url="http://www.cipherdyne.org/fwsnort/"
license=('GPL')
# net-tools: sorry, but fwsnort needs ifconfig. Doesn't support iproute yet
depends=('perl' 'perl-netaddr-ip' 'perl-iptables-parse' 'iptables' 'net-tools')
makedepends=('wget')
source=(http://www.cipherdyne.org/$pkgname/download/$pkgname-$pkgver.tar.bz2
'install_pl.patch')
sha256sums=('19a0b92c214cb5652f2777ce05ffa5160acb551ddcfaa0f08b66f50b52ce6469'
'4ff91b7cb37dcc56a95968864c30ea26442fb5d0efbaf737cc324178b322ac1b')
options=(emptydirs)
build() {
cd "$srcdir/$pkgname-$pkgver"
# fix up the installer for our purposes:
# - removes the root check
# - includes sbin as another place to check for binares
# - fixes various paths for utilities & the man page
patch -p1 -i $srcdir/install_pl.patch
# -S skips installing the perl modules, which we did with packages
# and --install-test-dir sets the INSTALL_ROOT to src/../test/fwsnort-test. An
# easy way to collect all the files into 1
./install.pl -S --install-test-dir
}
package() {
cp -r $srcdir/fwsnort-$pkgver/test/fwsnort-install/* -t $pkgdir
# delete references to $pkgdir from fwsnort; they were made by the installer
# as part of installing to the test dir
cp -f $srcdir/fwsnort-$pkgver/fwsnort.conf $pkgdir/etc/fwsnort/fwsnort.conf
# avoid a 'warning: directory permissions differ on etc/' line from pacman
chmod 755 $pkgdir/etc
}
|