2007-01-15 23:52:18 +01:00
|
|
|
#
|
|
|
|
# spec file for package bing (Version 1.0.5)
|
|
|
|
#
|
2009-06-18 17:01:25 +02:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:52:18 +01:00
|
|
|
#
|
2009-06-18 17:01:25 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-11-08 23:40:38 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2007-01-15 23:52:18 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2009-06-18 17:01:25 +02:00
|
|
|
|
2007-11-08 23:40:38 +01:00
|
|
|
Name: bing
|
|
|
|
License: BSD 3-Clause
|
|
|
|
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
|
2009-06-18 17:01:25 +02:00
|
|
|
Release: 134
|
2007-11-08 23:40:38 +01:00
|
|
|
Source: bing-%{version}.tar.bz2
|
|
|
|
Patch0: bing-%{version}.dif
|
|
|
|
Patch1: %{name}-%{version}-permissions.patch
|
|
|
|
Patch2: %{name}-%{version}-includes.diff
|
|
|
|
Patch3: %{name}-%{version}-moresecure.diff
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-01-15 23:52:18 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
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 <pb@fasterix.freenix.fr>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup
|
|
|
|
%patch
|
|
|
|
%patch1
|
|
|
|
%patch2
|
|
|
|
%patch3 -p1
|
|
|
|
|
|
|
|
%build
|
|
|
|
make CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
|
|
|
|
|
|
|
%install
|
2007-11-08 23:40:38 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/{%{_mandir}/man8,usr/sbin}
|
|
|
|
make install MANDIR=$RPM_BUILD_ROOT/%{_mandir} BINDIR=$RPM_BUILD_ROOT/usr/sbin
|
2007-01-15 23:52:18 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post
|
|
|
|
%run_permissions
|
|
|
|
%verifyscript
|
2007-11-08 23:40:38 +01:00
|
|
|
%verify_permissions -e /usr/sbin/bing
|
2007-01-15 23:52:18 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2007-11-08 23:40:38 +01:00
|
|
|
%verify(not mode) %attr(0755,root,trusted) /usr/sbin/bing
|
2007-01-15 23:52:18 +01:00
|
|
|
%doc %{_mandir}/man8/bing.*
|
|
|
|
%doc bing.ps
|
|
|
|
%doc ChangeLog README
|
2009-06-18 17:01:25 +02:00
|
|
|
|
2007-11-08 23:40:38 +01:00
|
|
|
%changelog
|
2009-06-18 17:01:25 +02:00
|
|
|
* Fri Nov 09 2007 mkudlvasr@suse.cz
|
2007-11-08 23:40:38 +01:00
|
|
|
- moved bing to /usr/sbin
|
|
|
|
- removed SUID bit
|
2009-06-18 17:01:25 +02:00
|
|
|
* Wed Jan 25 2006 mls@suse.de
|
2007-01-15 23:52:18 +01:00
|
|
|
- converted neededforbuild to BuildRequires
|
2009-06-18 17:01:25 +02:00
|
|
|
* Mon Jul 11 2005 postadal@suse.cz
|
2007-01-15 23:52:18 +01:00
|
|
|
- updated to version 1.0.5
|
|
|
|
- bziped
|
2009-06-18 17:01:25 +02:00
|
|
|
* Wed Jan 26 2005 meissner@suse.de
|
2007-01-15 23:52:18 +01:00
|
|
|
- added RPM_OPT_FLAGS. Fixed some bugs.
|
|
|
|
- Moved privilege drop up to earliest place.
|
2009-06-18 17:01:25 +02:00
|
|
|
* Thu Nov 11 2004 ro@suse.de
|
2007-01-15 23:52:18 +01:00
|
|
|
- permission handling fixes
|
2009-06-18 17:01:25 +02:00
|
|
|
* Mon Aug 23 2004 postadal@suse.cz
|
2007-01-15 23:52:18 +01:00
|
|
|
- added missing include arpa/inet.h [#43637]
|
2009-06-18 17:01:25 +02:00
|
|
|
* Wed Jun 23 2004 hmacht@suse.de
|
2007-01-15 23:52:18 +01:00
|
|
|
- building as non root user
|
|
|
|
- added patch to correct owner/group
|
2009-06-18 17:01:25 +02:00
|
|
|
* Tue Apr 06 2004 kukuk@suse.de
|
2007-01-15 23:52:18 +01:00
|
|
|
- Fix default permissions
|
2009-06-18 17:01:25 +02:00
|
|
|
* Tue Sep 17 2002 ro@suse.de
|
2007-01-15 23:52:18 +01:00
|
|
|
- removed bogus self-provides
|
2009-06-18 17:01:25 +02:00
|
|
|
* Wed Jan 24 2001 nadvornik@suse.de
|
2007-01-15 23:52:18 +01:00
|
|
|
- fixed usage of %%{_mandir}
|
2009-06-18 17:01:25 +02:00
|
|
|
* Wed Apr 26 2000 nadvornik@suse.cz
|
2007-01-15 23:52:18 +01:00
|
|
|
- added URL
|
|
|
|
- changed Group
|
2009-06-18 17:01:25 +02:00
|
|
|
* Fri Apr 07 2000 nadvornik@suse.cz
|
2007-01-15 23:52:18 +01:00
|
|
|
- added BuildRoot
|
2009-06-18 17:01:25 +02:00
|
|
|
* Wed Feb 02 2000 ro@suse.de
|
2007-01-15 23:52:18 +01:00
|
|
|
- applied another security fix
|
2009-06-18 17:01:25 +02:00
|
|
|
* Wed Jan 26 2000 ro@suse.de
|
2007-01-15 23:52:18 +01:00
|
|
|
- applied small security fix
|
2009-06-18 17:01:25 +02:00
|
|
|
* Mon Jan 17 2000 ro@suse.de
|
2007-01-15 23:52:18 +01:00
|
|
|
- man to usr/share/man
|
2009-06-18 17:01:25 +02:00
|
|
|
* Mon Sep 13 1999 bs@suse.de
|
2007-01-15 23:52:18 +01:00
|
|
|
- ran old prepare_spec on spec file to switch to new prepare_spec.
|
2009-06-18 17:01:25 +02:00
|
|
|
* Wed Jun 17 1998 ro@suse.de
|
2007-01-15 23:52:18 +01:00
|
|
|
- changed "ifdef linux" to "defined linux && !defined __NETINET_IP_ICMP_H"
|
|
|
|
to build with libc5 and glibc
|
2009-06-18 17:01:25 +02:00
|
|
|
* Thu Nov 27 1997 bs@suse.de
|
2007-01-15 23:52:18 +01:00
|
|
|
- compressed man page
|
2009-06-18 17:01:25 +02:00
|
|
|
* Fri Oct 31 1997 ro@suse.de
|
2007-01-15 23:52:18 +01:00
|
|
|
- first suse version 1.0.4
|