summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-03-29 12:20:07 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-03-29 12:20:07 +0000
commit5d826075e8d107e2289600d87dc38598b6fc82d9 (patch)
tree0b722c1c17eb8953c801c8081261e41a26feee31 /net-misc/tcpsound
parentStable for HPPA too. Version bump. (diff)
downloadhistorical-5d826075e8d107e2289600d87dc38598b6fc82d9.tar.gz
historical-5d826075e8d107e2289600d87dc38598b6fc82d9.tar.bz2
historical-5d826075e8d107e2289600d87dc38598b6fc82d9.zip
Fix building with -Wl,--as-needed wrt #248143 by Kacper Kowalik.
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'net-misc/tcpsound')
-rw-r--r--net-misc/tcpsound/ChangeLog8
-rw-r--r--net-misc/tcpsound/Manifest5
-rw-r--r--net-misc/tcpsound/files/tcpsound-0.3.1-asneeded.patch22
-rw-r--r--net-misc/tcpsound/tcpsound-0.3.1.ebuild14
4 files changed, 41 insertions, 8 deletions
diff --git a/net-misc/tcpsound/ChangeLog b/net-misc/tcpsound/ChangeLog
index e663797ff7de..052548118d8e 100644
--- a/net-misc/tcpsound/ChangeLog
+++ b/net-misc/tcpsound/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-misc/tcpsound
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/tcpsound/ChangeLog,v 1.4 2007/10/29 15:36:44 jokey Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/tcpsound/ChangeLog,v 1.5 2010/03/29 12:20:07 ssuominen Exp $
+
+ 29 Mar 2010; Samuli Suominen <ssuominen@gentoo.org> tcpsound-0.3.1.ebuild,
+ +files/tcpsound-0.3.1-asneeded.patch:
+ Fix building with -Wl,--as-needed wrt #248143 by Kacper Kowalik.
29 Oct 2007; Markus Ullmann <jokey@gentoo.org> tcpsound-0.3.1.ebuild:
Fix quoting
diff --git a/net-misc/tcpsound/Manifest b/net-misc/tcpsound/Manifest
index 155e12702517..2429bc86bef9 100644
--- a/net-misc/tcpsound/Manifest
+++ b/net-misc/tcpsound/Manifest
@@ -1,4 +1,5 @@
+AUX tcpsound-0.3.1-asneeded.patch 716 RMD160 c8d19fb41518c27bc129b7ef14d580a42a5da4e8 SHA1 a5cd80457fc80d11eb3cecdfdb6174ea48bfa890 SHA256 09e22716c9853e446981c111183f9b011caedc683f054feec769c13bc9e799b8
DIST tcpsound-0.3.1.tar.gz 155357 RMD160 a0c2ce472d79835a412a1b7afc5b43c6282d1185 SHA1 195e9be515912d5d1358a447f07932cf4446a5c5 SHA256 358869ee017f9ccb62f8425bbc1ec70b65316b981dbf7a7b6b22042ae32b57c6
-EBUILD tcpsound-0.3.1.ebuild 925 RMD160 4e87b244876b32ffb64e51bd01cb23053733e5f4 SHA1 f6116e691d21126d14e7761e0ef816bb19354078 SHA256 810ddc45ee47986d87cd9115efcd7b919892b4496fa29765244796750615ecac
-MISC ChangeLog 703 RMD160 4b69bb810b8c5dd63022300cd99b57d5205b583c SHA1 56e2a74453b79ebafe89892c20cb9ed6c31c6133 SHA256 25dc27850930e1ebec5273aa229b9654bb70483521fc869b7d96d293c0a39700
+EBUILD tcpsound-0.3.1.ebuild 1013 RMD160 3402a72f5bbf8aa1e9379991184328dd5954e046 SHA1 bbc2c229f5c898de4109638a778998fd52e4fd5a SHA256 49e693967ababf93fb436a507f831b6e67a0fc7767f124d2f93ef49d5a7ff0f1
+MISC ChangeLog 892 RMD160 f92bdf1308ec404f44daae80def6703ba0d51914 SHA1 a44138f77266832595e83d495101de82071b5c93 SHA256 e84c052b34127abe076c3d41e93a202ad33f942e7d1314924139c62e5b26b8f7
MISC metadata.xml 160 RMD160 2738573ec519cbef4b293bc132f7dd9d02291137 SHA1 29b8b234e0f3a475b50bd4df1ef8b4e5749823ce SHA256 39e232fc7ec88ca0b077cb3950cb39d15cd990842b88d5bfe14f02f34d72f37b
diff --git a/net-misc/tcpsound/files/tcpsound-0.3.1-asneeded.patch b/net-misc/tcpsound/files/tcpsound-0.3.1-asneeded.patch
new file mode 100644
index 000000000000..76f4e2b4d01f
--- /dev/null
+++ b/net-misc/tcpsound/files/tcpsound-0.3.1-asneeded.patch
@@ -0,0 +1,22 @@
+--- Makefile
++++ Makefile
+@@ -10,15 +10,16 @@
+ MAN = tcpsound.1
+ MANGZ = $(MAN:.1=.1.gz)
+ MKTOOL = ./mktool
+-CFLAGS = -c -v -g -W1 -I$(includedir) -L$(libdir) -lSDL -lmba -lpthread
++CFLAGS = -c -v -g -W1 -I$(includedir)
++LIBS = -L$(libdir) -lSDL -lmba -lpthread
+ CC = $(MKTOOL)
+
+ .SUFFIXES: .1 .1.gz
+
+ tcpsound: mktool src/tcpsound.c src/sound.h src/sound.c src/parse.h src/parse.c
+- @$(CC) $(CFLAGS) src/sound.c src/parse.c src/tcpsound.c -o tcpsound
++ @$(CC) $(CFLAGS) src/sound.c src/parse.c src/tcpsound.c -o tcpsound $(LIBS)
+ play: mktool src/play.c
+- @$(CC) $(CFLAGS) src/play.c -o play
++ @$(CC) $(CFLAGS) src/play.c -o play $(LIBS)
+
+ mktool:
+ cc -g -o mktool mktool.c
diff --git a/net-misc/tcpsound/tcpsound-0.3.1.ebuild b/net-misc/tcpsound/tcpsound-0.3.1.ebuild
index ca41c0f464f8..7636235eaed5 100644
--- a/net-misc/tcpsound/tcpsound-0.3.1.ebuild
+++ b/net-misc/tcpsound/tcpsound-0.3.1.ebuild
@@ -1,22 +1,28 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/tcpsound/tcpsound-0.3.1.ebuild,v 1.3 2007/10/29 15:36:44 jokey Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/tcpsound/tcpsound-0.3.1.ebuild,v 1.4 2010/03/29 12:20:07 ssuominen Exp $
inherit eutils
DESCRIPTION="Play sounds in response to network traffic"
HOMEPAGE="http://www.ioplex.com/~miallen/tcpsound/"
SRC_URI="http://www.ioplex.com/~miallen/tcpsound/dl/${P}.tar.gz"
-LICENSE="BSD"
+LICENSE="BSD"
SLOT="0"
KEYWORDS="x86"
-
IUSE=""
+
DEPEND="net-analyzer/tcpdump
media-libs/libsdl
dev-libs/libmba"
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-asneeded.patch
+}
+
src_compile() {
sed -i -e "s;/usr/share/sounds:/usr/local/share/sounds;/usr/share/tcpsound;g"\
"${S}"/src/tcpsound.c "${S}"/elaborate.conf