|
@@ -1,3 +1,5 @@
|
|
|
|
+%bcond_without devel
|
|
|
|
+
|
|
%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
%define LIB_MAJOR 0
|
|
%define LIB_MAJOR 0
|
|
%define LIB_MINOR 7
|
|
%define LIB_MINOR 7
|
|
@@ -7,10 +9,13 @@ Summary: A security tool which acts as a wrapper for TCP daemons.
|
|
Summary(ja): TCP デーモンのラッパとして働くセキュリティツール
|
|
Summary(ja): TCP デーモンのラッパとして働くセキュリティツール
|
|
Name: tcp_wrappers
|
|
Name: tcp_wrappers
|
|
Version: 7.6
|
|
Version: 7.6
|
|
-Release: 40%{?_dist_release}
|
|
+Release: 41%{?_dist_release}
|
|
|
|
+Group: servers,security
|
|
|
|
+Vendor: Project Vine
|
|
|
|
+Distribution: Vine Linux
|
|
|
|
+
|
|
License: BSD
|
|
License: BSD
|
|
-Group: System Environment/Daemons
|
|
+Source: ftp://ftp.porcupine.org/pub/security/tcp_wrappers_%{version}-ipv6.4.tar.gz
|
|
-Source: ftp://ftp.porcupine.org/pub/security/tcp_wrappers_7.6.tar.gz
|
|
|
|
Patch0: tcpw7.2-config.patch
|
|
Patch0: tcpw7.2-config.patch
|
|
Patch1: tcpw7.2-setenv.patch
|
|
Patch1: tcpw7.2-setenv.patch
|
|
Patch2: tcpw7.6-netgroup.patch
|
|
Patch2: tcpw7.6-netgroup.patch
|
|
@@ -19,29 +24,31 @@ Patch4: tcp_wrappers-7.6-bug17795.patch
|
|
Patch5: tcp_wrappers-7.6-bug17847.patch
|
|
Patch5: tcp_wrappers-7.6-bug17847.patch
|
|
Patch6: tcp_wrappers-7.6-fixgethostbyname.patch
|
|
Patch6: tcp_wrappers-7.6-fixgethostbyname.patch
|
|
Patch7: tcp_wrappers-7.6-docu.patch
|
|
Patch7: tcp_wrappers-7.6-docu.patch
|
|
-Patch8: tcp_wrappers-7.6-casesens.patch
|
|
+Patch8: tcp_wrappers-7.6-man.patch
|
|
Patch9: tcp_wrappers.usagi-ipv6.patch
|
|
Patch9: tcp_wrappers.usagi-ipv6.patch
|
|
-Patch10: tcp_wrappers.ume-ipv6.patch
|
|
|
|
Patch11: tcp_wrappers-7.6-shared.patch
|
|
Patch11: tcp_wrappers-7.6-shared.patch
|
|
Patch12: tcp_wrappers-7.6-sig.patch
|
|
Patch12: tcp_wrappers-7.6-sig.patch
|
|
-Patch13: tcp_wrappers-7.6-strerror.patch
|
|
|
|
Patch14: tcp_wrappers-7.6-ldflags.patch
|
|
Patch14: tcp_wrappers-7.6-ldflags.patch
|
|
Patch15: tcp_wrappers-7.6-fix_sig-bug141110.patch
|
|
Patch15: tcp_wrappers-7.6-fix_sig-bug141110.patch
|
|
Patch16: tcp_wrappers-7.6-162412.patch
|
|
Patch16: tcp_wrappers-7.6-162412.patch
|
|
Patch17: tcp_wrappers-7.6-220015.patch
|
|
Patch17: tcp_wrappers-7.6-220015.patch
|
|
-Patch18: tcp_wrappers-7.6-restore_sigalarm.patch
|
|
|
|
Patch19: tcp_wrappers-7.6-siglongjmp.patch
|
|
Patch19: tcp_wrappers-7.6-siglongjmp.patch
|
|
Patch20: tcp_wrappers-7.6-sigchld.patch
|
|
Patch20: tcp_wrappers-7.6-sigchld.patch
|
|
Patch21: tcp_wrappers-7.6-196326.patch
|
|
Patch21: tcp_wrappers-7.6-196326.patch
|
|
Patch22: tcp_wrappers_7.6-249430.patch
|
|
Patch22: tcp_wrappers_7.6-249430.patch
|
|
-Patch23: tcp_wrappers-7.6-aclexec.patch
|
|
+Patch23: tcp_wrappers-7.6-inetdconf.patch
|
|
-Patch24: tcp_wrappers-7.6-fix-multidef.patch
|
|
+Patch24: tcp_wrappers-7.6-bug698464.patch
|
|
|
|
+Patch26: tcp_wrappers-7.6-xgets.patch
|
|
|
|
+Patch27: tcp_wrappers-7.6-initgroups.patch
|
|
|
|
+Patch28: tcp_wrappers-7.6-warnings.patch
|
|
|
|
+Patch29: tcp_wrappers-7.6-uchart_fix.patch
|
|
|
|
+Patch30: tcp_wrappers-7.6-altformat.patch
|
|
|
|
+Patch31: tcp_wrappers-7.6-aclexec.patch
|
|
|
|
|
|
# required by sin_scope_id in ipv6 patch
|
|
# required by sin_scope_id in ipv6 patch
|
|
-BuildRequires: glibc-devel >= 2.2
|
|
+BuildRequires: glibc-devel >= 2.2
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
-
|
|
|
|
%description
|
|
%description
|
|
The tcp_wrappers package provides small daemon programs which can
|
|
The tcp_wrappers package provides small daemon programs which can
|
|
monitor and filter incoming requests for systat, finger, FTP, telnet,
|
|
monitor and filter incoming requests for systat, finger, FTP, telnet,
|
|
@@ -65,7 +72,7 @@ systat, finger, FTP, telnet, rlogin, rsh, exec, tftp, talk, その他
|
|
%package -n compat32-%{name}
|
|
%package -n compat32-%{name}
|
|
Summary: A security tool which acts as a wrapper for TCP daemons.
|
|
Summary: A security tool which acts as a wrapper for TCP daemons.
|
|
Summary(ja): TCP デーモンのラッパとして働くセキュリティツール
|
|
Summary(ja): TCP デーモンのラッパとして働くセキュリティツール
|
|
-Group: System Environment/Daemons
|
|
+Group: system,security,legacy
|
|
|
|
|
|
%description -n compat32-%{name}
|
|
%description -n compat32-%{name}
|
|
The tcp_wrappers package provides small daemon programs which can
|
|
The tcp_wrappers package provides small daemon programs which can
|
|
@@ -76,8 +83,11 @@ Install the tcp_wrappers program if you need a security tool for
|
|
filtering incoming network services requests.
|
|
filtering incoming network services requests.
|
|
|
|
|
|
|
|
|
|
|
|
+%debug_package
|
|
|
|
+
|
|
|
|
+
|
|
%prep
|
|
%prep
|
|
-%setup -q -n tcp_wrappers_7.6
|
|
+%setup -q -n %{name}_%{version}-ipv6.4
|
|
%patch0 -p1 -b .config
|
|
%patch0 -p1 -b .config
|
|
%patch1 -p1 -b .setenv
|
|
%patch1 -p1 -b .setenv
|
|
%patch2 -p1 -b .netgroup
|
|
%patch2 -p1 -b .netgroup
|
|
@@ -88,31 +98,37 @@ filtering incoming network services requests.
|
|
%patch7 -p1 -b .docu
|
|
%patch7 -p1 -b .docu
|
|
%patch8 -p1 -b .man
|
|
%patch8 -p1 -b .man
|
|
%patch9 -p1 -b .usagi-ipv6
|
|
%patch9 -p1 -b .usagi-ipv6
|
|
-%patch10 -p1 -b .ume-ipv6
|
|
|
|
%patch11 -p1 -b .shared
|
|
%patch11 -p1 -b .shared
|
|
%patch12 -p1 -b .sig
|
|
%patch12 -p1 -b .sig
|
|
-%patch13 -p1 -b .strerror
|
|
+%patch14 -p1 -b .ldflags
|
|
-%patch14 -p1 -b .cflags
|
|
|
|
%patch15 -p1 -b .fix_sig
|
|
%patch15 -p1 -b .fix_sig
|
|
%patch16 -p1 -b .162412
|
|
%patch16 -p1 -b .162412
|
|
%patch17 -p1 -b .220015
|
|
%patch17 -p1 -b .220015
|
|
-%patch18 -p1 -b .restore_sigalarm
|
|
|
|
%patch19 -p1 -b .siglongjmp
|
|
%patch19 -p1 -b .siglongjmp
|
|
%patch20 -p1 -b .sigchld
|
|
%patch20 -p1 -b .sigchld
|
|
%patch21 -p1 -b .196326
|
|
%patch21 -p1 -b .196326
|
|
%patch22 -p1 -b .249430
|
|
%patch22 -p1 -b .249430
|
|
-%patch23 -p1 -b .aclexec
|
|
+%patch23 -p1 -b .inetdconf
|
|
-%patch24 -p1 -b .multidef
|
|
+%patch24 -p1 -b .698464
|
|
|
|
+%patch26 -p1 -b .xgets
|
|
|
|
+%patch27 -p1 -b .initgroups
|
|
|
|
+%patch29 -p1 -b .uchart_fix
|
|
|
|
+%patch30 -p1 -b .altformat
|
|
|
|
+%patch28 -p1 -b .warnings
|
|
|
|
+%patch31 -p1 -b .aclexec
|
|
|
|
|
|
# Disable static library creation by default.
|
|
# Disable static library creation by default.
|
|
%define with_static 0
|
|
%define with_static 0
|
|
|
|
|
|
|
|
+
|
|
%build
|
|
%build
|
|
-make RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fPIC -DPIC -D_REENTRANT -DHAVE_STRERROR -DACLEXEC" \
|
|
+make \
|
|
- LDFLAGS="-pie" MAJOR=%{LIB_MAJOR} MINOR=%{LIB_MINOR} REL=%{LIB_REL} linux
|
|
+ RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fPIC -DPIC -D_REENTRANT -DHAVE_STRERROR -DACLEXEC" \
|
|
|
|
+ LDFLAGS="$RPM_LD_FLAGS" \
|
|
|
|
+ MAJOR=%{LIB_MAJOR} MINOR=%{LIB_MINOR} REL=%{LIB_REL} linux %{?_smp_mflags}
|
|
|
|
+
|
|
|
|
|
|
%install
|
|
%install
|
|
-[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_includedir}
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_includedir}
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man{3,5,8}
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man{3,5,8}
|
|
@@ -144,24 +160,30 @@ install -m755 try-from ${RPM_BUILD_ROOT}%{_sbindir}
|
|
install -m755 tcpdchk $RPM_BUILD_ROOT%{_sbindir}
|
|
install -m755 tcpdchk $RPM_BUILD_ROOT%{_sbindir}
|
|
install -m755 tcpdmatch $RPM_BUILD_ROOT%{_sbindir}
|
|
install -m755 tcpdmatch $RPM_BUILD_ROOT%{_sbindir}
|
|
|
|
|
|
-%post -p /sbin/ldconfig
|
|
+%if !%{with devel}
|
|
-%postun -p /sbin/ldconfig
|
|
+rm -f %{buildroot}%{_includedir}/*
|
|
|
|
+%if %{with_static}
|
|
|
|
+rm -f %{buildroot}%{_libdir}/*.a
|
|
|
|
+%endif
|
|
|
|
+rm -f %{buildroot}%{_libdir}/*.so
|
|
|
|
+%endif
|
|
|
|
|
|
-%post -n compat32-%{name} -p /sbin/ldconfig
|
|
|
|
-%postun -n compat32-%{name} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%clean
|
|
%clean
|
|
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
|
|
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
+
|
|
%files
|
|
%files
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
%doc BLURB CHANGES README* DISCLAIMER Banners.Makefile
|
|
%doc BLURB CHANGES README* DISCLAIMER Banners.Makefile
|
|
%{_mandir}/man[358]/*
|
|
%{_mandir}/man[358]/*
|
|
|
|
+%if %{with devel}
|
|
%{_includedir}/*
|
|
%{_includedir}/*
|
|
%if %{with_static}
|
|
%if %{with_static}
|
|
%{_libdir}/*.a
|
|
%{_libdir}/*.a
|
|
%endif
|
|
%endif
|
|
%{_libdir}/*.so
|
|
%{_libdir}/*.so
|
|
|
|
+%endif
|
|
%{_libdir}/*.so.*
|
|
%{_libdir}/*.so.*
|
|
%{_sbindir}/*
|
|
%{_sbindir}/*
|
|
|
|
|
|
@@ -173,9 +195,14 @@ install -m755 tcpdmatch $RPM_BUILD_ROOT%{_sbindir}
|
|
%endif
|
|
%endif
|
|
%{_libdir}/*.so
|
|
%{_libdir}/*.so
|
|
%{_libdir}/*.so.*
|
|
%{_libdir}/*.so.*
|
|
|
|
+
|
|
%endif
|
|
%endif
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sat Mar 20 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 7.6-41
|
|
|
|
+- switched tarball to ipv6 version.
|
|
|
|
+- replaced all patches to rawhide's.
|
|
|
|
+
|
|
* Mon Jul 7 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 7.6-40
|
|
* Mon Jul 7 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 7.6-40
|
|
- rebuilt with current environment.
|
|
- rebuilt with current environment.
|
|
|
|
|