1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
10 MY_PV=${PV/_beta/beta}
11 MY_P="${MY_PN}-${MY_PV}"
13 DESCRIPTION="Frontend for iptables featuring easy to use command line utils, rule- and logdaemons"
14 HOMEPAGE="http://www.vuurmuur.org"
15 SRC_URI="ftp://ftp.vuurmuur.org/releases/${MY_PV}/${MY_P}.tar.gz"
19 KEYWORDS="~amd64 ~ppc ~x86"
22 RDEPEND="=net-libs/libvuurmuur-${PV}
24 logrotate? ( app-admin/logrotate )"
26 S="${WORKDIR}/${MY_P}"
31 for component in vuurmuur vuurmuur_conf; do
32 unpack "./${component}-${MY_PV}.tar.gz"
37 for component in vuurmuur vuurmuur_conf; do
38 cd "${S}/${component}-${MY_PV}"
44 cd "${S}/vuurmuur-${MY_PV}"
46 --with-libvuurmuur-includes=/usr/include \
47 --with-libvuurmuur-libraries=/usr/lib
49 cd "${S}/vuurmuur_conf-${MY_PV}"
51 --with-libvuurmuur-includes=/usr/include \
52 --with-libvuurmuur-libraries=/usr/lib \
53 --with-localedir=/usr/share/locale \
58 for component in vuurmuur vuurmuur_conf; do
59 cd "${S}/${component}-${MY_PV}"
60 emake || die "compiling ${component} failed"
65 cd "${S}/vuurmuur-${MY_PV}"
66 emake DESTDIR="${D}" install || die "installing vuurmuur failed"
68 newinitd "${FILESDIR}"/vuurmuur.init vuurmuur || die "installing init failed"
69 newconfd "${FILESDIR}"/vuurmuur.conf vuurmuur || die "installing conf failed"
73 newins config/config.conf.sample config.conf || die "installing config.conf failed"
76 if use logrotate; then
77 insinto /etc/logrotate.d
78 newins scripts/vuurmuur-logrotate vuurmuur || die "installing logrotate config failed"
81 cd "${S}/vuurmuur_conf-${MY_PV}"
82 emake DESTDIR="${D}" install || die "installing vuurmuur_conf failed"
84 # needed until the wizard scripts are copied by make
86 insinto /usr/share/scripts
87 doins scripts/*.sh || die "installing vuurmuur scripts failed"
91 elog "Please read the manual on www.vuurmuur.org now - you have"
94 elog "If this is a new install, make sure you define some rules"
95 elog "BEFORE you start the daemon in order not to lock yourself"
96 elog "out. The necessary steps are:"
97 elog "1) vuurmuur_conf"
98 elog "2) /etc/init.d/vuurmuur start"
99 elog "3) rc-update add vuurmuur default"