git: 9b8dd11af611 - main - x11/nvidia-hybrid-graphics: Remove expired port

From: Rene Ladan <rene_at_FreeBSD.org>
Date: Thu, 11 Apr 2024 20:45:22 UTC
The branch main has been updated by rene:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9b8dd11af61165b9e0291140d0f8890651a6def5

commit 9b8dd11af61165b9e0291140d0f8890651a6def5
Author:     Rene Ladan <rene@FreeBSD.org>
AuthorDate: 2024-04-11 20:45:01 +0000
Commit:     Rene Ladan <rene@FreeBSD.org>
CommitDate: 2024-04-11 20:45:01 +0000

    x11/nvidia-hybrid-graphics: Remove expired port
    
    2024-04-11 x11/nvidia-hybrid-graphics: Not maintained and obsoleted by glvnd and nvidia-drm-kmod
---
 MOVED                                              |  1 +
 x11/Makefile                                       |  1 -
 x11/nvidia-hybrid-graphics/Makefile                | 80 ----------------------
 x11/nvidia-hybrid-graphics/files/nvidia_xorg.in    | 48 -------------
 x11/nvidia-hybrid-graphics/files/pkg-message.in    | 24 -------
 .../files/src/bin/Xorg-nvidia-headless.in          | 17 -----
 .../files/src/bin/nvidia-headless-xconfig.in       |  9 ---
 .../files/src/bin/nvrun-vgl.in                     |  8 ---
 x11/nvidia-hybrid-graphics/files/src/bin/nvrun.in  |  7 --
 .../etc/X11/xorg-nvidia-headless-template.conf.in  | 39 -----------
 .../files/src/etc/nvidia-headless.conf.in          |  1 -
 .../files/src/etc/nvidia-hybrid.conf.in            |  1 -
 .../src/libexec/nvidia-headless-utils/readconf.in  |  5 --
 .../files/src/libexec/nvidia-settings-hybrid.in    |  4 --
 x11/nvidia-hybrid-graphics/pkg-descr               |  6 --
 x11/nvidia-hybrid-graphics/pkg-plist               | 11 ---
 16 files changed, 1 insertion(+), 261 deletions(-)

diff --git a/MOVED b/MOVED
index e78a97dacf25..d33970fdf80c 100644
--- a/MOVED
+++ b/MOVED
@@ -3169,3 +3169,4 @@ x11-toolkits/tk85||2024-04-09|EOL
 audio/fasttracker2|audio/ft2-clone|2024-04-10|Renamed to match upstream
 lang/ocaml-nox11|lang/ocaml|2024-04-10|X11 support removed upstream
 lang/qscheme||2024-04-10|Has expired: Unmaintained and there are more modern alternatives
+x11/nvidia-hybrid-graphics||2024-04-11|Has expired: Not maintained and obsoleted by glvnd and nvidia-drm-kmod
diff --git a/x11/Makefile b/x11/Makefile
index 8818c8c142bc..7ebfbd693ff1 100644
--- a/x11/Makefile
+++ b/x11/Makefile
@@ -282,7 +282,6 @@
     SUBDIR += nvidia-driver-340
     SUBDIR += nvidia-driver-390
     SUBDIR += nvidia-driver-470
-    SUBDIR += nvidia-hybrid-graphics
     SUBDIR += nvidia-secondary-driver
     SUBDIR += nvidia-secondary-driver-390
     SUBDIR += nvidia-settings
