From 64665e1bf13242446c75d7d32c07a80c17e34929 Mon Sep 17 00:00:00 2001 From: Ward Date: Thu, 23 Feb 2023 22:24:47 +0200 Subject: [PATCH] first commit --- nvidia-vaapi-driver-0.0.8/debian/changelog | 42 +++++++++++++++++++ nvidia-vaapi-driver-0.0.8/debian/control | 25 +++++++++++ nvidia-vaapi-driver-0.0.8/debian/copyright | 31 ++++++++++++++ .../debian/env-scripts/nvidia-vaapi-env.sh | 28 +++++++++++++ nvidia-vaapi-driver-0.0.8/debian/files | 1 + nvidia-vaapi-driver-0.0.8/debian/rules | 11 +++++ .../debian/source/format | 1 + nvidia-vaapi-driver-0.0.8/debian/watch | 3 ++ orig.source.txt | 2 + 9 files changed, 144 insertions(+) create mode 100644 nvidia-vaapi-driver-0.0.8/debian/changelog create mode 100644 nvidia-vaapi-driver-0.0.8/debian/control create mode 100644 nvidia-vaapi-driver-0.0.8/debian/copyright create mode 100755 nvidia-vaapi-driver-0.0.8/debian/env-scripts/nvidia-vaapi-env.sh create mode 100644 nvidia-vaapi-driver-0.0.8/debian/files create mode 100755 nvidia-vaapi-driver-0.0.8/debian/rules create mode 100644 nvidia-vaapi-driver-0.0.8/debian/source/format create mode 100644 nvidia-vaapi-driver-0.0.8/debian/watch create mode 100644 orig.source.txt diff --git a/nvidia-vaapi-driver-0.0.8/debian/changelog b/nvidia-vaapi-driver-0.0.8/debian/changelog new file mode 100644 index 0000000..47e528b --- /dev/null +++ b/nvidia-vaapi-driver-0.0.8/debian/changelog @@ -0,0 +1,42 @@ +nvidia-vaapi-driver (10:0.0.8-99pika1) kinetic; urgency=medium + + * Upgrade to release 0.0.8 and switch to direct backend + + -- Ward Nakchbandi Sat, 01 Oct 2022 14:50:00 +0200 + +nvidia-vaapi-driver (10:0.0.7-99pika2) kinetic; urgency=medium + + * Fix profile script + + -- Ward Nakchbandi Sat, 01 Oct 2022 14:50:00 +0200 + +nvidia-vaapi-driver (10:0.0.7-99pika1) kinetic; urgency=medium + + * Rebrand to PikaOS + + -- Ward Nakchbandi Sat, 01 Oct 2022 14:50:00 +0200 + + +nvidia-vaapi-driver (10:0.0.7-99nobara3) kinetic; urgency=medium + + * Make profile.d only export egl over-ride on wayland, and xsession not override at all . + + -- Ward Nakchbandi Thu, 04 Oct 2022 17:50:00 +0300 + +nvidia-vaapi-driver (10:0.0.7-99nobara2) kinetic; urgency=medium + + * Fix broken env-var scripts. + + -- Ward Nakchbandi Thu, 04 Oct 2022 17:50:00 +0300 + +nvidia-vaapi-driver (10:0.0.7-99nobara1) kinetic; urgency=medium + + * Upgrade to 0.0.7 & and add env-var scripts. + + -- Ward Nakchbandi Thu, 04 Oct 2022 17:50:00 +0300 + +nvidia-vaapi-driver (10:0.0.6-99nobara1) kinetic; urgency=medium + + * Initial release. + + -- Ward Nakchbandi Thu, 04 Oct 2022 17:50:00 +0300 diff --git a/nvidia-vaapi-driver-0.0.8/debian/control b/nvidia-vaapi-driver-0.0.8/debian/control new file mode 100644 index 0000000..8da299e --- /dev/null +++ b/nvidia-vaapi-driver-0.0.8/debian/control @@ -0,0 +1,25 @@ +Source: nvidia-vaapi-driver +Section: video +Priority: optional +Maintainer: Ward Nakchbandi +Build-Depends: debhelper-compat (= 13), + dh-sequence-libva, + libffmpeg-nvenc-dev (>= 11.1.5.1~), + libgstreamer-plugins-bad1.0-dev, + meson (>= 0.58.0~), +Standards-Version: 4.6.0 +Homepage: https://github.com/elFarto/nvidia-vaapi-driver +Vcs-Browser: https://salsa.debian.org/Dami/nvidia-vaapi-driver +Vcs-Git: https://salsa.debian.org/Dami/nvidia-vaapi-driver.git +Rules-Requires-Root: no + +Package: nvidia-vaapi-driver +Architecture: any +Multi-Arch: same +Depends: ${misc:Depends}, ${shlibs:Depends} +Suggests: libcuda1 +Description: VA-API implementation that uses NVDEC as a backend + nvidia-vaapi-driver is an VA-API(Video Acceleration API) + implementation that uses NVDEC as a backend. This implementation is + specifically designed to be used by Firefox for accelerated decode of + web content. diff --git a/nvidia-vaapi-driver-0.0.8/debian/copyright b/nvidia-vaapi-driver-0.0.8/debian/copyright new file mode 100644 index 0000000..4be8408 --- /dev/null +++ b/nvidia-vaapi-driver-0.0.8/debian/copyright @@ -0,0 +1,31 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: nvidia-vaapi-driver +Upstream-Contact: Stephen +Source: https://github.com/elFarto/nvidia-vaapi-driver + +Files: * +Copyright: 2022 Stephen +License: MIT + +Files: debian/* +Copyright: 2022 Lu YaNing +License: MIT + +License: MIT + Permission is hereby granted, free of charge, to any person obtaining a + copy of this software and associated documentation files (the "Software"), + to deal in the Software without restriction, including without limitation + the rights to use, copy, modify, merge, publish, distribute, sublicense, + and/or sell copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. diff --git a/nvidia-vaapi-driver-0.0.8/debian/env-scripts/nvidia-vaapi-env.sh b/nvidia-vaapi-driver-0.0.8/debian/env-scripts/nvidia-vaapi-env.sh new file mode 100755 index 0000000..88b0e01 --- /dev/null +++ b/nvidia-vaapi-driver-0.0.8/debian/env-scripts/nvidia-vaapi-env.sh @@ -0,0 +1,28 @@ +#! /bin/bash + +# Check system for NVIDIA card and set vaapi env vars + +nvgpu=$(lspci | grep -iE 'VGA|3D' | grep -i nvidia | cut -d ":" -f 3) +nvkernmod=$(lspci -k | grep -iEA3 '^[[:alnum:]]{2}:[[:alnum:]]{2}.*VGA|3D' | grep -iA3 nvidia | grep -i 'kernel driver' | grep -iE 'vfio-pci|nvidia') + +apply_env() { +if [[ ! -z $nvkernmod ]] +then +echo "NVIDIA Driver detected. setting env-v vars for va-api." +export LIBVA_DRIVER_NAME=nvidia +export MOZ_DISABLE_RDD_SANDBOX=1 +export NVD_BACKEND=direct +export EGL_PLATFORM=$XDG_SESSION_TYPE +else +echo "No NVIDIA Driver detected. No env vars set for va-api." +fi +} + + +if [[ ! -z $nvgpu ]] +then +echo "NVIDIA GPU detected. Checking for NVIDIA Driver." +apply_env +else +echo "No NVIDIA GPU detected. No env vars set for va-api." +fi diff --git a/nvidia-vaapi-driver-0.0.8/debian/files b/nvidia-vaapi-driver-0.0.8/debian/files new file mode 100644 index 0000000..9c1628d --- /dev/null +++ b/nvidia-vaapi-driver-0.0.8/debian/files @@ -0,0 +1 @@ +nvidia-vaapi-driver_0.0.6_source.buildinfo video optional diff --git a/nvidia-vaapi-driver-0.0.8/debian/rules b/nvidia-vaapi-driver-0.0.8/debian/rules new file mode 100755 index 0000000..a3abdfb --- /dev/null +++ b/nvidia-vaapi-driver-0.0.8/debian/rules @@ -0,0 +1,11 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +%: + dh $@ + +override_dh_install: + dh_install + mkdir -p debian/nvidia-vaapi-driver/etc/profile.d + cp debian/env-scripts/nvidia-vaapi-env.sh debian/nvidia-vaapi-driver/etc/profile.d/ diff --git a/nvidia-vaapi-driver-0.0.8/debian/source/format b/nvidia-vaapi-driver-0.0.8/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/nvidia-vaapi-driver-0.0.8/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/nvidia-vaapi-driver-0.0.8/debian/watch b/nvidia-vaapi-driver-0.0.8/debian/watch new file mode 100644 index 0000000..4ef4b77 --- /dev/null +++ b/nvidia-vaapi-driver-0.0.8/debian/watch @@ -0,0 +1,3 @@ +version=4 + https://github.com/elFarto/nvidia-vaapi-driver/tags \ + .*/v?(\d\S+)\.tar\.gz debian uupdate diff --git a/orig.source.txt b/orig.source.txt new file mode 100644 index 0000000..aa787f9 --- /dev/null +++ b/orig.source.txt @@ -0,0 +1,2 @@ +nvidia-vaapi-driver_0.0.8.orig.tar.xz +#https://github.com/elFarto/nvidia-vaapi-driver