summaryrefslogtreecommitdiff
path: root/community/chrony/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/chrony/PKGBUILD')
-rw-r--r--community/chrony/PKGBUILD10
1 files changed, 5 insertions, 5 deletions
diff --git a/community/chrony/PKGBUILD b/community/chrony/PKGBUILD
index d10e1d111..e54a0f628 100644
--- a/community/chrony/PKGBUILD
+++ b/community/chrony/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 95307 2013-08-09 02:41:57Z thestinger $
+# $Id: PKGBUILD 99445 2013-10-29 00:06:24Z thestinger $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Daniel Micay <danielmicay@gmail.com>
# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
@@ -9,7 +9,7 @@
pkgname=chrony
pkgver=1.29
-pkgrel=1
+pkgrel=2
pkgdesc='Lightweight NTP client and server'
arch=('i686' 'x86_64' 'mips64el')
url="http://chrony.tuxfamily.org/"
@@ -34,9 +34,9 @@ package() {
install -Dm0644 "$srcdir/$pkgname-$pkgver/examples/chrony.conf.example" "$pkgdir/etc/chrony.conf"
- # Arch's kernel has enhanced RTC support, make chrony use it by default
- sed -i '/^! \(rtconutc\|rtcfile \/var\/lib\/chrony\/rtc\)$/ s/^! //' \
- "$pkgdir/etc/chrony.conf"
+ echo -e "\n# Enable kernel RTC sync\nrtcsync" >> "$pkgdir/etc/chrony.conf"
+
+ sed -i '/^! rtconutc$/ s/^! //' "$pkgdir/etc/chrony.conf"
mv "$pkgdir/usr/sbin/chronyd" "$pkgdir/usr/bin"
rmdir "$pkgdir/usr/sbin"