summaryrefslogtreecommitdiff
path: root/community/chrony/PKGBUILD
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2013-05-13 10:43:29 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2013-05-13 10:43:29 +0200
commit435c057e31699c734b0aabb46c2d9a4f647f1367 (patch)
treeef2aff16463c36475e3e39c59f27a4c4fa94303c /community/chrony/PKGBUILD
parent4e93709c6f760c133cf59fe25e8a3b81e6326d0f (diff)
parent66cb4a487ad73063c6b000279a5d5558fb7603f5 (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community/espeakup/PKGBUILD community/lxnm/PKGBUILD community/notmuch/PKGBUILD community/pidgin-lwqq/PKGBUILD community/python2-numexpr/PKGBUILD core/systemd/PKGBUILD extra/evolution-data-server/PKGBUILD extra/fakechroot/PKGBUILD extra/fsarchiver/PKGBUILD extra/gifsicle/PKGBUILD extra/i8kutils/PKGBUILD extra/msmtp/PKGBUILD extra/xfce4-power-manager/PKGBUILD
Diffstat (limited to 'community/chrony/PKGBUILD')
-rw-r--r--community/chrony/PKGBUILD27
1 files changed, 15 insertions, 12 deletions
diff --git a/community/chrony/PKGBUILD b/community/chrony/PKGBUILD
index 50af1b4d7..3a4d80446 100644
--- a/community/chrony/PKGBUILD
+++ b/community/chrony/PKGBUILD
@@ -1,7 +1,7 @@
-# $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>
+# $Id: PKGBUILD 90367 2013-05-12 04:56:34Z thestinger $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Maintainer: Daniel Micay <danielmicay@gmail.com>
+# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Contributor: Patrick Leslie Polzer <leslie.polzer@gmx.net>
# Contributor: cdhotfire <cdhotfire@gmail.com>
# Contributor: Shinlun Hsieh <yngwiexx@yahoo.com.tw>
@@ -9,7 +9,7 @@
pkgname=chrony
pkgver=1.27
-pkgrel=2
+pkgrel=3
pkgdesc='Lightweight NTP client and server'
arch=('i686' 'x86_64' 'mips64el')
url="http://chrony.tuxfamily.org/"
@@ -20,25 +20,28 @@ backup=('etc/chrony.conf')
source=(http://download.tuxfamily.org/chrony/${pkgname}-${pkgver}.tar.gz
service)
sha256sums=('d44835ee2180a9a0f4f320fc498c39d59dec33d35c2aa05b446fe65a2a83ae9d'
- 'b4f68b335820b6a8429591750da294e5a9fafc1e8f6af8d865f6604516ecb306')
+ 'bef4305fa7e5828e1a1fd43aa8e631f22f21902f6cdc2d3b5b41a57bd9a175dc')
build() {
- cd $srcdir/$pkgname-$pkgver
+ cd $pkgname-$pkgver
./configure --prefix=/usr
make
}
package() {
- cd $srcdir/$pkgname-$pkgver
- make DESTDIR=$pkgdir install
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
- install -Dm0644 $srcdir/$pkgname-$pkgver/examples/chrony.conf.example $pkgdir/etc/chrony.conf
+ 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/^! //' \
+ sed -i '/^! \(rtconutc\|rtcfile \/etc\/chrony.rtc\)$/ s/^! //' \
"$pkgdir/etc/chrony.conf"
- install -Dm644 $srcdir/service $pkgdir/usr/lib/systemd/system/chrony.service
+ mv "$pkgdir/usr/sbin/chronyd" "$pkgdir/usr/bin"
+ rmdir "$pkgdir/usr/sbin"
+
+ install -Dm644 "$srcdir/service" "$pkgdir/usr/lib/systemd/system/chrony.service"
install -dm755 "$pkgdir/usr/lib/systemd/ntp-units.d"
echo "$pkgname.service" > "$pkgdir/usr/lib/systemd/ntp-units.d/$pkgname.list"