diff options
author | Aisha Tammy <gentoo@aisha.cc> | 2021-02-13 02:04:17 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gentoo.org> | 2021-03-24 12:06:57 -0400 |
commit | 1607d107ea8254e32d059ce4b9c4375f9608e6f7 (patch) | |
tree | 3a62610e49d3b05f1fa76a521c3ba40f9b3ccd83 /x11-misc | |
parent | x11-misc/x11vnc: revbump for d-m-i (diff) | |
download | gentoo-1607d107ea8254e32d059ce4b9c4375f9608e6f7.tar.gz gentoo-1607d107ea8254e32d059ce4b9c4375f9608e6f7.tar.bz2 gentoo-1607d107ea8254e32d059ce4b9c4375f9608e6f7.zip |
x11-misc/virtualgl: revbump for d-m-i
Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'x11-misc')
-rw-r--r-- | x11-misc/virtualgl/files/vgl.initd-r4 | 45 | ||||
-rw-r--r-- | x11-misc/virtualgl/virtualgl-2.6.5-r1.ebuild (renamed from x11-misc/virtualgl/virtualgl-2.6.5.ebuild) | 2 | ||||
-rw-r--r-- | x11-misc/virtualgl/virtualgl-9999.ebuild | 4 |
3 files changed, 48 insertions, 3 deletions
diff --git a/x11-misc/virtualgl/files/vgl.initd-r4 b/x11-misc/virtualgl/files/vgl.initd-r4 new file mode 100644 index 000000000000..d40686266e0c --- /dev/null +++ b/x11-misc/virtualgl/files/vgl.initd-r4 @@ -0,0 +1,45 @@ +#!/sbin/openrc-run +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# TODO: description="*" and other OpenRC 0.9+ candies + +depend() { + need display-manager + after sshd +} + +start() { + ebegin "Starting VirtualGL" + truncate --size=0 /var/lib/VirtualGL/vgl_xauth_key + + set_xauth + + if [ -z "$XAUTHORITY" ]; then + + einfo "Waiting for xauthority..." + + # wait for xauth file + while true; do + set_xauth + + if [ -e "$XAUTHORITY" ]; then + break; + fi + + sleep 1 + done + fi + + + xauth -f /var/lib/VirtualGL/vgl_xauth_key add $DISPLAY . $(xauth -f $XAUTHORITY list | awk '{print $3;exit}') && \ + chmod 644 /var/lib/VirtualGL/vgl_xauth_key + eend $? +} + +stop() { + ebegin "Stopping VirtualGL" + [ -f /var/lib/VirtualGL/vgl_xauth_key ] && \ + rm /var/lib/VirtualGL/vgl_xauth_key + eend $? +} diff --git a/x11-misc/virtualgl/virtualgl-2.6.5.ebuild b/x11-misc/virtualgl/virtualgl-2.6.5-r1.ebuild index f537ef884323..a7857fad0339 100644 --- a/x11-misc/virtualgl/virtualgl-2.6.5.ebuild +++ b/x11-misc/virtualgl/virtualgl-2.6.5-r1.ebuild @@ -86,7 +86,7 @@ src_install() { dodir /var/lib/VirtualGL fowners root:video /var/lib/VirtualGL fperms 0750 /var/lib/VirtualGL - newinitd "${FILESDIR}/vgl.initd-r3" vgl + newinitd "${FILESDIR}/vgl.initd-r4" vgl newconfd "${FILESDIR}/vgl.confd-r2" vgl exeinto /usr/libexec diff --git a/x11-misc/virtualgl/virtualgl-9999.ebuild b/x11-misc/virtualgl/virtualgl-9999.ebuild index b1f2ed56343a..c464597e5bcc 100644 --- a/x11-misc/virtualgl/virtualgl-9999.ebuild +++ b/x11-misc/virtualgl/virtualgl-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -82,7 +82,7 @@ src_install() { dodir /var/lib/VirtualGL fowners root:video /var/lib/VirtualGL fperms 0750 /var/lib/VirtualGL - newinitd "${FILESDIR}/vgl.initd-r3" vgl + newinitd "${FILESDIR}/vgl.initd-r4" vgl newconfd "${FILESDIR}/vgl.confd-r2" vgl exeinto /usr/libexec |