[arch-commits] Commit in chrony/repos/community-x86_64 (7 files)

Eli Schwartz eschwartz at archlinux.org
Mon Jan 8 20:11:51 UTC 2018


    Date: Monday, January 8, 2018 @ 20:11:50
  Author: eschwartz
Revision: 280574

archrelease: copy trunk to community-x86_64

Added:
  chrony/repos/community-x86_64/PKGBUILD
    (from rev 280573, chrony/trunk/PKGBUILD)
  chrony/repos/community-x86_64/chrony.sysusers
    (from rev 280573, chrony/trunk/chrony.sysusers)
  chrony/repos/community-x86_64/chrony.tmpfiles
    (from rev 280573, chrony/trunk/chrony.tmpfiles)
  chrony/repos/community-x86_64/service
    (from rev 280573, chrony/trunk/service)
Deleted:
  chrony/repos/community-x86_64/PKGBUILD
  chrony/repos/community-x86_64/chrony.install
  chrony/repos/community-x86_64/service

-----------------+
 PKGBUILD        |  127 ++++++++++++++++++++++++++++--------------------------
 chrony.install  |   13 -----
 chrony.sysusers |    1 
 chrony.tmpfiles |    1 
 service         |   24 +++++-----
 5 files changed, 81 insertions(+), 85 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-01-08 20:11:25 UTC (rev 280573)
+++ PKGBUILD	2018-01-08 20:11:50 UTC (rev 280574)
@@ -1,60 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Contributor: Daniel Micay <danielmicay at gmail.com>
-# Contributor: Bartłomiej Piotrowski <nospam at bpiotrowski.pl>
-# Contributor: Patrick Leslie Polzer <leslie.polzer at gmx.net>
-# Contributor: cdhotfire <cdhotfire at gmail.com>
-# Contributor: Shinlun Hsieh <yngwiexx at yahoo.com.tw>
-# Contributor: Elisamuel Resto <ryuji at simplysam.us>
-
-pkgname=chrony
-pkgver=3.2
-pkgrel=1
-pkgdesc='Lightweight NTP client and server'
-arch=('i686' 'x86_64')
-url="http://chrony.tuxfamily.org/"
-options=(strip emptydirs)
-license=('GPL')
-depends=('nss' 'readline' 'libcap' 'libedit')
-backup=('etc/chrony.conf')
-source=(https://download.tuxfamily.org/chrony/${pkgname}-${pkgver}.tar.gz
-        service)
-install=${pkgname}.install
-sha256sums=('329f6718dd8c3ece3eee78be1f4821cbbeb62608e7d23f25da293cfa433c4116'
-            'dbd30435d5f51a92ecef779efa0eabaf56d09a35a18ddd30644d5418beada212')
-
-prepare() {
-  cd $pkgname-$pkgver
-  sed -i \
-    -e 's|pool.ntp.org|3.arch.pool.ntp.org|g' \
-    -e 's|server foo.example.net|server 0.arch.pool.ntp.org iburst|g' \
-    -e 's|server bar.example.net|server 1.arch.pool.ntp.org iburst|g' \
-    -e 's|server baz.example.net|server 2.arch.pool.ntp.org iburst|g' \
-    examples/chrony.conf.example*
-}
-
-build() {
-  cd $pkgname-$pkgver
-  ./configure --prefix=/usr
-  make
-}
-
-package() {
-  cd $pkgname-$pkgver
-  make DESTDIR="$pkgdir" install install-docs
-
-  install -Dm0644 "$srcdir/$pkgname-$pkgver/examples/chrony.conf.example3" "$pkgdir/etc/chrony.conf"
-
-  echo -e "\n# Enable kernel RTC sync\nrtcsync" >> "$pkgdir/etc/chrony.conf"
-
-  sed -i '/^! rtconutc$/ 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/chronyd.service"
-
-  cp -a examples "$pkgdir"/usr/share/doc/chrony/examples
-
-  chown 183:183 "$pkgdir/var/lib/chrony"
-}

