diff options
author | Jeroen Roovers <jer@gentoo.org> | 2009-01-15 05:02:55 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2009-01-15 05:02:55 +0000 |
commit | 5b4985fcbaeaf292eecd22f2874205a3f537cd0a (patch) | |
tree | 6769381cffe85519353d28489431cabb6f392a36 /net-analyzer | |
parent | Re-add my <description> tag for metadata.xml, because it's a full description... (diff) | |
download | historical-5b4985fcbaeaf292eecd22f2874205a3f537cd0a.tar.gz historical-5b4985fcbaeaf292eecd22f2874205a3f537cd0a.tar.bz2 historical-5b4985fcbaeaf292eecd22f2874205a3f537cd0a.zip |
New toolchain patch. New strip patch (bug #251974). Unify patches. Clean up ebuild.
Package-Manager: portage-2.2_rc22/cvs/Linux 2.6.25-gentoo-r7-JeR i686
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/cnet/ChangeLog | 9 | ||||
-rw-r--r-- | net-analyzer/cnet/Manifest | 6 | ||||
-rw-r--r-- | net-analyzer/cnet/cnet-2.0.10.ebuild | 16 | ||||
-rw-r--r-- | net-analyzer/cnet/files/cnet-2.0.10-gentoo.patch | 94 |
4 files changed, 41 insertions, 84 deletions
diff --git a/net-analyzer/cnet/ChangeLog b/net-analyzer/cnet/ChangeLog index 0fc8ce54249c..62984c63ca3c 100644 --- a/net-analyzer/cnet/ChangeLog +++ b/net-analyzer/cnet/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-analyzer/cnet -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cnet/ChangeLog,v 1.15 2007/06/02 22:42:58 jokey Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cnet/ChangeLog,v 1.16 2009/01/15 05:02:55 jer Exp $ + + 15 Jan 2009; Jeroen Roovers <jer@gentoo.org> + files/cnet-2.0.10-gentoo.patch, cnet-2.0.10.ebuild: + New toolchain patch. New strip patch (bug #251974). Unify patches. Clean + up ebuild. 02 Jun 2007; Markus Ullmann <jokey@gentoo.org> -files/cnet-2.0.5-gentoo.patch, -files/cnet-2.0.9-gentoo.patch, diff --git a/net-analyzer/cnet/Manifest b/net-analyzer/cnet/Manifest index 94204821ceb2..7bae11c6f686 100644 --- a/net-analyzer/cnet/Manifest +++ b/net-analyzer/cnet/Manifest @@ -1,5 +1,5 @@ -AUX cnet-2.0.10-gentoo.patch 3235 RMD160 024ded426702c8ec066d71b9a1435c79c03a1084 SHA1 d6dc89e55a871fb8e9b276b48d2579bc165d02ef SHA256 774d5666c8ce7901d37d48d3dbb1effcbffddaf669a6a64d3e47b146f5cbfada +AUX cnet-2.0.10-gentoo.patch 1489 RMD160 dd3c54c13e034e596896d3e2d9eac2aaed2cdfee SHA1 c16b2ff70fd4452917ae88c37a50753c31de074f SHA256 7deaa0aa194cc028f875ce4964aded2ac49681d33a3afabb96ad5e40b7184a9b DIST cnet-2.0.10.tgz 1158887 RMD160 614e4a71cbc90bee9c581e8b14389e12c5ff02d3 SHA1 eab8bd36203c956936c80d71a81e36a32a8acc89 SHA256 7b1e720179b7316d97b8b947155b261dda7ddfd01ff18fb04139c33f4a35bfcb -EBUILD cnet-2.0.10.ebuild 1036 RMD160 ec00d7635dd246f7f3f485c801aba1ddff0b30ae SHA1 6061905574e496a454917aff55a2fa3c8671c970 SHA256 570874af3c47b912aa6e116fc64461882812d3416c2ce7d26c2b925c7dfaf178 -MISC ChangeLog 2370 RMD160 512f06870a350fd29aa44a2fc40801e30c58b646 SHA1 a574f0a6a2e64c3fa5f216d420fb978a4129d2e2 SHA256 d31d71988d66d069cdf3b5fc8cb583b46b2caf48c6a0ea6a6becd8f8a4e4c11b +EBUILD cnet-2.0.10.ebuild 1010 RMD160 b908488733533d661f7efc1b6a96b6048d013607 SHA1 ec4310ecaf2d4366126ceebcb8f2f7499b6bd99d SHA256 1aa81c377a231321e335aed823545243ad3f8a700c3eef00b3ffc9f73911fa9d +MISC ChangeLog 2558 RMD160 db556424b5621d0c861b73b685e7d59f2978054c SHA1 f51805dcb359063e1efcd29af12a9a0f8af453a0 SHA256 13eb2d693ed4f1ef1ebd3ba9f0a7a9e6d78c520ab922efca38fe4107fc6f4b59 MISC metadata.xml 218 RMD160 a812d9696192b58b1390b15f36a55ac9cf235dff SHA1 7055e31d03348a70284f86725fc06f7a77231024 SHA256 d3470d760c9c0bba1b56da4d676f0c3b97d523c57cb050c7baea8de94eed3ddd diff --git a/net-analyzer/cnet/cnet-2.0.10.ebuild b/net-analyzer/cnet/cnet-2.0.10.ebuild index 4ec38067ad37..2f799a64feb6 100644 --- a/net-analyzer/cnet/cnet-2.0.10.ebuild +++ b/net-analyzer/cnet/cnet-2.0.10.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cnet/cnet-2.0.10.ebuild,v 1.3 2007/04/07 04:21:08 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cnet/cnet-2.0.10.ebuild,v 1.4 2009/01/15 05:02:55 jer Exp $ -inherit eutils +inherit eutils toolchain-funcs DESCRIPTION="Network simulation tool" SRC_URI="http://www.csse.uwa.edu.au/cnet/${P}.tgz" @@ -16,15 +16,15 @@ IUSE="" DEPEND=">=dev-lang/tk-8.3.4 dev-libs/elfutils" -#RDEPEND="" - -# unpacking the source src_unpack() { unpack ${A} cd "${S}" + epatch "${FILESDIR}"/${P}-gentoo.patch +} - epatch "${FILESDIR}"/${PN}-2.0.10-gentoo.patch - sed -i.orig -e "s/^CFLAGS.*/CFLAGS=${CFLAGS}/" "${S}"/src/Makefile.linux +src_compile() { + tc-export CC + emake CFLAGS="${CFLAGS}" || die "make failed" } src_install() { diff --git a/net-analyzer/cnet/files/cnet-2.0.10-gentoo.patch b/net-analyzer/cnet/files/cnet-2.0.10-gentoo.patch index 24c4a51a9731..ec35e0cc221d 100644 --- a/net-analyzer/cnet/files/cnet-2.0.10-gentoo.patch +++ b/net-analyzer/cnet/files/cnet-2.0.10-gentoo.patch @@ -1,6 +1,5 @@ -diff --exclude='*~' -Naur cnet-2.0.10.orig/Makefile cnet-2.0.10/Makefile ---- cnet-2.0.10.orig/Makefile 2006-04-20 21:54:40.000000000 -0300 -+++ cnet-2.0.10/Makefile 2006-04-20 21:54:54.000000000 -0300 +--- cnet-2.0.10/Makefile.orig 2006-03-06 20:03:14.000000000 +0100 ++++ cnet-2.0.10/Makefile 2009-01-15 05:51:23.000000000 +0100 @@ -7,14 +7,14 @@ # It is presumed that BINDIR and MANDIR exist, so you may need # to create them, and set their permissions, if necessary. @@ -20,77 +19,30 @@ diff --exclude='*~' -Naur cnet-2.0.10.orig/Makefile cnet-2.0.10/Makefile # --------------------------------------------------------------------- -diff --exclude='*~' -Naur cnet-2.0.10.orig/Makefile.orig cnet-2.0.10/Makefile.orig ---- cnet-2.0.10.orig/Makefile.orig 1969-12-31 21:00:00.000000000 -0300 -+++ cnet-2.0.10/Makefile.orig 2006-03-06 16:03:14.000000000 -0300 -@@ -0,0 +1,46 @@ -+NAME = cnet -+VERSION = 2.0.10 -+SHELL = /bin/sh -+# -+# Change the following 5 constants to suit your local site. -+# -+# It is presumed that BINDIR and MANDIR exist, so you may need -+# to create them, and set their permissions, if necessary. -+# -+PREFIX = /usr/local -+# -+BINDIR = $(PREFIX)/bin -+CNETDIR = $(PREFIX)/cnetlib -+MANDIR = $(PREFIX)/man/man1 -+MANEXT = 1 -+MANFILE = $(MANDIR)/$(NAME).$(MANEXT) -+WEBDIR = /home/httpd/html/cnet -+ -+# --------------------------------------------------------------------- -+ -+it: -+ (cd src && make) -+ -+install: -+ (cd src && make) -+ cp $(NAME) $(BINDIR)/$(NAME) && chmod 755 $(BINDIR)/$(NAME) -+ mkdir -p $(CNETDIR) && chmod 755 $(CNETDIR) -+ cp cnetlib/* $(CNETDIR) && chmod 644 $(CNETDIR)/* -+ cp DOC/$(NAME).man $(MANFILE) && chmod 644 $(MANFILE) -+ -+web: -+ mkdir -p $(WEBDIR) && chmod 755 $(WEBDIR) -+ mkdir -p $(WEBDIR)/images && chmod 755 $(WEBDIR)/images -+ cp DOC/*.* $(WEBDIR) -+ cp DOC/images/* $(WEBDIR)/images -+ chmod 644 $(WEBDIR)/*.* $(WEBDIR)/images/* -+ -+# --------------------------------------------------------------------- -+ -+clean: -+ (cd src && make clean) -+ (cd DOC && make clean) -+ (cd EXAMPLES && make clean) -+ -+uninstall: -+ rm -rf $(BINDIR)/$(NAME) $(MANFILE) $(CNETDIR) $(WEBDIR) -diff --exclude='*~' -Naur cnet-2.0.10.orig/src/config.h cnet-2.0.10/src/config.h ---- cnet-2.0.10.orig/src/config.h 2006-04-20 21:54:40.000000000 -0300 -+++ cnet-2.0.10/src/config.h 2006-04-20 21:54:55.000000000 -0300 -@@ -169,7 +169,7 @@ - #if defined(USE_FREEBSD) - #define CNETPATH "/usr/local/share/cnet:/usr/local/include:/usr/local/cnetlib" - #else --#define CNETPATH "/usr/local/cnetlib:/usr/lib/cnet:/cslinux/cnetlib" -+#define CNETPATH "/usr/lib/cnetlib:/usr/lib/cnet:" - #endif +--- cnet-2.0.10/src/Makefile.common.orig 2004-05-10 21:26:53.000000000 +0200 ++++ cnet-2.0.10/src/Makefile.common 2009-01-15 05:51:23.000000000 +0100 +@@ -18,7 +18,6 @@ + $(NAME): $(OBJ) + $(LD) $(LDFLAGS) -o $(NAME) $(OBJ) $(LIBDIRS) $(XLIBS) $(LIBS) +- @$(STRIP) $(NAME) + @chmod 755 $(NAME) -diff --exclude='*~' -Naur cnet-2.0.10.orig/src/Makefile.linux cnet-2.0.10/src/Makefile.linux ---- cnet-2.0.10.orig/src/Makefile.linux 2006-04-20 21:54:40.000000000 -0300 -+++ cnet-2.0.10/src/Makefile.linux 2006-04-20 21:54:55.000000000 -0300 -@@ -29,7 +29,7 @@ - ANSICC = gcc -ansi + +--- cnet-2.0.10/src/Makefile.linux.orig 2004-05-10 21:27:19.000000000 +0200 ++++ cnet-2.0.10/src/Makefile.linux 2009-01-15 05:51:23.000000000 +0100 +@@ -26,12 +26,10 @@ + + # Cannot use the -pedantic option if requiring 'long long' syntax. + #ANSICC = gcc -ansi -pedantic +-ANSICC = gcc -ansi ++ANSICC = $(CC) -ansi INCLUDES = $(LIBELFINC) -CFLAGS = -O -Wall -fPIC $(INCLUDES) $(XINCLUDES) -+CFLAGS = -march=pentium3 -O3 -pipe -fPIC $(INCLUDES) $(XINCLUDES) - - LD = gcc -rdynamic +- +-LD = gcc -rdynamic ++LD = $(CC) -rdynamic LIBDIRS = -L/usr/X11R6/lib $(XLIBDIRS) $(LIBELFDIR) + LIBS = -lelf -ldl -lm + STRIP = strip |