diff options
Diffstat (limited to 'community/chrony/PKGBUILD')
-rw-r--r-- | community/chrony/PKGBUILD | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/community/chrony/PKGBUILD b/community/chrony/PKGBUILD index e009e9546..50af1b4d7 100644 --- a/community/chrony/PKGBUILD +++ b/community/chrony/PKGBUILD @@ -1,6 +1,7 @@ -# $Id: PKGBUILD 83627 2013-02-04 07:41:05Z bpiotrowski $ +# $Id: PKGBUILD 85509 2013-03-02 08:05:25Z thestinger $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl> +# Maintainer: Daniel Micay <danielmicay@gmail.com> # Contributor: Patrick Leslie Polzer <leslie.polzer@gmx.net> # Contributor: cdhotfire <cdhotfire@gmail.com> # Contributor: Shinlun Hsieh <yngwiexx@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' 'mips64el') url="http://chrony.tuxfamily.org/" @@ -28,10 +29,15 @@ build() { } 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" |