Copied: chrony/repos/community-x86_64/PKGBUILD (from rev 280573, chrony/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-01-08 20:11:50 UTC (rev 280574)
@@ -0,0 +1,67 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Daniel Micay <danielmicay at gmail.com>
+# Contributor: Bartłomiej Piotrowski <nospam at bpiotrowski.pl>
+# Contributor: Patrick Leslie Polzer <leslie.polzer at gmx.net>
+# Contributor: cdhotfire <cdhotfire at gmail.com>
+# Contributor: Shinlun Hsieh <yngwiexx at yahoo.com.tw>
+# Contributor: Elisamuel Resto <ryuji at simplysam.us>
+
+pkgname=chrony
+pkgver=3.2
+pkgrel=2
+pkgdesc='Lightweight NTP client and server'
+arch=('x86_64')
+url="http://chrony.tuxfamily.org/"
+options=(strip emptydirs)
+license=('GPL')
+depends=('nss' 'readline' 'libcap' 'libedit')
+backup=('etc/chrony.conf')
+source=(https://download.tuxfamily.org/chrony/${pkgname}-${pkgver}.tar.gz
+        "${pkgname}-${pkgver}.tar.gz.asc::https://download.tuxfamily.org/chrony/${pkgname}-${pkgver}-tar-gz-asc.txt"
+        service
+        chrony.sysusers
+        chrony.tmpfiles)
+sha256sums=('329f6718dd8c3ece3eee78be1f4821cbbeb62608e7d23f25da293cfa433c4116'
+            '4434f5f6eca4781ac906e260db2444f9ce08df4406621e0c0b58818b5a78cb9c'
+            'dbd30435d5f51a92ecef779efa0eabaf56d09a35a18ddd30644d5418beada212'
+            '56aa817638c8f959169d514f1e7fc727ef31e7d3beda4fca5165292c7602ee42'
+            'c0b52787f68f3ef365eef64f53f22b4fb0046a91f0e38923f9d16f1ca19c3f3a')
+validpgpkeys=('8B1F4A9ADA73D401E3085A0B5FF06F29BA1E013B') # Miroslav Lichvar <mlichvar at redhat.com> has a dsa1024 key *in the wild*
+
+prepare() {
+  cd $pkgname-$pkgver
+  sed -i \
+    -e 's|pool.ntp.org|3.arch.pool.ntp.org|g' \
+    -e 's|server foo.example.net|server 0.arch.pool.ntp.org iburst|g' \
+    -e 's|server bar.example.net|server 1.arch.pool.ntp.org iburst|g' \
+    -e 's|server baz.example.net|server 2.arch.pool.ntp.org iburst|g' \
+    examples/chrony.conf.example*
+}
+
+build() {
+  cd $pkgname-$pkgver
+  ./configure --prefix=/usr
+  make
+}
+
+package() {
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install install-docs
+  install -Dm0644 "$srcdir/chrony.sysusers" "$pkgdir/usr/lib/sysusers.d/chrony.conf"
+  install -Dm0644 "$srcdir/chrony.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/chrony.conf"
+
+  install -Dm0644 "$srcdir/$pkgname-$pkgver/examples/chrony.conf.example3" "$pkgdir/etc/chrony.conf"
+
+  echo -e "\n# Enable kernel RTC sync\nrtcsync" >> "$pkgdir/etc/chrony.conf"
+
+  sed -i '/^! rtconutc$/ s/^! //' "$pkgdir/etc/chrony.conf"
+
+  mv "$pkgdir/usr/sbin/chronyd" "$pkgdir/usr/bin"
+  rmdir "$pkgdir"{/usr/sbin,/var/lib/chrony,/var/lib}
+
+  install -Dm644 "$srcdir/service" "$pkgdir/usr/lib/systemd/system/chronyd.service"
+
+  cp -a examples "$pkgdir"/usr/share/doc/chrony/examples
+
+}

Deleted: chrony.install
===================================================================
--- chrony.install	2018-01-08 20:11:25 UTC (rev 280573)
+++ chrony.install	2018-01-08 20:11:50 UTC (rev 280574)
@@ -1,13 +0,0 @@
-post_install() {
-  getent group chrony &>/dev/null || groupadd -g 183 chrony >/dev/null
-  getent passwd chrony &>/dev/null || useradd -u 183 -g chrony -d /var/lib/chrony -c 'Network Time Protocol' -s /bin/false chrony >/dev/null
-}
-
-post_upgrade() {
-  echo "-- chrony.service was renamed to chronyd.service!"
-  if [[ $(vercmp $2 1.29.1-2) -le 0 ]]; then
-    getent group chrony &>/dev/null || groupadd -r -g 183 chrony >/dev/null
-    getent passwd chrony &>/dev/null || useradd -r -u 183 -g chrony -d /var/lib/chrony -c 'Network Time Protocol' -s /bin/false chrony >/dev/null
-    chown -R 183:183 /var/lib/chrony
-  fi
-}

Copied: chrony/repos/community-x86_64/chrony.sysusers (from rev 280573, chrony/trunk/chrony.sysusers)
===================================================================
--- chrony.sysusers	                        (rev 0)
+++ chrony.sysusers	2018-01-08 20:11:50 UTC (rev 280574)
@@ -0,0 +1 @@
+u chrony - "Network Time Protocol" /var/lib/chrony

Copied: chrony/repos/community-x86_64/chrony.tmpfiles (from rev 280573, chrony/trunk/chrony.tmpfiles)
===================================================================
--- chrony.tmpfiles	                        (rev 0)
+++ chrony.tmpfiles	2018-01-08 20:11:50 UTC (rev 280574)
@@ -0,0 +1 @@
+d /var/lib/chrony 0755 chrony chrony - -

Deleted: service
===================================================================
--- service	2018-01-08 20:11:25 UTC (rev 280573)
+++ service	2018-01-08 20:11:50 UTC (rev 280574)
@@ -1,12 +0,0 @@
-[Unit]
-Description=Chrony Network Time Daemon
-After=network.target
-Conflicts=systemd-timesyncd.service
-
-[Service]
-Type=forking
-ExecStart=/usr/bin/chronyd -u chrony
-PIDFile=/var/run/chronyd.pid
-
-[Install]
-WantedBy=multi-user.target

Copied: chrony/repos/community-x86_64/service (from rev 280573, chrony/trunk/service)
===================================================================
--- service	                        (rev 0)
+++ service	2018-01-08 20:11:50 UTC (rev 280574)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Chrony Network Time Daemon
+After=network.target
+Conflicts=systemd-timesyncd.service
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/chronyd -u chrony
+PIDFile=/var/run/chronyd.pid
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list