From 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 19 Jul 2013 01:10:32 -0700 Subject: Fri Jul 19 01:09:18 PDT 2013 --- community/chrony/PKGBUILD | 48 +++++++++++++++++++++++++++++++++++++++++++++++ community/chrony/service | 11 +++++++++++ 2 files changed, 59 insertions(+) create mode 100644 community/chrony/PKGBUILD create mode 100644 community/chrony/service (limited to 'community/chrony') diff --git a/community/chrony/PKGBUILD b/community/chrony/PKGBUILD new file mode 100644 index 000000000..0c5c7337b --- /dev/null +++ b/community/chrony/PKGBUILD @@ -0,0 +1,48 @@ +# $Id: PKGBUILD 94253 2013-07-18 00:42:27Z thestinger $ +# Maintainer: Sergej Pupykin +# Maintainer: Daniel Micay +# Contributor: Bartłomiej Piotrowski +# Contributor: Patrick Leslie Polzer +# Contributor: cdhotfire +# Contributor: Shinlun Hsieh +# Contributor: Elisamuel Resto + +pkgname=chrony +pkgver=1.28 +pkgrel=1 +pkgdesc='Lightweight NTP client and server' +arch=('i686' 'x86_64') +url="http://chrony.tuxfamily.org/" +options=(strip emptydirs) +license=('GPL') +depends=('readline' 'libcap') +backup=('etc/chrony.conf') +source=(http://download.tuxfamily.org/chrony/${pkgname}-${pkgver}.tar.gz + service) +sha256sums=('7adc34e77c5b5ffdf274adad54de503a34386f6b483c45e1a723751763c04364' + 'bef4305fa7e5828e1a1fd43aa8e631f22f21902f6cdc2d3b5b41a57bd9a175dc') + +build() { + cd $pkgname-$pkgver + ./configure --prefix=/usr + make +} + +package() { + cd $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 -i '/^! \(rtconutc\|rtcfile \/var\/lib\/chrony\/rtc\)$/ s/^! //' \ + "$pkgdir/etc/chrony.conf" + + 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" +} diff --git a/community/chrony/service b/community/chrony/service new file mode 100644 index 000000000..3a012ffac --- /dev/null +++ b/community/chrony/service @@ -0,0 +1,11 @@ +[Unit] +Description=Chrony Network Time Daemon +After=network.target + +[Service] +Type=forking +ExecStart=/usr/bin/chronyd +PIDFile=/var/run/chronyd.pid + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3-54-g00ecf