You are not logged in.

#1 2004-12-30 18:42:33

BlueRaven
Member
Registered: 2004-10-28
Posts: 14

[UPDATED] Shorewall 2.0.13

Hi all, I updated the previously posted PKGBUILD for Shorewall to the latest stable version, 2.0.13.
Here is the PKGBUILD:

pkgname=shorewall
pkgver=2.0.13
pkgrel=1
pkgdesc="A high-level tool for configuring Netfilter"
url="http://www.shorewall.net"
#license="GPL2"
depends=('bash' 'gawk' 'iproute' 'iptables' 'iputils')
makedepends=('sed')
#conflicts=()
#replaces=()
backup=('etc/shorewall/accounting' 'etc/shorewall/actions' 'etc/shorewall/blacklist'
        'etc/shorewall/ecn' 'etc/shorewall/hosts' 'etc/shorewall/init'
        'etc/shorewall/initdone' 'etc/shorewall/interfaces' 'etc/shorewall/maclist'
        'etc/shorewall/masq' 'etc/shorewall/modules' 'etc/shorewall/nat'
        'etc/shorewall/netmap' 'etc/shorewall/params' 'etc/shorewall/policy'
        'etc/shorewall/proxyarp' 'etc/shorewall/routestopped' 'etc/shorewall/rules'
        'etc/shorewall/shorewall.conf' 'etc/shorewall/start' 'etc/shorewall/stop'
        'etc/shorewall/stopped' 'etc/shorewall/tcrules' 'etc/shorewall/tos'
        'etc/shorewall/tunnels' 'etc/shorewall/zones')
install=('shorewall.install')
source=(http://shorewall.net/pub/$pkgname/2.0/$pkgname-$pkgver/$pkgname-$pkgver.tgz
        shorewall shorewall.startup_disabled)
md5sums=('b3656ec857d55878b739d8f903de957d' '899b988cf0ba1d25201a18230edfbc9e'
         '1b94ccf7960d9d3253a112c73dac0e30')

build() {
  cd $startdir/src/$pkgname-$pkgver
  DEST=/etc/rc.d PREFIX=$startdir/pkg ./install.sh

  # We want Arch-style init script! :-)
  #
  install -D -m755 ../shorewall $startdir/pkg/etc/rc.d/shorewall

  # Edit the default shorewall.conf file and remove lockfile directory
  # (not needed as Arch does not use lock files for initscripts).
  #
  sed -i /^SUBSYSLOCK/cSUBSYSLOCK="" $startdir/pkg/etc/shorewall/shorewall.conf

  # Create the startup_disabled file, so the user HAS to review
  # his new/upgraded config files before (re)starting Shorewall.
  #
  install -D -m600 ../shorewall.startup_disabled $startdir/pkg/etc/shorewall/startup_disabled
}

The other needed files are the same from the previous version, so I'm not reposting them here.
As usual, any feedback welcome, especially if you encounter problems.

Offline

Board footer

Powered by FluxBB