Sophie

Sophie

distrib > Mandriva > cs4.0 > i586 > by-pkgid > 4ee985d16509349f2ae3d9276da63bd4 > files > 46

net-tools-1.60-13mdk.src.rpm

%define	npversion 1.2.9

Summary:	The basic tools for setting up networking
Name:		net-tools
Version:	1.60
Release:	13mdk
License:	GPL
Group:		System/Configuration/Networking
URL:		http://www.tazenda.demon.co.uk/phil/net-tools/
Source0:	http://www.tazenda.demon.co.uk/phil/net-tools/net-tools-%{version}.tar.bz2
Source1:	netplug-%{npversion}.tar.bz2
Source2:	net-tools-%{version}-config.h.bz2
Source3:	net-tools-%{version}-config.make.bz2
Source4:	ether-wake.c.bz2
Source5:	ether-wake.8.bz2
Source6:	mii-diag.c.bz2
Source7:	mii-diag.8.bz2
Patch0:		net-tools-1.60-netplug_def_runlevel.diff.bz2
Patch1:		net-tools-1.57-bug22040.patch.bz2
Patch2:		net-tools-1.60-miiioctl.patch.bz2
Patch3:		net-tools-1.60-manydevs.patch.bz2
Patch4:		net-tools-1.60-virtualname.patch.bz2
Patch5:		net-tools-1.60-cycle.patch.bz2
Patch6:		net-tools-1.60-nameif.patch.bz2
Patch7:		net-tools-1.60-ipx.patch.bz2
Patch8:		net-tools-1.60-inet6-lookup.patch.bz2
Patch9:		net-tools-1.60-man.patch.bz2
Patch10:	net-tools-1.60-gcc33.patch.bz2
Patch11:	net-tools-1.60-trailingblank.patch.bz2
Patch12:	net-tools-1.60-interface.patch.bz2
Patch13:	net-tools-1.60-x25.patch.bz2
Patch14:	net-tools-1.60-gcc34.patch.bz2
Patch15:	net-tools-1.60-overflow.patch.bz2
Patch19:	net-tools-1.60-siunits.patch.bz2
Patch20:	net-tools-1.60-trunc.patch.bz2
Patch21:	net-tools-1.60-return.patch.bz2
Patch22:	net-tools-1.60-parse.patch.bz2
Patch23:	net-tools-1.60-netmask.patch.bz2
Patch24:	net-tools-1.60-ulong.patch.bz2
Patch25:	net-tools-1.60-bcast.patch.bz2
Patch26:	net-tools-1.60-mii-tool-obsolete.patch.bz2
Patch27:	net-tools-1.60-netstat_ulong.patch.bz2
Patch28:	net-tools-1.60-note.patch.bz2
Patch29:	net-tools-1.60-num-ports.patch.bz2
Patch30:	net-tools-1.60-duplicate-tcp.patch.bz2
Patch31:	net-tools-1.60-statalias.patch.bz2
Patch32:	net-tools-1.60-isofix.patch.bz2
Patch33:	net-tools-1.60-bitkeeper.patch.bz2
Patch34:	net-tools-1.60-ifconfig_ib.patch.bz2
Patch35:	net-tools-1.60-de.patch.bz2
Patch36:	netplug-1.2.9-execshield.patch.bz2
Patch37:	net-tools-1.60-pie.patch.bz2
Patch38:	net-tools-1.60-ifaceopt.patch.bz2
Patch39:	net-tools-1.60-trim_iface.patch.bz2
Patch40:	net-tools-1.60-stdo.patch.bz2
Patch41:	net-tools-1.60-statistics.patch.bz2
BuildRequires:	gettext
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
The net-tools package contains the basic tools needed for setting up
networking:  ifconfig, netstat, route and others.

%prep

