summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDawid Węgliński <cla@gentoo.org>2010-09-27 11:26:55 +0000
committerDawid Węgliński <cla@gentoo.org>2010-09-27 11:26:55 +0000
commit1ddda840b6c63befd3df0a56076360c955da1659 (patch)
treecf9227d261d4e1f15893b7d06d9766c868a60e08 /sys-cluster/fake
parentAdded ~arm keyword (diff)
downloadgentoo-2-1ddda840b6c63befd3df0a56076360c955da1659.tar.gz
gentoo-2-1ddda840b6c63befd3df0a56076360c955da1659.tar.bz2
gentoo-2-1ddda840b6c63befd3df0a56076360c955da1659.zip
Respect user defined LDFLAGS (bug #337925)
(Portage version: 2.2_rc78/cvs/Linux x86_64)
Diffstat (limited to 'sys-cluster/fake')
-rw-r--r--sys-cluster/fake/ChangeLog6
-rw-r--r--sys-cluster/fake/fake-1.1.10.ebuild15
-rw-r--r--sys-cluster/fake/files/fix-ldflags.patch12
3 files changed, 29 insertions, 4 deletions
diff --git a/sys-cluster/fake/ChangeLog b/sys-cluster/fake/ChangeLog
index 432214ba04cb..b46b6872cf4a 100644
--- a/sys-cluster/fake/ChangeLog
+++ b/sys-cluster/fake/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-cluster/fake
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/fake/ChangeLog,v 1.11 2010/09/11 14:21:32 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/fake/ChangeLog,v 1.12 2010/09/27 11:26:55 cla Exp $
+
+ 27 Sep 2010; Dawid Węgliński <cla@gentoo.org> fake-1.1.10.ebuild,
+ +files/fix-ldflags.patch:
+ Respect user defined LDFLAGS (bug #337925)
11 Sep 2010; Tomáš Chvátal <scarabeus@gentoo.org> metadata.xml:
Drop useles maintainer line
diff --git a/sys-cluster/fake/fake-1.1.10.ebuild b/sys-cluster/fake/fake-1.1.10.ebuild
index f4d087107df2..dd34fbe297e0 100644
--- a/sys-cluster/fake/fake-1.1.10.ebuild
+++ b/sys-cluster/fake/fake-1.1.10.ebuild
@@ -1,6 +1,8 @@
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/fake/fake-1.1.10.ebuild,v 1.5 2008/12/06 18:01:04 xmerlin Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/fake/fake-1.1.10.ebuild,v 1.6 2010/09/27 11:26:55 cla Exp $
+
+inherit eutils
DESCRIPTION="Fake has been designed to switch in backup servers on a LAN."
SRC_URI="http://www.vergenet.net/linux/${PN}/download/${PV}/${P}.tar.gz"
@@ -12,6 +14,13 @@ LICENSE="GPL-2"
IUSE=""
DEPEND=""
+RDEPEND="${DEPEND}"
+
+src_unpack(){
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/fix-ldflags.patch"
+}
src_compile(){
make patch || die "patching failed"
@@ -24,5 +33,5 @@ src_install(){
MAN8_DIR="${D}/usr/share/man/man8" \
DOC_DIR="${D}/usr/share/doc/${P}" \
install || die "install failed"
- dodoc AUTHORS ChangeLog COPYING README docs/*
+ dodoc AUTHORS ChangeLog README docs/*
}
diff --git a/sys-cluster/fake/files/fix-ldflags.patch b/sys-cluster/fake/files/fix-ldflags.patch
new file mode 100644
index 000000000000..e788b18c6452
--- /dev/null
+++ b/sys-cluster/fake/files/fix-ldflags.patch
@@ -0,0 +1,12 @@
+diff -Naur fake-1.1.10.old/send_arp.patch fake-1.1.10/send_arp.patch
+--- fake-1.1.10.old/send_arp.patch 2002-10-21 08:06:12.000000000 +0200
++++ fake-1.1.10/send_arp.patch 2010-09-27 13:17:02.000000000 +0200
+@@ -29,7 +29,7 @@
+ +all: $(BIN)
+ +
+ +$(BIN): $(SRC)
+-+ $(CC) $(SRC) -o $(BIN)
+++ $(CC) $(LDFLAGS) $(SRC) -o $(BIN)
+ +
+ +clean:
+ + rm -f $(BIN) core $(SRC).*