diff --git a/x11/nvidia-hybrid-graphics/Makefile b/x11/nvidia-hybrid-graphics/Makefile
deleted file mode 100644
index 60e2c594499b..000000000000
--- a/x11/nvidia-hybrid-graphics/Makefile
+++ /dev/null
@@ -1,80 +0,0 @@
-PORTNAME=	nvidia-hybrid-graphics
-PORTVERSION=	0.6
-CATEGORIES=	x11
-MASTER_SITES=	# none
-DISTFILES=	# none
-
-MAINTAINER=	theron.tarigo@gmail.com
-COMMENT=	NVIDIA secondary GPU configuration - Optimus Technology support
-WWW=		https://github.com/therontarigo/freebsd-gpu-headless
-
-DEPRECATED=	Not maintained and obsoleted by glvnd and nvidia-drm-kmod
-EXPIRATION_DATE=2024-04-11
-
-LICENSE=	BSD2CLAUSE
-
-RUN_DEPENDS=	nvidia-xconfig:x11/nvidia-xconfig \
-		${LOCALBASE}/bin/Xorg:x11-servers/xorg-server
-
-FLAVORS=	default 390
-
-NO_ARCH=	yes
-NO_BUILD=	yes
-WRKSRC=		${WRKDIR}/src
-
-default_RUN_DEPENDS=	\
-	nvidia-secondary-driver>=440.64:x11/nvidia-secondary-driver
-390_RUN_DEPENDS=	\
-	nvidia-secondary-driver-390>=390.87:x11/nvidia-secondary-driver-390
-
-VIRTUALGL_RUN_DEPENDS=	${LOCALBASE}/VirtualGL/bin/vglrun:x11/virtualgl
-
-390_PKGNAMESUFFIX=	-390
-
-OPTIONS_DEFINE=		VIRTUALGL OPTIRUN
-OPTIONS_DEFAULT=	VIRTUALGL OPTIRUN
-OPTIONS_SUB=		OPTIRUN
-VIRTUALGL_DESC=		Use VirtualGL for OpenGL redirection support
-OPTIRUN_DESC=		Install "optirun" alias for nvrun-vgl
-OPTIRUN_IMPLIES=	VIRTUALGL
-
-scripts=	\
-	bin/Xorg-nvidia-headless \
-	bin/nvidia-headless-xconfig \
-	bin/nvrun \
-	bin/nvrun-vgl \
-	libexec/nvidia-headless-utils/readconf \
-	libexec/nvidia-settings-hybrid
-configs=	\
-	etc/X11/xorg-nvidia-headless-template.conf \
-	etc/nvidia-headless.conf \
-	etc/nvidia-hybrid.conf \
-
-SUB_FILES=	pkg-message ${scripts:%=src/%} ${configs:%=src/%}
-SUB_LIST+=	VGLRUN=${LOCALBASE}/VirtualGL/bin/vglrun
-
-USE_RC_SUBR=	nvidia_xorg
-
-do-extract:
-.for f in ${SUB_FILES}
-	${MKDIR} ${WRKDIR}/${f:H}
-.endfor
-
-do-install:
-.for f in ${scripts}
-	@${MKDIR} ${STAGEDIR}${PREFIX}/${f:H}
-	${INSTALL_SCRIPT} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/${f}
-.endfor
-.for f in ${configs}
-	@${MKDIR} ${STAGEDIR}${PREFIX}/${f:H}
-	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/${f}.sample
-.endfor
-
-post-install:
-	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/X11/xorg-nvidia-headless.conf.d
-
-post-install-OPTIRUN-on:
-	@${RLN} ${STAGEDIR}${PREFIX}/bin/nvrun-vgl \
-		${STAGEDIR}${PREFIX}/bin/optirun
-
-.include <bsd.port.mk>
diff --git a/x11/nvidia-hybrid-graphics/files/nvidia_xorg.in b/x11/nvidia-hybrid-graphics/files/nvidia_xorg.in
deleted file mode 100644
index 91a237cad4da..000000000000
--- a/x11/nvidia-hybrid-graphics/files/nvidia_xorg.in
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-# PROVIDE: nvidia_xorg
-# REQUIRE: LOGIN
-# KEYWORD: shutdown
-
-. /etc/rc.subr
-
-name=nvidia_xorg
-rcvar=nvidia_xorg_enable
-desc="Nvidia GPU Dedicated Xorg"
-
-load_rc_config $name
-
-: ${nvidia_xorg_enable:=NO}
-: ${nvidia_modeset:=NO}
-: ${nvidia_manage_kld:=YES}
-
-command=/usr/sbin/daemon
-pidfile=/var/run/${name}.pid
-procname="%%LOCALBASE%%/libexec/Xorg"
-command_args="-p ${pidfile} -f %%PREFIX%%/bin/Xorg-nvidia-headless"
-start_precmd="${name}_prestart"
-stop_postcmd="${name}_poststop"
-
-if checkyesno nvidia_modeset; then
-	kmod=nvidia-modeset
-else
-	kmod=nvidia
-fi
-
-nvidia_xorg_prestart()
-{
-	if checkyesno nvidia_manage_kld; then
-		kldload -n ${kmod} || return 1
-	fi
-}
-
-nvidia_xorg_poststop()
-{
-	if checkyesno nvidia_manage_kld; then
-		kldunload -f ${kmod} || return 1
-	fi
-}
-
-run_rc_command "$1"
diff --git a/x11/nvidia-hybrid-graphics/files/pkg-message.in b/x11/nvidia-hybrid-graphics/files/pkg-message.in
deleted file mode 100644
index 2e3b6e2c2904..000000000000
--- a/x11/nvidia-hybrid-graphics/files/pkg-message.in
+++ /dev/null
@@ -1,24 +0,0 @@
-Running Xorg-nvidia-headless at startup is recommended especially on mobile
-systems since leaving Nvidia GPU powered on with no Xorg may consume
-significantly more power.
-
-# sysrc nvidia_xorg_enable=YES
-# service nvidia_xorg start
-
-The Xorg instance uses separate configuration files from the defaults for Xorg:
-
-    %%PREFIX%%/etc/X11/xorg-nvidia-headless.conf.d/
-
-    %%PREFIX%%/etc/X11/xorg-nvidia-headless-template.conf
-        Only used if xorg-nvidia-headless.conf does not exist.
-	This file is passed through nvidia-xconfig, which does not preserve
-	all options.
-
-    %%PREFIX%%/etc/X11/xorg-nvidia-headless.conf
-        Created by manually invoking %%PREFIX%%/bin/nvidia-headless-xconfig.
-        Once created, this configuration is not passed through nvidia-xconfig.
-
-Configuration is not normally needed for typical OpenGL acceleration usage.
-
-A properly configured xorg-nvidia-headless.conf will allow Xorg-nvidia-headless
-to be started by non-superuser if Xorg has been installed setuid.
diff --git a/x11/nvidia-hybrid-graphics/files/src/bin/Xorg-nvidia-headless.in b/x11/nvidia-hybrid-graphics/files/src/bin/Xorg-nvidia-headless.in
deleted file mode 100644
index b89819168842..000000000000
--- a/x11/nvidia-hybrid-graphics/files/src/bin/Xorg-nvidia-headless.in
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-conf=%%PREFIX%%/etc/nvidia-headless.conf
-. %%PREFIX%%/libexec/nvidia-headless-utils/readconf
-if [ -z "$NVDISPLAY" ]; then printf %s\\n "NVDISPLAY required in environment or in $conf" >&2 ; exit 1; fi
-xconfig=%%LOCALBASE%%/etc/X11/xorg-nvidia-headless.conf
-xconfarg=xorg-nvidia-headless.conf
-if [ ! -e "$xconfig" ]; then
-if [ "$(id -u)" != 0 ]; then
-printf %s\\n "nvidia-headless must be configured by superuser" >&2
-exit 1
-fi
-xconfig=/var/cache/nvidia-headless/xorg.conf
-mkdir -p /var/cache/nvidia-headless
-xconfarg="$xconfig"
-%%PREFIX%%/bin/nvidia-headless-xconfig -o "$xconfig"
-fi
-exec %%LOCALBASE%%/bin/Xorg -sharevts -novtswitch -noreset -config "$xconfarg" -configdir "xorg-nvidia-headless.conf.d" "$NVDISPLAY" "$@"
diff --git a/x11/nvidia-hybrid-graphics/files/src/bin/nvidia-headless-xconfig.in b/x11/nvidia-hybrid-graphics/files/src/bin/nvidia-headless-xconfig.in
deleted file mode 100644
index 29f06a2c4dd8..000000000000
--- a/x11/nvidia-hybrid-graphics/files/src/bin/nvidia-headless-xconfig.in
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-exec %%LOCALBASE%%/bin/nvidia-xconfig \
-	--enable-all-gpus \
-	--preserve-busid \
-	--allow-empty-initial-configuration \
-	--connected-monitor=DFP \
-	--no-use-edid \
-	-c %%PREFIX%%/etc/X11/xorg-nvidia-headless-template.conf \
-	-o %%LOCALBASE%%/etc/X11/xorg-nvidia-headless.conf "$@"
diff --git a/x11/nvidia-hybrid-graphics/files/src/bin/nvrun-vgl.in b/x11/nvidia-hybrid-graphics/files/src/bin/nvrun-vgl.in
deleted file mode 100644
index ecb5b256005f..000000000000
--- a/x11/nvidia-hybrid-graphics/files/src/bin/nvrun-vgl.in
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-conf=%%PREFIX%%/etc/nvidia-headless.conf
-. %%PREFIX%%/libexec/nvidia-headless-utils/readconf
-conf=%%PREFIX%%/etc/nvidia-hybrid.conf
-. %%PREFIX%%/libexec/nvidia-headless-utils/readconf
-if [ -z "$NVDISPLAY" ]; then printf %s\\n "NVDISPLAY required in environment or in $conf" >&2 ; exit 1; fi
-if [ -z "$VGLRUN" ]; then printf %s\\n "VGLRUN required in environment or in $conf" >&2 ; exit 1; fi
-exec "$VGLRUN" -ld "%%LOCALBASE%%/lib/libGL-NVIDIA" -d "$NVDISPLAY" "$@"
diff --git a/x11/nvidia-hybrid-graphics/files/src/bin/nvrun.in b/x11/nvidia-hybrid-graphics/files/src/bin/nvrun.in
deleted file mode 100644
index 9f214ca9c523..000000000000
--- a/x11/nvidia-hybrid-graphics/files/src/bin/nvrun.in
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-conf=%%PREFIX%%/etc/nvidia-headless.conf
-. %%PREFIX%%/libexec/nvidia-headless-utils/readconf
-if [ -z "$NVDISPLAY" ]; then printf %s\\n "NVDISPLAY required in environment or in $conf" >&2 ; exit 1; fi
-export DISPLAY="$NVDISPLAY"
-export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:%%LOCALBASE%%/lib/libGL-NVIDIA"
-exec "$@"
diff --git a/x11/nvidia-hybrid-graphics/files/src/etc/X11/xorg-nvidia-headless-template.conf.in b/x11/nvidia-hybrid-graphics/files/src/etc/X11/xorg-nvidia-headless-template.conf.in
deleted file mode 100644
index 96fce627063e..000000000000
--- a/x11/nvidia-hybrid-graphics/files/src/etc/X11/xorg-nvidia-headless-template.conf.in
+++ /dev/null
@@ -1,39 +0,0 @@
-
-Section "ServerLayout"
-    Identifier     "nvidia"
-    Screen      0  "Screen0"
-    InputDevice    "fake" "CorePointer" "CoreKeyboard"
-    Option         "AutoAddDevices" "false"
-EndSection
-
-Section "Files"
-    ModulePath      "%%LOCALBASE%%/lib/xorg/modules-NVIDIA"
-    ModulePath      "%%LOCALBASE%%/lib/xorg/modules"
-EndSection
-
-Section "Module"
-    Load           "dri3"
-    Load           "glx"
-    Disable        "efifb"
-EndSection
-
-Section "InputDevice"
-    Identifier     "fake"
-    Driver         ""
-EndSection
-
-Section "Monitor"
-    Identifier     "Monitor0"
-EndSection
-
-Section "Device"
-    Identifier     "Device0"
-    Driver         "nvidia"
-EndSection
-
-Section "Screen"
-    Identifier     "Screen0"
-    Device         "Device0"
-    Monitor        "Monitor0"
-EndSection
-
diff --git a/x11/nvidia-hybrid-graphics/files/src/etc/nvidia-headless.conf.in b/x11/nvidia-hybrid-graphics/files/src/etc/nvidia-headless.conf.in
deleted file mode 100644
index 0b1bfdb982a3..000000000000
--- a/x11/nvidia-hybrid-graphics/files/src/etc/nvidia-headless.conf.in
+++ /dev/null
@@ -1 +0,0 @@
-NVDISPLAY=:8
diff --git a/x11/nvidia-hybrid-graphics/files/src/etc/nvidia-hybrid.conf.in b/x11/nvidia-hybrid-graphics/files/src/etc/nvidia-hybrid.conf.in
deleted file mode 100644
index 6b578c8d1b40..000000000000
--- a/x11/nvidia-hybrid-graphics/files/src/etc/nvidia-hybrid.conf.in
+++ /dev/null
@@ -1 +0,0 @@
-VGLRUN=%%VGLRUN%%
diff --git a/x11/nvidia-hybrid-graphics/files/src/libexec/nvidia-headless-utils/readconf.in b/x11/nvidia-hybrid-graphics/files/src/libexec/nvidia-headless-utils/readconf.in
deleted file mode 100644
index 620a9b8efcbd..000000000000
--- a/x11/nvidia-hybrid-graphics/files/src/libexec/nvidia-headless-utils/readconf.in
+++ /dev/null
@@ -1,5 +0,0 @@
-while IFS== read -r _var _val ; do
-  expr "$_var" : '[a-zA-Z][a-zA-Z0-9_]*$' >&- && \
-    eval [ -z \${$_var+UNSET} ] '&&' $_var="\$_val" '||' true || \
-    printf %s\\n "$conf: $_var: bad variable name" >&2
-done < "$conf" ; unset _var _val
diff --git a/x11/nvidia-hybrid-graphics/files/src/libexec/nvidia-settings-hybrid.in b/x11/nvidia-hybrid-graphics/files/src/libexec/nvidia-settings-hybrid.in
deleted file mode 100644
index d4740ff05484..000000000000
--- a/x11/nvidia-hybrid-graphics/files/src/libexec/nvidia-settings-hybrid.in
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-conf=%%PREFIX%%/etc/nvidia-headless.conf
-. %%PREFIX%%/libexec/nvidia-headless-utils/readconf
-exec nvrun-vgl %%LOCALBASE%%/libexec/nvidia-settings -c "$NVDISPLAY" "$@"
diff --git a/x11/nvidia-hybrid-graphics/pkg-descr b/x11/nvidia-hybrid-graphics/pkg-descr
deleted file mode 100644
index e617ec499453..000000000000
--- a/x11/nvidia-hybrid-graphics/pkg-descr
+++ /dev/null
@@ -1,6 +0,0 @@
-This port integrates the Nvidia graphics driver and supporting utilities with
-VirtualGL, enabling use of Nvidia acceleration on a system with hybrid graphics
-hardware configuration, aka "Optimus".
-
-Applications to be run with Nvidia acceleration should be started using
-`nvrun-vgl`.
diff --git a/x11/nvidia-hybrid-graphics/pkg-plist b/x11/nvidia-hybrid-graphics/pkg-plist
deleted file mode 100644
index be2a1fb8d97f..000000000000
--- a/x11/nvidia-hybrid-graphics/pkg-plist
+++ /dev/null
@@ -1,11 +0,0 @@
-bin/Xorg-nvidia-headless
-bin/nvidia-headless-xconfig
-bin/nvrun
-libexec/nvidia-headless-utils/readconf
-%%VIRTUALGL%%bin/nvrun-vgl
-%%OPTIRUN%%bin/optirun
-libexec/nvidia-settings-hybrid
-@sample etc/X11/xorg-nvidia-headless-template.conf.sample
-@sample etc/nvidia-headless.conf.sample
-@sample etc/nvidia-hybrid.conf.sample
-@dir etc/X11/xorg-nvidia-headless.conf.d