diff --git a/srcpkgs/firehol/files/firehol/finish b/srcpkgs/firehol/files/firehol/finish new file mode 100644 index 0000000000..a7b3b2d8fe --- /dev/null +++ b/srcpkgs/firehol/files/firehol/finish @@ -0,0 +1,3 @@ +#!/bin/sh +set -e +exec firehol stop diff --git a/srcpkgs/firehol/files/firehol/run b/srcpkgs/firehol/files/firehol/run new file mode 100644 index 0000000000..44aa326c1c --- /dev/null +++ b/srcpkgs/firehol/files/firehol/run @@ -0,0 +1,4 @@ +#!/bin/sh +[ ! -e /etc/firehol/firehol.conf ] && exit 0 +firehol start || exit 1 +exec chpst -b firehol pause diff --git a/srcpkgs/firehol/template b/srcpkgs/firehol/template new file mode 100644 index 0000000000..72957e6751 --- /dev/null +++ b/srcpkgs/firehol/template @@ -0,0 +1,24 @@ +# Template file for 'firehol' +pkgname=firehol +version=3.1.6 +revision=1 +build_style=gnu-configure +configure_args="--disable-doc --disable-man" +hostmakedepends="automake iproute2 kmod procps-ng iprange iputils traceroute curl ipset" +depends="iproute2 kmod procps-ng iprange iputils traceroute curl ipset" +short_desc="Firewall for humans" +maintainer="juan " +license="GPL-2.0-or-later" +homepage="https://github.com/firehol/firehol/" +distfiles="https://github.com/firehol/firehol/archive/v${version}.tar.gz" +checksum=dc71650a933c1fd420956813d79f9a058bcf3cbaa84b928536a53995ecb889e4 + +pre_configure() { + ./autogen.sh + export BASH_VERSION_PATH=$(bash --version|head -n 1) + export IPRANGE_VERSION=$(iprange --version|head -n 1) +} + +post_install() { + vsv firehol +}