cvsdist 9b13b6b
%define npversion	1.2.6
cvsdist 6c2b2dd
cvsdist 8ce4605
Summary: Basic networking tools.
cvsdist a419bb4
Name: net-tools
cvsdist 1a69260
Version: 1.60
cvsdist 9b13b6b
Release: 27
cvsdist 5f913e2
License: GPL
cvsdist a419bb4
Group: System Environment/Base
cvsdist a419bb4
Source0: http://www.tazenda.demon.co.uk/phil/net-tools/net-tools-%{version}.tar.bz2
cvsdist 6c2b2dd
Source1: netplug-%{npversion}.tar.bz2
cvsdist 6c2b2dd
Source2: net-tools-%{version}-config.h
cvsdist 6c2b2dd
Source3: net-tools-%{version}-config.make
cvsdist 6c2b2dd
Source4: ether-wake.c
cvsdist 14587f6
Patch1: net-tools-1.57-bug22040.patch
cvsdist 14587f6
Patch2: net-tools-1.60-miiioctl.patch
cvsdist 14587f6
Patch3: net-tools-1.60-manydevs.patch
cvsdist 14587f6
Patch4: net-tools-1.60-virtualname.patch
cvsdist 14587f6
Patch5: net-tools-1.60-cycle.patch
cvsdist 14587f6
Patch6: net-tools-1.60-nameif.patch
cvsdist 14587f6
Patch7: net-tools-1.60-ipx.patch
cvsdist 14587f6
Patch8: net-tools-1.60-inet6-lookup.patch
cvsdist 14587f6
Patch9: net-tools-1.60-man.patch
cvsdist 14587f6
Patch10: net-tools-1.60-gcc33.patch
cvsdist 14587f6
Patch11: net-tools-1.60-trailingblank.patch
cvsdist 14587f6
Patch12: net-tools-1.60-interface.patch
cvsdist 6c2b2dd
Patch13: netplug-1.2.1-init.patch
cvsdist 10a94dd
Patch14: net-tools-1.60-gcc34.patch
cvsdist 10a94dd
Patch15: net-tools-1.60-overflow.patch
cvsdist 70b9ea9
Patch16: net-tools-1.60-execshield.patch
cvsdist 9b13b6b
Patch17: netplug-1.2.6-compiler.patch
cvsdist a419bb4
BuildRoot: %{_tmppath}/%{name}-root
cvsdist 6c2b2dd
Requires(post,preun): chkconfig
cvsdist a419bb4
cvsdist a419bb4
%description
cvsdist 8ce4605
The net-tools package contains basic networking tools, including
cvsdist 8ce4605
ifconfig, netstat, route, and others.
cvsdist a419bb4
cvsdist a419bb4
%prep
cvsdist 6c2b2dd
%setup -q -a 1
cvsdist 14587f6
%patch1 -p 1 -b .bug22040
cvsdist 14587f6
%patch2 -p 1 -b .miiioctl
cvsdist 14587f6
%patch3 -p 0 -b .manydevs
cvsdist 14587f6
%patch4 -p 1 -b .virtualname
cvsdist 14587f6
%patch5 -p 1 -b .cycle
cvsdist 14587f6
%patch6 -p 1 -b .nameif
cvsdist 14587f6
%patch7 -p 1 -b .ipx
cvsdist 14587f6
%patch8 -p 1 -b .inet6-lookup
cvsdist 14587f6
%patch9 -p 1 -b .man
cvsdist 14587f6
%patch10 -p1 -b .gcc33
cvsdist 14587f6
%patch11 -p1 -b .trailingblank
cvsdist 14587f6
%patch12 -p1 -b .interface
cvsdist 6c2b2dd
%patch13 -p1 -b .init
cvsdist 10a94dd
%patch14 -p1 -b .gcc34
cvsdist 10a94dd
%patch15 -p1 -b .overflow
cvsdist 70b9ea9
%patch16 -p1 -b .execshield
cvsdist 9b13b6b
%patch17 -p1 -b .compiler
cvsdist 0d01487
cvsdist 6c2b2dd
cp %SOURCE2 ./config.h
cvsdist 6c2b2dd
cp %SOURCE3 ./config.make
cvsdist 6c2b2dd
cp %SOURCE4 .
cvsdist a419bb4
cvsdist 14587f6
%ifarch alpha
cvsdist 14587f6
perl -pi -e "s|-O2||" Makefile
cvsdist 14587f6
%endif
cvsdist 14587f6
cvsdist a419bb4
%build
cvsdist a419bb4
make
cvsdist 2b639f3
gcc $RPM_OPT_FLAGS -o ether-wake ether-wake.c
cvsdist 6c2b2dd
pushd netplug-%{npversion}
cvsdist 6c2b2dd
make
cvsdist 6c2b2dd
popd
cvsdist a419bb4
cvsdist a419bb4
%install
cvsdist a419bb4
rm -rf $RPM_BUILD_ROOT
cvsdist a419bb4
cvsdist 14587f6
mv man/de_DE man/de
cvsdist 14587f6
mv man/fr_FR man/fr
cvsdist 14587f6
mv man/pt_BR man/pt
cvsdist 14587f6
cvsdist a419bb4
make BASEDIR=$RPM_BUILD_ROOT mandir=%{_mandir} install
cvsdist a419bb4
cvsdist 2b639f3
install -m 755 ether-wake %{buildroot}/sbin
cvsdist 2b639f3
cvsdist 6c2b2dd
pushd netplug-%{npversion}
cvsdist 6c2b2dd
make install prefix=$RPM_BUILD_ROOT \
cvsdist 6c2b2dd
        initdir=$RPM_BUILD_ROOT/%{_initrddir} \
