Группа :: Система/Основа
Пакет: xinetd
Главная Изменения Спек Патчи Загрузить Bugs and FR
Name: xinetd
Version: 2.3.14
Release: alt2.M24.2
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: xinetd.logrotate
Source5: convert.pl
Source6: faq.html
Source7: 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
Patch22: xinetd-2.3.14-rh-man.patch
Patch23: xinetd-2.3.14-rh-pie.patch
Patch24: xinetd-2.3.14-rh-ssize_t.patch
Provides: %_sysconfdir/%name.d
Requires(post): %post_service
Requires(preun): %preun_service
# 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
%patch22 -p1
%patch23 -p1
%patch24 -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 %_sourcedir/xinetd.init %buildroot%_initdir/%name
install -pD -m640 %_sourcedir/xinetd.conf %buildroot%_sysconfdir/%name.conf
install -pD -m644 %_sourcedir/xinetd.sysconf %buildroot%_sysconfdir/sysconfig/%name
install -pD -m755 %_sourcedir/convert.pl %buildroot%_sbindir/inetdconvert
install -pD -m640 %_sourcedir/%name.logrotate %buildroot%_sysconfdir/logrotate.d/%name
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
install -pD /dev/null %buildroot%_logdir/%name/%name.log
# 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/logrotate.d/*
%config(noreplace) %_sysconfdir/sysconfig/%name
%config(noreplace) %_sysconfdir/%name.conf
%config(noreplace) %_sysconfdir/%name.d/*
%attr(700,root,root) %dir %_sysconfdir/%name.d
%attr(750,root,adm) %dir %_logdir/%name
%ghost %attr(640,root,adm) %verify(not md5 mtime size) %_logdir/%name/%name.log
%_sbindir/*
%_mandir/man[58]/*
%doc AUDIT CHANGELOG COPYRIGHT INSTALL README *.html %name/sample.conf
%files devel
%_libdir/*
%_includedir/*
%_man3dir/*
%doc README.*
%changelog
…
Полный changelog можно просмотреть здесь
Version: 2.3.14
Release: alt2.M24.2
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: xinetd.logrotate
Source5: convert.pl
Source6: faq.html
Source7: 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
Patch22: xinetd-2.3.14-rh-man.patch
Patch23: xinetd-2.3.14-rh-pie.patch
Patch24: xinetd-2.3.14-rh-ssize_t.patch
Provides: %_sysconfdir/%name.d
Requires(post): %post_service
Requires(preun): %preun_service
# 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
%patch22 -p1
%patch23 -p1
%patch24 -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 %_sourcedir/xinetd.init %buildroot%_initdir/%name
install -pD -m640 %_sourcedir/xinetd.conf %buildroot%_sysconfdir/%name.conf
install -pD -m644 %_sourcedir/xinetd.sysconf %buildroot%_sysconfdir/sysconfig/%name
install -pD -m755 %_sourcedir/convert.pl %buildroot%_sbindir/inetdconvert
install -pD -m640 %_sourcedir/%name.logrotate %buildroot%_sysconfdir/logrotate.d/%name
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
install -pD /dev/null %buildroot%_logdir/%name/%name.log
# 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/logrotate.d/*
%config(noreplace) %_sysconfdir/sysconfig/%name
%config(noreplace) %_sysconfdir/%name.conf
%config(noreplace) %_sysconfdir/%name.d/*
%attr(700,root,root) %dir %_sysconfdir/%name.d
%attr(750,root,adm) %dir %_logdir/%name
%ghost %attr(640,root,adm) %verify(not md5 mtime size) %_logdir/%name/%name.log
%_sbindir/*
%_mandir/man[58]/*
%doc AUDIT CHANGELOG COPYRIGHT INSTALL README *.html %name/sample.conf
%files devel
%_libdir/*
%_includedir/*
%_man3dir/*
%doc README.*
%changelog
…
Полный changelog можно просмотреть здесь