Name: tcp_wrappers Version: 7.6 Release: 4mamba Summary: A security tool which acts as a wrapper for TCP daemons Group: System/Servers Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://ftp.porcupine.org/pub/security/ Source: http://ftp.porcupine.org/pub/security/%{name}_%{version}.tar.gz Patch0: %{name}-7.6-conf.patch Patch1: %{name}-7.6-setenv.patch Patch2: %{name}-7.6-security.patch Patch3: %{name}-7.6-strerror.patch Patch4: %{name}-7.6-fixgethostbyname.patch Patch5: %{name}-7.6-ldflags.patch Patch6: %{name}-7.6-sig.patch Patch7: %{name}-7.6-malloc.patch Patch8: %{name}-7.6-shared_lib_plus_plus-1.patch License: Distributable BuildRoot: %{_tmppath}/%{name}-%{version}-root %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 -n libwrap Summary: A security library which acts as a wrapper for TCP daemons Group: System/Libraries %description -n libwrap 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. This package contains the static libraries and header files for the tcp_wrappers program. %package -n libwrap-devel Summary: A security library which acts as a wrapper for TCP daemons Group: Development/Libraries Requires: libwrap = %{version}-%{release} Obsoletes: tcp_wrappers-devel Provides: tcp_wrappers-devel %description -n libwrap-devel 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. This package contains the static libraries and header files for the tcp_wrappers program. %prep %setup -q -n %{name}_%{version} %patch8 -p1 #%patch0 -p1 #%patch1 -p1 %patch2 -p1 #%patch3 -p1 %patch4 -p1 #%patch5 -p1 %patch6 -p1 %patch7 -p1 sed -i "s|/usr/lib/|/usr/%_lib/|g" Makefile %build %if "%{_host}" != "%{_build}" sed -i "s|-lwrap|-lnsl -lwrap|" Makefile %endif %make linux -j1 LDFLAGS="-pie" CC=%{_host}-gcc MY_LIB="-lnsl" %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" sed -i "s|-o root -g root ||" Makefile install -d %{buildroot}%{_sbindir} %{buildroot}%{_libdir} \ %{buildroot}%{_mandir}/man{3,5,8} \ %{buildroot}%{_includedir} \ %makeinstall %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_sbindir}/* %{_mandir}/man8/tcpd.8.gz %{_mandir}/man8/tcpdchk.8.gz %{_mandir}/man8/tcpdmatch.8.gz %{_mandir}/man8/try-from.8.gz %{_mandir}/man8/safe_finger.8.gz %{_mandir}/man8/safe_finger.8.gz %files -n libwrap %defattr(-,root,root) %{_libdir}/libwrap.so.* %{_mandir}/man5/hosts_access.5.gz %{_mandir}/man5/hosts_options.5.gz %doc BLURB CHANGES README* DISCLAIMER Banners.Makefile %files -n libwrap-devel %defattr(-,root,root) %{_includedir}/tcpd.h %{_libdir}/libwrap.a %{_libdir}/libwrap.so %{_mandir}/man3/hosts_access.3.gz %{_mandir}/man3/hosts_ctl.3.gz %{_mandir}/man3/request_init.3.gz %{_mandir}/man3/request_set.3.gz %changelog * Fri Sep 21 2007 Silvan Calarco 7.6-4mamba - added shared_lib_plus_plus patch for dynamic library and build fixes for other packages - use Makefile for install, remove specfile code - created libwrap and libwrap-devel (obsoleting tcp_wrappers-devel) * Mon Jun 26 2006 Davide Madrisan 7.6-3qilnx - specfile fixed * Tue Sep 13 2005 Davide Madrisan 7.6-2qilnx - specfile fixes - misc security fixes - fixed gcc compilation errors * Tue Apr 17 2003 Luca Tinelli 7.6-1qilnx - first build