### this file is sourced not run
PKGVER=2013.1117
PKGBUILD=1
PKGARCH=noarch

# source: james
TARBALL=eztables-d2eae415.tar.bz2
MD5SUM=766e03da139b49ce669e82952c28460c
SRC_URL=http://distro.ibiblio.org/fatdog/source/800/$TARBALL
BUNDLE=

SLACKREQ='iptables' # 
SLACKDESC='eztables-firewall: eztables-firewall 2013.1117 (Easy Firewall)  
eztables-firewall:  
eztables-firewall: Eztables is a simple yet powerful firewall configuration 
eztables-firewall: for Linux. It enables you to quickly configure a firewall 
eztables-firewall: without ever touching iptables. The firewall rule syntax is 
eztables-firewall: designed to be easy to read and to apply.  
eztables-firewall: 
eztables-firewall: http://eztables.net/
eztables-firewall: 
eztables-firewall: 
eztables-firewall: 
'

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/eztables* &&
	patch -Np1 -i $CHROOT_DIR/tmp/pkg/eztables-ifconfig.patch &&
	true
}
### package - use out default config and initscript
pkg_package() {
	rm etc/init.d/eztables &&
	cp $CHROOT_DIR/tmp/pkg/55-eztables etc/init.d &&
	cp $CHROOT_DIR/tmp/pkg/eztables.cfg etc/eztables &&
	chmod -x etc/init.d/55-eztables # disable by default
}

### build
pkg_build() {
	cd /tmp/eztables*
		
	mkdir -p /etc/init.d &&
	./install.sh &&
		
	mkdir -p /usr/share/doc/eztables &&
	cp *.md /usr/share/doc/eztables &&
	pkg_build_slackdesc
}
 