Группа :: Система/Серверы
Пакет: tcp_wrappers
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Name: tcp_wrappers
Version: 7.6
Release: alt5
Serial: 1
Summary: A security tool which acts as a wrapper for network services
License: Distributable
Group: System/Servers
Url: http://ftp.porcupine.org/pub/security/
%define srcname %{name}_7.6
Source: ftp://ftp.porcupine.org/pub/security/%srcname.tar.bz2
Source1: %{name}_license
Patch0: http://www.imasy.or.jp/~ume/ipv6/%srcname-ipv6-1.14.diff.bz2
Patch1: %srcname-owl-alt-config.patch
Patch2: %srcname-openbsd-owl-cleanups.patch
Patch3: %srcname-openbsd-owl-ip-options.patch
Patch4: %srcname-owl-safe_finger.patch
Patch5: %srcname-steveg-owl-match.patch
Patch11: %srcname-alt-fix_options.patch
Patch12: %srcname-alt-shared.patch
Patch13: %srcname-alt-hosts_ctl.patch
Requires: libwrap = %serial:%version-%release
%package -n libwrap
Summary: Security wrapper access control shared library
Group: System/Libraries
%package -n libwrap-devel
Summary: Security wrapper access control development library
Group: Development/C
Provides: tcp_wrappers-devel = %version
Obsoletes: tcp_wrappers-devel
Requires: libwrap = %serial:%version-%release
%package -n libwrap-devel-static
Summary: Security wrapper access control development static library
Group: Development/C
Provides: tcp_wrappers-devel-static = %version
Obsoletes: tcp_wrappers-devel-static
Requires: libwrap-devel = %serial:%version-%release
%description
With this package you can monitor and filter incoming requests for the
SYSTAT, FINGER, FTP, TELNET, RLOGIN, RSH, EXEC, TFTP, TALK, and other
network services.
%description -n libwrap
Security wrapper access control library which implement a rule-based
access control language with optional shell commands that are executed
when a rule fires.
%description -n libwrap-devel
Security wrapper access control library which implement a rule-based
access control language with optional shell commands that are executed
when a rule fires.
%description -n libwrap-devel-static
Security wrapper access control library which implement a rule-based
access control language with optional shell commands that are executed
when a rule fires.
%prep
%setup -q -n %srcname
install -p -m644 %SOURCE1 LICENSE
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
find -type f -name \*.orig -print -delete
%build
%add_optflags %optflags_shared -Dlint
%make_build linux
bzip2 -9fk README CHANGES
%install
%__mkdir_p $RPM_BUILD_ROOT{/%_lib,%_libdir,%_sbindir,%_includedir,%_mandir/man{3,5,8}}
%__install -p -m755 safe_finger tcpd tcpdchk tcpdmatch try-from \
$RPM_BUILD_ROOT%_sbindir/
%__cp -a libwrap.* $RPM_BUILD_ROOT%_libdir/
# Relocate shared libraries from %_libdir/ to /%_lib/.
for f in $RPM_BUILD_ROOT%_libdir/*.so; do
t=`objdump -p "$f" |awk '/SONAME/ {print $2}'`
[ -n "$t" ]
%__ln_s -nf ../../%_lib/"$t" "$f"
done
%__mv $RPM_BUILD_ROOT%_libdir/*.so.* $RPM_BUILD_ROOT/%_lib/
%__install -p -m644 tcpd.h $RPM_BUILD_ROOT%_includedir/
%__install -p -m644 hosts_access.3 $RPM_BUILD_ROOT%_man3dir/
%__install -p -m644 hosts_access.5 hosts_options.5 $RPM_BUILD_ROOT%_man5dir/
%__ln_s hosts_access.5 $RPM_BUILD_ROOT%_man5dir/hosts.allow.5
%__ln_s hosts_access.5 $RPM_BUILD_ROOT%_man5dir/hosts.deny.5
%__install -p -m644 tcpd.8 tcpdchk.8 tcpdmatch.8 $RPM_BUILD_ROOT%_man8dir/
%post -n libwrap -p %post_ldconfig
%postun -n libwrap -p %postun_ldconfig
%files
%_sbindir/*
%_man8dir/*
%doc BLURB CHANGES.* README.* DISCLAIMER Banners.Makefile LICENSE
%files -n libwrap
/%_lib/*.so.*
%_man5dir/*
%files -n libwrap-devel
%_libdir/*.so
%_includedir/*
%_man3dir/*
%files -n libwrap-devel-static
%_libdir/*.a
%changelog
…
Полный changelog можно просмотреть здесь
Version: 7.6
Release: alt5
Serial: 1
Summary: A security tool which acts as a wrapper for network services
License: Distributable
Group: System/Servers
Url: http://ftp.porcupine.org/pub/security/
%define srcname %{name}_7.6
Source: ftp://ftp.porcupine.org/pub/security/%srcname.tar.bz2
Source1: %{name}_license
Patch0: http://www.imasy.or.jp/~ume/ipv6/%srcname-ipv6-1.14.diff.bz2
Patch1: %srcname-owl-alt-config.patch
Patch2: %srcname-openbsd-owl-cleanups.patch
Patch3: %srcname-openbsd-owl-ip-options.patch
Patch4: %srcname-owl-safe_finger.patch
Patch5: %srcname-steveg-owl-match.patch
Patch11: %srcname-alt-fix_options.patch
Patch12: %srcname-alt-shared.patch
Patch13: %srcname-alt-hosts_ctl.patch
Requires: libwrap = %serial:%version-%release
%package -n libwrap
Summary: Security wrapper access control shared library
Group: System/Libraries
%package -n libwrap-devel
Summary: Security wrapper access control development library
Group: Development/C
Provides: tcp_wrappers-devel = %version
Obsoletes: tcp_wrappers-devel
Requires: libwrap = %serial:%version-%release
%package -n libwrap-devel-static
Summary: Security wrapper access control development static library
Group: Development/C
Provides: tcp_wrappers-devel-static = %version
Obsoletes: tcp_wrappers-devel-static
Requires: libwrap-devel = %serial:%version-%release
%description
With this package you can monitor and filter incoming requests for the
SYSTAT, FINGER, FTP, TELNET, RLOGIN, RSH, EXEC, TFTP, TALK, and other
network services.
%description -n libwrap
Security wrapper access control library which implement a rule-based
access control language with optional shell commands that are executed
when a rule fires.
%description -n libwrap-devel
Security wrapper access control library which implement a rule-based
access control language with optional shell commands that are executed
when a rule fires.
%description -n libwrap-devel-static
Security wrapper access control library which implement a rule-based
access control language with optional shell commands that are executed
when a rule fires.
%prep
%setup -q -n %srcname
install -p -m644 %SOURCE1 LICENSE
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
find -type f -name \*.orig -print -delete
%build
%add_optflags %optflags_shared -Dlint
%make_build linux
bzip2 -9fk README CHANGES
%install
%__mkdir_p $RPM_BUILD_ROOT{/%_lib,%_libdir,%_sbindir,%_includedir,%_mandir/man{3,5,8}}
%__install -p -m755 safe_finger tcpd tcpdchk tcpdmatch try-from \
$RPM_BUILD_ROOT%_sbindir/
%__cp -a libwrap.* $RPM_BUILD_ROOT%_libdir/
# Relocate shared libraries from %_libdir/ to /%_lib/.
for f in $RPM_BUILD_ROOT%_libdir/*.so; do
t=`objdump -p "$f" |awk '/SONAME/ {print $2}'`
[ -n "$t" ]
%__ln_s -nf ../../%_lib/"$t" "$f"
done
%__mv $RPM_BUILD_ROOT%_libdir/*.so.* $RPM_BUILD_ROOT/%_lib/
%__install -p -m644 tcpd.h $RPM_BUILD_ROOT%_includedir/
%__install -p -m644 hosts_access.3 $RPM_BUILD_ROOT%_man3dir/
%__install -p -m644 hosts_access.5 hosts_options.5 $RPM_BUILD_ROOT%_man5dir/
%__ln_s hosts_access.5 $RPM_BUILD_ROOT%_man5dir/hosts.allow.5
%__ln_s hosts_access.5 $RPM_BUILD_ROOT%_man5dir/hosts.deny.5
%__install -p -m644 tcpd.8 tcpdchk.8 tcpdmatch.8 $RPM_BUILD_ROOT%_man8dir/
%post -n libwrap -p %post_ldconfig
%postun -n libwrap -p %postun_ldconfig
%files
%_sbindir/*
%_man8dir/*
%doc BLURB CHANGES.* README.* DISCLAIMER Banners.Makefile LICENSE
%files -n libwrap
/%_lib/*.so.*
%_man5dir/*
%files -n libwrap-devel
%_libdir/*.so
%_includedir/*
%_man3dir/*
%files -n libwrap-devel-static
%_libdir/*.a
%changelog
…
Полный changelog можно просмотреть здесь