|
10
|
1 |
firehol: iptables firewall builder
|
|
|
2 |
|
|
|
3 |
diff --git a/source/custom/firehol/FrugalBuild b/source/custom/firehol/FrugalBuild
|
|
|
4 |
new file mode 100644
|
|
|
5 |
index 0000000..4cddcec
|
|
|
6 |
--- /dev/null
|
|
|
7 |
+++ b/source/custom/firehol/FrugalBuild
|
|
|
8 |
@@ -0,0 +1,35 @@
|
|
|
9 |
+# Maintainer: Tomas Zeman <tzeman@volny.cz>
|
|
|
10 |
+# Ported from:
|
|
|
11 |
+# http://aur.archlinux.org/packages/firehol/firehol/PKGBUILD
|
|
|
12 |
+# Contributor: Filip Dvorak <fila@pruda.com>
|
|
|
13 |
+pkgname=firehol
|
|
|
14 |
+pkgver=1.256
|
|
|
15 |
+pkgrel=1
|
|
|
16 |
+pkgdesc="The iptables stateful packet filtering firewall builder."
|
|
|
17 |
+_F_sourceforge_dirname="firehol"
|
|
|
18 |
+Finclude sourceforge
|
|
|
19 |
+url="http://firehol.sourceforge.net"
|
|
|
20 |
+purl="http://sourceforge.net/project/showfiles.php?group_id=58425"
|
|
|
21 |
+archs=('i686' 'x86_64')
|
|
|
22 |
+license=('GPL')
|
|
|
23 |
+groups=('custom')
|
|
|
24 |
+depends=('iptables' 'gawk' 'iproute2')
|
|
|
25 |
+makedepends=()
|
|
|
26 |
+conflicts=()
|
|
|
27 |
+replaces=()
|
|
|
28 |
+backup=('etc/firehol/firehol.conf')
|
|
|
29 |
+install=('firehol.install')
|
|
|
30 |
+up2date="lynx -dump '$purl'|grep tar.bz2|grep -m1 '$pkgname-'|sed 's/.*-\(.*\).tar.bz2 .*/\1/'"
|
|
|
31 |
+source=(http://dl.sourceforge.net/sourceforge/firehol/$pkgname-$pkgver.tar.bz2)
|
|
|
32 |
+sha1sums=('1fc4adb067d0d0ad4d79149710b9db003ffbbf31')
|
|
|
33 |
+
|
|
|
34 |
+build() {
|
|
|
35 |
+ cd $startdir/src/$pkgname-$pkgver
|
|
|
36 |
+ install -D -m755 firehol.sh $startdir/pkg/etc/rc.d/rc.firehol
|
|
|
37 |
+ mkdir $startdir/pkg/etc/firehol/
|
|
|
38 |
+
|
|
|
39 |
+ cp get-iana.sh $startdir/pkg/etc/firehol/
|
|
|
40 |
+ cp adblock.sh $startdir/pkg/etc/firehol/
|
|
|
41 |
+ cd examples
|
|
|
42 |
+ cp *.conf $startdir/pkg/etc/firehol/
|
|
|
43 |
+}
|
|
|
44 |
diff --git a/source/custom/firehol/firehol.install b/source/custom/firehol/firehol.install
|
|
|
45 |
new file mode 100644
|
|
|
46 |
index 0000000..b8871b3
|
|
|
47 |
--- /dev/null
|
|
|
48 |
+++ b/source/custom/firehol/firehol.install
|
|
|
49 |
@@ -0,0 +1,26 @@
|
|
|
50 |
+#!/bin/bash
|
|
|
51 |
+
|
|
|
52 |
+# arg 1: the new package version
|
|
|
53 |
+post_install() {
|
|
|
54 |
+ /etc/firehol/get-iana.sh
|
|
|
55 |
+ echo 'Autodetecting networks and creating initial firehol.conf file...'
|
|
|
56 |
+ /etc/rc.d/rc.firehol helpme >/etc/firehol/firehol.conf.default
|
|
|
57 |
+ echo '###########################'
|
|
|
58 |
+ echo ' '
|
|
|
59 |
+ echo 'Autodetection of network setup has been done, however'
|
|
|
60 |
+ echo 'you will need to configure firehol by checking out'
|
|
|
61 |
+ echo 'the tutorials on http://firehol.sourceforge.net/ and'
|
|
|
62 |
+ echo 'editing the /etc/firehol/firehol.conf file. Some'
|
|
|
63 |
+ echo 'example configurations have been placed in /etc/firehol.'
|
|
|
64 |
+ echo ' '
|
|
|
65 |
+ echo 'Firehol can be manipulated via:'
|
|
|
66 |
+ echo ' '
|
|
|
67 |
+ echo '/etc/rc.d/rc.firehol <command>'
|
|
|
68 |
+ echo ' '
|
|
|
69 |
+ echo '###########################'
|
|
|
70 |
+ echo ' '
|
|
|
71 |
+
|
|
|
72 |
+}
|
|
|
73 |
+op=$1
|
|
|
74 |
+shift
|
|
|
75 |
+$op $*
|