summaryrefslogtreecommitdiff
path: root/community/chrony
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-03-03 01:05:38 -0800
committerroot <root@rshg054.dnsready.net>2013-03-03 01:05:38 -0800
commit945c9cd1e94fab87653f84598812dec707843d26 (patch)
treebd1fccd08cd5fff72cdc25cb51382b882b4faa3e /community/chrony
parent98aa0004e23472ee63753fded33cd55d8b942f36 (diff)
Sun Mar 3 01:04:55 PST 2013
Diffstat (limited to 'community/chrony')
-rw-r--r--community/chrony/PKGBUILD12
1 files changed, 9 insertions, 3 deletions
diff --git a/community/chrony/PKGBUILD b/community/chrony/PKGBUILD
index 3c923f6ea..42af8ff73 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')
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"