%setup -q -a1
%patch0 -p0 -b .netplug_def_runlevel
%patch1 -p1 -b .bug22040
%patch2 -p1 -b .miiioctl
%patch3 -p0 -b .manydevs
%patch4 -p1 -b .virtualname
%patch5 -p1 -b .cycle
%patch6 -p1 -b .nameif
%patch7 -p1 -b .ipx
%patch8 -p1 -b .inet6-lookup
%patch9 -p1 -b .man
%patch10 -p1 -b .gcc33
%patch11 -p1 -b .trailingblank
%patch12 -p1 -b .interface
%patch13 -p1 -b .x25
%patch14 -p1 -b .gcc34
%patch15 -p1 -b .overflow
%patch19 -p1 -b .siunits
%patch20 -p1 -b .trunc
%patch21 -p1 -b .return
%patch22 -p1 -b .parse
%patch23 -p1 -b .netmask
%patch24 -p1 -b .ulong
%patch25 -p1 -b .bcast
%patch26 -p1 -b .obsolete
%patch27 -p1 -b .netstat_ulong
%patch28 -p1 -b .note
%patch29 -p1 -b .num-ports
%patch30 -p1 -b .dup-tcp
%patch31 -p1 -b .statalias
%patch32 -p1 -b .isofix
%patch33 -p1 -b .bitkeeper
%patch34 -p1 -b .ifconfig_ib
%patch35 -p1 
%patch36 -p1 -b .execshield
%patch37 -p1 -b .pie
%patch38 -p1 -b .ifaceopt
%patch39 -p1 -b .trim-iface
%patch40 -p1 -b .stdo
%patch41 -p1 -b .statistics

bzcat %{SOURCE2} > ./config.h
bzcat %{SOURCE3} > ./config.make
bzcat %{SOURCE4} > ./ether-wake.c
bzcat %{SOURCE5} > ./man/en_US/ether-wake.8
bzcat %{SOURCE6} > ./mii-diag.c
bzcat %{SOURCE7} > ./man/en_US/mii-diag.8

%ifarch alpha
perl -pi -e "s|-O2||" Makefile
%endif

%build
export CFLAGS="%{optflags} $CFLAGS"

%make
gcc %{optflags} -o ether-wake ether-wake.c
gcc %{optflags} -o mii-diag mii-diag.c
pushd netplug-%{npversion}
%make
popd

#man pages conversion
#french 
iconv -f iso-8859-1 -t utf-8 -o arp.tmp man/fr_FR/arp.8 && mv arp.tmp man/fr_FR/arp.8
iconv -f iso-8859-1 -t utf-8 -o ethers.tmp man/fr_FR/ethers.5 && mv ethers.tmp man/fr_FR/ethers.5
iconv -f iso-8859-1 -t utf-8 -o hostname.tmp man/fr_FR/hostname.1 && mv hostname.tmp man/fr_FR/hostname.1
iconv -f iso-8859-1 -t utf-8 -o ifconfig.tmp man/fr_FR/ifconfig.8 && mv ifconfig.tmp man/fr_FR/ifconfig.8
iconv -f iso-8859-1 -t utf-8 -o netstat.tmp man/fr_FR/netstat.8 && mv netstat.tmp man/fr_FR/netstat.8
iconv -f iso-8859-1 -t utf-8 -o plipconfig.tmp man/fr_FR/plipconfig.8 && mv plipconfig.tmp man/fr_FR/plipconfig.8
iconv -f iso-8859-1 -t utf-8 -o route.tmp man/fr_FR/route.8 && mv route.tmp man/fr_FR/route.8
iconv -f iso-8859-1 -t utf-8 -o slattach.tmp man/fr_FR/slattach.8 && mv slattach.tmp man/fr_FR/slattach.8
#portugal
iconv -f iso-8859-1 -t utf-8 -o arp.tmp man/pt_BR/arp.8 && mv arp.tmp man/pt_BR/arp.8
iconv -f iso-8859-1 -t utf-8 -o hostname.tmp man/pt_BR/hostname.1 && mv hostname.tmp man/pt_BR/hostname.1
iconv -f iso-8859-1 -t utf-8 -o ifconfig.tmp man/pt_BR/ifconfig.8 && mv ifconfig.tmp man/pt_BR/ifconfig.8
iconv -f iso-8859-1 -t utf-8 -o netstat.tmp man/pt_BR/netstat.8 && mv netstat.tmp man/pt_BR/netstat.8
iconv -f iso-8859-1 -t utf-8 -o route.tmp man/pt_BR/route.8 && mv route.tmp man/pt_BR/route.8
#german
iconv -f iso-8859-1 -t utf-8 -o arp.tmp man/de_DE/arp.8 && mv arp.tmp man/de_DE/arp.8
iconv -f iso-8859-1 -t utf-8 -o ethers.tmp man/de_DE/ethers.5 && mv ethers.tmp man/de_DE/ethers.5
iconv -f iso-8859-1 -t utf-8 -o hostname.tmp man/de_DE/hostname.1 && mv hostname.tmp man/de_DE/hostname.1
iconv -f iso-8859-1 -t utf-8 -o ifconfig.tmp man/de_DE/ifconfig.8 && mv ifconfig.tmp man/de_DE/ifconfig.8
iconv -f iso-8859-1 -t utf-8 -o netstat.tmp man/de_DE/netstat.8 && mv netstat.tmp man/de_DE/netstat.8
iconv -f iso-8859-1 -t utf-8 -o plipconfig.tmp man/de_DE/plipconfig.8 && mv plipconfig.tmp man/de_DE/plipconfig.8
iconv -f iso-8859-1 -t utf-8 -o route.tmp man/de_DE/route.8 && mv route.tmp man/de_DE/route.8
iconv -f iso-8859-1 -t utf-8 -o slattach.tmp man/de_DE/slattach.8 && mv slattach.tmp man/de_DE/slattach.8

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

