Репозиторий Sisyphus
Последнее обновление: 26 октября 2021 | Пакетов: 17374 | Посещений: 22161825
en ru br
Репозитории ALT
5.1: 2.3.14-alt3
4.1: 2.3.14-alt3
4.0: 2.3.14-alt2
3.0: 2.3.13-alt4

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

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

Name: xinetd
Version: 2.3.13
#%%define snapshot 20021209
Release: alt4%{?snapshot:.%snapshot}

Summary: %name is a powerful replacement for inetd
Group: System/Base
License: BSD with minor restrictions
Url: http://www.%name.org

%ifdef snapshot
Source: %url/devel/%name-%snapshot.tar.bz2
Source: %url/%name-%version.tar.bz2
%endif #snapshot

Source1: %name.init
Source2: %name.conf
Source3: %name.sysconf
Source4: convert.pl
Source5: faq.html
Source6: %name-tutorial.html

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

Patch1: %name-2.3.13-cvs-20050330-fixes.patch

Patch11: %name-2.3.13-owl-fixes.patch
Patch12: %name-2.3.12-alt-skipfiles.patch
Patch13: %name-2.3.12-alt-remlock.patch
Patch14: %name-2.3.12-alt-configure_nsl.patch
Patch15: %name-2.3.13-alt-pidfile.patch
Patch16: %name-2.3.12-alt-record.patch
Patch17: %name-2.3.13-alt-parse_inet_addresses.patch

Patch21: %name-2.3.13-rh-libwrap.patch
Patch22: %name-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 %name-aware applications
Group: Development/C
Requires: %name = %version-%release

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 %name-aware applications.

%setup -q %{?snapshot:-n %name-%snapshot}
%patch1 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch14 -p1
%patch15 -p1
%patch16 -p1
%patch17 -p1
%patch21 -p1
%patch22 -p1
%__install -p -m644 %SOURCE5 %SOURCE6 .
find -type f -name \*.orig -delete -print

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


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

%__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 $RPM_SOURCE_DIR/$i-tcp.%name %buildroot%_sysconfdir/%name.d/$i-tcp
%__install -pD -m640 $RPM_SOURCE_DIR/$i-udp.%name %buildroot%_sysconfdir/%name.d/$i-udp

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

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_service %name

%preun_service %name

%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

%files devel
%doc README.*


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

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