Date: Saturday, March 2, 2013 @ 09:04:30 Author: thestinger Revision: 85508
chrony: use the kernel's enhanced RTC support by default Modified: chrony/trunk/PKGBUILD ----------+ PKGBUILD | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2013-03-02 07:06:14 UTC (rev 85507) +++ PKGBUILD 2013-03-02 08:04:30 UTC (rev 85508) @@ -1,6 +1,7 @@ # $Id$ # Maintainer: Sergej Pupykin <pupykin.s+a...@gmail.com> # Maintainer: Bartłomiej Piotrowski <nos...@bpiotrowski.pl> +# Maintainer: Daniel Micay <danielmi...@gmail.com> # Contributor: Patrick Leslie Polzer <leslie.pol...@gmx.net> # Contributor: cdhotfire <cdhotf...@gmail.com> # Contributor: Shinlun Hsieh <yngwi...@yahoo.com.tw> @@ -8,7 +9,7 @@ pkgname=chrony pkgver=1.27 -pkgrel=1 +pkgrel=2 pkgdesc='Lightweight NTP client and server' arch=('i686' 'x86_64') url="http://chrony.tuxfamily.org/" @@ -28,10 +29,15 @@ } package() { - cd $srcdir/$pkgname-$pkgver + cd $srcdir/$pkgname-$pkgver make DESTDIR=$pkgdir install 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 -ie '/^! \(rtconutc\|rtcfile \/etc\/chrony.rtc\)$/ s/^! //' \ + "$pkgdir/etc/chrony.conf" + install -Dm644 $srcdir/service $pkgdir/usr/lib/systemd/system/chrony.service install -dm755 "$pkgdir/usr/lib/systemd/ntp-units.d"