Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37558802
en ru br
Репозитории ALT
S:3.9p1-alt15
5.1: 3.9p1-alt10
4.1: 3.9p1-alt8
4.0: 3.9p1-alt8
3.0:
+backports:3.9p1-alt0.M30.1
www.altlinux.org/Changes

Группа :: Сети/Прочее
Пакет: openntpd

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

Name: openntpd
Version: 3.9p1
Release: alt15

%define privuser  ntpd
%define privgroup ntpd
%define privpath  /var/empty

%def_with setproctitle

Summary: Network daemon for synchronize local clock to remote NTP servers
License: ISC and BSD-2-Clause and BSD-3-Clause
Group: Networking/Other
Url: http://www.openntpd.org

# ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/openntpd-%version.tar.gz

Source0: openntpd-%version.tar
Source1: ntpd.init
Source2: ntpd.control
Source3: ntpd.sysconfig
Source4: ntpd.service
# http://www.zip.com.au/~dtucker/openntpd/patches/openntpd-3.9p1-linux-adjtimex.patch
Patch: openntpd-%version-%release.patch
Patch1: openntpd-3.9p1-alt-openssl1.1.patch
Patch2: openntpd-3.9p1-alt-AC_USE_SYSTEM_EXTENSIONS.patch

Provides: ntp-server

PreReq: %privpath
Conflicts: ntpd

BuildPreReq: libssl-devel
%{?_with_setproctitle:BuildPreReq: setproctitle-devel}

Summary(ru_RU.UTF-8): п║п╣я┌п╣п╡п╬п╧ я│п╣я─п╡п╣я─ п╢п╩я▐ я│п╦п╫я┘я─п╬п╫п╦п╥п╟я├п╦п╦ я┌п╬я┤п╫п╬пЁп╬ п╡я─п╣п╪п╣п╫п╦

%description
The ntpd daemon synchronizes the local clock to one or more remote NTP
servers, and can also act as an NTP server itself, redistributing the
local time.  It implements the Simple Network Time Protocol version 4,
as described in RFC 2030, and the Network Time Protocol version 3,
as described in RFC 1305.

Here is a portable implementation of OpenNTPD, small reliable NTP daemon
initially designed as part of OpenBSD.

%description -l ru_RU.UTF-8
п■п╣п╪п╬п╫ NTP я│п╦п╫я┘я─п╬п╫п╦п╥п╦я─я┐п╣я┌ п╡я─п╣п╪я▐ п╡ п╩п╬п╨п╟п╩я▄п╫я▀я┘ я│п╦я│я┌п╣п╪п╫я▀я┘ я┤п╟я│п╟я┘ я│ п╡п╫п╣я┬п╫п╦п╪п╦
я│п╣я─п╡п╣я─п╟п╪п╦ NTP, п╟ я┌п╟п╨п╤п╣ п©я─п╦ п╫п╣п╬п╠я┘п╬п╢п╦п╪п╬я│я┌п╦ я│п╟п╪ п╡я▀я│я┌я┐п©п╟п╣я┌ я│п╣я─п╡п╣я─п╬п╪ NTP,
я│п╬п╬п╠я┴п╟я▐ я│п╡п╬я▒ п╩п╬п╨п╟п╩я▄п╫п╬п╣ п╡я─п╣п╪я▐ п©п╬ я│п╣я┌п╦ п╢я─я┐пЁп╦п╪ п╨п╬п╪п©я▄я▌я┌п╣я─п╟п╪.

п■п╟п╫п╫я▀п╧ п©п╟п╨п╣я┌ я│п╬п╢п╣я─п╤п╦я┌ я─п╣п╟п╩п╦п╥п╟я├п╦я▌ NTP-п╢п╣п╪п╬п╫п╟, я─п╟п╥я─п╟п╠п╬я┌п╟п╫п╫я┐я▌ п╡ я─п╟п╪п╨п╟я┘
п╬п©п╣я─п╟я├п╦п╬п╫п╫п╬п╧ я│п╦я│я┌п╣п╪я▀ OpenBSD, п╦ п©п╣я─п╣п╫п╣я│я▒п╫п╫я┐я▌ п╡п©п╬я│п╩п╣п╢я│я┌п╡п╦п╦ п╫п╟ п╢я─я┐пЁп╦п╣
п©п╩п╟я┌я└п╬я─п╪я▀.

%prep
%setup
%patch -p1
%patch1 -p1
%patch2 -p1
bzip2 -9k ChangeLog

%build
%add_optflags -DUSE_ADJTIMEX
%{?_with_setproctitle:export LIBS=-lsetproctitle}
%autoreconf
%configure \
--with-mantype=doc \
--with-privsep-user=%privuser \
--with-privsep-path=%privpath \
--disable-strip \
#
%make_build

%install
%makeinstall_std
install -pD -m755 %_sourcedir/ntpd.init %buildroot%_initdir/ntpd
install -pD -m755 %_sourcedir/ntpd.control %buildroot%_controldir/ntpd
install -pD -m640 %_sourcedir/ntpd.sysconfig %buildroot%_sysconfdir/sysconfig/ntpd
install -pD -m644 %_sourcedir/ntpd.service %buildroot%systemd_unitdir/ntpd.service

%pre
/usr/sbin/groupadd -r -f %privgroup
/usr/sbin/useradd -r -s /dev/null -g %privgroup -d %privpath -c 'OpenNTP daemon' %privuser >/dev/null 2>&1 ||:

%post
%post_service ntpd

%preun
%preun_service ntpd

%files
%config(noreplace) %attr(640,root,wheel) %_sysconfdir/ntpd.conf
%config(noreplace) %attr(640,root,wheel) %_sysconfdir/sysconfig/ntpd
%config %_initdir/ntpd
%config %_controldir/ntpd
%systemd_unitdir/ntpd.service
%_sbindir/ntpd
%_mandir/man?/ntpd.*
%doc CREDITS ChangeLog.bz2 LICENCE README

%changelog

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

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