diff --git a/x11/nvidia-hybrid-graphics/Makefile b/x11/nvidia-hybrid-graphics/Makefile index 5eea9fe8082a..7b385d28173b 100644 --- a/x11/nvidia-hybrid-graphics/Makefile +++ b/x11/nvidia-hybrid-graphics/Makefile @@ -1,77 +1,77 @@ PORTNAME= nvidia-hybrid-graphics -PORTVERSION= 0.5 +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 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 diff --git a/x11/nvidia-hybrid-graphics/files/nvidia_xorg.in b/x11/nvidia-hybrid-graphics/files/nvidia_xorg.in index 34e3e0a5f95b..91a237cad4da 100644 --- a/x11/nvidia-hybrid-graphics/files/nvidia_xorg.in +++ b/x11/nvidia-hybrid-graphics/files/nvidia_xorg.in @@ -1,48 +1,48 @@ #!/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%%/bin/Xorg" +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"