From 153b7b762e59a5b828e9411f95345970de5b389839a0ff1067597f79b2363406 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Wed, 4 Nov 2009 10:08:20 +0000 Subject: [PATCH 1/4] Accepting request 23665 from home:coolo:branches:openSUSE:Factory:branched Copy from home:coolo:branches:openSUSE:Factory:branched/bing via accept of submit request 23665 revision 2. Request was accepted with message: thanks OBS-URL: https://build.opensuse.org/request/show/23665 OBS-URL: https://build.opensuse.org/package/show/network:utilities/bing?expand=0&rev=4 --- bing.spec | 2 +- ready | 0 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 ready diff --git a/bing.spec b/bing.spec index 258305c..a8c7e3a 100644 --- a/bing.spec +++ b/bing.spec @@ -26,7 +26,7 @@ AutoReqProv: on Url: http://www.freenix.fr/freenix/logiciels/bing.html Summary: A Point-to-Point Bandwidth Measurement Tool Version: 1.0.5 -Release: 136 +Release: 135 Source: bing-%{version}.tar.bz2 Patch0: bing-%{version}.dif Patch1: %{name}-%{version}-permissions.patch diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4 From ebbbf1d7c99d8a36b80ca278ef3a0066901c67845a7cbb853e3c6f46129558f2 Mon Sep 17 00:00:00 2001 From: OBS User autobuild Date: Mon, 16 Nov 2009 16:53:56 +0000 Subject: [PATCH 2/4] checked in OBS-URL: https://build.opensuse.org/package/show/network:utilities/bing?expand=0&rev=5 --- bing-1.0.5.dif | 88 ++++++++++++++++++++++++++------------------------ bing.changes | 5 --- 2 files changed, 45 insertions(+), 48 deletions(-) diff --git a/bing-1.0.5.dif b/bing-1.0.5.dif index 213c538..55e721e 100644 --- a/bing-1.0.5.dif +++ b/bing-1.0.5.dif @@ -1,10 +1,8 @@ -Index: Makefile -=================================================================== ---- Makefile.orig -+++ Makefile +--- Makefile ++++ Makefile 2000/02/02 16:03:05 @@ -1,8 +1,8 @@ # - # $Id: Makefile,v 1.4 1995/07/21 00:03:30 pb Exp $ + # Makefile,v 1.4 1995/07/21 00:03:30 pb Exp # -MANDIR=/usr/local/man -BINDIR=/usr/local/bin @@ -13,7 +11,7 @@ Index: Makefile INSTALL=install -c GROFF=groff NROFF=nroff -@@ -28,5 +28,5 @@ clean: +@@ -28,5 +28,5 @@ $(RM) -f bing bing.ps bing.0 install: bing bing.8 @@ -21,16 +19,9 @@ Index: Makefile - $(INSTALL) -m 4555 -o root -g staff bing $(BINDIR) + $(INSTALL) -m 644 bing.8 $(MANDIR)/man8 + $(INSTALL) -m 4555 -o root -g root bing $(BINDIR) -Index: bing.c -=================================================================== ---- bing.c.orig -+++ bing.c -@@ -170,10 +170,13 @@ static char rcsid[] = "$Id: bing.c,v 1.1 - #include - #include - #include -+#include - #include +--- bing.c ++++ bing.c 2000/02/02 16:03:23 +@@ -171,6 +171,8 @@ #include #include #include @@ -39,7 +30,7 @@ Index: bing.c #include "sysdep.h" -@@ -530,7 +533,7 @@ void pr_iph(ip) +@@ -527,7 +529,7 @@ (void)printf(" %1x %04x", ((ip->ip_off) & 0xe000) >> 13, (ip->ip_off) & 0x1fff); (void)printf(" %02x %02x %04x", ip->ip_ttl, ip->ip_p, ip->ip_sum); @@ -48,7 +39,7 @@ Index: bing.c (void)printf(" %s ", inet_ntoa(ip->ip_src)); (void)printf(" %s ", inet_ntoa(ip->ip_dst)); #else -@@ -644,7 +647,7 @@ void pr_icmph(icp) +@@ -641,7 +643,7 @@ (void)printf("Redirect, Bad Code: %d", icp->icmp_code); break; } @@ -57,7 +48,7 @@ Index: bing.c (void)printf("(New addr: 0x%08lx)\n", icp->icmp_gwaddr); #else (void)printf("(New addr: 0x%08lx)\n", icp->icmp_gwaddr.s_addr); -@@ -671,7 +674,7 @@ void pr_icmph(icp) +@@ -668,7 +670,7 @@ pr_retip((struct ip *)ICMP_TO_DATA(icp)); break; case ICMP_PARAMPROB: @@ -66,7 +57,7 @@ Index: bing.c (void)printf("Parameter problem: pointer = 0x%02x\n", icp->un.gateway); #else -@@ -1229,11 +1232,12 @@ int main(argc, argv) +@@ -1226,6 +1228,7 @@ struct protoent *proto; struct in_addr ifaddr; struct hoststats *hs1, *hs2; @@ -74,25 +65,7 @@ Index: bing.c int ntrans, nloops, bits; int i; int ch, hold, recv_packlen, preload; - u_char *datap, *recv_packet; -- char *target1, *target2, *malloc(); -+ char *target1, *target2; - u_char ttl, loop; - #ifdef IP_OPTIONS - char rspace[3 + 4 * NROUTES + 1]; /* record route space */ -@@ -1348,9 +1352,10 @@ int main(argc, argv) - moptions |= MULTICAST_IF; - { - int i1, i2, i3, i4; -+ char dummy; - - if (sscanf(optarg, "%u.%u.%u.%u%c", -- &i1, &i2, &i3, &i4, &i) != 4) { -+ &i1, &i2, &i3, &i4, &dummy) != 4) { - printf("bad interface address '%s'\n", - optarg); - exit(1); -@@ -1406,6 +1411,21 @@ int main(argc, argv) +@@ -1403,6 +1406,21 @@ perror("bing: socket"); exit(1); } @@ -114,10 +87,8 @@ Index: bing.c hold = 1; if (options & F_SO_DEBUG) (void)setsockopt(s, SOL_SOCKET, SO_DEBUG, (char *)&hold, -Index: sysdep.h -=================================================================== ---- sysdep.h.orig -+++ sysdep.h +--- sysdep.h ++++ sysdep.h 2000/02/02 16:03:05 @@ -46,7 +46,7 @@ #ifndef _SYSDEP_H_ #define _SYSDEP_H_ @@ -137,3 +108,34 @@ Index: sysdep.h #define ICMP_MINLEN 16 #define IPOPT_MINOFF 4 +--- bing.c.xx 2005-01-26 12:50:36.266794880 +0100 ++++ bing.c 2005-01-26 12:52:08.935169111 +0100 +@@ -168,6 +168,7 @@ + #include + #include + #include ++#include + #include + #include + #include +@@ -1234,7 +1235,7 @@ + int i; + int ch, hold, recv_packlen, preload; + u_char *datap, *recv_packet; +- char *target1, *target2, *malloc(); ++ char *target1, *target2; + u_char ttl, loop; + #ifdef IP_OPTIONS + char rspace[3 + 4 * NROUTES + 1]; /* record route space */ +@@ -1349,9 +1350,10 @@ + moptions |= MULTICAST_IF; + { + int i1, i2, i3, i4; ++ char dummy; + + if (sscanf(optarg, "%u.%u.%u.%u%c", +- &i1, &i2, &i3, &i4, &i) != 4) { ++ &i1, &i2, &i3, &i4, &dummy) != 4) { + printf("bad interface address '%s'\n", + optarg); + exit(1); diff --git a/bing.changes b/bing.changes index 9d92225..e2be5e1 100644 --- a/bing.changes +++ b/bing.changes @@ -1,8 +1,3 @@ -------------------------------------------------------------------- -Tue Nov 3 19:09:08 UTC 2009 - coolo@novell.com - -- updated patches to apply with fuzz=0 - ------------------------------------------------------------------- Wed Aug 26 12:53:54 CEST 2009 - mls@suse.de From a7e3b0c1f1b3bfff509a1b9a519b3b67880511df82a60b4f01025dfb0fabd00a Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Fri, 19 Feb 2010 15:51:19 +0000 Subject: [PATCH 3/4] converted link to branch OBS-URL: https://build.opensuse.org/package/show/network:utilities/bing?expand=0&rev=6 --- bing-1.0.5.dif | 88 ++++++++++++++++++++++++-------------------------- bing.changes | 5 +++ bing.spec | 2 +- 3 files changed, 49 insertions(+), 46 deletions(-) diff --git a/bing-1.0.5.dif b/bing-1.0.5.dif index 55e721e..213c538 100644 --- a/bing-1.0.5.dif +++ b/bing-1.0.5.dif @@ -1,8 +1,10 @@ ---- Makefile -+++ Makefile 2000/02/02 16:03:05 +Index: Makefile +=================================================================== +--- Makefile.orig ++++ Makefile @@ -1,8 +1,8 @@ # - # Makefile,v 1.4 1995/07/21 00:03:30 pb Exp + # $Id: Makefile,v 1.4 1995/07/21 00:03:30 pb Exp $ # -MANDIR=/usr/local/man -BINDIR=/usr/local/bin @@ -11,7 +13,7 @@ INSTALL=install -c GROFF=groff NROFF=nroff -@@ -28,5 +28,5 @@ +@@ -28,5 +28,5 @@ clean: $(RM) -f bing bing.ps bing.0 install: bing bing.8 @@ -19,9 +21,16 @@ - $(INSTALL) -m 4555 -o root -g staff bing $(BINDIR) + $(INSTALL) -m 644 bing.8 $(MANDIR)/man8 + $(INSTALL) -m 4555 -o root -g root bing $(BINDIR) ---- bing.c -+++ bing.c 2000/02/02 16:03:23 -@@ -171,6 +171,8 @@ +Index: bing.c +=================================================================== +--- bing.c.orig ++++ bing.c +@@ -170,10 +170,13 @@ static char rcsid[] = "$Id: bing.c,v 1.1 + #include + #include + #include ++#include + #include #include #include #include @@ -30,7 +39,7 @@ #include "sysdep.h" -@@ -527,7 +529,7 @@ +@@ -530,7 +533,7 @@ void pr_iph(ip) (void)printf(" %1x %04x", ((ip->ip_off) & 0xe000) >> 13, (ip->ip_off) & 0x1fff); (void)printf(" %02x %02x %04x", ip->ip_ttl, ip->ip_p, ip->ip_sum); @@ -39,7 +48,7 @@ (void)printf(" %s ", inet_ntoa(ip->ip_src)); (void)printf(" %s ", inet_ntoa(ip->ip_dst)); #else -@@ -641,7 +643,7 @@ +@@ -644,7 +647,7 @@ void pr_icmph(icp) (void)printf("Redirect, Bad Code: %d", icp->icmp_code); break; } @@ -48,7 +57,7 @@ (void)printf("(New addr: 0x%08lx)\n", icp->icmp_gwaddr); #else (void)printf("(New addr: 0x%08lx)\n", icp->icmp_gwaddr.s_addr); -@@ -668,7 +670,7 @@ +@@ -671,7 +674,7 @@ void pr_icmph(icp) pr_retip((struct ip *)ICMP_TO_DATA(icp)); break; case ICMP_PARAMPROB: @@ -57,7 +66,7 @@ (void)printf("Parameter problem: pointer = 0x%02x\n", icp->un.gateway); #else -@@ -1226,6 +1228,7 @@ +@@ -1229,11 +1232,12 @@ int main(argc, argv) struct protoent *proto; struct in_addr ifaddr; struct hoststats *hs1, *hs2; @@ -65,7 +74,25 @@ int ntrans, nloops, bits; int i; int ch, hold, recv_packlen, preload; -@@ -1403,6 +1406,21 @@ + u_char *datap, *recv_packet; +- char *target1, *target2, *malloc(); ++ char *target1, *target2; + u_char ttl, loop; + #ifdef IP_OPTIONS + char rspace[3 + 4 * NROUTES + 1]; /* record route space */ +@@ -1348,9 +1352,10 @@ int main(argc, argv) + moptions |= MULTICAST_IF; + { + int i1, i2, i3, i4; ++ char dummy; + + if (sscanf(optarg, "%u.%u.%u.%u%c", +- &i1, &i2, &i3, &i4, &i) != 4) { ++ &i1, &i2, &i3, &i4, &dummy) != 4) { + printf("bad interface address '%s'\n", + optarg); + exit(1); +@@ -1406,6 +1411,21 @@ int main(argc, argv) perror("bing: socket"); exit(1); } @@ -87,8 +114,10 @@ hold = 1; if (options & F_SO_DEBUG) (void)setsockopt(s, SOL_SOCKET, SO_DEBUG, (char *)&hold, ---- sysdep.h -+++ sysdep.h 2000/02/02 16:03:05 +Index: sysdep.h +=================================================================== +--- sysdep.h.orig ++++ sysdep.h @@ -46,7 +46,7 @@ #ifndef _SYSDEP_H_ #define _SYSDEP_H_ @@ -108,34 +137,3 @@ #define ICMP_MINLEN 16 #define IPOPT_MINOFF 4 ---- bing.c.xx 2005-01-26 12:50:36.266794880 +0100 -+++ bing.c 2005-01-26 12:52:08.935169111 +0100 -@@ -168,6 +168,7 @@ - #include - #include - #include -+#include - #include - #include - #include -@@ -1234,7 +1235,7 @@ - int i; - int ch, hold, recv_packlen, preload; - u_char *datap, *recv_packet; -- char *target1, *target2, *malloc(); -+ char *target1, *target2; - u_char ttl, loop; - #ifdef IP_OPTIONS - char rspace[3 + 4 * NROUTES + 1]; /* record route space */ -@@ -1349,9 +1350,10 @@ - moptions |= MULTICAST_IF; - { - int i1, i2, i3, i4; -+ char dummy; - - if (sscanf(optarg, "%u.%u.%u.%u%c", -- &i1, &i2, &i3, &i4, &i) != 4) { -+ &i1, &i2, &i3, &i4, &dummy) != 4) { - printf("bad interface address '%s'\n", - optarg); - exit(1); diff --git a/bing.changes b/bing.changes index e2be5e1..9d92225 100644 --- a/bing.changes +++ b/bing.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Nov 3 19:09:08 UTC 2009 - coolo@novell.com + +- updated patches to apply with fuzz=0 + ------------------------------------------------------------------- Wed Aug 26 12:53:54 CEST 2009 - mls@suse.de diff --git a/bing.spec b/bing.spec index a8c7e3a..258305c 100644 --- a/bing.spec +++ b/bing.spec @@ -26,7 +26,7 @@ AutoReqProv: on Url: http://www.freenix.fr/freenix/logiciels/bing.html Summary: A Point-to-Point Bandwidth Measurement Tool Version: 1.0.5 -Release: 135 +Release: 136 Source: bing-%{version}.tar.bz2 Patch0: bing-%{version}.dif Patch1: %{name}-%{version}-permissions.patch From c3711d284a6ae7c68c932a79074a97249d57dd443ff7045a4cb104f4ce40f33a Mon Sep 17 00:00:00 2001 From: OBS User mrdocs Date: Wed, 21 Sep 2011 08:18:09 +0000 Subject: [PATCH 4/4] Accepting request 82900 from home:jengelh:bl-b - Remove redundant tags/sections from specfile - Use %_smp_mflags for parallel build OBS-URL: https://build.opensuse.org/request/show/82900 OBS-URL: https://build.opensuse.org/package/show/network:utilities/bing?expand=0&rev=7 --- bing.changes | 6 ++++++ bing.spec | 17 +++-------------- ready | 0 3 files changed, 9 insertions(+), 14 deletions(-) delete mode 100644 ready diff --git a/bing.changes b/bing.changes index 9d92225..7568f61 100644 --- a/bing.changes +++ b/bing.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Sep 17 19:37:35 UTC 2011 - jengelh@medozas.de + +- Remove redundant tags/sections from specfile +- Use %_smp_mflags for parallel build + ------------------------------------------------------------------- Tue Nov 3 19:09:08 UTC 2009 - coolo@novell.com diff --git a/bing.spec b/bing.spec index 258305c..cef9c60 100644 --- a/bing.spec +++ b/bing.spec @@ -1,7 +1,7 @@ # -# spec file for package bing (Version 1.0.5) +# spec file for package bing # -# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,14 +15,12 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild Name: bing License: BSD 3-clause (or similar) Group: Productivity/Networking/Diagnostic PreReq: permissions -AutoReqProv: on Url: http://www.freenix.fr/freenix/logiciels/bing.html Summary: A Point-to-Point Bandwidth Measurement Tool Version: 1.0.5 @@ -39,12 +37,6 @@ Bing determines the real (raw, as opposed to available or average) throughput of a link by measuring ICMP echo request round trip times for different packet sizes for each end of the link. - - -Authors: --------- - Pierre Beyssac - %prep %setup %patch0 @@ -53,15 +45,12 @@ Authors: %patch3 -p1 %build -make CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" +make CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" %{?_smp_mflags} %install mkdir -p $RPM_BUILD_ROOT/{%{_mandir}/man8,usr/sbin} make install MANDIR=$RPM_BUILD_ROOT/%{_mandir} BINDIR=$RPM_BUILD_ROOT/usr/sbin -%clean -rm -rf $RPM_BUILD_ROOT - %post %run_permissions %verifyscript diff --git a/ready b/ready deleted file mode 100644 index 473a0f4..0000000