virtualgl: revert Fix deps (#504134 by Matthew Schultz and Eternal Sorrow)
This commit is contained in:
parent
ee73343ad9
commit
f0216f8209
|
@ -0,0 +1,19 @@
|
|||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
AUX vgl-helper.sh 881 SHA256 438c928840fbfb9274604296b8178e7f97b42a3428d115e1de6e609ea3146497 SHA512 d3940abb0c52957e8ec4ea15829151876384703ee5cff7a4d306d6de28f839ff76a9090a3af2106e7e8442104f3e16c57a8430b36d718490cd2637ecb99d9c8e WHIRLPOOL 19e5dd127ae329c432a54056bf901e5a62bd31ef5a51e2f2747968194a156405f527520d766d6b616c3ba057066fe05bd40faf24f434de2322e617fbf6fccb63
|
||||
AUX vgl.confd-r1 636 SHA256 500957c2736f761e763f75e9c3a09bb4f53bcde8a3cd38dd5ec6b34777737fd2 SHA512 f3203bb987d5a99fb63fd11d907235b343b261d945b788dfd17c09999fdb83df3d1a3028c60dd083f6b2ec358df06f321c330ae63a862ec1fa16f816be884ecd WHIRLPOOL af1efbc7ccf18b01e35a4c991be8036f1ed0c34cf040fa7b5b52ebf6441971d952e9577dd9e11656cfc8c673441d083fee5cb4d87dc8876b4cf21cbcc80108ca
|
||||
AUX vgl.initd-r1 881 SHA256 0dc1db0548c627b83c4adb3396aaafdc2d633698e6c89d47fb940904c2f4764c SHA512 e7965844cbc8f58158bb6176eed354b7a0a6da09489aee7b508a59f0fc7529ab7071bd4fa4ee2180cc4b019504f6b8735d7476cbfbc057c9b583ce59394d349e WHIRLPOOL 3a404bd35932c92ffca82b778261876f9e16cd73eb8116d21addf0c7c057faee4d1c8ce09c8e174cee7eea1373f70fb014f5f0412eac049ac7f4bb798cb95334
|
||||
AUX vgl.initd-r2 886 SHA256 d9337f0f337f291809e8ce7b34b495439c453e9e71e1b8c5623f51be60543707 SHA512 6b12439e504db83d46da2f4521f8d5ec25a5a54fb18469fe9afa96b31c3c02dd4dca95ff8d85becd2db4d86adf4f5c45bd20bd1677aebe9929dc156bce259065 WHIRLPOOL ce8365f468d42549233b910865c560f2a8ecb22e443ae5e0df49b526dc1ce1608b03d6102fb8bfccee84edfabd53a523c54edc055486b685199612831614bda3
|
||||
AUX vgl.service 254 SHA256 86fbefb4f77967f7fe7b0ce10915f5d5cf7bac504a9a65dd7f72fa08b9efbaab SHA512 18615552301c52c272bc47f942c47121100c175651b3957ddf996ca40e755d96dd51194ecb599c92e62fbdba3b9245e999ef488c889833009f8eba1c038c38f9 WHIRLPOOL 6f7885f6e294ae5db26cd6b9ca048c87ded7d6f805fc08e8ad4f37111709958abdc1eaa7ee780c208eb39d7c7cae777480fe68d61f539a256e0c8352ccb44038
|
||||
DIST VirtualGL-2.3.3.tar.gz 2614988 SHA256 857fd5c51c64016a1687cbda62ca5dcdf7073181df86b57be010501b565e5d45 SHA512 7bab5145be338d9bb2f9b4952ee530e84ae195185d55039cf10c89ced049716756f23f4d9c41c82f032c6e6a57bbbaebf023b3e501011bfd5c6aa3d59b22dd8d WHIRLPOOL e903172545c825b8df1dc6678738ac5e7ac2a104ec979668e522f46e2d2f715a3a07cb3cbac57c9e848a6420873f671737b7bed9acf50556a4aea08c4c1355a3
|
||||
EBUILD virtualgl-2.3.3.ebuild 2492 SHA256 95d22681f05766cd570d4f04c76c1f946427f9979f1a0018dfc286bcadbf0c7e SHA512 85ef2df710b9dfe564d265cb30cb5dc3db0b9b44e3f80a854bc39a464ea3e1ca9588c99bb833d1dca4ce10a8d02c96b3d9bc6265dd0d47c231e25fb80410e38a WHIRLPOOL 81bfcb7298afe0c2fa24f76cbddb394a7d113b565020122958401efbca275f928d3dcde8e5c96bed69aec255e77a4fafd91eb31449d26f120f46fbd21b17528c
|
||||
MISC ChangeLog 4169 SHA256 09f5228fdd45b768188ba3934ced9aaa316c382a7bff41ed7db993db434c4cee SHA512 88668c211f4317430183a913f98dcee7b4fee78086ab73990fb8cfb5b157444b679154d303c8b3d108cfc1d9cfbd8cde14cb6c5edc6793ab65cb876f2652f3e1 WHIRLPOOL 539894812d7eb2e0cfe26dc4a6869c9eadb5e95a6e3f847a004c208c054ceee43f6aec2ccea1e868bf02c4b04abc15d376015c11bf755b051193a4a2f9a079f5
|
||||
MISC metadata.xml 623 SHA256 316b53ddcecea522ace4b473d03979f84564878170296a7880a1d5474c105a29 SHA512 9904123fcf4f4bae816a0e924ea23f7650696e9b39349e044d4cab398a2c69203544ec8dbd01367b535931e41223b81cdb1d4dc5b80e829b2cde7b58d6c2e25e WHIRLPOOL bcb470a607923f0d79d091d9f7835d232cf15fcb35d4467a43bada39a18f743e0a2b45428f16f7fb8be52a271f075be7e42f477aeae0c5485cb9a23779ae3a97
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2
|
||||
|
||||
iEYEAREIAAYFAlSxLiMACgkQCaWpQKGI+9S8VgCbBjoz2lI6Is2aliK+cAxlAzZ/
|
||||
U08An1neul7+4AZwHid1Z0rTxOzBTmxk
|
||||
=AJjc
|
||||
-----END PGP SIGNATURE-----
|
|
@ -0,0 +1,39 @@
|
|||
#!/bin/bash
|
||||
|
||||
. /etc/vgl.conf
|
||||
|
||||
vgl_start() {
|
||||
truncate --size=0 /var/lib/VirtualGL/vgl_xauth_key
|
||||
|
||||
set_xauth
|
||||
# Check if XAUTHORITY was set successfully, if not wait up to
|
||||
# 60 seconds to allow X start.
|
||||
tries=120
|
||||
while [ ${tries} -gt 0 ]; do
|
||||
tries=$((tries - 1))
|
||||
if [ -z "${XAUTHORITY}" ]; then
|
||||
sleep 0.5
|
||||
set_xauth
|
||||
continue
|
||||
elif [ ! -e "${XAUTHORITY}" ]; then
|
||||
sleep 0.5
|
||||
# fall through, file not existing yet
|
||||
fi
|
||||
break
|
||||
done
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
vgl_stop() {
|
||||
rm -f /var/lib/VirtualGL/vgl_xauth_key
|
||||
}
|
||||
|
||||
|
||||
if [ "${1}" = "start" ]; then
|
||||
vgl_start
|
||||
elif [ "${1}" = "stop" ]; then
|
||||
vgl_stop
|
||||
fi
|
|
@ -0,0 +1,27 @@
|
|||
# /etc/conf.d/vgl
|
||||
|
||||
DISPLAY="${DISPLAY:-:0}"
|
||||
|
||||
# Make it a function in case we have to repeat it in init script later
|
||||
set_xauth() {
|
||||
|
||||
# common case (works in almost all tested environments (except of lightdm)):
|
||||
XAUTHORITY="$(ps wwax -C X,Xorg -o args= --sort=-stime | grep -m 1 -o '\B[-]auth\s*/var\S*auth\S*' | cut -d ' ' -f 2)"
|
||||
|
||||
# kdm and some others:
|
||||
# XAUTHORITY="$(find /var/run/xauth/A${DISPLAY}-*|tail -n1)"
|
||||
|
||||
# gdm:
|
||||
# XAUTHORITY="/var/gdm/${DISPLAY}.Xauth"
|
||||
|
||||
# slim:
|
||||
# XAUTHORITY="/var/run/slim.auth"
|
||||
|
||||
# lightdm:
|
||||
# XAUTHORITY="/var/run/lightdm/root/${DISPLAY}"
|
||||
|
||||
# lxdm:
|
||||
# XAUTHORITY="/var/run/lxdm/lxdm-${DISPLAY}.auth"
|
||||
|
||||
}
|
||||
set_xauth
|
|
@ -0,0 +1,30 @@
|
|||
#!/sbin/runscript
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/x11-misc/virtualgl/files/vgl.initd-r1,v 1.2 2012/09/29 09:33:10 pacho Exp $
|
||||
|
||||
# TODO: description="*" and other OpenRC 0.9+ candies
|
||||
|
||||
depend() {
|
||||
need xdm
|
||||
after sshd
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting VirtualGL"
|
||||
truncate --size=0 /var/lib/VirtualGL/vgl_xauth_key
|
||||
|
||||
# Check if XAUTHORITY was set successfully, if not wait a bit and let X to start
|
||||
[ -z "$XAUTHORITY" ] && sleep 3 && set_xauth
|
||||
[ -e "$XAUTHORITY" ] || sleep 3
|
||||
xauth -f /var/lib/VirtualGL/vgl_xauth_key add $DISPLAY . `xauth -f $XAUTHORITY list | awk '{print $3}'` && \
|
||||
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 $?
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
#!/sbin/runscript
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/x11-misc/virtualgl/files/vgl.initd-r2,v 1.1 2013/05/26 18:46:27 pacho Exp $
|
||||
|
||||
# TODO: description="*" and other OpenRC 0.9+ candies
|
||||
|
||||
depend() {
|
||||
need xdm
|
||||
after sshd
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting VirtualGL"
|
||||
truncate --size=0 /var/lib/VirtualGL/vgl_xauth_key
|
||||
|
||||
# Check if XAUTHORITY was set successfully, if not wait a bit and let X to start
|
||||
[ -z "$XAUTHORITY" ] && sleep 3 && set_xauth
|
||||
[ -e "$XAUTHORITY" ] || sleep 3
|
||||
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 $?
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=VirtualGL service
|
||||
After=display-manager.service
|
||||
|
||||
[Service]
|
||||
RemainAfterExit=yes
|
||||
PIDFile=/var/run/named/named.pid
|
||||
ExecStart=/usr/libexec/vgl-helper.sh start
|
||||
ExecStop=/usr/libexec/vgl-helper.sh stop
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>proxy-maintainers</herd>
|
||||
<maintainer>
|
||||
<email>pacho@gentoo.org</email>
|
||||
<name>Pacho Ramos</name>
|
||||
</maintainer>
|
||||
<maintainer>
|
||||
<email>mva@mva.name</email>
|
||||
<name>Vadim A. Misbakh-Soloviov</name>
|
||||
</maintainer>
|
||||
<maintainer>
|
||||
<email>rei4dan@gmail.com</email>
|
||||
<name>My Th</name>
|
||||
</maintainer>
|
||||
<longdescription>
|
||||
An open source package that gives any Unix or Linux remote display software
|
||||
the ability to run OpenGL applications with full 3D hardware acceleration.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
|
@ -0,0 +1,93 @@
|
|||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/x11-misc/virtualgl/virtualgl-2.3.3.ebuild,v 1.4 2014/07/18 17:35:49 pacho Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit cmake-multilib multilib systemd
|
||||
|
||||
DESCRIPTION="Run OpenGL applications remotely with full 3D hardware acceleration"
|
||||
HOMEPAGE="http://www.virtualgl.org/"
|
||||
|
||||
MY_PN="VirtualGL"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${MY_PN}/${PV}/${MY_P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="LGPL-2.1 wxWinLL-3.1 FLTK"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="ssl"
|
||||
|
||||
RDEPEND="
|
||||
ssl? ( dev-libs/openssl )
|
||||
media-libs/libjpeg-turbo
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXv
|
||||
amd64? ( abi_x86_32? (
|
||||
|| (
|
||||
>=media-libs/libjpeg-turbo-1.3.0-r3[abi_x86_32]
|
||||
app-emulation/emul-linux-x86-baselibs[-abi_x86_32]
|
||||
)
|
||||
|| (
|
||||
(
|
||||
>=x11-libs/libX11-1.6.2[abi_x86_32]
|
||||
>=x11-libs/libXext-1.3.2[abi_x86_32]
|
||||
>=x11-libs/libXv-1.0.10[abi_x86_32]
|
||||
)
|
||||
app-emulation/emul-linux-x86-xlibs[-abi_x86_32]
|
||||
)
|
||||
|| (
|
||||
(
|
||||
>=virtual/glu-9.0-r1[abi_x86_32]
|
||||
>=virtual/opengl-7.0-r1[abi_x86_32]
|
||||
)
|
||||
app-emulation/emul-linux-x86-opengl[-abi_x86_32]
|
||||
)
|
||||
) )
|
||||
virtual/glu
|
||||
virtual/opengl
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
# Use /var/lib, bug #428122
|
||||
sed -e "s#/etc/opt#/var/lib#g" -i doc/unixconfig.txt doc/index.html doc/advancedopengl.txt \
|
||||
server/vglrun server/vglgenkey server/vglserver_config || die
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
abi_configure() {
|
||||
local mycmakeargs=(
|
||||
$(cmake-utils_use ssl VGL_USESSL)
|
||||
-DVGL_DOCDIR=/usr/share/doc/"${P}"
|
||||
-DTJPEG_INCLUDE_DIR=/usr/include
|
||||
-DVGL_LIBDIR=/usr/$(get_libdir)
|
||||
-DTJPEG_LIBRARY=/usr/$(get_libdir)/libturbojpeg.so
|
||||
-DCMAKE_LIBRARY_PATH=/usr/$(get_libdir)
|
||||
-DVGL_FAKELIBDIR=/usr/fakelib/${ABI}
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
multilib_parallel_foreach_abi abi_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-multilib_src_install
|
||||
|
||||
# Make config dir
|
||||
dodir /var/lib/VirtualGL
|
||||
fowners root:video /var/lib/VirtualGL
|
||||
fperms 0750 /var/lib/VirtualGL
|
||||
newinitd "${FILESDIR}/vgl.initd-r2" vgl
|
||||
newconfd "${FILESDIR}/vgl.confd-r1" vgl
|
||||
|
||||
exeinto /usr/libexec
|
||||
doexe "${FILESDIR}/vgl-helper.sh"
|
||||
systemd_dounit "${FILESDIR}/vgl.service"
|
||||
|
||||
# Rename glxinfo to vglxinfo to avoid conflict with x11-apps/mesa-progs
|
||||
mv "${D}"/usr/bin/{,v}glxinfo || die
|
||||
}
|
Loading…
Reference in New Issue