[arch-commits] Commit in nvidia-utils/trunk (3 files)

Sven-Hendrik Haase svenstaro at archlinux.org
Sat Dec 30 07:19:29 UTC 2017


    Date: Saturday, December 30, 2017 @ 07:19:27
  Author: svenstaro
Revision: 313791

upgpkg: nvidia-utils 387.34-2

Use sysusers

Added:
  nvidia-utils/trunk/nvidia-utils.sysusers
Modified:
  nvidia-utils/trunk/PKGBUILD
  nvidia-utils/trunk/nvidia-utils.install

-----------------------+
 PKGBUILD              |   17 +++++++++--------
 nvidia-utils.install  |    3 ---
 nvidia-utils.sysusers |    1 +
 3 files changed, 10 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-12-30 06:39:52 UTC (rev 313790)
+++ PKGBUILD	2017-12-30 07:19:27 UTC (rev 313791)
@@ -6,18 +6,17 @@
 pkgbase=nvidia-utils
 pkgname=('nvidia-utils' 'opencl-nvidia')
 pkgver=387.34
-pkgrel=1
+pkgrel=2
 arch=('x86_64')
 url="http://www.nvidia.com/"
 license=('custom')
 options=('!strip')
-source=('nvidia-drm-outputclass.conf')
-source_i686=("http://us.download.nvidia.com/XFree86/Linux-x86/${pkgver}/NVIDIA-Linux-x86-${pkgver}.run")
-source_x86_64=("http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run")
-md5sums=('a433deeb5f9cc661e537f42bde2f1df7')
-md5sums_x86_64=('a009bbc502c30e4b483d71be9fa51790')
-sha512sums=('cfea06a816ac4a8b728b1ec728d667cdcca604abb038e8b5313b434021caad06a586856b8b3a6c79f8c925629360f5a051ca3de5ab46a42af76b9d0615d2bbbe')
-sha512sums_x86_64=('0a472f8e446dee01f9e526d4de4f6d587a97ad36dd36da66ab15243b6194a8198cbaf9ad3394558fdc963dd56ef1daaf519ed9cd69d59bc990bd56626897f5c8')
+source=('nvidia-drm-outputclass.conf'
+        'nvidia-utils.sysusers'
+        "http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run")
+sha512sums=('cfea06a816ac4a8b728b1ec728d667cdcca604abb038e8b5313b434021caad06a586856b8b3a6c79f8c925629360f5a051ca3de5ab46a42af76b9d0615d2bbbe'
+            '4b3ad73f5076ba90fe0b3a2e712ac9cde76f469cd8070280f960c3ce7dc502d1927f525ae18d008075c8f08ea432f7be0a6c3a7a6b49c361126dcf42f97ec499'
+            '0a472f8e446dee01f9e526d4de4f6d587a97ad36dd36da66ab15243b6194a8198cbaf9ad3394558fdc963dd56ef1daaf519ed9cd69d59bc990bd56626897f5c8')
 
 [[ "$CARCH" = "i686" ]] && _pkg="NVIDIA-Linux-x86-${pkgver}"
 [[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
@@ -170,5 +169,7 @@
     # distro specific files must be installed in /usr/share/X11/xorg.conf.d
     install -D -m644 "${srcdir}/nvidia-drm-outputclass.conf" "${pkgdir}/usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf"
 
+    install -Dm644 "${srcdir}/nvidia-utils.sysusers" "${pkgdir}/usr/lib/sysusers.d/$pkgname.conf"
+
     create_links
 }

Modified: nvidia-utils.install
===================================================================
--- nvidia-utils.install	2017-12-30 06:39:52 UTC (rev 313790)
+++ nvidia-utils.install	2017-12-30 07:19:27 UTC (rev 313791)
@@ -3,8 +3,5 @@
 }
 
 post_install() {
-  getent group nvidia-persistenced &>/dev/null || groupadd -g 143 nvidia-persistenced
-  getent passwd nvidia-persistenced &>/dev/null || useradd -c 'NVIDIA Persistence Daemon' -u 143 -g nvidia-persistenced -d '/' -s /sbin/nologin nvidia-persistenced
-
   post_upgrade
 }

Added: nvidia-utils.sysusers
===================================================================
--- nvidia-utils.sysusers	                        (rev 0)
+++ nvidia-utils.sysusers	2017-12-30 07:19:27 UTC (rev 313791)
@@ -0,0 +1 @@
+u nvidia-persistenced 143 'NVIDIA Persistence Daemon'



More information about the arch-commits mailing list