Date: Tuesday, January 9, 2018 @ 23:33:02
  Author: eschwartz
Revision: 280792

upgpkg: openntpd 6.2p3-2

migrate to systemd-sysusers

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

-------------------+
 PKGBUILD          |    6 ++++--
 openntpd.install  |    7 -------
 openntpd.sysusers |    1 +
 3 files changed, 5 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2018-01-09 23:07:47 UTC (rev 280791)
+++ PKGBUILD    2018-01-09 23:33:02 UTC (rev 280792)
@@ -6,7 +6,7 @@
 
 pkgname=openntpd
 pkgver=6.2p3
-pkgrel=1
+pkgrel=2
 pkgdesc='Free, easy to use implementation of the Network Time Protocol'
 url='http://www.openntpd.org/'
 arch=('x86_64')
@@ -14,11 +14,12 @@
 depends=('openssl')
 conflicts=('ntp')
 backup=('etc/ntpd.conf')
-install=${pkgname}.install
 
source=(https://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/${pkgname}-${pkgver}.tar.gz{,.asc}
+        openntpd.sysusers
         openntpd.service)
 
sha512sums=('56a04bfd8b161b365607673ac80086ff53ae943938fa49bf52edbc541432eca30730a46a4af581fe26ce3bbceb144cb25982a38959b7a3f9304c727fe60f9f50'
             'SKIP'
+            
'b6bb4f39eb435ce6c3314ea4a31430a1f8b70898d17d1fe07fa487bec0e79c022b004d3c11366f0f994546f454e5418caf5b3d7e6e1a205598d2bc8140417f7a'
             
'c58d48de67cd1ce0df7ea60def26db38b9d7409b64d097639a4cde3f4774a4bcc1159f993f37c5c61781cab1e2d1b8a35005030b28b0c9f0f6e0f81053586dfa')
 validpgpkeys=('A1EB079B8D3EB92B4EBD3139663AF51BD5E4D8D5') # Brent Cook 
<bc...@openbsd.org>
 
@@ -47,6 +48,7 @@
   install -d "${pkgdir}/var/lib/ntp"
   install -Dm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
   install -Dm 644 "${srcdir}/openntpd.service" -t 
"${pkgdir}/usr/lib/systemd/system"
+  install -Dm 644 "${srcdir}/openntpd.sysusers" -t 
"${pkgdir}/usr/lib/sysusers.d/openntpd.conf"
 
   install -d "${pkgdir}/usr/lib/systemd/ntp-units.d"
   echo ${pkgname}.service > 
"${pkgdir}/usr/lib/systemd/ntp-units.d/${pkgname}.list"

Deleted: openntpd.install
===================================================================
--- openntpd.install    2018-01-09 23:07:47 UTC (rev 280791)
+++ openntpd.install    2018-01-09 23:33:02 UTC (rev 280792)
@@ -1,7 +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 /usr/bin/nologin ntp >/dev/null
-}
-
-# vim: ts=2 sw=2 et ft=sh

Added: openntpd.sysusers
===================================================================
--- openntpd.sysusers                           (rev 0)
+++ openntpd.sysusers   2018-01-09 23:33:02 UTC (rev 280792)
@@ -0,0 +1 @@
+u ntp 87 "Network Time Protocol" /var/lib/ntp

Reply via email to