cvsdist 6c2b2dd
        mandir=$RPM_BUILD_ROOT/%{_mandir}
cvsdist 6c2b2dd
mv README README.netplugd
cvsdist 6c2b2dd
mv TODO TODO.netplugd
cvsdist 6c2b2dd
popd
cvsdist 6c2b2dd
cvsdist 493a8e0
rm %{buildroot}/sbin/rarp
cvsdist 493a8e0
rm %{buildroot}%{_mandir}/man8/rarp.8*
cvsdist 493a8e0
cvsdist 493a8e0
%find_lang %{name}
cvsdist 493a8e0
cvsdist a419bb4
%clean
cvsdist a419bb4
rm -rf $RPM_BUILD_ROOT
cvsdist a419bb4
cvsdist 6c2b2dd
%post
cvsdist 6c2b2dd
  /sbin/chkconfig --add netplugd
cvsdist 6c2b2dd
  exit 0
cvsdist 6c2b2dd
cvsdist 6c2b2dd
%preun
cvsdist 6c2b2dd
if [ "$1" = "0" ]; then
cvsdist 6c2b2dd
  /sbin/chkconfig --del netplugd || :
cvsdist 6c2b2dd
  /sbin/service netplugd stop &> /dev/null || :
cvsdist 6c2b2dd
fi
cvsdist 6c2b2dd
exit 0
cvsdist 6c2b2dd
cvsdist 6c2b2dd
%postun
cvsdist 6c2b2dd
  /sbin/service netplugd condrestart >/dev/null 2>&1 || :
cvsdist 6c2b2dd
  exit 0
