Sophie

Sophie

distrib > Mandriva > 10.2 > i586 > by-pkgid > 29da2459b2f9a42cef47672a6eb5514f > files > 10

tcp_wrappers-7.6-25mdk.src.rpm

Name: 		tcp_wrappers
Version: 	7.6
Release: 	25mdk
Group: 		System/Servers	
Summary: 	A security tool which acts as a wrapper for TCP daemons
License: 	BSD
Url:		ftp://ftp.porcupine.org/pub/security/index.html
Source0:        http://ftp.porcupine.org/pub/security/%{name}_%{version}.tar.bz2
Patch0:		tcpw7.2-config.patch.bz2
Patch1:		tcpw7.2-setenv.patch.bz2
Patch2:		tcpw7.6-netgroup.patch.bz2
Patch3:		tcp_wrappers-7.6-bug11881.patch.bz2
Patch4:		tcp_wrappers-7.6-bug17795.patch.bz2
Patch5:		tcp_wrappers-7.6-bug17847.patch.bz2
Patch6:		tcp_wrappers-7.6-fixgethostbyname.patch.bz2
Patch7:		tcp_wrappers-7.6-docu.patch.bz2
Patch9:		tcp_wrappers.usagi-ipv6.patch.bz2
Patch10:	tcp_wrappers.ume-ipv6.patch.bz2
Patch11:	tcp_wrappers-7.6-shared.patch.bz2
Patch12:	tcp_wrappers-7.6-sig.patch.bz2
Patch13:	tcp_wrappers-7.6-strerror.patch.bz2
Patch14:	tcp_wrappers-7.6-ldflags.patch.bz2

BuildRoot: 	%{_tmppath}/%{name}-%{version}-%{release}-buildroot


%description
The tcp_wrappers package provides small daemon programs which can
monitor and filter incoming requests for systat, finger, ftp, telnet,
rlogin, rsh, exec, tftp, talk and other network services.

Install the tcp_wrappers program if you need a security tool for
filtering incoming network services requests.

%package	devel
Summary:	A security library which acts as a wrapper for TCP daemons
Group:		Development/C

%description	devel
Library and header files for the tcp_wrappers program

%prep
%setup -q -n %{name}_%{version}
%patch0 -p1 -b .config
%patch1 -p1 -b .setenv
%patch2 -p1 -b .netgroup
%patch3 -p1 -b .bug11881
%patch4 -p1 -b .bug17795
%patch5 -p1 -b .bug17847
%patch6 -p1 -b .fixgethostbyname
%patch7 -p1 -b .docu
%patch9 -p0 -b .usagi-ipv6
%patch10 -p1 -b .ume-ipv6
%patch11 -p1 -b .shared
%patch12 -p1 -b .sig
%patch13 -p1 -b .strerror
%patch14 -p1 -b .cflags

%build
%make OPTFLAGS="$RPM_OPT_FLAGS -fPIC -DPIC -D_REENTRANT -DHAVE_STRERROR" LDFLAGS="-pie" REAL_DAEMON_DIR=%{_sbindir} linux

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT{%{_includedir},%{_libdir},%{_sbindir},%{_mandir}/man{3,5,8}}

install -m644 hosts_access.3 $RPM_BUILD_ROOT%{_mandir}/man3
install -m644 hosts_access.5 hosts_options.5 $RPM_BUILD_ROOT%{_mandir}/man5
ln hosts_access.5 $RPM_BUILD_ROOT%{_mandir}/man5/hosts.allow.5
ln hosts_access.5 $RPM_BUILD_ROOT%{_mandir}/man5/hosts.deny.5

install -m644 tcpd.8 tcpdchk.8 tcpdmatch.8 $RPM_BUILD_ROOT%{_mandir}/man8
install -m644 libwrap.a $RPM_BUILD_ROOT%{_libdir}
install -m644 tcpd.h $RPM_BUILD_ROOT%{_includedir}
install -s -m755 safe_finger $RPM_BUILD_ROOT%{_sbindir}
install -s -m755 tcpd $RPM_BUILD_ROOT%{_sbindir}
install -s -m755 tcpdchk $RPM_BUILD_ROOT%{_sbindir}
install -s -m755 tcpdmatch $RPM_BUILD_ROOT%{_sbindir}
install -s -m755 try-from $RPM_BUILD_ROOT%{_sbindir}

