diff options
author | Peter Volkov <pva@gentoo.org> | 2008-01-31 13:28:29 +0000 |
---|---|---|
committer | Peter Volkov <pva@gentoo.org> | 2008-01-31 13:28:29 +0000 |
commit | 6d3dc998b6d12897d885e7405125290d2cfe55dc (patch) | |
tree | f71588a191a8a2a4d44688af917fa37642272656 /net-analyzer/netperf | |
parent | Deal with new coreutils, the new cut insists you start from 1, not 0. Also, b... (diff) | |
download | historical-6d3dc998b6d12897d885e7405125290d2cfe55dc.tar.gz historical-6d3dc998b6d12897d885e7405125290d2cfe55dc.tar.bz2 historical-6d3dc998b6d12897d885e7405125290d2cfe55dc.zip |
Version bump. Fixed security issue (CVE-2007-1444), bug 170569, reported by Pierre-Yves Rofes <py AT gentoo.org>. Patch for vulnerability taken from bugs.debian.org/413658, thank you Nico Golde <nion AT debian.org> for the fix! Remove old.
Package-Manager: portage-2.1.3.19
Diffstat (limited to 'net-analyzer/netperf')
-rw-r--r-- | net-analyzer/netperf/ChangeLog | 13 | ||||
-rw-r--r-- | net-analyzer/netperf/Manifest | 15 | ||||
-rw-r--r-- | net-analyzer/netperf/files/netperf-2.2alpha.diff | 20 | ||||
-rw-r--r-- | net-analyzer/netperf/files/netperf-CVE-2007-1444.patch | 71 | ||||
-rw-r--r-- | net-analyzer/netperf/files/netperf-fix-scripts.patch | 100 | ||||
-rw-r--r-- | net-analyzer/netperf/netperf-2.2.4.ebuild | 49 | ||||
-rw-r--r-- | net-analyzer/netperf/netperf-2.3.ebuild | 49 | ||||
-rw-r--r-- | net-analyzer/netperf/netperf-2.4.2-r1.ebuild | 47 | ||||
-rw-r--r-- | net-analyzer/netperf/netperf-2.4.4.ebuild | 61 |
9 files changed, 163 insertions, 262 deletions
diff --git a/net-analyzer/netperf/ChangeLog b/net-analyzer/netperf/ChangeLog index 2f7fc94a33de..53305b221686 100644 --- a/net-analyzer/netperf/ChangeLog +++ b/net-analyzer/netperf/ChangeLog @@ -1,6 +1,17 @@ # ChangeLog for net-analyzer/netperf # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/netperf/ChangeLog,v 1.35 2008/01/16 20:27:16 grobian Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/netperf/ChangeLog,v 1.36 2008/01/31 13:28:28 pva Exp $ + +*netperf-2.4.4 (31 Jan 2008) + + 31 Jan 2008; <pva@gentoo.org> -files/netperf-2.2alpha.diff, + +files/netperf-CVE-2007-1444.patch, files/netperf-fix-scripts.patch, + -netperf-2.2.4.ebuild, -netperf-2.3.ebuild, -netperf-2.4.2-r1.ebuild, + +netperf-2.4.4.ebuild: + Version bump. Fixed security issue (CVE-2007-1444), bug 170569, reported by + Pierre-Yves Rofes <py AT gentoo.org>. Patch for vulnerability taken from + bugs.debian.org/413658, thank you Nico Golde <nion AT debian.org> for the + fix! Removed old vulnerables ebuidls. 16 Jan 2008; Fabian Groffen <grobian@gentoo.org> netperf-2.2.4.ebuild, netperf-2.3.ebuild, netperf-2.4.2-r1.ebuild: diff --git a/net-analyzer/netperf/Manifest b/net-analyzer/netperf/Manifest index 1e4afcfa47ce..a3c110bf5141 100644 --- a/net-analyzer/netperf/Manifest +++ b/net-analyzer/netperf/Manifest @@ -1,13 +1,10 @@ AUX netperf-2.2-conf 103 RMD160 3eb1f40f8547c15cf04f15670c47a5f3c24b9fab SHA1 6a1412637c5707851fd365b41009d79d83261972 SHA256 9dce33f9552ce91ed5dbf57f44bd3d64a83aeb67ed9a41952a6c69601a10e340 AUX netperf-2.2-init 434 RMD160 6e4337b3d82103f722cbe8f347287f46edf0e2ff SHA1 de8c9736649932e0a2e5527a91cf4e148415774b SHA256 96e944e8f62d06abdc883b3ba34504c4320d9aa5a711c41fb552eb6c61565d0f -AUX netperf-2.2alpha.diff 686 RMD160 203388398899846302e56e2eb61125927ac8bbfd SHA1 33a10c81d628f332b38ecb7504ae41d054624893 SHA256 fc813ca378e65c2f20337cad1a0312559eb880055cf9fb1a8c6d6d1b4aaadedf AUX netperf-2.4.0-gcc41.patch 538 RMD160 06dab7d42752c93861049f1d2b0a879289c4ebd7 SHA1 21a66fd44fceedc4fb050bfa48e870568f4f918e SHA256 a4d74b9855b0e991b4353e8e7e18b4024cc0c46cec153db6db1f551ac2115705 -AUX netperf-fix-scripts.patch 4213 RMD160 c53e22378127c0954af4e0fc36944abc789536a7 SHA1 8c81f020911b329f8332a69c0d13cb45fa33fbcd SHA256 042b32a1d1bbc7369c75a708216146cff689148a9cb456b41bbdbf8bc9be5fd1 -DIST netperf-2.2pl4.tar.gz 823686 RMD160 14361e4d41a026c5311a1f50d7f5f012d722a202 SHA1 4b766fb9d68a2c71092ebdde288b439d07afa4f6 SHA256 9bad966cd55f0078e0f2c1ee7b1497df5dc0a7b030a3db4f6404d3f775842c74 -DIST netperf-2.3.tar.gz 835407 RMD160 9de3fe14a1ff1d1a81a2140e9126d61d6376d9be SHA1 b4ae9c90a9351e024319f8bbc064aecf6a18e63b SHA256 7a0aebd365b8ebe53d796d3d701f153d2a73c37f81afd535a4d858e4380e7700 -DIST netperf-2.4.2.tar.gz 1161450 RMD160 f942a001deb480e281a6fc962f13eda146dce77d SHA1 9fdcea0840fa4baa3b2b2408221617880ee09a15 SHA256 844ba97e745a0b9f37afc7daa323cafcef00108cd0254667da0a00558eb323a7 -EBUILD netperf-2.2.4.ebuild 1307 RMD160 44528e8523086b4c45ab0a22fad66111c8146edc SHA1 8bd4c52ac0d82078d8a027d4ce3b9d2533e9ceec SHA256 8d34a6165977c59794e7335f8af0c2eb306284dc58fcb98aa1dba550ed1c2b91 -EBUILD netperf-2.3.ebuild 1305 RMD160 383657702adbed01766714ee717bfde68350bbaa SHA1 b13b8cdcd0957fbeb566335eeff8b3670e034978 SHA256 c577c997c0d3ef16ab01a5e2849c5950dfeeeb94d200bd09df7426fcde461d33 -EBUILD netperf-2.4.2-r1.ebuild 1371 RMD160 43bf58dde300340aa4487fec5592ed3d27126d05 SHA1 d8f061da79e5f1a7e3658fbca0190a3c7d220b82 SHA256 4cbc82a633b4edbd52332de37e0db91f7885be6d46db866327c575128097e8c4 -MISC ChangeLog 4756 RMD160 13ddfdd2471de9a0b1b793362f426f38a9c81220 SHA1 df03f90c98760c3b65550348cb31eee3a2d15718 SHA256 d8d267fce53ac8cad40725751a0edb81cb4b4259a4b5b91d3ae346d1bf574e0b +AUX netperf-CVE-2007-1444.patch 2112 RMD160 d77d8e4cb6da9d639e2a6420413c2bff01b47e7a SHA1 e695a410b37fc2b6384f8982efac527570de49c5 SHA256 9e945b6dee2b3469dfb80420322ac236dc4e3ed3b6f375512f368af8818fb460 +AUX netperf-fix-scripts.patch 1424 RMD160 2af14567498baa6a0c71699e7f841e36e92861ae SHA1 50b129028a76a9bcb2dcaba0b2a8a63ccbc9ffcf SHA256 16668469ac82bda63c2e9c17431c983368b04c328c4cdc2ab1f973ba22f3c354 +DIST netperf-2.4.4-svn_trunk_20071205.patch.bz2 7077 RMD160 b677dc447a953a75521f865110975a4127a10fd9 SHA1 e82679e0de8095f31ea51451fcef862e0f2485d5 SHA256 77c2eda5c5b31ff8d6821e28ae88f43b77771bc82b8d2111280e990dca8ed3ec +DIST netperf-2.4.4.tar.gz 1155970 RMD160 562a14f6856908e65141f36e022dbeace048ba0d SHA1 a84a98e4e23cb8654a42ff9a5545048bc1d2abe1 SHA256 ed983395e448e3e7d8e279b194eb40e5c800443d8de0e6ec92ea480f4ff53fdc +EBUILD netperf-2.4.4.ebuild 1879 RMD160 7b6fcdf865daf1128dd6f4f96c9c7d13190d2754 SHA1 10d94b47cbbf1bfef11c4ce2440d739f81bf4f24 SHA256 203e7a9c1d17d2b2885928a18c28d073657a1a34a26247bfe582e9675c8b7c65 +MISC ChangeLog 5282 RMD160 d6c42af18a6c8811235f458bca2b9630b9ce77d7 SHA1 48b5fbf082a94997578bbd2dd8f4341e6a5f8ad3 SHA256 e63a8a38f2708826335a306efa209b186947387f5b2ac182cbd66e189dbc8bc4 MISC metadata.xml 159 RMD160 28e799fe0fd02aaab9d4bbe5595f133101606f5b SHA1 9f5df3eabd621951a959cc8e0e2e0d352cd1fe1e SHA256 b75c711bd971e46f0ec957e833c60879b0c5023e0bb94409a6255781b69f6dc6 diff --git a/net-analyzer/netperf/files/netperf-2.2alpha.diff b/net-analyzer/netperf/files/netperf-2.2alpha.diff deleted file mode 100644 index ea13beef219b..000000000000 --- a/net-analyzer/netperf/files/netperf-2.2alpha.diff +++ /dev/null @@ -1,20 +0,0 @@ ---- makefile.olf Sun Jul 15 00:02:19 2001 -+++ makefile Sun Jul 15 00:05:18 2001 -@@ -16,7 +16,7 @@ - # in /usr/local/netperf or /opt/netperf - # - #NETPERF_HOME = /usr/local/netperf --NETPERF_HOME = /opt/netperf -+NETPERF_HOME = /usr/share/netperf - - # The compiler on your system might be somewhere else, and/or have - # a different name. -@@ -85,7 +85,7 @@ - # sending data using sendfile() instead of send(). - - LOG_FILE=DEBUG_LOG_FILE="\"/tmp/netperf.debug\"" --CFLAGS = -Ae -O -D$(LOG_FILE) -DUSE_PSTAT -DHAVE_SENDFILE -+#CFLAGS = -DDO_UNIX - - # Some platforms, and some options, require additional libraries. - # you can add to the "LIBS =" line to accomplish this. if you find diff --git a/net-analyzer/netperf/files/netperf-CVE-2007-1444.patch b/net-analyzer/netperf/files/netperf-CVE-2007-1444.patch new file mode 100644 index 000000000000..ca8a33dee40f --- /dev/null +++ b/net-analyzer/netperf/files/netperf-CVE-2007-1444.patch @@ -0,0 +1,71 @@ +diff -Naur netperf-2.4.4.orig/src/netlib.c netperf-2.4.4.patched/src/netlib.c +--- netperf-2.4.4.orig/src/netlib.c 2007-10-18 01:16:02.000000000 +0400 ++++ netperf-2.4.4.patched/src/netlib.c 2008-01-30 22:03:01.000000000 +0300 +@@ -244,6 +244,7 @@ + union netperf_response_struct netperf_response; + + FILE *where; ++int fd = -1; + + char libfmt = '?'; + +diff -Naur netperf-2.4.4.orig/src/netlib.h netperf-2.4.4.patched/src/netlib.h +--- netperf-2.4.4.orig/src/netlib.h 2007-10-18 01:17:37.000000000 +0400 ++++ netperf-2.4.4.patched/src/netlib.h 2008-01-30 21:46:34.000000000 +0300 +@@ -445,6 +445,7 @@ + extern SOCKET server_sock; + extern int times_up; + extern FILE *where; ++extern int fd; + extern int loops_per_msec; + extern float lib_local_per_cpu_util[]; + +diff -Naur netperf-2.4.4.orig/src/netserver.c netperf-2.4.4.patched/src/netserver.c +--- netperf-2.4.4.orig/src/netserver.c 2007-10-18 01:09:12.000000000 +0400 ++++ netperf-2.4.4.patched/src/netserver.c 2008-01-30 21:57:56.000000000 +0300 +@@ -153,6 +153,9 @@ + char listen_port[10]; + extern char *optarg; + extern int optind, opterr; ++#if !defined(WIN_32) ++char debuglog[] = "/tmp/netperf.debugXXXXXX"; ++#endif + + #ifndef WIN32 + #define SERVER_ARGS "dL:n:p:v:V46" +@@ -225,6 +228,10 @@ + if (!debug) + { + fclose(where); ++#if !defined(WIN32) ++ unlink(debuglog); ++ close(fd); ++#endif + #if !defined(WIN32) && !defined(MPE) && !defined(__VMS) + /* For Unix: reopen the debug write file descriptor to "/dev/null" */ + /* and redirect stdout to it. */ +@@ -918,8 +925,11 @@ + strcpy(FileName, DEBUG_LOG_FILE); + + #ifndef WIN32 +- snprintf(&FileName[strlen(FileName)], sizeof(FileName) - strlen(FileName), "_%d", getpid()); +- if ((where = fopen(FileName, "w")) == NULL) { ++ if((fd = mkstemp(debuglog)) == -1 || (where = fdopen(fd, "w+")) == NULL){ ++ if(fd != -1){ ++ unlink(debuglog); ++ close(fd); ++ } + perror("netserver: debug file"); + exit(1); + } +@@ -947,10 +957,6 @@ + } + } + #endif +- +-#ifndef WIN32 +- chmod(DEBUG_LOG_FILE,0644); +-#endif + + #if WIN32 + if (child) { diff --git a/net-analyzer/netperf/files/netperf-fix-scripts.patch b/net-analyzer/netperf/files/netperf-fix-scripts.patch index d8e3e2f2cc44..2d797c7c556e 100644 --- a/net-analyzer/netperf/files/netperf-fix-scripts.patch +++ b/net-analyzer/netperf/files/netperf-fix-scripts.patch @@ -1,44 +1,31 @@ -diff -u doc/examples.ori/arr_script doc/examples/arr_script ---- doc/examples.ori/arr_script 2007-01-29 20:01:45.000000000 +0000 -+++ doc/examples/arr_script 2007-01-29 20:01:16.000000000 +0000 -@@ -10,8 +10,8 @@ +diff -Naur netperf-2.4.4.orig/doc/examples/arr_script netperf-2.4.4/doc/examples/arr_script +--- netperf-2.4.4.orig/doc/examples/arr_script 2007-06-02 02:06:03.000000000 +0400 ++++ netperf-2.4.4/doc/examples/arr_script 2008-01-31 15:34:54.000000000 +0300 +@@ -12,8 +12,7 @@ TOLERANCE=15 MAX_RETRIES=3 - NETPERF="/usr/local/netperf/netperf" - NETPERF="./netperf" -+# NETPERF="/usr/local/netperf/netperf" + NETPERF="/usr/bin/netperf" NPROC_LIST="" RR_SIZES="" -diff -u doc/examples.ori/packet_byte_script doc/examples/packet_byte_script ---- doc/examples.ori/packet_byte_script 2007-01-29 20:01:45.000000000 +0000 -+++ doc/examples/packet_byte_script 2007-01-29 20:01:16.000000000 +0000 -@@ -22,7 +22,7 @@ +diff -Naur netperf-2.4.4.orig/doc/examples/packet_byte_script netperf-2.4.4/doc/examples/packet_byte_script +--- netperf-2.4.4.orig/doc/examples/packet_byte_script 2008-01-31 15:23:26.000000000 +0300 ++++ netperf-2.4.4/doc/examples/packet_byte_script 2008-01-31 15:35:21.000000000 +0300 +@@ -25,7 +25,7 @@ fi # where is netperf --NETPERF_CMD=${NETPERF_CMD:=/opt/netperf/netperf} -+NETPERF_CMD=${NETPERF_CMD:=/usr/bin/netperf} +-NETPERF_DIR=${NETPERF_DIR:=/opt/netperf2/bin} ++NETPERF_DIR=${NETPERF_DIR:=/usr/bin} - # at what port will netserver be waiting? If you decide to run - # netserver at a differnet port than the default of 12865, then set -diff -u doc/examples.ori/sctp_stream_script doc/examples/sctp_stream_script ---- doc/examples.ori/sctp_stream_script 2007-01-29 20:01:45.000000000 +0000 -+++ doc/examples/sctp_stream_script 2007-01-29 20:01:16.000000000 +0000 -@@ -24,7 +24,7 @@ - # where the programs are - #NETHOME=/usr/local/netperf - #NETHOME="/opt/netperf" --NETHOME=. -+NETHOME=/usr/bin/ # at what port will netserver be waiting? If you decide to run - # netserver at a differnet port than the default of 12865, then set -diff -u doc/examples.ori/snapshot_script doc/examples/snapshot_script ---- doc/examples.ori/snapshot_script 2007-01-29 20:01:45.000000000 +0000 -+++ doc/examples/snapshot_script 2007-01-29 20:01:16.000000000 +0000 +diff -Naur netperf-2.4.4.orig/doc/examples/snapshot_script netperf-2.4.4/doc/examples/snapshot_script +--- netperf-2.4.4.orig/doc/examples/snapshot_script 2007-06-02 02:06:03.000000000 +0400 ++++ netperf-2.4.4/doc/examples/snapshot_script 2008-01-31 15:35:38.000000000 +0300 @@ -37,7 +37,7 @@ # # where is netperf installed, there are a few possible places: @@ -48,64 +35,3 @@ diff -u doc/examples.ori/snapshot_script doc/examples/snapshot_script # there should be no more than two parms passed -Only in doc/examples: .svn -diff -u doc/examples.ori/tcp_range_script doc/examples/tcp_range_script ---- doc/examples.ori/tcp_range_script 2007-01-29 20:01:45.000000000 +0000 -+++ doc/examples/tcp_range_script 2007-01-29 20:01:16.000000000 +0000 -@@ -43,7 +43,7 @@ - # where is netperf, and are there any "constant" options such as - # the netserver port number - #NETHOME=/usr/etc/net_perf --NETHOME="." -+NETHOME="/usr/bin" - NETPERF=$NETHOME/netperf $PORT - - # How accurate we want the estimate of performance: -diff -u doc/examples.ori/tcp_rr_script doc/examples/tcp_rr_script ---- doc/examples.ori/tcp_rr_script 2007-01-29 20:01:45.000000000 +0000 -+++ doc/examples/tcp_rr_script 2007-01-29 20:01:16.000000000 +0000 -@@ -25,7 +25,7 @@ - # where the programs are - #NETHOME=/usr/local/netperf - #NETHOME="/opt/netperf" --NETHOME=. -+NETHOME="/usr/bin" - - # at what port will netserver be waiting? If you decide to run - # netserver at a differnet port than the default of 12865, then set -diff -u doc/examples.ori/tcp_stream_script doc/examples/tcp_stream_script ---- doc/examples.ori/tcp_stream_script 2007-01-29 20:01:45.000000000 +0000 -+++ doc/examples/tcp_stream_script 2007-01-29 20:01:16.000000000 +0000 -@@ -24,7 +24,7 @@ - # where the programs are - #NETHOME=/usr/local/netperf - #NETHOME="/opt/netperf" --NETHOME=. -+NETHOME="/usr/bin" - - # at what port will netserver be waiting? If you decide to run - # netserver at a different port than the default of 12865, then set -diff -u doc/examples.ori/udp_rr_script doc/examples/udp_rr_script ---- doc/examples.ori/udp_rr_script 2007-01-29 20:01:45.000000000 +0000 -+++ doc/examples/udp_rr_script 2007-01-29 20:01:16.000000000 +0000 -@@ -22,7 +22,7 @@ - - #NETHOME=/usr/local/netperf - #NETHOME="/opt/netperf" --NETHOME="." -+NETHOME="/usr/bin" - - # at what port will netserver be waiting? If you decide to run - # netserver at a differnet port than the default of 12865, then set -diff -u doc/examples.ori/udp_stream_script doc/examples/udp_stream_script ---- doc/examples.ori/udp_stream_script 2007-01-29 20:01:45.000000000 +0000 -+++ doc/examples/udp_stream_script 2007-01-29 20:01:16.000000000 +0000 -@@ -19,7 +19,7 @@ - - #NETHOME=/usr/local/netperf - #NETHOME="/opt/netperf" --NETHOME="." -+NETHOME="/usr/bin" - - # at what port will netserver be waiting? If you decide to run - # netserver at a differnet port than the default of 12865, then set diff --git a/net-analyzer/netperf/netperf-2.2.4.ebuild b/net-analyzer/netperf/netperf-2.2.4.ebuild deleted file mode 100644 index 83664e8bd281..000000000000 --- a/net-analyzer/netperf/netperf-2.2.4.ebuild +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/netperf/netperf-2.2.4.ebuild,v 1.19 2008/01/16 20:27:16 grobian Exp $ - -inherit flag-o-matic - -if [[ $PV == *.*.* ]]; then - MY_P=${P%.*}pl${PV##*.} # convert netperf-2.2.4 => netperf-2.2pl4 - S=${WORKDIR}/${MY_P} -else - MY_P=${P} -fi - -DESCRIPTION="Network performance benchmark including tests for TCP, UDP, sockets, ATM and more." -SRC_URI="ftp://ftp.netperf.org/netperf/archive/${MY_P}.tar.gz" -HOMEPAGE="http://www.netperf.org/" -LICENSE="netperf" -SLOT="0" -KEYWORDS="alpha amd64 ia64 ~ppc ppc64 sparc x86" - -IUSE="ipv6" - -DEPEND="virtual/libc >=sys-apps/sed-4" - -src_compile() { - append-flags -DDO_UNIX - use ipv6 && append-flags -DDO_IPV6 - emake CFLAGS="${CFLAGS}" || die - sed -i 's:^\(NETHOME=\).*:\1/usr/bin:' *_script -} - -src_install () { - # binaries - dosbin netserver - dobin netperf - - # init.d / conf.d - newinitd ${FILESDIR}/${PN}-2.2-init netperf - newconfd ${FILESDIR}/${PN}-2.2-conf netperf - - # man pages - newman netserver.man netserver.1 - newman netperf.man netperf.1 - - # documentation and example scripts - dodoc ACKNWLDGMNTS COPYRIGHT README Release_Notes netperf.ps - dodir /usr/share/doc/${PF}/examples - cp *_script ${D}/usr/share/doc/${PF}/examples -} diff --git a/net-analyzer/netperf/netperf-2.3.ebuild b/net-analyzer/netperf/netperf-2.3.ebuild deleted file mode 100644 index ff9d20cc6c99..000000000000 --- a/net-analyzer/netperf/netperf-2.3.ebuild +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/netperf/netperf-2.3.ebuild,v 1.11 2008/01/16 20:27:16 grobian Exp $ - -inherit flag-o-matic - -if [[ $PV == *.*.* ]]; then - MY_P=${P%.*}pl${PV##*.} # convert netperf-2.2.4 => netperf-2.2pl4 - S=${WORKDIR}/${MY_P} -else - MY_P=${P} -fi - -DESCRIPTION="Network performance benchmark including tests for TCP, UDP, sockets, ATM and more." -SRC_URI="ftp://ftp.netperf.org/netperf/archive/${MY_P}.tar.gz" -HOMEPAGE="http://www.netperf.org/" -LICENSE="netperf" -SLOT="0" -KEYWORDS="alpha amd64 ia64 ~ppc ppc64 sparc x86" - -IUSE="ipv6" - -DEPEND="virtual/libc >=sys-apps/sed-4" - -src_compile() { - append-flags -DDO_UNIX - use ipv6 && append-flags -DDO_IPV6 - emake CFLAGS="${CFLAGS}" || die - sed -i 's:^\(NETHOME=\).*:\1/usr/bin:' *_script -} - -src_install () { - # binaries - dosbin netserver - dobin netperf - - # init.d / conf.d - newinitd ${FILESDIR}/${PN}-2.2-init netperf - newconfd ${FILESDIR}/${PN}-2.2-conf netperf - - # man pages - newman netserver.man netserver.1 - newman netperf.man netperf.1 - - # documentation and example scripts - dodoc ACKNWLDGMNTS COPYRIGHT README Release_Notes netperf.ps - dodir /usr/share/doc/${PF}/examples - cp *_script ${D}/usr/share/doc/${PF}/examples -} diff --git a/net-analyzer/netperf/netperf-2.4.2-r1.ebuild b/net-analyzer/netperf/netperf-2.4.2-r1.ebuild deleted file mode 100644 index 25c07575b64e..000000000000 --- a/net-analyzer/netperf/netperf-2.4.2-r1.ebuild +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/netperf/netperf-2.4.2-r1.ebuild,v 1.5 2008/01/16 20:27:16 grobian Exp $ - -WANT_AUTOCONF="latest" -inherit eutils flag-o-matic autotools - -MY_P=${P/_rc/-rc} - -DESCRIPTION="Network performance benchmark including tests for TCP, UDP, sockets, ATM and more." -#SRC_URI="ftp://ftp.netperf.org/netperf/experimental/${MY_P}.tar.gz" -SRC_URI="ftp://ftp.netperf.org/netperf/${MY_P}.tar.gz" -KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ppc64 sparc x86" - -HOMEPAGE="http://www.netperf.org/" -LICENSE="netperf" -SLOT="0" -IUSE="" - -S=${WORKDIR}/${MY_P} - -src_unpack() { - unpack ${A} - cd ${S} - epatch ${FILESDIR}/${PN}-2.4.0-gcc41.patch - epatch ${FILESDIR}/${PN}-fix-scripts.patch - eautoconf -} - -src_install () { - einstall || die - - # move netserver into sbin as we had it before 2.4 was released with its - # autoconf goodness - dodir /usr/sbin - mv ${D}/usr/{bin,sbin}/netserver || die - - # init.d / conf.d - newinitd ${FILESDIR}/${PN}-2.2-init netperf - newconfd ${FILESDIR}/${PN}-2.2-conf netperf - - # documentation and example scripts - dodoc AUTHORS ChangeLog COPYING NEWS README Release_Notes doc/netperf.pdf - dodir /usr/share/doc/${PF}/examples - #Scripts no longer get installed by einstall - cp doc/examples/*_script ${D}/usr/share/doc/${PF}/examples -} diff --git a/net-analyzer/netperf/netperf-2.4.4.ebuild b/net-analyzer/netperf/netperf-2.4.4.ebuild new file mode 100644 index 000000000000..a972dd964f85 --- /dev/null +++ b/net-analyzer/netperf/netperf-2.4.4.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/netperf/netperf-2.4.4.ebuild,v 1.1 2008/01/31 13:28:28 pva Exp $ + +inherit eutils flag-o-matic autotools + +MY_P=${P/_rc/-rc} + +DESCRIPTION="Network performance benchmark including tests for TCP, UDP, sockets, ATM and more." +#SRC_URI="ftp://ftp.netperf.org/netperf/experimental/${MY_P}.tar.gz" +SRC_URI="ftp://ftp.netperf.org/netperf/${MY_P}.tar.gz + mirror://gentoo/netperf-2.4.4-svn_trunk_20071205.patch.bz2" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" + +HOMEPAGE="http://www.netperf.org/" +LICENSE="netperf" +SLOT="0" +IUSE="" + +S=${WORKDIR}/${MY_P} + +src_unpack() { + unpack ${A} + cd "${S}" + + sed -i 's:^\(#define DEBUG_LOG_FILE "\)/tmp/netperf.debug:\1/var/log/netperf.debug:' src/netserver.c + epatch "${WORKDIR}"/${P}-svn_trunk_20071205.patch + epatch "${FILESDIR}"/${PN}-2.4.0-gcc41.patch + epatch "${FILESDIR}"/${PN}-CVE-2007-1444.patch + epatch "${FILESDIR}"/${PN}-fix-scripts.patch + + # Fixing paths in scripts + sed -i -e 's:^\(NETHOME=\).*:\1"/usr/bin":' \ + doc/examples/sctp_stream_script \ + doc/examples/tcp_range_script \ + doc/examples/tcp_rr_script \ + doc/examples/tcp_stream_script \ + doc/examples/udp_rr_script \ + doc/examples/udp_stream_script + + eautoconf +} + +src_install () { + einstall || die + + # move netserver into sbin as we had it before 2.4 was released with its + # autoconf goodness + dodir /usr/sbin + mv "${D}"/usr/{bin,sbin}/netserver || die + + # init.d / conf.d + newinitd "${FILESDIR}"/${PN}-2.2-init netperf + newconfd "${FILESDIR}"/${PN}-2.2-conf netperf + + # documentation and example scripts + dodoc AUTHORS ChangeLog NEWS README Release_Notes + dodir /usr/share/doc/${PF}/examples + #Scripts no longer get installed by einstall + cp doc/examples/*_script "${D}"/usr/share/doc/${PF}/examples +} |