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

Lukas Fleischer lfleischer at archlinux.org
Sun Feb 7 11:19:59 UTC 2016


    Date: Sunday, February 7, 2016 @ 12:19:59
  Author: lfleischer
Revision: 258938

upgpkg: ntp 4.2.8.p6-2

Fix user/group management.

Added:
  ntp/trunk/ntp.install
    (from rev 258937, ntp/trunk/install)
Modified:
  ntp/trunk/PKGBUILD
Deleted:
  ntp/trunk/install

-------------+
 PKGBUILD    |    4 ++--
 install     |   11 -----------
 ntp.install |    5 +++++
 3 files changed, 7 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-02-07 11:12:36 UTC (rev 258937)
+++ PKGBUILD	2016-02-07 11:19:59 UTC (rev 258938)
@@ -6,7 +6,7 @@
 _pkgname=ntp #-dev
 _pkgver=4.2.8p6
 pkgver=${_pkgver/p/.p}
-pkgrel=1
+pkgrel=2
 pkgdesc='Network Time Protocol reference implementation'
 url='http://www.ntp.org/'
 license=('custom')
@@ -23,7 +23,7 @@
           '059b382d1af0c55202e2d17f2ae065a2cbfec9ee')
 
 options=('!emptydirs')
-install=install
+install=ntp.install
 
 build() {
 	cd "${srcdir}/${_pkgname}-${_pkgver}"

Deleted: install
===================================================================
--- install	2016-02-07 11:12:36 UTC (rev 258937)
+++ install	2016-02-07 11:19:59 UTC (rev 258938)
@@ -1,11 +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
-}
-
-post_remove() {
-	getent passwd ntp &>/dev/null && userdel ntp >/dev/null
-	getent group ntp &>/dev/null && groupdel ntp >/dev/null
-	true
-}

Copied: ntp/trunk/ntp.install (from rev 258937, ntp/trunk/install)
===================================================================
--- ntp.install	                        (rev 0)
+++ ntp.install	2016-02-07 11:19:59 UTC (rev 258938)
@@ -0,0 +1,5 @@
+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
+}



More information about the arch-commits mailing list