summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWout Mertens <wmertens@gentoo.org>2002-05-12 16:46:21 +0000
committerWout Mertens <wmertens@gentoo.org>2002-05-12 16:46:21 +0000
commit27bd7e317f720113cc10b017bb02275370628c7d (patch)
tree24780ca7db6b07c0990ada80bedc884dc6c2f45a /net-misc/chrony
parentremove old versions (diff)
downloadgentoo-2-27bd7e317f720113cc10b017bb02275370628c7d.tar.gz
gentoo-2-27bd7e317f720113cc10b017bb02275370628c7d.tar.bz2
gentoo-2-27bd7e317f720113cc10b017bb02275370628c7d.zip
Initial release
Diffstat (limited to 'net-misc/chrony')
-rw-r--r--net-misc/chrony/Changelog13
-rw-r--r--net-misc/chrony/chrony-1.18.ebuild63
-rw-r--r--net-misc/chrony/files/chrony-1.18-chrony.conf.example-gentoo.diff57
-rw-r--r--net-misc/chrony/files/chrony-1.18-conf.c-gentoo.diff11
-rw-r--r--net-misc/chrony/files/chronyd.rc61
-rw-r--r--net-misc/chrony/files/digest-chrony-1.181
6 files changed, 206 insertions, 0 deletions
diff --git a/net-misc/chrony/Changelog b/net-misc/chrony/Changelog
new file mode 100644
index 000000000000..fff35ca6dde2
--- /dev/null
+++ b/net-misc/chrony/Changelog
@@ -0,0 +1,13 @@
+# ChangeLog for <CATEGORY>/<PACKAGE_NAME>
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/chrony/Changelog,v 1.1 2002/05/12 16:46:21 wmertens Exp $
+
+*chrony-1.18 (12 May 2002)
+
+ 12 May 2002; Wout Mertens <wmertens@gentoo.org> chrony-1.18.ebuild:
+ Changed default config file to /etc/chrony/chrony.conf
+ Put reasonable defaults in example config
+ Added auto pid file detection to startup script
+
+ 12 May 2002; Bardur Arantsson <bardur-gta@odense.kollegienet.dk> chrony-1.18.ebuild:
+ Initial ebuild
diff --git a/net-misc/chrony/chrony-1.18.ebuild b/net-misc/chrony/chrony-1.18.ebuild
new file mode 100644
index 000000000000..cf97057d4b8c
--- /dev/null
+++ b/net-misc/chrony/chrony-1.18.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# Maintainer: Bardur Arantsson <bardur@imada.sdu.dk>
+# /space/gentoo/cvsroot/gentoo-x86/skel.ebuild,v 1.4 2002/03/12 16:05:09 tod Exp
+
+S=${WORKDIR}/${P}
+DESCRIPTION="NTP client and server programs"
+SRC_URI="http://chrony.sunsite.dk/download/${P}.tar.gz"
+HOMEPAGE="http://chrony.sunsite.dk"
+
+DEPEND="virtual/glibc
+ readline? ( >=readline-4.1-r4 )"
+
+# Patch the distribution so that it puts stuff in /etc/chrony/ by default
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ cp conf.c conf.c.orig
+ patch -p0 < ${FILESDIR}/${P}-conf.c-gentoo.diff
+ cd examples
+ cp chrony.conf.example chrony.conf.example.orig
+ patch -p0 < ${FILESDIR}/${P}-chrony.conf.example-gentoo.diff
+}
+
+src_compile() {
+
+ local myconf
+
+ use readline || myconf="--disable-readline"
+
+ ./configure \
+ --prefix=/usr \
+ --infodir=/usr/share/info \
+ --mandir=/usr/share/man \
+ $myconf || die "./configure failed"
+
+ emake all docs || die
+}
+
+src_install () {
+ # the chrony install is brain-dead so we'll
+ # just do it ourselves.
+
+ dobin chronyc
+ dosbin chronyd
+
+ # documentation
+ dodoc chrony.txt chrony.html COPYING README
+
+ # man pages
+ doman *.{1,5,8}
+
+ # info files
+ doinfo chrony.info*
+
+ # example configuration files
+ dodoc examples/chrony.conf.example
+ dodoc examples/chrony.keys.example
+
+ # system configuration
+ exeinto /etc/init.d ; newexe ${FILESDIR}/chronyd.rc chronyd
+ dodir /etc/chrony
+}
diff --git a/net-misc/chrony/files/chrony-1.18-chrony.conf.example-gentoo.diff b/net-misc/chrony/files/chrony-1.18-chrony.conf.example-gentoo.diff
new file mode 100644
index 000000000000..c89299e66cda
--- /dev/null
+++ b/net-misc/chrony/files/chrony-1.18-chrony.conf.example-gentoo.diff
@@ -0,0 +1,57 @@
+--- chrony.conf.example.orig Sun May 12 18:16:30 2002
++++ chrony.conf.example Sun May 12 18:17:12 2002
+@@ -2,7 +2,7 @@
+ # $Header: /var/cvsroot/gentoo-x86/net-misc/chrony/files/chrony-1.18-chrony.conf.example-gentoo.diff,v 1.1 2002/05/12 16:46:21 wmertens Exp $
+ #
+ # This is an example chrony configuration file. You should copy it to
+-# /etc/chrony.conf after uncommenting and editing the options that you
++# /etc/chrony/chrony.conf after uncommenting and editing the options that you
+ # want to enable. I have not included the more obscure options. Refer
+ # to the documentation for these.
+ #
+@@ -90,7 +90,7 @@
+ # immediately so that it doesn't gain or lose any more time. You
+ # generally want this, so it is uncommented.
+
+-driftfile /etc/chrony.drift
++driftfile /etc/chrony/chrony.drift
+
+ # If you want to use the program called chronyc to configure aspects of
+ # chronyd's operation once it is running (e.g. tell it the Internet link
+@@ -99,7 +99,7 @@
+ # exchanges between cooperating machines.) Again, this option is
+ # assumed by default.
+
+-keyfile /etc/chrony.keys
++keyfile /etc/chrony/chrony.keys
+
+ # Tell chronyd which numbered key in the file is used as the password
+ # for chronyc. (You can pick any integer up to 2**32-1. '1' is just a
+@@ -157,8 +157,8 @@
+ ! logdir /var/log/chrony
+ ! log measurements statistics tracking
+
+-If you have real time clock support enabled (see below), you might want
+-this line instead:
++# If you have real time clock support enabled (see below), you might want
++# this line instead:
+
+ ! log measurements statistics tracking rtc
+
+@@ -268,7 +268,7 @@
+ # You need to have 'enhanced RTC support' compiled into your Linux
+ # kernel. (Note, these options apply only to Linux.)
+
+-! rtcfile /etc/chrony.rtc
++! rtcfile /etc/chrony/chrony.rtc
+
+ # Your RTC can be set to keep Universal Coordinated Time (UTC) or local
+ # time. (Local time means UTC +/- the effect of your timezone.) If you
+@@ -284,6 +284,6 @@
+ # /dev/rtc. If it's accessed somewhere else on your system (e.g. you're
+ # using devfs), uncomment and edit the following line.
+
+-! rtcdevice /dev/misc/rtc
++rtcdevice /dev/misc/rtc
+
+ #######################################################################
diff --git a/net-misc/chrony/files/chrony-1.18-conf.c-gentoo.diff b/net-misc/chrony/files/chrony-1.18-conf.c-gentoo.diff
new file mode 100644
index 000000000000..fabc47097ff9
--- /dev/null
+++ b/net-misc/chrony/files/chrony-1.18-conf.c-gentoo.diff
@@ -0,0 +1,11 @@
+--- conf.c.orig Sun May 12 14:07:31 2002
++++ conf.c Sun May 12 14:07:52 2002
+@@ -45,7 +45,7 @@
+
+ /* ================================================== */
+
+-#define DEFAULT_CONF_FILE "/etc/chrony.conf"
++#define DEFAULT_CONF_FILE "/etc/chrony/chrony.conf"
+
+ /* ================================================== */
+ /* Forward prototypes */
diff --git a/net-misc/chrony/files/chronyd.rc b/net-misc/chrony/files/chronyd.rc
new file mode 100644
index 000000000000..21d00ae949ca
--- /dev/null
+++ b/net-misc/chrony/files/chronyd.rc
@@ -0,0 +1,61 @@
+#!/sbin/runscript
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# /space/gentoo/cvsroot/gentoo-x86/net-misc/ntp/files/ntpd.rc6,v 1.3 2002/03/24 14:25:31 azarah Exp
+
+depend() {
+ need net
+}
+
+CFGFILE=/etc/chrony/chrony.conf
+
+checkconfig() {
+
+ # Note that /etc/chrony.keys is *NOT* checked. This
+ # is because the user may have specified another key
+ # file, and we don't want to force the user to use that
+ # exact name for the key file.
+ if [ ! -f $CFGFILE ]
+ then
+ eerror "Please create $cfgfile and the"
+ eerror "chrony key file (usually /etc/chrony/chrony.keys)"
+ eerror "by using the"
+ eerror ""
+ eerror " chrony.conf.example"
+ eerror " chrony.keys.example"
+ eerror ""
+ eerror "files (from the documentation directory)"
+ eerror "as templates."
+ return 1
+ else
+ # Actually, I tried it, and chrony seems to ignore the pidfile
+ # option. I'm going to leave it here anyway, since you never
+ # know if it might be handy
+ PIDFILE=`awk '/^ *pidfile/{print $2}' $CFGFILE`
+ fi
+ return 0
+}
+
+start() {
+ checkconfig || return $?
+
+ [ -n "$PIDFILE" ] || PIDFILE=/var/run/chronyd.pid
+
+ ebegin "Starting chronyd"
+ start-stop-daemon --start --quiet \
+ --exec /usr/sbin/chronyd \
+ --pidfile $PIDFILE \
+ -- -f $CFGFILE
+ eend $? "Failed to start chronyd"
+}
+
+stop() {
+ checkconfig || return $?
+
+ [ -n "$PIDFILE" ] || PIDFILE=/var/run/chronyd.pid
+
+ ebegin "Stopping chronyd"
+ start-stop-daemon --stop --quiet \
+ --pidfile $PIDFILE
+ eend $? "Failed to stop chronyd"
+}
diff --git a/net-misc/chrony/files/digest-chrony-1.18 b/net-misc/chrony/files/digest-chrony-1.18
new file mode 100644
index 000000000000..cdc53127b2d2
--- /dev/null
+++ b/net-misc/chrony/files/digest-chrony-1.18
@@ -0,0 +1 @@
+MD5 d76f2191226e6cd631302d7e9b5c5839 chrony-1.18.tar.gz 302364