cvsdist 6c2b2dd
cvsdist 493a8e0
%files -f %{name}.lang
cvsdist a419bb4
%defattr(-,root,root)
cvsdist 6c2b2dd
%doc netplug-%{npversion}/TODO.netplugd netplug-%{npversion}/README.netplugd COPYING
cvsdist 7ab5248
/bin/*
cvsdist 7ab5248
/sbin/*
cvsdist a419bb4
%{_mandir}/man[158]/*
cvsdist 14587f6
%lang(de)	%{_mandir}/de/man[158]/*
cvsdist 14587f6
%lang(fr)	%{_mandir}/fr/man[158]/*
cvsdist 14587f6
%lang(pt)	%{_mandir}/pt/man[158]/*
cvsdist 6c2b2dd
%config %{_sysconfdir}/netplug/netplugd.conf
cvsdist 6c2b2dd
%{_sysconfdir}/netplug.d
cvsdist 6c2b2dd
%{_sysconfdir}/rc.d/init.d/netplugd
cvsdist a419bb4
cvsdist a419bb4
%changelog
cvsdist 9b13b6b
* Fri May 14 2004 Phil Knirsch <pknirsch@redhat.com> 1.60-27
cvsdist 9b13b6b
- Fixed compiler warning/error in netplug.
cvsdist 9b13b6b
- Updated to netplug-1.2.6 for security update and fixes.
cvsdist 9b13b6b
cvsdist 70b9ea9
* Thu May 06 2004 Phil Knirsch <pknirsch@redhat.com> 1.60-26
cvsdist 70b9ea9
- Updated netplugd to latest upstream version.
cvsdist 70b9ea9
- Fixed execshield problem in main.c of netplugd.
cvsdist 70b9ea9
cvsdist 10a94dd
* Thu Apr 15 2004 Phil Knirsch <pknirsch@redhat.com> 1.60-25
cvsdist 10a94dd
- Fixed several possible buffer overflows (#120343)
cvsdist 10a94dd
cvsdist 10a94dd
* Tue Mar 30 2004 Harald Hoyer <harald@redhat.com> - 1.60-24
cvsdist 10a94dd
- fixed compilation with gcc34
cvsdist 10a94dd
cvsdist 6c2b2dd
* Tue Mar 23 2004 Karsten Hopp <karsten@redhat.de> 1.60-23 
cvsdist 6c2b2dd
- add chkconfig call in post and preun, fix init script (#116555)
cvsdist 6c2b2dd
cvsdist 6c2b2dd
* Thu Feb 19 2004 Phil Knirsch <pknirsch@redhat.com>
cvsdist 6c2b2dd
- Added netplug-1.2.1 to net-tools (FR #103419).
cvsdist 6c2b2dd
cvsdist 6c2b2dd
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 6c2b2dd
- rebuilt
cvsdist 6c2b2dd
cvsdist 14587f6
* Mon Aug 25 2003 Phil Knirsch <pknirsch@redhat.com> 1.60-20.1
cvsdist 14587f6
-rebuilt
cvsdist 14587f6
cvsdist 14587f6
* Mon Aug 25 2003 Phil Knirsch <pknirsch@redhat.com> 1.60-20
cvsdist 14587f6
- interface option now works as described in the man page (#61113).
cvsdist 14587f6
cvsdist 14587f6
* Tue Aug 19 2003 Phil Knirsch <pknirsch@redhat.com> 1.60-19.1
cvsdist 14587f6
- rebuilt
cvsdist 14587f6
cvsdist 14587f6
* Tue Aug 19 2003 Phil Knirsch <pknirsch@redhat.com> 1.60-19
cvsdist 14587f6
- Fixed trailing blank bug in hostname output (#101263).
cvsdist 14587f6
- Remove -O2 fir alpha (#78955).
cvsdist 14587f6
- Updated netstat statistic output, was still broken.
cvsdist 14587f6
cvsdist 14587f6
* Tue Jun 17 2003 Phil Knirsch <pknirsch@redhat.com> 1.60-18.1
cvsdist 14587f6
- rebuilt
cvsdist 14587f6
cvsdist 14587f6
* Tue Jun 17 2003 Phil Knirsch <pknirsch@redhat.com> 1.60-18
cvsdist 14587f6
- fix ether-wake.c build with gcc 3.3
cvsdist 14587f6
- rebuilt
cvsdist 14587f6
cvsdist 14587f6
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cvsdist 14587f6
- rebuilt
cvsdist 14587f6
cvsdist 14587f6
* Wed Jun 04 2003 Phil Knirsch <pknirsch@redhat.com> 1.60-16.1
cvsdist 14587f6
- Bumped release and rebuilt
cvsdist 14587f6
cvsdist 14587f6
* Fri May 23 2003 Phil Knirsch <pknirsch@redhat.com> 1.60-16
cvsdist 14587f6
- Fixed ether-wake usage output (#55801).
cvsdist 14587f6
cvsdist 14587f6
* Thu May 22 2003 Jeremy Katz <katzj@redhat.com> 1.60-15
cvsdist 14587f6
- fix build with gcc 3.3
cvsdist 14587f6
cvsdist 14587f6
* Thu May 22 2003 Phil Knirsch <pknirsch@redhat.com> 1.60-14
cvsdist 14587f6
- Fixed wrong manpage (#55473).
cvsdist 14587f6
cvsdist 14587f6
* Wed May 21 2003 Phil Knirsch <pknirsch@redhat.com>
cvsdist 14587f6
- Added inet6-lookup patch from John van Krieken (#84108).
cvsdist 14587f6
- Fixed outdated link in ifconfig manpage (#91287).
cvsdist 14587f6
cvsdist 14587f6
* Tue May 20 2003 Phil Knirsch <pknirsch@redhat.com>
cvsdist 14587f6
- Fixed incorrect address display for ipx (#46434).
cvsdist 14587f6
- Fixed wrongly installed manpage dirs (#50664).
cvsdist 14587f6
cvsdist 14587f6
* Wed Mar 19 2003 Phil Knirsch <pknirsch@redhat.com> 1.60-13
cvsdist 14587f6
- Fixed nameif problem (#85748).
cvsdist 14587f6
cvsdist 14587f6
* Fri Feb 07 2003 Phil Knirsch <pknirsch@redhat.com> 1.60-12
cvsdist 5f913e2
- Fixed -s parameter.
cvsdist 5f913e2
- Fix /proc statistics for -nic operation.
cvsdist 5f913e2
- Fixed -i operation in general.
cvsdist 5f913e2
cvsdist 5f913e2
* Mon Jan 27 2003 Phil Knirsch <pknirsch@redhat.com> 1.60-11
cvsdist 5f913e2
- Disable smp build.
cvsdist 5f913e2
cvsdist 5f913e2
* Wed Jan 22 2003 Tim Powers <timp@redhat.com> 1.60-10
cvsdist 5f913e2
- rebuilt
cvsdist 5f913e2
cvsdist 5f913e2
* Tue Dec 17 2002 Phil Knirsch <pknirsch@redhat.com> 1.60-9
cvsdist 5f913e2
- Rebuild
cvsdist 5f913e2
- Copyright -> License.
cvsdist 5f913e2
cvsdist 5f913e2
* Thu Dec 05 2002 Elliot Lee <sopwith@redhat.com> 1.60-8
cvsdist 5f913e2
- Rebuild
cvsdist 5f913e2
cvsdist d8c30f6
* Tue Aug 06 2002 Phil Knirsch <pknirsch@redhat.com> 
cvsdist d8c30f6
- Added patch from Norm for a corrected output.
cvsdist d8c30f6
cvsdist 4b181fa
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
cvsdist 4b181fa
- automated rebuild
cvsdist 4b181fa
cvsdist 4b181fa
* Thu May 23 2002 Tim Powers <timp@redhat.com>
cvsdist 4b181fa
- automated rebuild
cvsdist 4b181fa
cvsdist 0d01487
* Fri Apr 12 2002 Jeremy Katz <katzj@redhat.com>
cvsdist 0d01487
- fix nstrcmp() to be correct in the case where there are many devices 
cvsdist 0d01487
  of the same type, eg, "eth10" > "eth1"  (#61436)
cvsdist 0d01487
cvsdist 8ce4605
* Tue Jul 31 2001 Bill Nottingham <notting@redhat.com>
cvsdist 8ce4605
- do *not* use SIOCDEVPRIVATE for MII ioctls
cvsdist 8ce4605
cvsdist 2b639f3
* Fri Jun  1 2001 Preston Brown <pbrown@redhat.com>
cvsdist 2b639f3
- include wake-on-lan wakeup utility, ether-wake by Donald Becker
cvsdist 2b639f3
cvsdist 1a69260
* Wed Apr 18 2001 Crutcher Dunnavant <crutcher@redhat.com>
cvsdist 1a69260
- itterate to 1.60
cvsdist 1a69260
cvsdist 493a8e0
* Sun Apr  8 2001 Preston Brown <pbrown@redhat.com>
cvsdist 493a8e0
- use find_lang macro
cvsdist 493a8e0
- less specific locale dirs for man pages
cvsdist 493a8e0
cvsdist 493a8e0
* Mon Apr  2 2001 Preston Brown <pbrown@redhat.com>
cvsdist 493a8e0
- don't use this version of rarp, doesn't work with our 2.4.
cvsdist 493a8e0
cvsdist 493a8e0
* Tue Feb  6 2001 Crutcher Dunnavant <crutcher@redhat.com>
cvsdist 493a8e0
- fixed man page typo, closing bug #25921
cvsdist 493a8e0
cvsdist 493a8e0
* Fri Feb  1 2001 Crutcher Dunnavant <crutcher@redhat.com>
cvsdist 493a8e0
- applied twaugh's patch to close bug #25474
cvsdist 493a8e0
- which was a buffer length bug.
cvsdist 493a8e0
cvsdist 493a8e0
* Wed Dec 27 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 493a8e0
- locales not initialized correctly (#20570).
cvsdist 493a8e0
- arp: document -e option (#22040).
cvsdist 493a8e0
cvsdist 7ab5248
* Sat Oct  7 2000 Jeff Johnson <jbj@redhat.com>
cvsdist 7ab5248
- update to 1.57.
cvsdist 7ab5248
- MTU (and other) option(s) not parsed correctly (#9215).
cvsdist 7ab5248
- allow more granularity iwth --numeric (#9129).
cvsdist 7ab5248
cvsdist a419bb4
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
cvsdist a419bb4
- automatic rebuild
cvsdist a419bb4
cvsdist a419bb4
* Tue Jun  6 2000 Jeff Johnson <jbj@redhat.com>
cvsdist a419bb4
- update to 1.56.
cvsdist a419bb4
- FHS packaging.
cvsdist a419bb4
cvsdist a419bb4
* Sat Apr 15 2000 Jeff Johnson <jbj@redhat.com>
cvsdist a419bb4
- update to 1.55.
cvsdist a419bb4
cvsdist a419bb4
* Tue Mar  7 2000 Jeff Johnson <jbj@redhat.com>
cvsdist a419bb4
- rebuild for sparc baud rates > 38400.
cvsdist a419bb4
cvsdist a419bb4
* Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com>
cvsdist a419bb4
- fix description
cvsdist a419bb4
cvsdist a419bb4
* Fri Jan 14 2000 Jeff Johnson <jbj@redhat.com>
cvsdist a419bb4
- fix "netstat -ci" (#6904).
cvsdist a419bb4
- document more netstat options (#7429).
cvsdist a419bb4
cvsdist a419bb4
* Thu Jan 13 2000 Jeff Johnson <jbj@redhat.com>
cvsdist a419bb4
- update to 1.54.
cvsdist a419bb4
- enable "everything but DECnet" including IPv6.
cvsdist a419bb4
cvsdist a419bb4
* Sun Aug 29 1999 Jeff Johnson <jbj@redhat.com>
cvsdist a419bb4
- update to 1.53.
cvsdist a419bb4
cvsdist a419bb4
* Wed Jul 28 1999 Jeff Johnson <jbj@redhat.com>
cvsdist a419bb4
- plug "netstat -c" fd leak (#3620).
cvsdist a419bb4
cvsdist a419bb4
* Thu Jun 17 1999 Jeff Johnson <jbj@redhat.com>
cvsdist a419bb4
- plug potential buffer overruns.
cvsdist a419bb4
cvsdist a419bb4
* Sat Jun 12 1999 John Hardin <jhardin@wolfenet.com>
cvsdist a419bb4
- patch to recognize ESP and GRE protocols for VPN masquerade
cvsdist a419bb4
cvsdist a419bb4
* Fri Apr 23 1999 Jeff Johnson <jbj@redhat.com>
cvsdist a419bb4
- update to 1.52.
cvsdist a419bb4
cvsdist a419bb4
* Thu Mar 25 1999 Jeff Johnson <jbj@redhat.com>
cvsdist a419bb4
- update interface statistics continuously (#1323)
cvsdist a419bb4
cvsdist a419bb4
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
cvsdist a419bb4
- auto rebuild in the new build environment (release 2)
cvsdist a419bb4
cvsdist a419bb4
* Fri Mar 19 1999 Jeff Johnson <jbj@redhat.com>
cvsdist a419bb4
- update to 1.51.
cvsdist a419bb4
- strip binaries.
cvsdist a419bb4
cvsdist a419bb4
* Tue Feb  2 1999 Jeff Johnson <jbj@redhat.com>
cvsdist a419bb4
- update to 1.50.
cvsdist a419bb4
- added slattach/plipconfig/ipmaddr/iptunnel commands.
cvsdist a419bb4
- enabled translated man pages.
cvsdist a419bb4
cvsdist a419bb4
* Tue Dec 15 1998 Jakub Jelinek <jj@ultra.linux.cz>
cvsdist a419bb4
- update to 1.49.
cvsdist a419bb4
cvsdist a419bb4
* Sat Dec  5 1998 Jeff Johnson <jbj@redhat.com>
cvsdist a419bb4
- update to 1.48.
cvsdist a419bb4
cvsdist a419bb4
* Thu Nov 12 1998 Jeff Johnson <jbj@redhat.com>
cvsdist a419bb4
- update to 1.47.
cvsdist a419bb4
cvsdist a419bb4
* Wed Sep  2 1998 Jeff Johnson <jbj@redhat.com>
cvsdist a419bb4
- update to 1.46
cvsdist a419bb4
cvsdist a419bb4
* Thu Jul  9 1998 Jeff Johnson <jbj@redhat.com>
cvsdist a419bb4
- build root
cvsdist a419bb4
- include ethers.5
cvsdist a419bb4
cvsdist a419bb4
* Thu Jun 11 1998 Aron Griffis <agriffis@coat.com>
cvsdist a419bb4
- upgraded to 1.45
cvsdist a419bb4
- patched hostname.c to initialize buffer
cvsdist a419bb4
- patched ax25.c to use kernel headers
cvsdist a419bb4
cvsdist a419bb4
* Fri May 01 1998 Prospector System <bugs@redhat.com>
cvsdist a419bb4
- translations modified for de, fr, tr
cvsdist a419bb4
cvsdist a419bb4
* Fri Feb 27 1998 Jason Spangler <jasons@usemail.com>
cvsdist a419bb4
- added config patch
cvsdist a419bb4
cvsdist a419bb4
* Fri Feb 27 1998 Jason Spangler <jasons@usemail.com>
cvsdist a419bb4
- changed to net-tools 1.432
cvsdist a419bb4
- removed old glibc 2.1 patch
cvsdist a419bb4
 
cvsdist a419bb4
* Wed Oct 22 1997 Erik Troan <ewt@redhat.com>
cvsdist a419bb4
- added extra patches for glibc 2.1
cvsdist a419bb4
cvsdist a419bb4
* Tue Oct 21 1997 Erik Troan <ewt@redhat.com>
cvsdist a419bb4
- included complete set of network protocols (some were removed for
cvsdist a419bb4
  initial glibc work)
cvsdist a419bb4
cvsdist a419bb4
* Wed Sep 03 1997 Erik Troan <ewt@redhat.com>
cvsdist a419bb4
- updated glibc patch for glibc 2.0.5
cvsdist a419bb4
cvsdist a419bb4
* Thu Jun 19 1997 Erik Troan <ewt@redhat.com>
cvsdist a419bb4
- built against glibc
cvsdist a419bb4
- updated to 1.33