summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2013-07-06 07:07:21 +0000
committerPacho Ramos <pacho@gentoo.org>2013-07-06 07:07:21 +0000
commit13c69baeaed101f7ae64ee32e096af84af3c041b (patch)
tree4b919971f26ed061d96fa2345b2efcdb5e83fe6b /x11-misc/virtualgl
parentInstall unit file (#475860). (diff)
downloadhistorical-13c69baeaed101f7ae64ee32e096af84af3c041b.tar.gz
historical-13c69baeaed101f7ae64ee32e096af84af3c041b.tar.bz2
historical-13c69baeaed101f7ae64ee32e096af84af3c041b.zip
Install vgl-helper.sh script
Package-Manager: portage-2.1.12.11/cvs/Linux x86_64 Manifest-Sign-Key: 0xA188FBD4
Diffstat (limited to 'x11-misc/virtualgl')
-rw-r--r--x11-misc/virtualgl/ChangeLog6
-rw-r--r--x11-misc/virtualgl/Manifest11
-rw-r--r--x11-misc/virtualgl/files/vgl-helper.sh39
-rw-r--r--x11-misc/virtualgl/virtualgl-2.3.2-r3.ebuild5
4 files changed, 54 insertions, 7 deletions
diff --git a/x11-misc/virtualgl/ChangeLog b/x11-misc/virtualgl/ChangeLog
index 7a24ee7bc95c..28f512fe90dd 100644
--- a/x11-misc/virtualgl/ChangeLog
+++ b/x11-misc/virtualgl/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for x11-misc/virtualgl
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/virtualgl/ChangeLog,v 1.15 2013/07/05 17:17:29 pacho Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/virtualgl/ChangeLog,v 1.16 2013/07/06 07:07:17 pacho Exp $
+
+ 06 Jul 2013; Pacho Ramos <pacho@gentoo.org> +files/vgl-helper.sh,
+ virtualgl-2.3.2-r3.ebuild:
+ Install vgl-helper.sh script
*virtualgl-2.3.2-r3 (05 Jul 2013)
diff --git a/x11-misc/virtualgl/Manifest b/x11-misc/virtualgl/Manifest
index 1ec81b610ed1..07fd94f67c1d 100644
--- a/x11-misc/virtualgl/Manifest
+++ b/x11-misc/virtualgl/Manifest
@@ -1,18 +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.2.tar.gz 2741077 SHA256 bee2abb3225bd1a607036a50e60e2652248d976afdbfcb096423648f1acc5418 SHA512 69cf5082a33d86a3778c147de6296366efd056a8be9d38c3dc41030e832c58025fc2ee535076ae2a66a3ed8ee817109068c9255f9c1e0b9c5ff983450223b53d WHIRLPOOL c0f1fe6629b0020322e7a165025d704091cd6dd88e5ca11037cddf14cdcccf5b50bc7a8b081d5f1d7508369a7d4f55d88aad3b783760ca32daeef1b244c3793e
-EBUILD virtualgl-2.3.2-r3.ebuild 2073 SHA256 5f8adb1c73cc46135e07487f6a6b98c12efdb82b8d72c8888a878c9b6bbd2384 SHA512 02b42da60fd414fee3a513961ee36b35c2dbd8bb18a763ea9f9e3e5f6fa53c47fa039f8d388226d5dbc032c1109181e800f7c9dbfbbbf56ab4847aa21cbace6a WHIRLPOOL d51b60934b228dac5eb919e0f03e33cad32f4584e48de5bc75206918863fb3b72c6358cb9b32d445057f48f1a6523af5b843d89f4c9627d40d10708e1c8b4505
-MISC ChangeLog 3047 SHA256 189135c98bb1caeeb9322f38035e95c447882ab16f6d97bdd2da02b478cfd192 SHA512 8d1f0b9e1be02e1b94a2f2f36941b0ebd4cd6291a7dfa2df272fc40b2032e0c4c70baa2f59e115b3d56ee5dde082516a606b4be2e6cab8323c8bf70c15e5fcff WHIRLPOOL 94d5a96f054779a01831ffc47099ff90758cda77b010c825eb36d5cb810a1f862b33b504ec29ed17e8033fbb19ddc15b13403309b888b15a5829be73b31ad661
+EBUILD virtualgl-2.3.2-r3.ebuild 2131 SHA256 d8d1fbf77e3df6deebda7ed72609eab719021d724cf3ceee8c5fc10565b82a41 SHA512 c4aed0afb90c7c100204fac10fe2d6766d7153eca31f30acc168cc2b605f441609c17422094c0ce256408c8cdbaa1fb686c35de36cd8560bf66d59d7e599f78a WHIRLPOOL 638228b838dcf3ddfcb0c517ae58ab115c7804c39525749b7eb9580416752e7b1151f58a29c2fce547c5f43e78ddedf41aac0fd5fe952848502e80a85be3bb63
+MISC ChangeLog 3176 SHA256 b6551c7b0ea660b5843b268c7e7c47669bfe6d3164ea644b137b40af095350e3 SHA512 f9e13cd55c57b21ded2e3c1d568cda3d22278786126d4837721dfa6579ce61a9918f748cfd07f9b99f2396006cd74d6d3d5b92ebb441be766090eac1c34b357d WHIRLPOOL 9e694c30333c74d1eb5408cd437b66ac5bd884fc076415a738eeb5715f507ec890013726e4e50c0ce3b069ef8fe5ba75d227a6f568bf6cf24e5de09b1d6a3ac1
MISC metadata.xml 623 SHA256 316b53ddcecea522ace4b473d03979f84564878170296a7880a1d5474c105a29 SHA512 9904123fcf4f4bae816a0e924ea23f7650696e9b39349e044d4cab398a2c69203544ec8dbd01367b535931e41223b81cdb1d4dc5b80e829b2cde7b58d6c2e25e WHIRLPOOL bcb470a607923f0d79d091d9f7835d232cf15fcb35d4467a43bada39a18f743e0a2b45428f16f7fb8be52a271f075be7e42f477aeae0c5485cb9a23779ae3a97
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)
-iEYEAREIAAYFAlHW/6sACgkQCaWpQKGI+9TyXQCghPh8y57/FPQK3DwfcmkImAe4
-b+8An3hN1jMove4/fSQFBvMOihwHKRkG
-=5+xw
+iEYEAREIAAYFAlHXwiYACgkQCaWpQKGI+9QfiQCfaVvn2TWMwHcPq2FhfNMnQDCx
+PM4AnitrlWCoWWBR0g6f/NME6BjPQAwu
+=Fl64
-----END PGP SIGNATURE-----
diff --git a/x11-misc/virtualgl/files/vgl-helper.sh b/x11-misc/virtualgl/files/vgl-helper.sh
new file mode 100644
index 000000000000..805409284862
--- /dev/null
+++ b/x11-misc/virtualgl/files/vgl-helper.sh
@@ -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
diff --git a/x11-misc/virtualgl/virtualgl-2.3.2-r3.ebuild b/x11-misc/virtualgl/virtualgl-2.3.2-r3.ebuild
index d1e3efd339f7..cba926b8c752 100644
--- a/x11-misc/virtualgl/virtualgl-2.3.2-r3.ebuild
+++ b/x11-misc/virtualgl/virtualgl-2.3.2-r3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/virtualgl/virtualgl-2.3.2-r3.ebuild,v 1.1 2013/07/05 17:17:29 pacho Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/virtualgl/virtualgl-2.3.2-r3.ebuild,v 1.2 2013/07/06 07:07:17 pacho Exp $
EAPI=5
inherit cmake-multilib multilib systemd
@@ -74,6 +74,9 @@ src_install() {
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