summaryrefslogtreecommitdiff
path: root/community/chrony
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2013-03-03 10:42:41 +0100
committerMichał Masłowski <mtjm@mtjm.eu>2013-03-03 10:42:41 +0100
commitab6933b5cc48c6dfb3390b78c579832ba87e001d (patch)
treeacf5e3b5502a20a7458167e39d9c7c75b96f27cb /community/chrony
parentb93266a2e63bdf4d37a87a5e59ff36d78de40be0 (diff)
parent945c9cd1e94fab87653f84598812dec707843d26 (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community/gmerlin/PKGBUILD community/volumeicon/PKGBUILD extra/graphite/PKGBUILD extra/icedtea-web/PKGBUILD extra/openjdk6/PKGBUILD extra/qt4/PKGBUILD
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 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"