Blame SPECS/tcp_wrappers.spec

c863fc
Summary: A security tool which acts as a wrapper for TCP daemons
c863fc
Name: tcp_wrappers
c863fc
Version: 7.6
c863fc
Release: 77%{?dist}
c863fc
c863fc
%define LIB_MAJOR 0
c863fc
%define LIB_MINOR 7
c863fc
%define LIB_REL 6
c863fc
c863fc
License: BSD
c863fc
Group: System Environment/Daemons
c863fc
Source: ftp://ftp.porcupine.org/pub/security/%{name}_%{version}-ipv6.4.tar.gz
c863fc
URL: ftp://ftp.porcupine.org/pub/security/index.html
c863fc
Patch0: tcpw7.2-config.patch
c863fc
Patch1: tcpw7.2-setenv.patch
c863fc
Patch2: tcpw7.6-netgroup.patch
c863fc
Patch3: tcp_wrappers-7.6-bug11881.patch
c863fc
Patch4: tcp_wrappers-7.6-bug17795.patch
c863fc
Patch5: tcp_wrappers-7.6-bug17847.patch
c863fc
Patch6: tcp_wrappers-7.6-fixgethostbyname.patch
c863fc
Patch7: tcp_wrappers-7.6-docu.patch
c863fc
Patch8: tcp_wrappers-7.6-man.patch
c863fc
Patch9: tcp_wrappers.usagi-ipv6.patch
c863fc
Patch11: tcp_wrappers-7.6-shared.patch
c863fc
Patch12: tcp_wrappers-7.6-sig.patch
c863fc
Patch14: tcp_wrappers-7.6-ldflags.patch
c863fc
Patch15: tcp_wrappers-7.6-fix_sig-bug141110.patch
c863fc
Patch16: tcp_wrappers-7.6-162412.patch
c863fc
Patch17: tcp_wrappers-7.6-220015.patch
c863fc
Patch19: tcp_wrappers-7.6-siglongjmp.patch
c863fc
Patch20: tcp_wrappers-7.6-sigchld.patch
c863fc
Patch21: tcp_wrappers-7.6-196326.patch
c863fc
Patch22: tcp_wrappers_7.6-249430.patch
c863fc
Patch23: tcp_wrappers-7.6-inetdconf.patch
c863fc
Patch24: tcp_wrappers-7.6-bug698464.patch
c863fc
Patch25: tcp_wrappers-7.6-relro.patch
c863fc
Patch26: tcp_wrappers-7.6-xgets.patch
c863fc
Patch27: tcp_wrappers-7.6-initgroups.patch
c863fc
Patch28: tcp_wrappers-7.6-warnings.patch
c863fc
Patch29: tcp_wrappers-7.6-uchart_fix.patch
c863fc
Patch30: tcp_wrappers-7.6-altformat.patch
c863fc
# required by sin_scope_id in ipv6 patch
c863fc
BuildRequires: glibc-devel >= 2.2
c863fc
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
c863fc
Requires: tcp_wrappers-libs = %{version}-%{release}
c863fc
c863fc
%description
c863fc
The tcp_wrappers package provides small daemon programs which can
c863fc
monitor and filter incoming requests for systat, finger, FTP, telnet,
c863fc
rlogin, rsh, exec, tftp, talk and other network services.
c863fc
c863fc
Install the tcp_wrappers program if you need a security tool for
c863fc
filtering incoming network services requests.
c863fc
c863fc
This version also supports IPv6.
c863fc
c863fc
%package libs
c863fc
Summary: Libraries for tcp_wrappers
c863fc
Group: System Environment/Libraries
c863fc
c863fc
%description libs
c863fc
tcp_wrappers-libs contains the libraries of the tcp_wrappers package.
c863fc
c863fc
%package devel
c863fc
Summary: Development libraries and headers for tcp_wrappers
c863fc
Group: Development/Libraries
c863fc
Requires: tcp_wrappers-libs = %{version}-%{release}
c863fc
c863fc
%description devel
c863fc
tcp_wrappers-devel contains the libraries and header files needed to
c863fc
develop applications with tcp_wrappers support.
c863fc
c863fc
%prep
c863fc
%setup -q -n %{name}_%{version}-ipv6.4
c863fc
%patch0 -p1 -b .config
c863fc
%patch1 -p1 -b .setenv
c863fc
%patch2 -p1 -b .netgroup
c863fc
%patch3 -p1 -b .bug11881
c863fc
%patch4 -p1 -b .bug17795
c863fc
%patch5 -p1 -b .bug17847
c863fc
%patch6 -p1 -b .fixgethostbyname
c863fc
%patch7 -p1 -b .docu
c863fc
%patch8 -p1 -b .man
c863fc
%patch9 -p1 -b .usagi-ipv6
c863fc
%patch11 -p1 -b .shared
c863fc
%patch12 -p1 -b .sig
c863fc
%patch14 -p1 -b .cflags
c863fc
%patch15 -p1 -b .fix_sig
c863fc
%patch16 -p1 -b .162412
c863fc
%patch17 -p1 -b .220015
c863fc
%patch19 -p1 -b .siglongjmp
c863fc
%patch20 -p1 -b .sigchld
c863fc
%patch21 -p1 -b .196326
c863fc
%patch22 -p1 -b .249430
c863fc
%patch23 -p1 -b .inetdconf
c863fc
%patch24 -p1 -b .698464
c863fc
%patch25 -p1 -b .relro
c863fc
%patch26 -p1 -b .xgets
c863fc
%patch27 -p1 -b .initgroups
c863fc
%patch29 -p1 -b .uchart_fix
c863fc
%patch30 -p1 -b .altformat
c863fc
%patch28 -p1 -b .warnings
c863fc
c863fc
%build
c863fc
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fPIC -DPIC -D_REENTRANT -DHAVE_STRERROR" LDFLAGS="-pie -z relro -z now" MAJOR=%{LIB_MAJOR} MINOR=%{LIB_MINOR} REL=%{LIB_REL} linux
c863fc
c863fc
c863fc
%install
c863fc
rm -rf ${RPM_BUILD_ROOT}
c863fc
mkdir -p ${RPM_BUILD_ROOT}%{_includedir}
c863fc
mkdir -p ${RPM_BUILD_ROOT}/%{_libdir}
c863fc
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man{3,5,8}
c863fc
mkdir -p ${RPM_BUILD_ROOT}%{_sbindir}
c863fc
c863fc
install -p -m644 hosts_access.3 ${RPM_BUILD_ROOT}%{_mandir}/man3
c863fc
install -p -m644 hosts_access.5 hosts_options.5 ${RPM_BUILD_ROOT}%{_mandir}/man5
c863fc
install -p -m644 tcpd.8 tcpdchk.8 tcpdmatch.8 safe_finger.8 try-from.8 ${RPM_BUILD_ROOT}%{_mandir}/man8
c863fc
ln -sf hosts_access.5 ${RPM_BUILD_ROOT}%{_mandir}/man5/hosts.allow.5
c863fc
ln -sf hosts_access.5 ${RPM_BUILD_ROOT}%{_mandir}/man5/hosts.deny.5
c863fc
#cp -a libwrap.a ${RPM_BUILD_ROOT}%{_libdirdir}
c863fc
cp -a libwrap.so* ${RPM_BUILD_ROOT}/%{_libdir}
c863fc
#install -p -m644 libwrap.so.0.7.6 ${RPM_BUILD_ROOT}/%{_libdir}
c863fc
install -p -m644 tcpd.h ${RPM_BUILD_ROOT}%{_includedir}
c863fc
install -m755 safe_finger ${RPM_BUILD_ROOT}%{_sbindir}
c863fc
install -m755 tcpd ${RPM_BUILD_ROOT}%{_sbindir}
c863fc
install -m755 try-from ${RPM_BUILD_ROOT}%{_sbindir}
c863fc
install -m755 tcpdmatch ${RPM_BUILD_ROOT}%{_sbindir}
c863fc
c863fc
# XXX remove utilities that expect /etc/inetd.conf (#16059).
c863fc
#install -m755 tcpdchk ${RPM_BUILD_ROOT}%{_sbindir}
c863fc
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man8/tcpdchk.*
c863fc
c863fc
%post libs -p /sbin/ldconfig
c863fc
c863fc
%postun libs -p /sbin/ldconfig
c863fc
c863fc
%clean
c863fc
rm -rf ${RPM_BUILD_ROOT}
c863fc
c863fc
%files
c863fc
%defattr(-,root,root,-)
c863fc
%doc BLURB CHANGES README* DISCLAIMER Banners.Makefile
c863fc
%{_sbindir}/*
c863fc
%{_mandir}/man8/*
c863fc
c863fc
%files libs
c863fc
%defattr(-,root,root,-)
c863fc
%doc BLURB CHANGES README* DISCLAIMER Banners.Makefile
c863fc
%{_libdir}/*.so.*
c863fc
%{_mandir}/man5/*
c863fc
c863fc
%files devel
c863fc
%defattr(-,root,root,-)
c863fc
%{_includedir}/*
c863fc
#%{_libdirdir}/*.a
c863fc
%{_libdir}/*.so
c863fc
%{_mandir}/man3/*
c863fc
c863fc
%changelog
c863fc
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 7.6-77
c863fc
- Mass rebuild 2014-01-24
c863fc
c863fc
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 7.6-76
c863fc
- Mass rebuild 2013-12-27
c863fc
c863fc
* Fri Aug 16 2013 Petr Lautrbach <plautrba@redhat.com> 7.6-75
c863fc
- cleanup several warnings and fix compiler inet_ntop issue (#977995)
c863fc
c863fc
* Tue Jul 09 2013 Petr Lautrbach <plautrba@redhat.com> 7.6-74
c863fc
- fix the tcp_wrappers-7.6-altformat.patch (#979009,#981788)
c863fc
c863fc
* Fri Feb  8 2013 Viktor Hercinger <vhercing@redhat.com> - 7.6-73
c863fc
- Add full relro support
c863fc
c863fc
* Fri Feb  8 2013 Viktor Hercinger <vhercing@redhat.com> - 7.6-72
c863fc
- Put binaries and libraries under /usr instead of root
c863fc
c863fc
* Mon Jan 28 2013 Viktor Hercinger <vhercing@redhat.com> - 7.6-71
c863fc
- Updated to version with upstream IPv6 support
c863fc
c863fc
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.6-70
c863fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c863fc
c863fc
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.6-69
c863fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c863fc
c863fc
* Tue Aug 16 2011 Jan F. Chadima <jchadima@redhat.com> - 7.6-68
c863fc
- remove most of warnings
c863fc
c863fc
* Mon Aug 15 2011 Jan F. Chadima <jchadima@redhat.com> - 7.6-67
c863fc
- clean (set up correctly) additional groups
c863fc
c863fc
* Mon Aug 15 2011 Jan F. Chadima <jchadima@redhat.com> - 7.6-66
c863fc
- repair possible DOS in xgets
c863fc
c863fc
* Wed Aug 10 2011 Jan F. Chadima <jchadima@redhat.com> - 7.6-65
c863fc
- Add partial relro support for libraries
c863fc
c863fc
* Tue May 24 2011 Jan F. Chadima <jchadima@redhat.com> - 7.6-64
c863fc
- Improve the support for IPv4 /prefix notation (#698464)
c863fc
c863fc
* Wed May  4 2011 Jan F. Chadima <jchadima@redhat.com> - 7.6-61
c863fc
- Add support for IPv4 /prefix notation (#698464)
c863fc
c863fc
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.6-60
c863fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c863fc
c863fc
* Wed Jun 16 2010 Jan F. Chadima <jchadima@redhat.com> - 7.6-59
c863fc
- Add modified tcpdmatch (#604011)
c863fc
c863fc
* Fri Feb  5 2010 Jan F. Chadima <jchadima@redhat.com> - 7.6-58
c863fc
- Add manual pages for safe_finger and try-from (#526190)
c863fc
c863fc
* Wed Jan  6 2010 Jan F. Chadima <jchadima@redhat.com> - 7.6-57
c863fc
- Merge review (#226482)
c863fc
c863fc
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.6-56
c863fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
c863fc
c863fc
* Tue Apr 14 2009 Jan F. Chadima <jchadima@redhat.com> - 7.6-55
c863fc
- resolving addr when name == "" (repair of patch #220015)
c863fc
c863fc
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.6-54
c863fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
c863fc
c863fc
* Fri Aug 29 2008 Jan Safranek <jsafranek@redhat.com> - 7.6-53
c863fc
- rediff all patches to get rid of patch fuzz
c863fc
c863fc
* Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 7.6-52
c863fc
- Autorebuild for GCC 4.3
c863fc
c863fc
* Tue Oct 16 2007 Tomas Janousek <tjanouse@redhat.com> - 7.6-51
c863fc
- review changes
c863fc
c863fc
* Fri Aug 24 2007 Tomas Janousek <tjanouse@redhat.com> - 7.6-50
c863fc
- license tag update (and rebuild for BuildID, etc.)
c863fc
- include docs in the -libs subpackage, as it is the only one installed on most
c863fc
  systems (and to comply with the license text)
c863fc
c863fc
* Wed Jul 25 2007 Tomas Janousek <tjanouse@redhat.com> - 7.6-49
c863fc
- fix for a.b.c.d/255.255.255.255 - fixes #249430
c863fc
c863fc
* Thu Jun 28 2007 Tomas Janousek <tjanouse@redhat.com> - 7.6-48
c863fc
- dropped the hostname resolving patch
c863fc
- resolve the address given to hosts_ctl to hostname, if hostname not given
c863fc
- compare localhost and localhost.localdomain as the same
c863fc
- fixed a few compile warnings
c863fc
c863fc
* Wed Jun 06 2007 Tomas Janousek <tjanouse@redhat.com> - 7.6-47
c863fc
- fix the hostname resolving patch for x86_64
c863fc
c863fc
* Mon May 28 2007 Tomas Janousek <tjanouse@redhat.com> - 7.6-46
c863fc
- modified the fix for #112975 to fix #156373 as well
c863fc
c863fc
* Fri May 25 2007 Tomas Janousek <tjanouse@redhat.com> - 7.6-45
c863fc
- unblock and catch SIGCHLD from spawned shell commands, fixes #112975
c863fc
c863fc
* Mon Apr 16 2007 Tomas Janousek <tjanouse@redhat.com> - 7.6-44
c863fc
- added restore_sigalarm and siglongjmp patches from Debian, fixes #205129
c863fc
c863fc
* Fri Mar 09 2007 Tomas Janousek <tjanouse@redhat.com> - 7.6-43
c863fc
- resolve hostnames in hosts.{allow,deny}, should fix a bunch of issues with
c863fc
  IPv4/6
c863fc
c863fc
* Thu Mar 08 2007 Tomas Janousek <tjanouse@redhat.com> - 7.6-42.1
c863fc
- moved libwrap.so* to /lib
c863fc
- removed the static library libwrap.a
c863fc
c863fc
* Mon Mar 05 2007 Tomas Janousek <tjanouse@redhat.com> - 7.6-42
c863fc
- added Obsoletes field so that the upgrade goes cleanly
c863fc
- added dist tag
c863fc
c863fc
* Mon Dec  4 2006 Thomas Woerner <twoerner@redhat.com> 7.6-41
c863fc
- moved devel libraries, headers and man pages into devel sub package (#193188)
c863fc
- new libs sub package for libraries
c863fc
- using BuildRequires instead of BuildPreReq
c863fc
c863fc
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 7.6-40.2.1
c863fc
- rebuild
c863fc
c863fc
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 7.6-40.2
c863fc
- bump again for double-long bug on ppc(64)
c863fc
c863fc
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 7.6-40.1
c863fc
- rebuilt for new gcc4.1 snapshot and glibc changes
c863fc
c863fc
* Tue Jan 24 2006 Thomas Woerner <twoerner@redhat.com> 7.6-40
c863fc
- fixed uninitialized fp in function inet_cfg (#162412)
c863fc
c863fc
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
c863fc
- rebuilt
c863fc
c863fc
* Fri May  6 2005 Thomas Woerner <twoerner@redhat.com> 7.6-39
c863fc
- fixed sig patch (#141110). Thanks to Nikita Shulga for the patch
c863fc
c863fc
* Wed Feb  9 2005 Thomas Woerner <twoerner@redhat.com> 7.6-38
c863fc
- rebuild
c863fc
c863fc
* Thu Oct  7 2004 Thomas Woerner <twoerner@redhat.com> 7.6-37.2
c863fc
- new URL and spec file cleanup, patch from Robert Scheck
c863fc
c863fc
* Mon Oct  4 2004 Thomas Woerner <twoerner@redhat.com> 7.6-37.1
c863fc
- rebuilt
c863fc
c863fc
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
c863fc
- rebuilt
c863fc
c863fc
* Fri Mar  5 2004 Thomas Woerner <twoerner@redhat.com> 7.6-36
c863fc
- pied tcpd
c863fc
c863fc
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
c863fc
- rebuilt
c863fc
c863fc
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
c863fc
- rebuilt
c863fc
c863fc
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
c863fc
- rebuilt
c863fc
c863fc
* Sun Feb 16 2003 Florian La Roche <Florian.LaRoche@redhat.de>
c863fc
- use strerror  #84312
c863fc
c863fc
* Tue Feb 11 2003 Harald Hoyer <harald@redhat.de> 7.6-33
c863fc
- revert Nalins weak version
c863fc
- link libwrap.so against libnsl, on which it depends
c863fc
c863fc
* Mon Feb 10 2003 Nalin Dahyabhai <nalin@redhat.com> 7.6-32
c863fc
- link libwrap.so against libnsl, on which it depends
c863fc
- add default (weak) versions of allow_severity and deny_severity to the shared
c863fc
  library so that configure tests can find it correctly
c863fc
c863fc
* Mon Feb 10 2003 Harald Hoyer <harald@redhat.de> 7.6-29
c863fc
- shared library generated and added #75494
c863fc
- added security patch tcp_wrappers-7.6-sig.patch
c863fc
- compile and link with -fPIC -DPIC
c863fc
c863fc
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
c863fc
- rebuilt
c863fc
c863fc
* Tue Jan  7 2003 Jeff Johnson <jbj@redhat.com> 7.6-25
c863fc
- don't include -debuginfo files in package.
c863fc
c863fc
* Tue Nov 19 2002 Tim Powers <timp@redhat.com>
c863fc
- rebuild on all arches
c863fc
c863fc
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
c863fc
- automated rebuild
c863fc
c863fc
* Tue Jun 11 2002 Florian La Roche <Florian.LaRoche@redhat.de>
c863fc
- fix #61192
c863fc
- added Patch8 to fix #17847
c863fc
- update IPv6 patch
c863fc
c863fc
* Thu May 23 2002 Tim Powers <timp@redhat.com>
c863fc
- automated rebuild
c863fc
c863fc
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
c863fc
- automated rebuild
c863fc
c863fc
* Sun Mar 11 2001 Pekka Savola <pekkas@netcore.fi>
c863fc
- Add IPv6 patch from USAGI, enable it.
c863fc
c863fc
* Mon Feb  5 2001 Preston Brown <pbrown@redhat.com>
c863fc
- fix gethostbyname to work better with dot "." notation (#16949)
c863fc
c863fc
* Sat Dec 30 2000 Jeff Johnson <jbj@redhat.com>
c863fc
- permit hosts.{allow,deny} to be assembled from included components (#17795).
c863fc
- permit '*' and '?' wildcard matches on hostnames (#17847).
c863fc
c863fc
* Sun Nov 19 2000 Bill Nottingham <notting@redhat.com>
c863fc
- ia64 needs -fPIC too
c863fc
c863fc
* Mon Aug 14 2000 Jeff Johnson <jbj@redhat.com>
c863fc
- remove utilities that expect /etc/inetd.conf (#16059).
c863fc
c863fc
* Thu Jul 27 2000 Jeff Johnson <jbj@redhat.com>
c863fc
- security hardening (#11881).
c863fc
c863fc
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
c863fc
- automatic rebuild
c863fc
c863fc
* Tue Jun  6 2000 Jeff Johnson <jbj@redhat.com>
c863fc
- FHS packaging.
c863fc
c863fc
* Tue May 16 2000 Chris Evans <chris@ferret.lmh.ox.ac.uk>
c863fc
- Make tcpd mode -rwx--x--x as a security hardening measure
c863fc
c863fc
* Mon Feb  7 2000 Jeff Johnson <jbj@redhat.com>
c863fc
- compress man pages.
c863fc
c863fc
* Mon Aug 23 1999 Jeff Johnson <jbj@redhat.com>
c863fc
- add netgroup support (#3940).
c863fc
c863fc
* Wed May 26 1999 Jeff Johnson <jbj@redhat.com>
c863fc
- compile on sparc with -fPIC.
c863fc
c863fc
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
c863fc
- auto rebuild in the new build environment (release 7)
c863fc
c863fc
* Wed Dec 30 1998 Cristian Gafton <gafton@redhat.com>
c863fc
- build for glibc 2.1
c863fc
c863fc
* Sat Aug 22 1998 Jeff Johnson <jbj@redhat.com>
c863fc
- close setenv bug (problem #690)
c863fc
- spec file cleanup
c863fc
c863fc
* Thu Jun 25 1998 Alan Cox <alan@redhat.com>
c863fc
- Erp where did the Dec 05 patch escape to
c863fc
c863fc
* Thu May 07 1998 Prospector System <bugs@redhat.com>
c863fc
- translations modified for de, fr, tr
c863fc
c863fc
* Fri Dec 05 1997 Erik Troan <ewt@redhat.com>
c863fc
- don't build setenv.o module -- it just breaks things
c863fc
c863fc
* Wed Oct 29 1997 Marc Ewing <marc@redhat.com>
c863fc
- upgrade to 7.6
c863fc
c863fc
* Thu Jul 17 1997 Erik Troan <ewt@redhat.com>
c863fc
- built against glibc
c863fc
c863fc
* Mon Mar 03 1997 Erik Troan <ewt@redhat.com>
c863fc
- Upgraded to version 7.5
c863fc
- Uses a build root