[arch-commits] Commit in nvidia-340xx-utils/trunk (3 files)
Sven-Hendrik Haase
svenstaro at archlinux.org
Sat Dec 30 07:20:04 UTC 2017
Date: Saturday, December 30, 2017 @ 07:20:03
Author: svenstaro
Revision: 313793
upgpkg: nvidia-340xx-utils 340.104-2
Use sysusers
Added:
nvidia-340xx-utils/trunk/nvidia-340xx-utils.sysusers
Modified:
nvidia-340xx-utils/trunk/PKGBUILD
nvidia-340xx-utils/trunk/nvidia-340xx-utils.install
-----------------------------+
PKGBUILD | 22 ++++++++++++----------
nvidia-340xx-utils.install | 3 ---
nvidia-340xx-utils.sysusers | 1 +
3 files changed, 13 insertions(+), 13 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-12-30 07:19:40 UTC (rev 313792)
+++ PKGBUILD 2017-12-30 07:20:03 UTC (rev 313793)
@@ -6,17 +6,17 @@
pkgbase=nvidia-340xx-utils
pkgname=('nvidia-340xx-utils' 'opencl-nvidia-340xx')
pkgver=340.104
-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")
-sha512sums=('cfea06a816ac4a8b728b1ec728d667cdcca604abb038e8b5313b434021caad06a586856b8b3a6c79f8c925629360f5a051ca3de5ab46a42af76b9d0615d2bbbe')
-sha512sums_i686=('8dacd5345a5794e862f4106ab9e8e402defa7883dd176c243d019209b560fe955d7576a13936364c01c5a249f15df58208308c9378c12c3438784376e5fb806c')
-sha512sums_x86_64=('e962494561728af5a911354bfb3560e414464f7858f30f9654eac5ca56175bc8498d1eee93a18248c63e9eee7d84807ef924fe9f53239644d7085b0f3502bf8c')
+source=(nvidia-drm-outputclass.conf
+ "http://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run"
+ nvidia-340xx-utils.sysusers)
+sha512sums=('cfea06a816ac4a8b728b1ec728d667cdcca604abb038e8b5313b434021caad06a586856b8b3a6c79f8c925629360f5a051ca3de5ab46a42af76b9d0615d2bbbe'
+ 'e962494561728af5a911354bfb3560e414464f7858f30f9654eac5ca56175bc8498d1eee93a18248c63e9eee7d84807ef924fe9f53239644d7085b0f3502bf8c'
+ '4b3ad73f5076ba90fe0b3a2e712ac9cde76f469cd8070280f960c3ce7dc502d1927f525ae18d008075c8f08ea432f7be0a6c3a7a6b49c361126dcf42f97ec499')
[[ "$CARCH" = "i686" ]] && _pkg="NVIDIA-Linux-x86-${pkgver}"
[[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
@@ -48,7 +48,7 @@
# OpenCL
install -D -m644 nvidia.icd "${pkgdir}/etc/OpenCL/vendors/nvidia.icd"
install -D -m755 "libnvidia-compiler.so.${pkgver}" "${pkgdir}/usr/lib/libnvidia-compiler.so.${pkgver}"
- install -D -m755 "libnvidia-opencl.so.${pkgver}" "${pkgdir}/usr/lib/libnvidia-opencl.so.${pkgver}"
+ install -D -m755 "libnvidia-opencl.so.${pkgver}" "${pkgdir}/usr/lib/libnvidia-opencl.so.${pkgver}"
create_links
@@ -66,7 +66,7 @@
provides=('libgl' 'libgles' 'libegl' 'nvidia-utils' 'nvidia-340xx-libgl')
replaces=('nvidia-340xx-libgl')
install="${pkgname}.install"
-
+
cd "${_pkg}"
# X driver
@@ -87,7 +87,7 @@
install -D -m755 "libnvidia-glcore.so.${pkgver}" "${pkgdir}/usr/lib/nvidia/libnvidia-glcore.so.${pkgver}"
install -D -m755 "libnvidia-eglcore.so.${pkgver}" "${pkgdir}/usr/lib/nvidia/libnvidia-eglcore.so.${pkgver}"
install -D -m755 "libnvidia-glsi.so.${pkgver}" "${pkgdir}/usr/lib/nvidia/libnvidia-glsi.so.${pkgver}"
-
+
# misc
install -D -m755 "libnvidia-ifr.so.${pkgver}" "${pkgdir}/usr/lib/nvidia/libnvidia-ifr.so.${pkgver}"
install -D -m755 "libnvidia-fbc.so.${pkgver}" "${pkgdir}/usr/lib/nvidia/libnvidia-fbc.so.${pkgver}"
@@ -160,5 +160,7 @@
install -dm 755 "${pkgdir}"/etc/ld.so.conf.d
echo -e '/usr/lib/nvidia/' > "${pkgdir}"/etc/ld.so.conf.d/00-nvidia.conf
+ install -Dm644 "${srcdir}/nvidia-340xx-utils.sysusers" "${pkgdir}/usr/lib/sysusers.d/$pkgname.conf"
+
create_links
}
Modified: nvidia-340xx-utils.install
===================================================================
--- nvidia-340xx-utils.install 2017-12-30 07:19:40 UTC (rev 313792)
+++ nvidia-340xx-utils.install 2017-12-30 07:20:03 UTC (rev 313793)
@@ -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-340xx-utils.sysusers
===================================================================
--- nvidia-340xx-utils.sysusers (rev 0)
+++ nvidia-340xx-utils.sysusers 2017-12-30 07:20:03 UTC (rev 313793)
@@ -0,0 +1 @@
+u nvidia-persistenced 143 'NVIDIA Persistence Daemon'
More information about the arch-commits
mailing list