firehol.patch
changeset 118 570f7bd42975
parent 10 2e66fba376eb
equal deleted inserted replaced
117:8c415b00fedb 118:570f7bd42975
     1 firehol: iptables firewall builder
     1 firehol: iptables firewall builder
     2 
     2 
     3 diff --git a/source/custom/firehol/FrugalBuild b/source/custom/firehol/FrugalBuild
     3 diff -r d59fcda66b13 source/custom/firehol/FrugalBuild
     4 new file mode 100644
     4 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5 index 0000000..4cddcec
     5 +++ b/source/custom/firehol/FrugalBuild	Wed Feb 15 15:29:26 2012 +0100
     6 --- /dev/null
       
     7 +++ b/source/custom/firehol/FrugalBuild
       
     8 @@ -0,0 +1,35 @@
     6 @@ -0,0 +1,35 @@
     9 +# Maintainer: Tomas Zeman <tzeman@volny.cz>
     7 +# Maintainer: Tomas Zeman <tzeman@volny.cz>
    10 +# Ported from:
     8 +# Ported from:
    11 +# 	http://aur.archlinux.org/packages/firehol/firehol/PKGBUILD
     9 +# 	http://aur.archlinux.org/packages/firehol/firehol/PKGBUILD
    12 +# 	Contributor: Filip Dvorak <fila@pruda.com>
    10 +# 	Contributor: Filip Dvorak <fila@pruda.com>
    13 +pkgname=firehol
    11 +pkgname=firehol
    14 +pkgver=1.256
    12 +pkgver=1.273
    15 +pkgrel=1
    13 +pkgrel=1
    16 +pkgdesc="The iptables stateful packet filtering firewall builder."
    14 +pkgdesc="The iptables stateful packet filtering firewall builder."
    17 +_F_sourceforge_dirname="firehol"
    15 +_F_sourceforge_dirname="firehol"
    18 +Finclude sourceforge
    16 +Finclude sourceforge
    19 +url="http://firehol.sourceforge.net"
    17 +url="http://firehol.sourceforge.net"
    20 +purl="http://sourceforge.net/project/showfiles.php?group_id=58425"
    18 +purl="http://sourceforge.net/project/showfiles.php?group_id=58425&package_id=54268"
    21 +archs=('i686' 'x86_64')
    19 +archs=('i686' 'x86_64')
    22 +license=('GPL')
    20 +license=('GPL')
    23 +groups=('custom')
    21 +groups=('custom')
    24 +depends=('iptables' 'gawk' 'iproute2')
    22 +depends=('iptables' 'gawk' 'iproute2')
    25 +makedepends=()
    23 +makedepends=()
    27 +replaces=()
    25 +replaces=()
    28 +backup=('etc/firehol/firehol.conf')
    26 +backup=('etc/firehol/firehol.conf')
    29 +install=('firehol.install')
    27 +install=('firehol.install')
    30 +up2date="lynx -dump '$purl'|grep tar.bz2|grep -m1 '$pkgname-'|sed 's/.*-\(.*\).tar.bz2 .*/\1/'"
    28 +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)
    29 +source=(http://dl.sourceforge.net/sourceforge/firehol/$pkgname-$pkgver.tar.bz2)
    32 +sha1sums=('1fc4adb067d0d0ad4d79149710b9db003ffbbf31')
    30 +sha1sums=('09433f7fbb3cbb7e33e9c601008191bfe3b388a8')
    33 +
    31 +
    34 +build() {
    32 +build() {
    35 +  cd $startdir/src/$pkgname-$pkgver
    33 +  cd $startdir/src/$pkgname-$pkgver
    36 +  install -D -m755 firehol.sh $startdir/pkg/etc/rc.d/rc.firehol
    34 +  install -D -m755 firehol.sh $startdir/pkg/etc/rc.d/rc.firehol
    37 +  mkdir $startdir/pkg/etc/firehol/
    35 +  mkdir $startdir/pkg/etc/firehol/
    39 +  cp get-iana.sh $startdir/pkg/etc/firehol/
    37 +  cp get-iana.sh $startdir/pkg/etc/firehol/
    40 +  cp adblock.sh $startdir/pkg/etc/firehol/
    38 +  cp adblock.sh $startdir/pkg/etc/firehol/
    41 +  cd examples
    39 +  cd examples
    42 +  cp *.conf $startdir/pkg/etc/firehol/
    40 +  cp *.conf $startdir/pkg/etc/firehol/
    43 +}
    41 +}
    44 diff --git a/source/custom/firehol/firehol.install b/source/custom/firehol/firehol.install
    42 diff -r d59fcda66b13 source/custom/firehol/firehol.install
    45 new file mode 100644
    43 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    46 index 0000000..b8871b3
    44 +++ b/source/custom/firehol/firehol.install	Wed Feb 15 15:29:26 2012 +0100
    47 --- /dev/null
       
    48 +++ b/source/custom/firehol/firehol.install
       
    49 @@ -0,0 +1,26 @@
    45 @@ -0,0 +1,26 @@
    50 +#!/bin/bash
    46 +#!/bin/bash
    51 +
    47 +
    52 +# arg 1:  the new package version
    48 +# arg 1:  the new package version
    53 +post_install() {
    49 +post_install() {