Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=adb98179e450f89c9027c9c88a32b2d7e7558f1d

commit adb98179e450f89c9027c9c88a32b2d7e7558f1d
Author: Devil505 <devil505li...@gmail.com>
Date:   Tue Nov 8 20:44:41 2011 +0100

chrony-1.26-1-i686
* new package
* added systemd service file
* added custom conf file

diff --git a/source/network/chrony/FrugalBuild 
b/source/network/chrony/FrugalBuild
new file mode 100644
index 0000000..62e742b
--- /dev/null
+++ b/source/network/chrony/FrugalBuild
@@ -0,0 +1,29 @@
+# Compiling Time: 0.01 SBU
+# Maintainer: Devil505 <devil505li...@gmail.com>
+
+pkgname=chrony
+pkgver=1.26
+pkgrel=1
+pkgdesc="Dial-up friendly NTP daemon and excellent replacement for NTP on 
desktop systems"
+url="http://chrony.tuxfamily.org/";
+depends=('readline' 'libcap')
+groups=('network')
+archs=('i686' 'x86_64')
+backup=('etc/chrony.conf')
+up2date="Flasttar http://download.tuxfamily.org/chrony/";
+source=(http://download.tuxfamily.org/chrony/${pkgname}-${pkgver}.tar.gz \
+       $pkgname.service \
+       $pkgname.conf)
+sha1sums=('9b5a5391a1dccc04c78277adfd0ec094bef91e70' \
+          'bb81c1297524f12fbf8522bf7be082fdaa2d0680' \
+          '1f07a06361a648fa04929dde9dc30c83b3250aef')
+
+build() {
+       Fbuild
+       Ffile $pkgname.conf etc/$pkgname.conf
+       Ffilerel examples/$pkgname.keys.example /etc/$pkgname.keys
+       Fmkdir lib/systemd/system/
+       Finstall 0644 $pkgname.service /lib/systemd/system/$pkgname.service
+}
+
+# optimization OK
diff --git a/source/network/chrony/chrony.conf 
b/source/network/chrony/chrony.conf
new file mode 100644
index 0000000..eedc57e
--- /dev/null
+++ b/source/network/chrony/chrony.conf
@@ -0,0 +1,39 @@
+# Use public servers from the pool.ntp.org project.
+# Please consider joining the pool (http://www.pool.ntp.org/join.html).
+server 0.pool.ntp.org iburst
+server 1.pool.ntp.org iburst
+server 2.pool.ntp.org iburst
+server 3.pool.ntp.org iburst
+
+# Ignore stratum in source selection.
+stratumweight 0
+
+# Record the rate at which the system clock gains/losses time.
+driftfile /var/lib/chrony/drift
+
+# Enable kernel RTC synchronization.
+rtcsync
+
+# In first three updates step the system clock instead of slew
+# if the adjustment is larger than 100 seconds.
+makestep 100 3
+
+# Allow client access from local network.
+#allow 192.168/16
+
+# Serve time even if not synchronized to any NTP server.
+#local stratum 10
+
+keyfile /etc/chrony.keys
+
+# Specify the key used as password for chronyc.
+commandkey 1
+
+# Disable logging of client accesses.
+noclientlog
+
+# Send a message to syslog if a clock adjustment is larger than 0.5 seconds.
+logchange 0.5
+
+logdir /var/log/chrony
+#log measurements statistics tracking
\ No newline at end of file
diff --git a/source/network/chrony/chrony.service 
b/source/network/chrony/chrony.service
new file mode 100644
index 0000000..05c21c0
--- /dev/null
+++ b/source/network/chrony/chrony.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Chrony Network Time Daemon
+
+[Service]
+Type=forking
+ExecStart=/usr/sbin/chronyd
+PIDFile=/var/run/chronyd.pid
+
+[Install]
+WantedBy=multi-user.target
\ No newline at end of file
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to