ALT Linux repos
S: | 3.9p1-alt15 |
5.0: | 3.9p1-alt10 |
4.1: | 3.9p1-alt8 |
4.0: | 3.9p1-alt8 |
3.0: | |
+backports: | 3.9p1-alt0.M30.1 |
Group :: Networking/Other
RPM: openntpd
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Name: openntpd
Version: 3.9p1
Release: alt0.M30.1
%define privuser ntpd
%define privgroup ntpd
%define privpath /var/empty
Summary: Network daemon for synchronize local clock to remote NTP servers
License: ISC-style
Group: Networking/Other
Url: http://www.openntpd.org
Packager: Ilya Evseev <evseev at altlinux.ru>
# http://ftp.chg.ru/pub/OpenBSD/OpenNTPD/%name-%version.tar.gz
Source0: ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/%name-%version.tar.bz2
Source1: ntpd.init
Source2: ntpd.control
Source3: ntpd.sysconfig
Patch: openntpd-3.9p1-alt-setproctitle.patch
PreReq: %privpath
Conflicts: ntpd
BuildRequires: setproctitle-devel, libssl-devel
Summary(ru_RU.KOI8-R): Сетевой сервер для синхронизации точного времени
%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.KOI8-R
Демон NTP синхронизирует время в локальных системных часах с внешними
серверами NTP, а также при необходимости сам выступает сервером NTP,
сообщая своё локальное время по сети другим компьютерам.
Данный пакет содержит реализацию NTP-демона, разработанную в рамках
операционной системы OpenBSD, и перенесённую впоследствии на другие
платформы.
%prep
%setup -q
%patch -p1
%__bzip2 -9k ChangeLog
%build
export LIBS='-lsetproctitle'
%configure \
--with-mantype=doc \
--with-privsep-user=%privuser \
--with-privsep-path=%privpath
%make_build
%install
%makeinstall
%__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
%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
%_sbindir/ntpd
%_mandir/man*/ntpd.*
%doc CREDITS ChangeLog.bz2 LICENCE README
%pre
/usr/sbin/groupadd -r -f %privgroup >/dev/null 2>&1 ||:
/usr/sbin/useradd -r -n -s /dev/null -g %privgroup -d %privpath -c 'OpenNTP daemon' %privuser >/dev/null 2>&1 ||:
%post
%post_service ntpd
%preun
%preun_service ntpd
%changelog
…
Full changelog you can see here
Version: 3.9p1
Release: alt0.M30.1
%define privuser ntpd
%define privgroup ntpd
%define privpath /var/empty
Summary: Network daemon for synchronize local clock to remote NTP servers
License: ISC-style
Group: Networking/Other
Url: http://www.openntpd.org
Packager: Ilya Evseev <evseev at altlinux.ru>
# http://ftp.chg.ru/pub/OpenBSD/OpenNTPD/%name-%version.tar.gz
Source0: ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/%name-%version.tar.bz2
Source1: ntpd.init
Source2: ntpd.control
Source3: ntpd.sysconfig
Patch: openntpd-3.9p1-alt-setproctitle.patch
PreReq: %privpath
Conflicts: ntpd
BuildRequires: setproctitle-devel, libssl-devel
Summary(ru_RU.KOI8-R): Сетевой сервер для синхронизации точного времени
%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.KOI8-R
Демон NTP синхронизирует время в локальных системных часах с внешними
серверами NTP, а также при необходимости сам выступает сервером NTP,
сообщая своё локальное время по сети другим компьютерам.
Данный пакет содержит реализацию NTP-демона, разработанную в рамках
операционной системы OpenBSD, и перенесённую впоследствии на другие
платформы.
%prep
%setup -q
%patch -p1
%__bzip2 -9k ChangeLog
%build
export LIBS='-lsetproctitle'
%configure \
--with-mantype=doc \
--with-privsep-user=%privuser \
--with-privsep-path=%privpath
%make_build
%install
%makeinstall
%__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
%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
%_sbindir/ntpd
%_mandir/man*/ntpd.*
%doc CREDITS ChangeLog.bz2 LICENCE README
%pre
/usr/sbin/groupadd -r -f %privgroup >/dev/null 2>&1 ||:
/usr/sbin/useradd -r -n -s /dev/null -g %privgroup -d %privpath -c 'OpenNTP daemon' %privuser >/dev/null 2>&1 ||:
%post
%post_service ntpd
%preun
%preun_service ntpd
%changelog
…
Full changelog you can see here