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