2024-01-05 18:21:34 +01:00
|
|
|
%define majver %(echo %version | cut -d. -f1-2)
|
|
|
|
%define patchver %(echo %version | cut -d. -f3)
|
2024-01-05 18:21:34 +01:00
|
|
|
Name: tcp_wrappers
|
2024-01-05 18:21:34 +01:00
|
|
|
Version: 7.6.31
|
2024-01-05 18:21:34 +01:00
|
|
|
Release: 2mamba
|
2024-01-05 18:21:34 +01:00
|
|
|
Summary: A security tool which acts as a wrapper for TCP daemons
|
|
|
|
Group: System/Servers
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: http://ftp.porcupine.org/pub/security/
|
2024-01-05 18:21:34 +01:00
|
|
|
Source: http://ftp.porcupine.org/pub/security/%{name}_%{majver}.tar.gz
|
|
|
|
Source1: http://http.us.debian.org/debian/pool/main/t/tcp-wrappers/tcp-wrappers_%{majver}.q-%{patchver}.debian.tar.xz
|
2024-01-05 18:21:34 +01:00
|
|
|
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
|
2024-01-05 18:21:34 +01:00
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: ldconfig
|
|
|
|
BuildRequires: libnsl-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 18:21:34 +01:00
|
|
|
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.
|
|
|
|
|
2024-01-05 18:21:34 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-05 18:21:34 +01:00
|
|
|
%prep
|
2024-01-05 18:21:34 +01:00
|
|
|
%setup -q -n %{name}_%{majver} -a1
|
|
|
|
for p in `sed -e 's:^:debian/patches/:' debian/patches/series`; do patch -p1 < $p; done
|
|
|
|
|
|
|
|
#%patch8 -p1
|
2024-01-05 18:21:34 +01:00
|
|
|
%patch2 -p1
|
2024-01-05 18:21:34 +01:00
|
|
|
#%patch4 -p1
|
|
|
|
#%patch6 -p1
|
|
|
|
#%patch7 -p1
|
2024-01-05 18:21:34 +01:00
|
|
|
|
2024-01-05 18:21:34 +01:00
|
|
|
sed -i "s|/usr/lib/|%{_libdir}|g" Makefile
|
2024-01-05 18:21:34 +01:00
|
|
|
|
|
|
|
%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}"
|
|
|
|
|
2024-01-05 18:21:34 +01:00
|
|
|
install -D -m0755 shared/libwrap.so.0.7.6 %{buildroot}%{_libdir}/libwrap.so.0.7.6
|
|
|
|
ln -s libwrap.so.0.7.6 %{buildroot}%{_libdir}/libwrap.so.0
|
|
|
|
ln -s libwrap.so.0.7.6 %{buildroot}%{_libdir}/libwrap.so
|
|
|
|
|
2024-01-05 18:21:34 +01:00
|
|
|
install -D -m0755 libwrap.a %{buildroot}%{_libdir}/libwrap.a
|
|
|
|
|
|
|
|
install -D -m0644 tcpd.h %{buildroot}%{_includedir}/tcpd.h
|
|
|
|
|
|
|
|
for f in safe_finger tcpd tcpdchk tcpdmatch try-from; do
|
|
|
|
install -D -m0755 $f %{buildroot}%{_sbindir}/$f
|
|
|
|
install -D -m0644 $f.8 %{buildroot}%{_mandir}/man8/$f.8
|
|
|
|
done
|
|
|
|
|
|
|
|
for f in hosts_access hosts_options; do
|
|
|
|
install -D -m0644 $f.5 %{buildroot}%{_mandir}/man5/$f.5
|
|
|
|
done
|
|
|
|
|
|
|
|
for f in hosts_access; do
|
|
|
|
install -D -m0644 $f.3 %{buildroot}%{_mandir}/man3/$f.3
|
|
|
|
done
|
2024-01-05 18:21:34 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2024-01-05 18:21:34 +01:00
|
|
|
%{_sbindir}/safe_finger
|
|
|
|
%{_sbindir}/tcpd
|
|
|
|
%{_sbindir}/tcpdchk
|
|
|
|
%{_sbindir}/tcpdmatch
|
|
|
|
%{_sbindir}/try-from
|
|
|
|
%{_mandir}/man5/hosts_access.5*
|
|
|
|
%{_mandir}/man5/hosts_options.5*
|
|
|
|
%{_mandir}/man8/tcpd.8*
|
|
|
|
%{_mandir}/man8/tcpdchk.8*
|
|
|
|
%{_mandir}/man8/tcpdmatch.8*
|
|
|
|
%{_mandir}/man8/try-from.8*
|
|
|
|
%{_mandir}/man8/safe_finger.8*
|
|
|
|
%{_mandir}/man8/safe_finger.8*
|
2024-01-05 18:21:34 +01:00
|
|
|
|
|
|
|
%files -n libwrap
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libwrap.so.*
|
2024-01-05 18:21:34 +01:00
|
|
|
%doc DISCLAIMER
|
2024-01-05 18:21:34 +01:00
|
|
|
|
|
|
|
%files -n libwrap-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/tcpd.h
|
|
|
|
%{_libdir}/libwrap.a
|
|
|
|
%{_libdir}/libwrap.so
|
2024-01-05 18:21:34 +01:00
|
|
|
%{_mandir}/man3/hosts_access.3*
|
|
|
|
#%{_mandir}/man3/hosts_ctl.3*
|
|
|
|
#%{_mandir}/man3/request_init.3*
|
|
|
|
#%{_mandir}/man3/request_set.3*
|
|
|
|
%doc BLURB CHANGES README*
|
2024-01-05 18:21:34 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-05 18:21:34 +01:00
|
|
|
* Sat Nov 28 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 7.6.31-2mamba
|
|
|
|
- fix symlinks to real libwrap.so.ver
|
|
|
|
|
2024-01-05 18:21:34 +01:00
|
|
|
* Fri Nov 27 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 7.6.31-1mamba
|
|
|
|
- update to 7.6.31
|
|
|
|
- rebuilt with debug package, debian patches, and specfile fixes
|
|
|
|
|
2024-01-05 18:21:34 +01:00
|
|
|
* Fri Sep 21 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 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 <davide.madrisan@qilinux.it> 7.6-3qilnx
|
|
|
|
- specfile fixed
|
|
|
|
|
|
|
|
* Tue Sep 13 2005 Davide Madrisan <davide.madrisan@qilinux.it> 7.6-2qilnx
|
|
|
|
- specfile fixes
|
|
|
|
- misc security fixes
|
|
|
|
- fixed gcc compilation errors
|
|
|
|
|
2024-01-05 18:21:34 +01:00
|
|
|
* Thu Apr 17 2003 Luca Tinelli <luca.tinelli@qinet.it> 7.6-1qilnx
|
2024-01-05 18:21:34 +01:00
|
|
|
- first build
|