ports/174263: New port: net/chrony - System Clock Synchronization Client and Server

Masaki TAGAWA masaki at club.kyutech.ac.jp
Fri Dec 7 15:20:01 UTC 2012


>Number:         174263
>Category:       ports
>Synopsis:       New port: net/chrony - System Clock Synchronization Client and Server
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 07 15:20:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Masaki TAGAWA
>Release:        FreeBSD 9.0-STABLE amd64
>Organization:
Kyushu Institute of Technology
>Environment:
System: FreeBSD rosetta.club.kyutech.ac.jp 9.0-STABLE FreeBSD 9.0-STABLE #8: Mon Jul 2 11:36:08 JST 2012 root at rosetta.club.kyutech.ac.jp:/usr/obj/usr/src/sys/CLUBVMKERNEL amd64
>Description:
Chrony is a pair of programs which are used to maintain the accuracy of the
system clock on a computer. The two programs are called chronyd and chronyc.

Chronyd is a daemon which runs in background on the system. It obtains
measurements via the network of the system clock's offset relative to time
servers on other systems and adjusts the system time accordingly. For isolated
systems, the user can periodically enter the correct time by hand (using
		Chronyc). In either case, Chronyd determines the rate at which the computer
gains or loses time, and compensates for this. Chronyd implements the NTP 
protocol and can act as either a client or a server.

Chronyc provides a user interface to Chronyd for monitoring its performance and
configuring various settings. It can do so while running on the same computer
as the Chronyd instance it is controlling or a different computer.

WWW: http://chrony.tuxfamily.org/
>How-To-Repeat:
	
>Fix:

	