mv man/de_DE man/de
mv man/fr_FR man/fr
mv man/pt_BR man/pt

make BASEDIR=%{buildroot} mandir=%{_mandir} install

install -m 755 ether-wake %{buildroot}/sbin
install -m 755 mii-diag %{buildroot}/sbin

pushd netplug-%{npversion}
make install prefix=%{buildroot} \
        initdir=%{buildroot}%{_initrddir} \
        mandir=%{buildroot}%{_mandir}
mv README README.netplugd
mv TODO TODO.netplugd
popd

rm %{buildroot}/sbin/rarp
rm %{buildroot}%{_mandir}/man8/rarp.8*
rm %{buildroot}%{_mandir}/*/man8/rarp.8*

%find_lang %{name}

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files -f %{name}.lang
%defattr(-,root,root)
%doc netplug-%{npversion}/TODO.netplugd netplug-%{npversion}/README.netplugd COPYING
%doc README README.ipv6 TODO INSTALLING ABOUT-NLS
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/netplug/netplugd.conf
%dir %{_sysconfdir}/netplug.d
%attr(0755,root,root) %{_sysconfdir}/netplug.d/*
%attr(0755,root,root) %{_initrddir}/netplugd
/bin/*
/sbin/*
%{_mandir}/man[158]/*
%lang(de) %{_mandir}/de/man[158]/*
%lang(fr) %{_mandir}/fr/man[158]/*
%lang(pt) %{_mandir}/pt/man[158]/*

%changelog
* Sun Jul 24 2005 Olivier Blin <oblin@mandriva.com> 1.60-13mdk
- remove translated rarp man pages (obsolete, #12238)

* Mon Jun 20 2005 Oden Eriksson <oeriksson@mandriva.com> 1.60-12mdk
- sync with fedora (1.60-54)
- added P0 (netplug_def_runlevel)
- misc rpmlint fixes

* Tue Jun 08 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 1.60-11mdk
- fix gcc-3.4 build (P15)
- fix non-conffile-in-etc
- spec cosmetics

* Mon Mar 15 2004 Florin <florin@mandrakesoft.com> 1.60-10mdk
- merge with RH
- add the x25 patch (gb)

* Wed Jul 23 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 1.60-9mdk
- fix gcc-3.3 patch (P5)

* Sat Jul 19 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 1.60-8mdk
- fix gcc-3.3 build (P5), updated S5
- fix invalid locales (s/fr_FR/fr/ & s/de_DE/de/)
- fix url

* Thu Apr 17 2003 Erwan Velu <erwan@mandrakesoft.com> 1.60-7mdk
- New version of ether-wake (1.06)
* Tue Feb 18 2003 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.60-6mdk
- Rebuild

* Wed Aug 21 2002 Frederic Lepied <flepied@mandrakesoft.com> 1.60-5mdk
- merged with rh

* Tue Aug 13 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.60-4mdk
- Automated rebuild with gcc 3.2-0.3mdk

* Sun Jun  2 2002 Stefan van der Eijk <stefan@eijk.nu> 1.60-3mdk
- BuildRequires
- Copyright --> License

* Thu Jun 21 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.60-2mdk
- Add ether-wake from donald-becker.
- Clean up specs.
- Fix man-pages.

* Mon Apr 16 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 1.60-1mdk
- Version 1.60 on Easter Monday.

* Fri Feb 23 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.59-1mdk
- 1.59.

* Thu Feb 22 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.58-4mdk
- Add ipvs patch.

* Fri Feb 16 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.58-3mdk
- Fix ifconfig: don't close a socket that we are going to use.

* Thu Feb 15 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 1.58-2mdk
- Really put in the i18n man-pages.

* Sun Feb 11 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 1.58-1mdk
- New and shiny source.
- Dump the fhs patch, as things get intalled in the correct location now.
- Put the i18n man-pages in the location where they should belong.

* Wed Nov  8 2000 Jeff Garzik <jgarzik@mandrakesoft.com> 1.57-5mdk
- Enable all protocol options.
- Build and install mii-tool.
- Really handle RPM_OPT_FLAGS.
- Add documentation.
- Update description.

* Thu Aug  3 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.57-4mdk
- Clean-up.

* Fri Jul 21 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.57-3mdk
- More macros.
- Readd man pages :-(

* Thu Jul 20 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.57-2mdk
- BM.

* Fri Jun 16 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.57-1mdk
- 1.57.
- Use mandir macros for FHS compatibilty.

* Tue Apr  4 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.55-1mdk
- 1.55.

* Fri Mar 31 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.54-1mdk
- Spec-helper clean-up.
- Merge with rh-patchs.
- use find_lang macros for locales.
- Adjust groups.

* Mon Oct 25 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- %lang in man/-locale.
- big spec cleanup.

* Sun Aug 29 1999 Bernhard Rosenkraenzer <bero@linux-mandrake.com>
- 1.53:	- fixes several buffer overruns
	- adds german man pages
	- adds french ethers.5 translation
	- adds estonian
- fix up .spec

* Mon Jul 12 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- Build release (8mdk).

* Sat Jul 10 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
- moved french manpages from fr_FR to fr
- compressed all man pages
- added french, spanish and wallon descriptions

* Fri Jun 25 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- Fix potentional bufer overruns.
- patch to recognize ESP and GRE protocols for VPN masquerade
  <jhardin@wolfenet.com>.

* Wed Apr 28 1999 Bernhard Rosenkraenzer <bero@linux-mandrake.com>
- Update to 1.52

* Tue Apr 13 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- Add patch from RedHat6.0.
- Update to 1.51.

* Sat Apr 10 1999 Bernhard Rosenkraenzer <bero@linux-mandrake.com>
- Mandrake adaptions
- bzip2 man/info pages
- add de locale
- handle RPM_OPT_FLAGS

* Tue Feb  2 1999 Jeff Johnson <jbj@redhat.com>
- update to 1.50.
- added slattach/plipconfig/ipmaddr/iptunnel commands.
- enabled translated man pages.

* Tue Dec 15 1998 Jakub Jelinek <jj@ultra.linux.cz>
- update to 1.49.

* Sat Dec  5 1998 Jeff Johnson <jbj@redhat.com>
- update to 1.48.

* Thu Nov 12 1998 Jeff Johnson <jbj@redhat.com>
- update to 1.47.

* Wed Sep  2 1998 Jeff Johnson <jbj@redhat.com>
- update to 1.46

* Thu Jul  9 1998 Jeff Johnson <jbj@redhat.com>
- build root
- include ethers.5

* Thu Jun 11 1998 Aron Griffis <agriffis@coat.com>
- upgraded to 1.45
- patched hostname.c to initialize buffer
- patched ax25.c to use kernel headers

* Fri May 01 1998 Prospector System <bugs@redhat.com>
- translations modified for de, fr, tr

* Fri Feb 27 1998 Jason Spangler <jasons@usemail.com>
- added config patch

* Fri Feb 27 1998 Jason Spangler <jasons@usemail.com>
- changed to net-tools 1.432
- removed old glibc 2.1 patch
 
* Wed Oct 22 1997 Erik Troan <ewt@redhat.com>
- added extra patches for glibc 2.1

* Tue Oct 21 1997 Erik Troan <ewt@redhat.com>
- included complete set of network protocols (some were removed for
  initial glibc work)

* Wed Sep 03 1997 Erik Troan <ewt@redhat.com>
- updated glibc patch for glibc 2.0.5

* Thu Jun 19 1997 Erik Troan <ewt@redhat.com>
- built against glibc
- updated to 1.33