summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Kinard <kumba@gentoo.org>2010-06-05 22:42:20 +0000
committerJoshua Kinard <kumba@gentoo.org>2010-06-05 22:42:20 +0000
commitce44cba28e6576fb67d09bd7895c75ee3a4180b8 (patch)
tree67a1cc9b8265949ea3925989b2d5f14b84ea2de6 /net-firewall
parentImport ebuild for libfwbuilder-4.0.1. Addresses #318689. Marked ~ on x86, a... (diff)
downloadgentoo-2-ce44cba28e6576fb67d09bd7895c75ee3a4180b8.tar.gz
gentoo-2-ce44cba28e6576fb67d09bd7895c75ee3a4180b8.tar.bz2
gentoo-2-ce44cba28e6576fb67d09bd7895c75ee3a4180b8.zip
Import ebuild for fwbuilder-4.0.1. Addresses #318689. Marked ~ on x86, amd64, ppc, and ppc64, per older ebuilds.
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'net-firewall')
-rw-r--r--net-firewall/fwbuilder/ChangeLog9
-rw-r--r--net-firewall/fwbuilder/files/4.0.1-secure-mktemp.patch15
-rw-r--r--net-firewall/fwbuilder/fwbuilder-4.0.1.ebuild50
3 files changed, 73 insertions, 1 deletions
diff --git a/net-firewall/fwbuilder/ChangeLog b/net-firewall/fwbuilder/ChangeLog
index 635db0487c4e..cc0ceced9051 100644
--- a/net-firewall/fwbuilder/ChangeLog
+++ b/net-firewall/fwbuilder/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-firewall/fwbuilder
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/fwbuilder/ChangeLog,v 1.94 2010/03/09 21:57:01 josejx Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/fwbuilder/ChangeLog,v 1.95 2010/06/05 22:42:19 kumba Exp $
+
+*fwbuilder-4.0.1 (05 Jun 2010)
+
+ 05 Jun 2010; Joshua Kinard <kumba@gentoo.org>
+ +files/4.0.1-secure-mktemp.patch, +fwbuilder-4.0.1.ebuild:
+ Import ebuild for fwbuilder-4.0.1. Addresses #318689. Marked ~ on x86,
+ amd64, ppc, and ppc64, per older ebuilds.
09 Mar 2010; Joseph Jezak <josejx@gentoo.org> fwbuilder-3.0.7.ebuild:
Marked ppc stable for bug #285861.
diff --git a/net-firewall/fwbuilder/files/4.0.1-secure-mktemp.patch b/net-firewall/fwbuilder/files/4.0.1-secure-mktemp.patch
new file mode 100644
index 000000000000..952d40d53f06
--- /dev/null
+++ b/net-firewall/fwbuilder/files/4.0.1-secure-mktemp.patch
@@ -0,0 +1,15 @@
+diff -Naurp fwbuilder-4.0.1.orig//src/res/configlets/linux24/routing_functions fwbuilder-4.0.1//src/res/configlets/linux24/routing_functions
+--- fwbuilder-4.0.1.orig//src/res/configlets/linux24/routing_functions 2009-12-17 23:12:01.000000000 -0500
++++ fwbuilder-4.0.1//src/res/configlets/linux24/routing_functions 2010-06-05 14:04:15.735061939 -0400
+@@ -14,9 +14,9 @@
+
+ # ============== ROUTING RULES ==============
+
+-TMPDIRNAME="/tmp/.fwbuilder.tempdir.$$"
++TMPDIRNAME="$(umask 077 && mktemp --tmpdir=/tmp -d .fwbuilder.tempdir.XXXXXXXXXX)"
++[ $? != 0 ] && exit 1
+ TMPFILENAME="$TMPDIRNAME/.fwbuilder.out"
+-(umask 077 && mkdir $TMPDIRNAME) || exit 1
+
+ #
+ # This function stops stdout redirection
diff --git a/net-firewall/fwbuilder/fwbuilder-4.0.1.ebuild b/net-firewall/fwbuilder/fwbuilder-4.0.1.ebuild
new file mode 100644
index 000000000000..c4051263aefe
--- /dev/null
+++ b/net-firewall/fwbuilder/fwbuilder-4.0.1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/fwbuilder/fwbuilder-4.0.1.ebuild,v 1.1 2010/06/05 22:42:19 kumba Exp $
+
+EAPI="2"
+
+inherit eutils qt4 multilib autotools
+
+DESCRIPTION="A firewall GUI"
+HOMEPAGE="http://www.fwbuilder.org/"
+SRC_URI="mirror://sourceforge/fwbuilder/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~ppc ~ppc64"
+IUSE=""
+#IUSE="+pch"
+
+DEPEND="~net-libs/libfwbuilder-${PV}
+ >=x11-libs/qt-gui-4.3
+ dev-libs/openssl
+ dev-libs/elfutils
+ sys-devel/gnuconfig
+ "
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ qt4_src_prepare
+ epatch "${FILESDIR}/${PV}-secure-mktemp.patch"
+ eautoreconf || die "eautoreconf failed"
+
+ # This package fundamentally changed its build system. We have to
+ # manually copy config.{sub,guess} from /usr/share/gnuconfig/.
+ cp /usr/share/gnuconfig/config.{sub,guess} "${WORKDIR}/${P}/" \
+ || die "failed to copy config.{sub,guess}"
+}
+
+src_configure() {
+ econf || die "econf failed"
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install || die "emake install failed"
+}
+
+pkg_postinst() {
+ validate_desktop_entries
+
+ elog "You need to emerge sys-apps/iproute2 on the machine"
+ elog "that will run the firewall script."
+}