# (fg) 20000905 FIXME FIXME FIXME: setenv in libwrap.a is rather strange for
# one, so I remove it here - but will it break anything else?
#(peroyvind): do it with a patch in stead now
#ar d $RPM_BUILD_ROOT%{_libdir}/libwrap.a setenv.o

%clean
rm -Rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,755)
%doc BLURB CHANGES README* DISCLAIMER Banners.Makefile
%{_mandir}/man*/*
%{_sbindir}/*

%files devel
%defattr(-,root,root)
%doc DISCLAIMER
%{_includedir}/tcpd.h
%{_libdir}/libwrap.a

%changelog
* Thu Dec 23 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 7.6-25mdk
- sync with fedora
- cosmetics
- fix summary-ended-with-dot

* Thu Jul 22 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 7.6-24mdk
- rebuild

* Mon Jul 21 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 7.6-23mdk
- rebuild
- rm -rf $RPM_BUILD at the beginning of %%install

* Wed Aug 28 2002 Warly <warly@mandrakesoft.com> 7.6-22mdk
- new ipv6 patch version

* Sun Jul  7 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 7.6-21mdk
- Apply Patch2 on all arches to build with PIC code

* Wed Feb 13 2002 Warly <warly@mandrakesoft.com> 7.6-20mdk
- update specfile

* Sat Mar 17 2001 Francis Galiegue <fg@mandrakesoft.com> 7.6-19mdk

- /me sucks, resubmit

* Sat Mar 17 2001 Francis Galiegue <fg@mandrakesoft.com> 7.6-18mdk

- Add -fPIC to CFLAGS for ia64

* Tue Jan 09 2001 Francis Galiegue <fg@mandrakesoft.com> 7.6-17mdk

- No -b for %%patch directives
- Fixed group for -devel package

* Tue Sep 05 2000 Francis Galiegue <fg@mandrakesoft.com> 7.6-16mdk

- Removed setenv.o from libwrap.a

* Fri Jul 28 2000 Francis Galiegue <fg@mandrakesoft.com> 7.6-15mdk

- Spec file fixes
- %files list fixes
- permission fixes
- use links, not symlinks
- include doc in only one package, not both

* Mon Jul 17 2000 Thierry Vignaud <tvignaud@mandrakesoft.com> 7.6-14mdk
- fix %%clean
- Christian Zoffoli <czoffoli@linux-mandrake.com> :
	* fixed permission
	* removed %group
	* removed _sysconfdir 
	* macroszifications
	* new IPv6 patch v1.9

* Fri Jun 23 2000 Pablo Saratxaga <pablo@mandrakesoft.com> 7.6-13mdk
- compiled with IPv6 patch

* Sat Apr 08 2000 John Buswell <johnb@mandrakesoft.com> 7.6-12mdk
- split devel elements into devel package
- removed version number from spec file
- added docs to devel package

* Thu Mar 30 2000 John Buswell <johnb@mandrakesoft.com> 7.6-11mdk
- Fixed groups
- spec-helper

* Sun Nov  7 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- add netgroup support (r).

* Wed May 05 1999 Bernhard Rosenkraenzer <bero@mandrakesoft.com>
- Mandrake adaptions

* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
- auto rebuild in the new build environment (release 7)

* Wed Dec 30 1998 Cristian Gafton <gafton@redhat.com>
- build for glibc 2.1

* Sat Aug 22 1998 Jeff Johnson <jbj@redhat.com>
- close setenv bug (problem #690)
- spec file cleanup

* Thu Jun 25 1998 Alan Cox <alan@redhat.com>
- Erp where did the Dec 05 patch escape to

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

* Fri Dec 05 1997 Erik Troan <ewt@redhat.com>
- don't build setenv.o module -- it just breaks things

* Wed Oct 29 1997 Marc Ewing <marc@redhat.com>
- upgrade to 7.6

* Thu Jul 17 1997 Erik Troan <ewt@redhat.com>
- built against glibc

* Mon Mar 03 1997 Erik Troan <ewt@redhat.com>
- Upgraded to version 7.5
- Uses a build root