Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37327817
en ru br
Репозитории ALT
S:2.3.15-alt6
5.1: 2.3.14-alt3
4.1: 2.3.14-alt3
4.0: 2.3.14-alt2
3.0: 2.3.13-alt4
www.altlinux.org/Changes

Группа :: Система/Основа
Пакет: xinetd

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

Name: xinetd
Version: 2.3.14
Release: alt2

Summary: xinetd is a powerful replacement for inetd
Group: System/Base
License: BSD-style
Packager: Dmitry V. Levin <ldv at altlinux.org>
Url: http://www.xinetd.org

# %url/xinetd-%version.tar.gz

Source: xinetd-%version.tar
Source1: xinetd.init
Source2: xinetd.conf
Source3: xinetd.sysconf
Source4: convert.pl
Source5: faq.html
Source6: xinetd-tutorial.html

Source10: chargen-tcp.xinetd
Source11: chargen-udp.xinetd
Source12: daytime-tcp.xinetd
Source13: daytime-udp.xinetd
Source14: discard-tcp.xinetd
Source15: discard-udp.xinetd
Source16: echo-tcp.xinetd
Source17: echo-udp.xinetd
Source18: time-tcp.xinetd
Source19: time-udp.xinetd

Patch1: xinetd-2.3.14-cvs-20051128.patch
Patch2: xinetd-2.3.14-owl-bad_port_check.patch

Patch11: xinetd-2.3.13-owl-fixes.patch
Patch12: xinetd-2.3.12-alt-skipfiles.patch
Patch13: xinetd-2.3.14-alt-remlock.patch
Patch14: xinetd-2.3.12-alt-configure-nsl.patch
Patch15: xinetd-2.3.13-alt-pidfile.patch
Patch16: xinetd-2.3.12-alt-record.patch
Patch17: xinetd-2.3.13-alt-parse_inet_addresses.patch

Patch21: xinetd-2.3.12-rh-tcp_rpc.patch

Provides: %_sysconfdir/%name.d

Requires(post): %post_service
Requires(preun): %preun_service

BuildPreReq: rpm-build >= 4.0.4-alt0.3

# Automatically added by buildreq on Sun Nov 10 2002

BuildRequires: libwrap-devel

%package devel
Summary: Libraries and header files for developing xinetd-aware applications
Group: Development/C
Requires: %name = %version-%release

%description
xinetd performs the same function as inetd: it starts programs that
provide Internet services.  Instead of having such servers started at
system initialization time, and be dormant until a connection request
arrives, xinetd is the only daemon process started and it listens on
all service ports for the services listed in its configuration file.
When a request comes in, xinetd starts the appropriate server.  Because
of the way it operates, xinetd (as well as inetd) is also referred to
as a super-server.

xinetd has access control machanisms, extensive logging capabilities,
the ability to make services available based on time, and can place
limits on the number of servers that can be started, among other things.

%description devel
This package contains development libraries and header files
required for building xinetd-aware applications.

%prep
%setup -q
%patch1 -p0
%patch2 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch14 -p1
%patch15 -p1
%patch16 -p1
%patch17 -p1
%patch21 -p1
install -p -m644 %_sourcedir/{faq.html,xinetd-tutorial.html} .
find -type f -name \*.orig -delete

%build
%add_optflags -Wno-unused -Wno-switch
%def_with libwrap
%def_with loadavg
autoconf
export ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=no
%configure \
%{subst_with libwrap} \
%{subst_with loadavg} \
#

%make_build

for f in libs/src/*/README; do
d="${f%%/*}"
install -p -m644 "$f" "README.${d##*/}"
done

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

install -pD -m755 %SOURCE1 %buildroot%_initdir/%name
install -pD -m640 %SOURCE2 %buildroot%_sysconfdir/%name.conf
install -pD -m644 %SOURCE3 %buildroot%_sysconfdir/sysconfig/%name
install -pD -m755 %SOURCE4 %buildroot%_sbindir/inetdconvert
for i in chargen daytime discard echo time; do
install -pD -m640 %_sourcedir/$i-tcp.%name %buildroot%_sysconfdir/%name.d/$i-tcp
install -pD -m640 %_sourcedir/$i-udp.%name %buildroot%_sysconfdir/%name.d/$i-udp
done

%makeinstall DAEMONDIR=%buildroot%_sbindir MANDIR=%buildroot%_mandir
%make_install makelibs \
LIBDIR=%buildroot%_libdir/%name \
INCLUDEDIR=%buildroot%_includedir/%name \
MANDIR=%buildroot%_man3dir

find %buildroot{%_libdir,%_includedir,%_mandir} -type f -print0 |
xargs -r0 chmod 644 --

mkdir -p %buildroot%_sysconfdir/%name.d

# No need to ship this.

rm %buildroot{%_sbindir/{itox,xconv.pl},%_man8dir/{itox,xconv.pl}*}
rm %buildroot%_mandir/*.3

%post
%post_service %name

%preun
%preun_service %name

%files
%config %_initdir/%name
%config(noreplace) %_sysconfdir/sysconfig/%name
%config(noreplace) %_sysconfdir/%name.conf
%config(noreplace) %_sysconfdir/%name.d/*
%attr(700,root,root) %dir %_sysconfdir/%name.d
%_sbindir/*
%_mandir/man[58]/*
%doc AUDIT CHANGELOG COPYRIGHT INSTALL README *.html %name/sample.conf

%files devel
%_libdir/*
%_includedir/*
%_man3dir/*
%doc README.*

%changelog

Полный changelog можно просмотреть здесь

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