--- chrony.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	chrony
#	chrony/pkg-plist
#	chrony/distinfo
#	chrony/Makefile
#	chrony/files
#	chrony/files/patch-chrony.conf
#	chrony/files/patch-chrony.keys
#	chrony/files/chronyd.in
#	chrony/pkg-descr
#
echo c - chrony
mkdir -p chrony > /dev/null 2>&1
echo x - chrony/pkg-plist
sed 's/^X//' >chrony/pkg-plist << '89a22c88301ec226eab78837d5620c65'
X at stopdaemon chronyd
Xsbin/chronyd
Xbin/chronyc
X at unexec if cmp -s %D/etc/chrony.conf.example %D/etc/chrony.conf; then rm -f %D/etc/chrony.conf; fi
X at unexec if cmp -s %D/etc/chrony.keys.example %D/etc/chrony.keys; then rm -f %D/etc/chrony.keys; fi
Xetc/chrony.conf.example
Xetc/chrony.keys.example
X at exec [ -f %D/etc/chrony.conf ] || cp -p %D/etc/chrony.conf.example %D/etc/chrony.conf
X at exec [ -f %D/etc/chrony.keys ] || cp -p %D/etc/chrony.keys.example %D/etc/chrony.keys
89a22c88301ec226eab78837d5620c65
echo x - chrony/distinfo
sed 's/^X//' >chrony/distinfo << 'a7f889cf23aa88a0242e7c6b68261fb5'
XSHA256 (chrony-1.26.tar.gz) = fb191ca4ba59e192c96d022618ca3eaee49f3c11f9af8dd7297020b27bf3e05b
XSIZE (chrony-1.26.tar.gz) = 381475
a7f889cf23aa88a0242e7c6b68261fb5
echo x - chrony/Makefile
sed 's/^X//' >chrony/Makefile << 'c00cbb57d7217ed395efcf96f0d764bf'
X# Created by: Masaki TAGAWA <masaki at club.kyutech.ac.jp>
X# $FreeBSD$
X
XPORTNAME=	chrony
XPORTVERSION=	1.26
XCATEGORIES=	net ipv6
XMASTER_SITES=	http://download.tuxfamily.org/chrony/
X
XMAINTAINER=	masaki at club.kyutech.ac.jp
XCOMMENT=	System Clock Synchronization Client and Server
X
XLICENSE=	GPLv2
X
XMAN1=	chrony.1 chronyc.1
XMAN5=	chrony.conf.5
XMAN8=	chronyd.8
X
XPORTDOCS=	README chrony.txt COPYING
XEXAMPLES=	chrony.conf chrony.keys
X
XUSE_RC_SUBR=	chronyd
XUSE_GMAKE=	yes
XGNU_CONFIGURE=	yes
XCONFIGURE_ARGS=	--prefix=${PREFIX} --sysconfdir=${PREFIX}/etc
X
XOPTIONS_DEFAULT=	IPV6
XOPTIONS_DEFINE=	IPV6
X
X.include <bsd.port.options.mk>
X
X.if empty(PORT_OPTIONS:MIPV6)
XCONFIGURE_ARGS+=	--disable-ipv6
X.endif
X
Xdo-install:
X	@${INSTALL_PROGRAM} ${WRKSRC}/chronyd ${PREFIX}/sbin
X	@${INSTALL_PROGRAM} ${WRKSRC}/chronyc ${PREFIX}/bin
X
Xpost-install:
X.for f in ${MAN1}
X	@${INSTALL_MAN} ${WRKSRC}/${f} ${PREFIX}/man/man1
X.endfor
X.for f in ${MAN5}
X	@${INSTALL_MAN} ${WRKSRC}/${f} ${PREFIX}/man/man5
X.endfor
X.for f in ${MAN8}
X	@${INSTALL_MAN} ${WRKSRC}/${f} ${PREFIX}/man/man8
X.endfor
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X.for f in ${PORTDOCS}
X	@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
X.endfor
X.endif
X.for e in ${EXAMPLES}
X	@${INSTALL_DATA} ${WRKSRC}/examples/${e}.example ${PREFIX}/etc/${e}.example
X	@if [ ! -f ${PREFIX}/etc/${e} ]; then \
X		${CP} -p ${PREFIX}/etc/${e}.example ${PREFIX}/etc/${e}; \
X	fi
X.endfor
X
X.include <bsd.port.mk>
c00cbb57d7217ed395efcf96f0d764bf
echo c - chrony/files
mkdir -p chrony/files > /dev/null 2>&1
echo x - chrony/files/patch-chrony.conf
sed 's/^X//' >chrony/files/patch-chrony.conf << '23f7380a179c6b6494053997b2f7a412'
X--- examples/chrony.conf.example.org	2012-11-28 17:39:23.000000000 +0900
X+++ examples/chrony.conf.example	2012-11-28 17:43:12.000000000 +0900
X@@ -43,6 +43,11 @@
X # you can access at
X # http://www.eecis.udel.edu/~mills/ntp/servers.htm.
X 
X+server 0.freebsd.pool.ntp.org
X+server 1.freebsd.pool.ntp.org
X+server 2.freebsd.pool.ntp.org
X+server 3.freebsd.pool.ntp.org
X+
X ! server ntp0.your-isp.com
X ! server ntp1.your-isp.com
X ! server ntp.public-server.org
X@@ -89,7 +94,7 @@
X # immediately so that it doesn't gain or lose any more time.  You
X # generally want this, so it is uncommented.
X 
X-driftfile /etc/chrony.drift
X+driftfile /var/lib/chrony/chrony.drift
X 
X # If you want to use the program called chronyc to configure aspects of
X # chronyd's operation once it is running (e.g. tell it the Internet link
X@@ -98,7 +103,7 @@
X # exchanges between cooperating machines.)  Again, this option is
X # assumed by default.
X 
X-keyfile /etc/chrony.keys
X+keyfile /usr/local/etc/chrony.keys
X 
X # Tell chronyd which numbered key in the file is used as the password
X # for chronyc. (You can pick any integer up to 2**32-1.  '1' is just a
X@@ -122,14 +127,14 @@
X # Enable these two options to use this.
X 
X ! dumponexit
X-! dumpdir /var/log/chrony
X+! dumpdir /var/lib/chrony
X 
X # chronyd writes its process ID to a file.  If you try to start a second
X # copy of chronyd, it will detect that the process named in the file is
X # still running and bail out.  If you want to change the path to the PID
X # file, uncomment this line and edit it.  The default path is shown.
X 
X-! pidfile /var/run/chronyd.pid
X+pidfile /var/run/chronyd.pid
X 
X #######################################################################
X ### INITIAL CLOCK CORRECTION
X@@ -153,8 +158,8 @@
X # produce some graphs of your system's timekeeping performance, or you
X # need help in debugging a problem.
X 
X-! logdir /var/log/chrony
X-! log measurements statistics tracking
X+logdir /var/log/chrony
X+log measurements statistics tracking
X 
X # If you have real time clock support enabled (see below), you might want
X # this line instead:
23f7380a179c6b6494053997b2f7a412
echo x - chrony/files/patch-chrony.keys
sed 's/^X//' >chrony/files/patch-chrony.keys << 'a05f1eb7a762bc172d5e9b9797e254ba'
X--- examples/chrony.keys.example.org	2012-11-28 17:39:23.000000000 +0900
X+++ examples/chrony.keys.example	2012-11-28 17:45:02.000000000 +0900
X@@ -11,7 +11,7 @@
X #######################################################################
X # A valid key line looks like this
X 
X-1 a_key
X+1 change_me_to_a_secret
X 
X # It must consist of an integer, followed by whitespace, followed by a block of
X # text with no spaces in it.  (You cannot put a space in a key).  If you wanted
a05f1eb7a762bc172d5e9b9797e254ba
echo x - chrony/files/chronyd.in
sed 's/^X//' >chrony/files/chronyd.in << 'd9abc5918d8d0a5f1e5cd3b7ec4ad8e2'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X# REQUIRE: DAEMON
X# PROVIDE: chronyd
X#
X
X. /etc/rc.subr
X
Xname=chronyd
Xrcvar=chronyd_enable
X
Xcommand=%%PREFIX%%/sbin/${name}
Xpidfile="/var/run/${name}.pid"
X
Xextra_commands="status"
X
X# Read settings and set default values.
Xload_rc_config "$name"
X: ${chronyd_enable="NO"}
X
Xrun_rc_command "$1"
d9abc5918d8d0a5f1e5cd3b7ec4ad8e2
echo x - chrony/pkg-descr
sed 's/^X//' >chrony/pkg-descr << '124b50dd7c5f5187b4b94d3c8e9f38eb'
XChrony is a pair of programs which are used to maintain the accuracy of the
Xsystem clock on a computer. The two programs are called chronyd and chronyc.
X
XChronyd is a daemon which runs in background on the system. It obtains
Xmeasurements via the network of the system clock's offset relative to time
Xservers on other systems and adjusts the system time accordingly. For isolated
Xsystems, the user can periodically enter the correct time by hand (using
XChronyc). In either case, Chronyd determines the rate at which the computer
Xgains or loses time, and compensates for this. Chronyd implements the NTP 
Xprotocol and can act as either a client or a server.
X
XChronyc provides a user interface to Chronyd for monitoring its performance and
Xconfiguring various settings. It can do so while running on the same computer
Xas the Chronyd instance it is controlling or a different computer.
X
XWWW: http://chrony.tuxfamily.org/
124b50dd7c5f5187b4b94d3c8e9f38eb
exit
--- chrony.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list