[arch-commits] Commit in ntp/trunk (PKGBUILD ntp.install ntp.sysusers)

Lukas Fleischer lfleischer at archlinux.org
Sun May 20 11:33:41 UTC 2018


    Date: Sunday, May 20, 2018 @ 11:33:41
  Author: lfleischer
Revision: 324626

upgpkg: ntp 4.2.8.p11-2

Switch to systemd-sysusers.

Added:
  ntp/trunk/ntp.sysusers
Modified:
  ntp/trunk/PKGBUILD
Deleted:
  ntp/trunk/ntp.install

--------------+
 PKGBUILD     |   11 ++++++-----
 ntp.install  |    5 -----
 ntp.sysusers |    2 ++
 3 files changed, 8 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-05-20 11:27:48 UTC (rev 324625)
+++ PKGBUILD	2018-05-20 11:33:41 UTC (rev 324626)
@@ -6,7 +6,7 @@
 _pkgname=ntp #-dev
 _pkgver=4.2.8p11
 pkgver=${_pkgver/p/.p}
-pkgrel=1
+pkgrel=2
 pkgdesc='Network Time Protocol reference implementation'
 url='http://www.ntp.org/'
 license=('custom')
@@ -16,14 +16,14 @@
 source=("https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/${_pkgname}-${_pkgver}.tar.gz"
         'ntp.conf'
         'ntpd.service'
-        'ntpdate.service')
+        'ntpdate.service'
+        'ntp.sysusers')
 sha1sums=('b20352bb76963a0ef5ec07ba99c2bb97ec6b6aeb'
           'ad1d6ee2e9aca64a84a7224c88bf6008ac6c69e1'
           '0cccca872385e0142888ab48d273fec0669b30a8'
-          '059b382d1af0c55202e2d17f2ae065a2cbfec9ee')
-
+          '059b382d1af0c55202e2d17f2ae065a2cbfec9ee'
+          'e8d1c895eabeb45b1a5f096fa5fc3c088eb3ee71')
 options=('!emptydirs')
-install=ntp.install
 
 build() {
 	cd "${srcdir}/${_pkgname}-${_pkgver}"
@@ -40,6 +40,7 @@
 	install -Dm644 ../ntp.conf "${pkgdir}"/etc/ntp.conf
 	install -Dm644 ../ntpd.service "${pkgdir}"/usr/lib/systemd/system/ntpd.service
 	install -Dm644 ../ntpdate.service "${pkgdir}"/usr/lib/systemd/system/ntpdate.service
+	install -Dm644 ../ntp.sysusers "${pkgdir}"/usr/lib/sysusers.d/ntp.conf
 	install -Dm644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 
 	install -d -o 87 "${pkgdir}"/var/lib/ntp

Deleted: ntp.install
===================================================================
--- ntp.install	2018-05-20 11:27:48 UTC (rev 324625)
+++ ntp.install	2018-05-20 11:33:41 UTC (rev 324626)
@@ -1,5 +0,0 @@
-post_install() {
-	getent group ntp &>/dev/null || groupadd -g 87 ntp >/dev/null
-	getent passwd ntp &>/dev/null || useradd -u 87 -g ntp -d /var/lib/ntp -c 'Network Time Protocol' -s /bin/false ntp >/dev/null
-	true
-}

Added: ntp.sysusers
===================================================================
--- ntp.sysusers	                        (rev 0)
+++ ntp.sysusers	2018-05-20 11:33:41 UTC (rev 324626)
@@ -0,0 +1,2 @@
+g ntp 87 -
+u ntp 87 "Network Time Protocol" /var/lib/ntp /bin/false



More information about the arch-commits mailing list