2006-12-19 00:17:59 +01:00
|
|
|
#
|
2011-10-07 00:50:44 +02:00
|
|
|
# spec file for package tcpd
|
2006-12-19 00:17:59 +01:00
|
|
|
#
|
2024-06-06 10:36:26 +02:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2006-12-19 00:17:59 +01:00
|
|
|
#
|
2008-10-13 18:39:38 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-08-13 10:13:24 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-19 00:17:59 +01:00
|
|
|
#
|
|
|
|
|
2008-04-10 15:34:12 +02:00
|
|
|
|
2013-01-21 11:31:32 +01:00
|
|
|
%define lname libwrap0
|
2015-07-30 15:41:01 +02:00
|
|
|
|
2014-11-28 14:19:35 +01:00
|
|
|
Name: tcpd
|
2006-12-19 00:17:59 +01:00
|
|
|
Version: 7.6
|
2012-04-22 04:21:26 +02:00
|
|
|
Release: 0
|
2006-12-19 00:17:59 +01:00
|
|
|
Summary: A security wrapper for TCP daemons
|
2012-04-22 04:21:26 +02:00
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Productivity/Networking/System
|
2020-08-20 12:56:26 +02:00
|
|
|
URL: ftp://ftp.porcupine.org/pub/security/index.html
|
2013-04-05 13:28:13 +02:00
|
|
|
Source: ftp://ftp.porcupine.org/pub/security/tcp_wrappers_%{version}.tar.gz
|
2009-12-16 16:43:43 +01:00
|
|
|
Source2: baselibs.conf
|
2022-10-13 09:00:32 +02:00
|
|
|
Source3: hosts.allow
|
|
|
|
Source4: hosts.deny
|
2008-10-13 18:39:38 +02:00
|
|
|
Patch0: tcp_wrappers_%{version}.diff
|
|
|
|
Patch1: tcp_wrappers_%{version}-ipv6-1.6.diff
|
2006-12-19 00:17:59 +01:00
|
|
|
Patch2: tcp_wrappers_%{version}-ipv6-fix.diff
|
|
|
|
Patch3: tcp_wrappers_%{version}-ipv6.fix.fix.diff
|
|
|
|
Patch4: tcp_wrappers_%{version}-ipv6.fix.fix2.diff
|
|
|
|
Patch5: tcp_wrappers_%{version}-host_name_mapping-fix.diff
|
|
|
|
Patch6: tcp_wrappers_%{version}-fix_options-fix.diff
|
|
|
|
Patch7: tcp_wrappers_%{version}-shared-lib.diff
|
|
|
|
Patch8: tcp_wrappers_%{version}-builtin.diff
|
|
|
|
Patch9: tcp_wrappers_%{version}-multi_local_interfaces-fix.diff
|
2008-10-13 18:39:38 +02:00
|
|
|
Patch10: tcp_wrappers_%{version}-optflags.diff
|
|
|
|
Patch11: tcp_wrappers_%{version}-nonvoid.diff
|
|
|
|
Patch12: tcp_wrappers_%{version}-prototypes.diff
|
|
|
|
Patch13: tcp_wrappers_%{version}-hosts_ctl.diff
|
|
|
|
Patch14: tcp_wrappers_%{version}-uninitialized.diff
|
|
|
|
Patch15: tcp_wrappers_%{version}-fedora-bug11881.diff
|
|
|
|
Patch16: tcp_wrappers_%{version}-fedora-bug141110.diff
|
|
|
|
Patch17: tcp_wrappers_%{version}-fedora-docu.diff
|
|
|
|
Patch18: tcp_wrappers_%{version}-fedora-sig.diff
|
|
|
|
Patch19: tcp_wrappers_%{version}-fedora-sigchld.diff
|
|
|
|
Patch20: tcp_wrappers_%{version}-fedora-sigjmp.diff
|
|
|
|
Patch21: tcp_wrappers_%{version}-fedora-sigalarm.diff
|
|
|
|
Patch22: tcp_wrappers_%{version}-fedora-strerror.diff
|
|
|
|
Patch23: tcp_wrappers_%{version}-fedora-fixgethostbyname.diff
|
|
|
|
Patch24: tcp_wrappers_%{version}-fedora-bug220015.diff
|
|
|
|
Patch25: tcp_wrappers_%{version}-shared-lib2.diff
|
|
|
|
Patch26: tcp_wrappers_%{version}-fedora-bug17795.diff
|
|
|
|
Patch27: tcp_wrappers_%{version}-fedora-bug17847.diff
|
2009-12-16 16:43:43 +01:00
|
|
|
Patch28: tcp_wrappers_7.6-implicit-decl.patch
|
2013-06-03 15:59:38 +02:00
|
|
|
Patch29: tcpd-ocloexec.patch
|
2015-07-30 15:41:01 +02:00
|
|
|
Patch30: tcp_wrappers_%{version}-ipv6-sockaddr-storage.patch
|
|
|
|
Patch31: tcp_wrappers_%{version}-ipv6-subnet.diff
|
|
|
|
Patch32: tcp_wrappers_%{version}-ipv6-host-match.patch
|
|
|
|
Patch33: tcp_wrappers_%{version}-ipv6-mapped-v4.patch
|
2019-09-24 18:46:15 +02:00
|
|
|
Patch34: tcp_wrappers_%{version}-ipv6.fix.fix3.diff
|
2024-06-06 10:36:26 +02:00
|
|
|
Patch35: tcp_wrappers_%{version}-gcc14.patch
|
2014-11-28 14:19:35 +01:00
|
|
|
BuildRequires: linux-kernel-headers
|
|
|
|
Provides: nkitb:%{_sbindir}/tcpd
|
2015-07-30 15:41:01 +02:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: tcpd-64bit
|
|
|
|
%endif
|
2006-12-19 00:17:59 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains a small daemon program that can monitor and
|
|
|
|
filter incoming requests for finger, ftp, telnet, rlogin, rsh, exec,
|
|
|
|
tftp, talk, and other network services.
|
|
|
|
|
2014-11-28 14:19:35 +01:00
|
|
|
%package -n %{lname}
|
2013-01-21 11:31:32 +01:00
|
|
|
Summary: The TCP wrapper library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2014-11-28 14:19:35 +01:00
|
|
|
%description -n %{lname}
|
2013-01-21 11:31:32 +01:00
|
|
|
This package contains a library which implements classifying incoming
|
2014-11-28 14:19:35 +01:00
|
|
|
requests (connections) based upon rule exclusion files (%{_sysconfdir}/hosts.*).
|
2013-01-21 11:31:32 +01:00
|
|
|
|
2006-12-19 00:17:59 +01:00
|
|
|
%package devel
|
|
|
|
Summary: Include Files and Libraries for the TCP wrapper library
|
2014-11-28 14:19:35 +01:00
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: %{lname} = %{version}
|
2006-12-19 00:17:59 +01:00
|
|
|
Requires: glibc-devel
|
2015-07-30 15:41:01 +02:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: tcpd-devel-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2006-12-19 00:17:59 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains the library and header files, which are necessary
|
|
|
|
to compile and link programs against the TCP wrapper library.
|
|
|
|
|
|
|
|
%prep
|
2008-10-13 18:39:38 +02:00
|
|
|
%setup -q -n tcp_wrappers_%{version}
|
2024-03-05 13:19:59 +01:00
|
|
|
%patch -P 0
|
|
|
|
%patch -P 1
|
|
|
|
%patch -P 2
|
|
|
|
%patch -P 3
|
|
|
|
%patch -P 4
|
|
|
|
%patch -P 5
|
|
|
|
%patch -P 6
|
|
|
|
%patch -P 7
|
|
|
|
%patch -P 8
|
|
|
|
%patch -P 9
|
|
|
|
%patch -P 10
|
|
|
|
%patch -P 11
|
|
|
|
%patch -P 12
|
|
|
|
%patch -P 13
|
|
|
|
%patch -P 14
|
|
|
|
%patch -P 15
|
|
|
|
%patch -P 16
|
|
|
|
%patch -P 17
|
|
|
|
%patch -P 18
|
|
|
|
%patch -P 19
|
|
|
|
%patch -P 20
|
|
|
|
%patch -P 21
|
|
|
|
%patch -P 22
|
|
|
|
%patch -P 23
|
|
|
|
%patch -P 24
|
|
|
|
%patch -P 25
|
|
|
|
%patch -P 26
|
|
|
|
%patch -P 27
|
|
|
|
%patch -P 28
|
|
|
|
%patch -P 29
|
|
|
|
%patch -P 30 -p1
|
|
|
|
%patch -P 31
|
|
|
|
%patch -P 32 -p1
|
|
|
|
%patch -P 33 -p1
|
|
|
|
%patch -P 34
|
2024-06-06 10:36:26 +02:00
|
|
|
%patch -P 35 -p1
|
2014-11-28 14:19:35 +01:00
|
|
|
|
2006-12-19 00:17:59 +01:00
|
|
|
%build
|
2019-08-13 10:13:24 +02:00
|
|
|
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
2022-08-29 10:22:31 +02:00
|
|
|
# Makefile is not parallel-safe
|
|
|
|
make linux CC="cc"
|
2006-12-19 00:17:59 +01:00
|
|
|
|
|
|
|
%install
|
2013-04-05 13:28:13 +02:00
|
|
|
install -d -m 755 %{buildroot}%{_includedir}
|
|
|
|
install -d -m 755 %{buildroot}%{_libdir}
|
|
|
|
install -d -m 755 %{buildroot}%{_sbindir}
|
|
|
|
install -d -m 755 %{buildroot}%{_mandir}/man{1,3,5,8}
|
|
|
|
install -m 644 ip6utils.h tcpd.h %{buildroot}%{_includedir}
|
2015-07-30 15:41:01 +02:00
|
|
|
install -m 644 libwrap.a %{buildroot}/%{_libdir}
|
2013-04-05 13:28:13 +02:00
|
|
|
install -m 755 safe_finger tcpd tcpdchk tcpdmatch try-from %{buildroot}%{_sbindir}
|
|
|
|
install -m 644 hosts_access.3 %{buildroot}%{_mandir}/man3
|
|
|
|
install -m 644 hosts_access.5 hosts_options.5 %{buildroot}%{_mandir}/man5
|
|
|
|
install -m 644 tcpd.8 tcpdchk.8 tcpdmatch.8 %{buildroot}%{_mandir}/man8
|
2022-09-19 08:55:56 +02:00
|
|
|
install -m 644 shared/libwrap.so.0.%{version} %{buildroot}/%{_libdir}
|
|
|
|
ln -sf libwrap.so.0.%{version} %{buildroot}/%{_libdir}/libwrap.so.0
|
|
|
|
ln -sf libwrap.so.0.%{version} %{buildroot}/%{_libdir}/libwrap.so
|
2022-10-13 09:00:32 +02:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}
|
|
|
|
for i in hosts.allow hosts.deny; do
|
|
|
|
install $RPM_SOURCE_DIR/$i %{buildroot}/%{_sysconfdir}
|
|
|
|
done
|
2006-12-19 00:17:59 +01:00
|
|
|
|
2014-11-28 14:19:35 +01:00
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
2006-12-19 00:17:59 +01:00
|
|
|
|
2014-11-28 14:19:35 +01:00
|
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
2006-12-19 00:17:59 +01:00
|
|
|
|
|
|
|
%files
|
2015-07-30 15:41:01 +02:00
|
|
|
%defattr(644,root,root,755)
|
2006-12-19 00:17:59 +01:00
|
|
|
%doc BLURB CHANGES DISCLAIMER README README.ipv6 README.NIS
|
|
|
|
%doc %{_mandir}/man?/*
|
2008-10-13 18:39:38 +02:00
|
|
|
%attr(755,root,root) %{_sbindir}/*
|
2006-12-19 00:17:59 +01:00
|
|
|
|
2014-11-28 14:19:35 +01:00
|
|
|
%files -n %{lname}
|
2013-01-21 11:31:32 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc DISCLAIMER
|
2022-09-19 08:55:56 +02:00
|
|
|
%attr(755,root,root) %{_libdir}/libwrap.so.0*
|
2022-10-13 09:00:32 +02:00
|
|
|
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/hosts.allow
|
|
|
|
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/hosts.deny
|
2013-01-21 11:31:32 +01:00
|
|
|
|
2006-12-19 00:17:59 +01:00
|
|
|
%files devel
|
2015-07-30 15:41:01 +02:00
|
|
|
%defattr(644,root,root,755)
|
2008-10-13 18:39:38 +02:00
|
|
|
%{_includedir}/tcpd.h
|
|
|
|
%{_includedir}/ip6utils.h
|
2015-07-30 15:41:01 +02:00
|
|
|
%{_libdir}/libwrap.a
|
2006-12-19 00:17:59 +01:00
|
|
|
%{_libdir}/libwrap.so
|
|
|
|
|
2008-04-10 15:34:12 +02:00
|
|
|
%changelog
|