Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37406877
en ru br
Репозитории ALT
5.1: 7.6-alt9
4.1: 7.6-alt8
4.0: 7.6-alt8
3.0: 7.6-alt5
www.altlinux.org/Changes

Группа :: Система/Серверы
Пакет: tcp_wrappers

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: tcp_wrappers
Version: 7.6
Release: alt8
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/
Packager: Dmitry V. Levin <ldv at altlinux.org>

%define srcname tcp_wrappers_7.6
# ftp://ftp.porcupine.org/pub/security/%srcname.tar.gz
Source: %srcname.tar
Source1: tcp_wrappers_license

Patch1: %srcname-owl-alt-makefile.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
Patch6: %srcname-alt-fix_options.patch
Patch7: %srcname-alt-shared.patch
Patch8: %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
%patch6 -p1
%patch7 -p1
%patch8 -p1

find -type f -name \*.orig -delete
bzip2 -9k README CHANGES

%build
%add_optflags %optflags_shared -D_REENTRANT -Dlint
%make_build linux BUGS=

%install
mkdir -p %buildroot{/%_lib,%_libdir,%_sbindir,%_includedir,%_mandir/man{3,5,8}}

install -pm755 safe_finger tcpd tcpdchk tcpdmatch try-from \
%buildroot%_sbindir/

cp -a libwrap.{a,so}* %buildroot%_libdir/

# Relocate shared libraries from %_libdir/ to /%_lib/.

for f in %buildroot%_libdir/*.so; do
t=`objdump -p "$f" |awk '/SONAME/ {print $2}'`
[ -n "$t" ]
ln -snf ../../%_lib/"$t" "$f"
done
mv %buildroot%_libdir/*.so.* %buildroot/%_lib/

install -pm644 tcpd.h %buildroot%_includedir/

install -pm644 hosts_access.3 %buildroot%_man3dir/
install -pm644 hosts_access.5 hosts_options.5 %buildroot%_man5dir/
ln -s hosts_access.5 %buildroot%_man5dir/hosts.allow.5
ln -s hosts_access.5 %buildroot%_man5dir/hosts.deny.5
install -p -m644 tcpd.8 tcpdchk.8 tcpdmatch.8 %buildroot%_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 можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin