1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
10 MY_P="Vuurmuur-${MY_PV}"
12 DESCRIPTION="Frontend for iptables featuring easy to use command line utils, rule- and logdaemons"
13 HOMEPAGE="http://www.vuurmuur.org"
14 SRC_URI="ftp://ftp.vuurmuur.org/releases/${MY_PV}/${MY_P}.tar.gz"
18 KEYWORDS="~amd64 ~x86"
21 DEPEND="=net-libs/libvuurmuur-${PV}
24 logrotate? ( app-admin/logrotate )"
26 S="${WORKDIR}/${MY_P}/${PN}-${MY_PV}"
31 for component in vuurmuur vuurmuur_conf; do
32 unpack "./${component}-${MY_PV}.tar.gz" # upstream supplies tarball inside tarball
38 --with-libvuurmuur-includes=/usr/include \
39 --with-libvuurmuur-libraries=/usr/$(get_libdir)
40 cd "../vuurmuur_conf-${MY_PV}"
42 --with-libvuurmuur-includes=/usr/include \
43 --with-libvuurmuur-libraries=/usr/$(get_libdir) \
44 --with-localedir=/usr/share/locale \
50 emake -C "../vuurmuur_conf-${MY_PV}" || die "compiling vuurmuur_conf failed"
54 emake DESTDIR="${D}" install || die "installing vuurmuur failed"
56 newinitd "${FILESDIR}"/vuurmuur.init vuurmuur || die "installing init failed"
57 newconfd "${FILESDIR}"/vuurmuur.conf vuurmuur || die "installing conf failed"
59 if use logrotate; then
60 insinto /etc/logrotate.d
61 newins scripts/vuurmuur-logrotate vuurmuur || die "installing logrotate config failed"
66 newins config/config.conf.sample config.conf || die "installing config.conf failed"
68 cd "../vuurmuur_conf-${MY_PV}"
70 emake DESTDIR="${D}" install || die "installing vuurmuur_conf failed"
74 elog "Please read the manual on www.vuurmuur.org now - you have"
77 elog "If this is a new install, make sure you define some rules"
78 elog "BEFORE you start the daemon in order not to lock yourself"
79 elog "out. The necessary steps are:"
80 elog "1) vuurmuur_conf"
81 elog "2) /etc/init.d/vuurmuur start"
82 elog "3) rc-update add vuurmuur default"