summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Müller <dev-zero@gentoo.org>2009-03-17 15:45:26 +0000
committerTiziano Müller <dev-zero@gentoo.org>2009-03-17 15:45:26 +0000
commitc6ba90c79fee76851a5131920dbf39a26d6b6f8a (patch)
treefdf3f4b7a9be9b899db01f2ec33d3dc7f7ba23c8 /net-firewall/fwbuilder
parentWhitespace and quote fix. (diff)
downloadgentoo-2-c6ba90c79fee76851a5131920dbf39a26d6b6f8a.tar.gz
gentoo-2-c6ba90c79fee76851a5131920dbf39a26d6b6f8a.tar.bz2
gentoo-2-c6ba90c79fee76851a5131920dbf39a26d6b6f8a.zip
Version bump (bug #228621, thanks to Boian Berberov and Markos Chandras for their work). Also fixes bug #251990.
(Portage version: 2.1.6.8/cvs/Linux x86_64)
Diffstat (limited to 'net-firewall/fwbuilder')
-rw-r--r--net-firewall/fwbuilder/ChangeLog9
-rw-r--r--net-firewall/fwbuilder/fwbuilder-3.0.3.ebuild72
2 files changed, 80 insertions, 1 deletions
diff --git a/net-firewall/fwbuilder/ChangeLog b/net-firewall/fwbuilder/ChangeLog
index 163e11ca9680..ba56cd91d115 100644
--- a/net-firewall/fwbuilder/ChangeLog
+++ b/net-firewall/fwbuilder/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-firewall/fwbuilder
# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/fwbuilder/ChangeLog,v 1.77 2009/03/17 15:37:35 dev-zero Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/fwbuilder/ChangeLog,v 1.78 2009/03/17 15:45:26 dev-zero Exp $
+
+*fwbuilder-3.0.3 (17 Mar 2009)
+
+ 17 Mar 2009; Tiziano Müller <dev-zero@gentoo.org>
+ +fwbuilder-3.0.3.ebuild:
+ Version bump (bug #228621, thanks to Boian Berberov and Markos Chandras
+ for their work). Also fixes bug #251990.
17 Mar 2009; Tiziano Müller <dev-zero@gentoo.org>
-files/fwbuilder-2.1.13-build-with-external-antlr.patch:
diff --git a/net-firewall/fwbuilder/fwbuilder-3.0.3.ebuild b/net-firewall/fwbuilder/fwbuilder-3.0.3.ebuild
new file mode 100644
index 000000000000..5882989b60cd
--- /dev/null
+++ b/net-firewall/fwbuilder/fwbuilder-3.0.3.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/fwbuilder/fwbuilder-3.0.3.ebuild,v 1.1 2009/03/17 15:45:26 dev-zero Exp $
+
+EAPI="2"
+
+inherit qt4 multilib
+
+DESCRIPTION="A firewall GUI"
+HOMEPAGE="http://www.fwbuilder.org/"
+SRC_URI="mirror://sourceforge/fwbuilder/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+pch"
+
+DEPEND="~net-libs/libfwbuilder-${PV}
+ ~dev-java/antlr-2.7.7[cxx]
+ x11-libs/qt-gui:4"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ qt4_src_prepare
+
+ # Remove bundled antlr
+ rm -rf src/antlr
+
+ sed -i \
+ -e '/COPYING/d' \
+ doc/doc.pro || die "sed doc.pro failed"
+
+ # we'll use our eqmake instead of bundled script to process qmake files
+ sed -i \
+ -e 's:^. ./runqmake.sh$:echo:' \
+ configure || die "sed configure failed"
+
+ # prevent install script from automatically stripping binaries - let portage do that
+ sed -i \
+ -e 's/s) stripcmd="$stripprog"$/s)/' \
+ install.sh || die "sed install.sh failed"
+
+ if ! use pch; then
+ sed -i \
+ -e '/^PRECOMPILED_HEADER =/,/[^\\]$/d' \
+ -e '/^CONFIG += precompile_header/d' \
+ src/gui/gui.pro || die "sed for gui.pro failed"
+ fi
+}
+
+src_configure() {
+ econf \
+ --with-docdir=/usr/share/doc/${PF}
+
+ for pro_file in $(find "${S}" -name "*.pro"); do
+ eqmake4 "${pro_file}" -o "$(dirname ${pro_file})/Makefile" || die "eqmake4 for ${pro_file} failed"
+ done
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install || die "emake install failed"
+ cd doc
+ dodoc AUTHORS ChangeLog Credits README* \
+ FWBuilder-Routing-LICENSE.txt PatchAcceptancePolicy.txt
+ doman fwb*.1
+}
+
+pkg_postinst() {
+ validate_desktop_entries
+
+ elog "You need to emerge sys-apps/iproute2 on the machine"
+ elog "that will run the firewall script."
+}