Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
>
mtr
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 8
[-]
[+]
Added
mtr.spec
@@ -0,0 +1,270 @@ +# +# spec file for package mtr (Version 0.75) +# +# Copyright (c) 2009 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 +# 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. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + + +Name: mtr +BuildRequires: gtk1-compat-devel gtk2-devel ncurses-devel update-desktop-files xorg-x11-devel +Summary: Ping and Traceroute Network Diagnostic Tool +Version: 0.75 +Release: 1 +Group: Productivity/Networking/Diagnostic +License: GPL v2 or later +Url: http://www.BitWizard.nl/mtr +Source: %{name}-%{version}.tar.bz2 +Source1: xmtr.desktop +Patch1: %{name}-%{version}-manmtr.patch +Patch2: %{name}-%{version}-manxmtr.patch +Patch3: %{name}-%{version}-nonvoid.patch +Patch4: %{name}-%{version}-sec_snprintf.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Icon: %{name}.gif +PreReq: permissions + +%description +Mtr is a network diagnostic tool that combines Ping and Traceroute into +one program. This package contains the mtr version with an ncurses +interface, in other words, the text mode version is usable in a shell +(telnet or SSH session, for example). + +Find the graphical version in the mtr-gtk package. + + + +Authors: +-------- + Roger Wolff <R.E.Wolff@BitWizard.nl> + +%package gtk +License: GPL v2 or later +Summary: Ping and Traceroute Network Diagnostic Tool +Group: Productivity/Networking/Diagnostic + +%description gtk +Mtr is a network diagnostic tool which combines Ping and Traceroute +into one program. This package contains mtr with a GTK interface. +You'll find the text mode version in the mtr package. + + + +Authors: +-------- + Roger Wolff <R.E.Wolff@BitWizard.nl> + +%if "%(xft-config --prefix)" == "/usr" +%define _xorg7libs %_lib +%define _xorg7libs32 lib +%define _xorg7bin bin +%define _xorg7mandir %_mandir +%define _xorg7pixmaps include +%define _xorg7libshare share +%define _xorg7xkb /usr/share/X11/xkb +%define _xorg7termcap /usr/lib/X11/etc +%define _xorg7include /usr/include/xorg +%define _xorg7fonts /usr/share/fonts +%define _xorg7prefix /usr +%else +%define _xorg7libs X11R6/%_lib +%define _xorg7libs32 X11R6/lib +%define _xorg7bin X11R6/bin +%define _xorg7mandir /usr/X11R6/man +%define _xorg7pixmaps X11R6/include +%define _xorg7libshare X11R6/lib/ +%define _xorg7xkb /etc/X11/xkb +%define _xorg7termcap /usr/X11R6/lib/X11/etc +%define _xorg7include +%define _xorg7fonts /usr/X11R6/lib/X11/fonts +%define _xorg7prefix /usr/X11R6 +%endif + +%prep +%setup -q +cp mtr.8 xmtr.8 +%patch1 +%patch2 +%patch3 +%patch4 + +%build +%{?suse_update_config:%{suse_update_config}} +aclocal -I /usr/share/aclocal +autoconf +automake --foreign -a +# +# GTK version +CFLAGS="$RPM_OPT_FLAGS" ./configure \ + --enable-gtk2 \ + --prefix=%{_xorg7prefix} +make && mv mtr xmtr +make distclean +# +# console version +CFLAGS="$RPM_OPT_FLAGS" ./configure \ + --prefix=/usr \ + --mandir=%{_mandir} \ + --without-gtk +make %{?jobs:-j%jobs} + +%install +mkdir -p $RPM_BUILD_ROOT/usr/sbin +mkdir -p $RPM_BUILD_ROOT/usr/%{_xorg7bin} +mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8 +make DESTDIR=$RPM_BUILD_ROOT install +install -m 4755 xmtr $RPM_BUILD_ROOT/usr/%{_xorg7bin} +install -m 644 xmtr.8 $RPM_BUILD_ROOT/%{_mandir}/man8 +install -d -m 755 $RPM_BUILD_ROOT/usr/%{_xorg7pixmaps}/X11/pixmaps/ +install -m 644 img/mtr_icon.xpm $RPM_BUILD_ROOT/usr/%{_xorg7pixmaps}/X11/pixmaps/xmtr_icon.xpm +install -d -m 755 $RPM_BUILD_ROOT/usr/share/pixmaps/ +install -m 644 img/mtr_icon.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/xmtr_icon.xpm +%suse_update_desktop_file -i xmtr Network Monitor + +%clean +[ -d %{buildroot} -a "%{buildroot}" != "" ] && rm -rf %{buildroot} + +%files +%defattr(-,root,root) +%doc AUTHORS COPYING FORMATS NEWS README SECURITY TODO +%doc %{_mandir}/man8/mtr.8* +%verify(not mode) %attr(755,root,dialout) /usr/sbin/mtr + +%files gtk +%defattr(-,root,root) +%doc AUTHORS COPYING FORMATS NEWS README SECURITY TODO +%doc %{_mandir}/man8/xmtr.8* +%attr(755,root,root) /usr/%{_xorg7bin}/xmtr +/usr/%{_xorg7pixmaps}/X11/pixmaps +/usr/share/applications/* +/usr/share/pixmaps/* + +%post +%run_permissions +%verifyscript +%verify_permissions -e /usr/sbin/mtr + +%changelog +* Tue Jan 06 2009 mseben@suse.cz +- update to v0.75 + * feelgood patch to move sprintf to snprintf + * cut-paste patches: you can now copy an intermediate host to the + clipboard +- v0.74 + * Martin Pels' patch to allow UDP probes + * changed some docs to advertise the new mailing list + * added documentation for the Mac OS X compilation problem + * added -Wno-pointer-sign to the compiler options + * Nico Lichtmaier's cleanup-gtk patch. (now mtr uses a more modern + dialect of gtk) +- rewritten mtr-*-sec_snprintf.patch for v0.75 +* Tue May 27 2008 lmichnovic@suse.cz +- fixed more possible overflows because of using sprintf in dns.c + (*-sec_snprintf.patch) [bnc#392458] +* Mon Apr 14 2008 lmichnovic@suse.cz +- update to version 0.73 + * Fix signed/unsigned bug in IPV6 part improved random packet + size behaviour. + * includes also fix for sprintf overflow [bnc#372610] +* Mon Apr 02 2007 rguenther@suse.de +- add ncurses-devel BuildRequires +* Fri Mar 30 2007 lmichnovic@suse.cz +- fixed return value for non-void function (nonvoid.patch) +* Fri Jan 12 2007 lmichnovic@suse.cz +- changed prefix /opt/gnome to /usr for aclocal +* Mon Oct 02 2006 lmichnovic@suse.cz +- update to version 0.72 + * some code improvements + * option change: If PACKETSIZE is set to a negative number, every + iteration will use a different, random packet size up to that + number. +* Thu Jul 27 2006 lmichnovic@suse.cz +- building with X.org 7.x: detects version of X.org instead of + suse_version +- uses icecream +* Mon Jul 24 2006 lmichnovic@suse.de +- udjusted specfile to build also with new X.org 7.x +* Wed Jun 14 2006 lmichnovic@suse.cz