Group :: System/Servers
RPM: rdate
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Name: rdate
Version: 1.4
Release: alt5
Summary: Tool for retrieving the date/time from another machine on your network
Summary(ru_RU.KOI8-R): Программа для чтения удалённых часов и установки по ним местных
Packager: Stanislav Yadykin <tosick at altlinux.ru>
License: GPL
Group: System/Servers
Url: http://directory.fsf.org/sysadmin/remote/rdate.html
Source: ftp://people.redhat.com/sopwith/%name-%version.tar.bz2
%description
The %name utility retrieves the date and time from another machine
on your network, using the protocol described in RFC 868. If you
run %name as root, it will set your machine's local time to the time
of the machine that you queried. Note that %name isn't scrupulously
accurate. If you are worried about milliseconds, get the ntp
package instead.
You need install xinetd and run 'chkconfig time-udp on' on time server.
%description -l ru_RU.KOI8-R
Утилита rdate считывает дату и время с другой машины сети,
используя протокол, описанный в RFC 868. Если вы запускаете rdate от
пользователя root, она также может установить время на локальной
машине в соответствии со временем на удалённой машине. Имейте в виду,
что rdate не отличается особенной точностью; если вы заботитесь о
миллисекундах, установите пакет ntp, использующий ntpd.
На сервере времени вам потребуется установить xinetd и
запустить 'chkconfig time-udp on'.
%prep
%setup -q
%build
gcc $RPM_OPT_FLAGS -D_GNU_SOURCE %name.c -o %name
%install
install -p -m755 -D %name %buildroot%_bindir/%name
install -p -m644 -D %name.1 %buildroot%_man1dir/%name.1
%files
%_bindir/*
%_man1dir/*
%changelog
…
Full changelog you can see here
Version: 1.4
Release: alt5
Summary: Tool for retrieving the date/time from another machine on your network
Summary(ru_RU.KOI8-R): Программа для чтения удалённых часов и установки по ним местных
Packager: Stanislav Yadykin <tosick at altlinux.ru>
License: GPL
Group: System/Servers
Url: http://directory.fsf.org/sysadmin/remote/rdate.html
Source: ftp://people.redhat.com/sopwith/%name-%version.tar.bz2
%description
The %name utility retrieves the date and time from another machine
on your network, using the protocol described in RFC 868. If you
run %name as root, it will set your machine's local time to the time
of the machine that you queried. Note that %name isn't scrupulously
accurate. If you are worried about milliseconds, get the ntp
package instead.
You need install xinetd and run 'chkconfig time-udp on' on time server.
%description -l ru_RU.KOI8-R
Утилита rdate считывает дату и время с другой машины сети,
используя протокол, описанный в RFC 868. Если вы запускаете rdate от
пользователя root, она также может установить время на локальной
машине в соответствии со временем на удалённой машине. Имейте в виду,
что rdate не отличается особенной точностью; если вы заботитесь о
миллисекундах, установите пакет ntp, использующий ntpd.
На сервере времени вам потребуется установить xinetd и
запустить 'chkconfig time-udp on'.
%prep
%setup -q
%build
gcc $RPM_OPT_FLAGS -D_GNU_SOURCE %name.c -o %name
%install
install -p -m755 -D %name %buildroot%_bindir/%name
install -p -m644 -D %name.1 %buildroot%_man1dir/%name.1
%files
%_bindir/*
%_man1dir/*
%changelog
…
Full changelog you can see here