Set up msva-perl invocation in /etc/profile.d/
authorkristianf <devnull@localhost>
Mon, 23 Sep 2013 20:41:12 +0000 (22:41 +0200)
committerkristianf <devnull@localhost>
Mon, 23 Sep 2013 20:41:12 +0000 (22:41 +0200)
app-crypt/msva-perl/Manifest
app-crypt/msva-perl/files/10-msva-perl.sh [new file with mode: 0755]
app-crypt/msva-perl/msva-perl-0.9.2.ebuild
app-crypt/xul-ext-monkeysphere/Manifest
app-crypt/xul-ext-monkeysphere/xul-ext-monkeysphere-0.8.ebuild

index c6bd7f5..8720673 100644 (file)
@@ -1,4 +1,5 @@
 AUX 01_Makefile.patch 462 SHA256 637aeaf956d54dafed2104b96d06332be191c7876f7c0e3ac4acd0dbb831beed SHA512 5a2213175f8ea07625257f1f2856ee58b4e67c61774b9a2a3e85f33bfa4fa79d39e872cd4e65c95754b1b63a31d7e76fda6c1393eb0ea3bbadd44f696d36ab4d WHIRLPOOL ad71b7d41911445093a603942d78e2d299caa73a24d091213a8292b66cf964e2780d646ba3f1aa5ad9c26d334506377deed7a9ad8ef7d4ec9799f603755cb04e
 AUX 02_Makefile.patch 870 SHA256 0649b5b77ec4e8f1806e7a300bf5acdfb1abbd59576b6bd11a52caf09b12f795 SHA512 c0c9662ef432f8a417e922435dcee9f589c240fa90846c87ab9e511fabd4730ad59457bdb65c935124721f3a44f465dc5cc8e0ed8d8f79d2b4595de40d3faa6b WHIRLPOOL 11e64b2318b5c3fe060abbd3dadebab9cbde2f276f7651ffb66c19117a775ed5d498a2e6c6cdfeabbff79fc8002c9b96a94223884ab48a329f0e89c562d0a471
+AUX 10-msva-perl.sh 231 SHA256 ad507f4665ddb540e4a4113cb04efe01b7fb3462ac72fc3592885885e457493c SHA512 a76b31dc530ab6f8ddb78deb13f881afb10d44f026dca03eb7c52bfa8e6ef18ea61668c9117ff60f8bb6a4d34e9f6601728fe6f162a73dc2e14dfdb80ccff924 WHIRLPOOL de1a889f62b1b8b52b130ab13cf2b468b026f705f6c4d1129de87a620a92ac1bd1d7fc3ea331c62dd7c3f943cf49214bee846d299c160a417994ceef15305930
 DIST msva-perl_0.9.2.orig.tar.gz 56057 SHA256 8587fa07b02a6201a6af1e8f62184eca95d1c95b4076c676d93bed480c326756 SHA512 01dd60e1874dfd91dd486a78922fcb0a1bb6641d2c7089dd8ab1180bd1c535a767b7669370068b564aaed8c4ac4048d7e319428dacdef142373db956bd493eb3 WHIRLPOOL 437e3ce96a746d54d62e0892ea6fddfdd45905bf1bbba3fc25e46da58b840d5100c24cd2a326c5d2135ac3d4eec8872512537e351d7278b7501e645ff060d99a
-EBUILD msva-perl-0.9.2.ebuild 1488 SHA256 398e4f9d5639f0b4c699f8a49079c28d5750bde640675923ddf54960082cef75 SHA512 303744c0a694bc96f62c058597b457d3072dd8642ac34e05783cddb1cb297733cf2c5a70c668b3c785449f431b475c3635dc909f854af3aa30b9253aa5178a32 WHIRLPOOL b54915a6115274caa8bf093f8dfde25113623f4088df9b35a974932298bf87aadb907d724785ca68c2346bed679402322f487117a2234d98c4cb0e619768cea3
+EBUILD msva-perl-0.9.2.ebuild 1756 SHA256 bfd939363a8a914cd977c7c35270fcf8cf000fcb6205277ce019c9e9f88970f1 SHA512 ce87a7ddc2cf0c9d085e5e9f375d1968e96aea4b68fb144f8a05eac5bd10cbd20641a9c75422678c2a159baac82e5901c6cc9a2faff8a403a77625e600012c6d WHIRLPOOL f10b5365a4c5c0cfd6ec1d15b3f9c11bf8544dd537659f0005fb814f894bd6f77d7b9aa1383fb1f3302f12b7de1d7d6388d6709303d4be39cb39d9ebf666a777
diff --git a/app-crypt/msva-perl/files/10-msva-perl.sh b/app-crypt/msva-perl/files/10-msva-perl.sh
new file mode 100755 (executable)
index 0000000..3ce3b14
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+MSVA_PORT=$RANDOM
+let "MSVA_PORT %= 100"
+let "MSVA_PORT += 33000"
+export MSVA_PORT
+msva-perl >/dev/null&
+MONKEYSPHERE_VALIDATION_AGENT_SOCKET=http://127.0.0.1:${MSVA_PORT};
+export MONKEYSPHERE_VALIDATION_AGENT_SOCKET;
index e7f686c..67c9506 100644 (file)
@@ -56,9 +56,12 @@ src_prepare() {
 src_install() {
     mytargets="install doc=/usr/share/doc/${P}"
        perl-module_src_install
+       mkdir -p "${D}/etc/profile.d/"
+       cp "${FILESDIR}/10-msva-perl.sh" "${D}/etc/profile.d/"
+       chmod 0555  "${D}/etc/profile.d/10-msva-perl.sh"
 }
 
 pkg_postinst()
 {
-       use 'X' && elog "You seem to be using X. Make sure to edit Xsessions to start msva-perl"
+       use 'X' && elog "You seem to be using X. msva-perl has been set up to invoke and set env variables in /etc/profile.d/10-msva-perl.sh. If using another window manager you might want to set this for your window manager."
 }
index 0dbd8af..68eaa1a 100644 (file)
@@ -1,2 +1,2 @@
 DIST xul-ext-monkeysphere_0.8.orig.tar.gz 52835 SHA256 ff8f5a8238d5d5bd4ca52eb679934b728ec904ff115f67d1bbbaba64664f45b8 SHA512 857c9777adb9c8e89a0761434a9c6ddec8e1e5d456207d79b96416914ac06e5bba58dadb6c68c76d639565a6bc1aba3ee39cdc54a312d8f7a47abb8d39663243 WHIRLPOOL a7f4922de7d17b473cc0642bb97d3484b1e8e4b3a1bc880e33f29f29ab398737b40c25092a5c09ec29e196b0594f9810c896e536c8f0c188213869ec72f5a5f7
-EBUILD xul-ext-monkeysphere-0.8.ebuild 909 SHA256 1ec45f1956c206859e4af086de380c3e1655cc0da121a0e110acab7e33950591 SHA512 2da10d46db4531766cb71b939a2b535f8760b513b7a1f9d8c16713e97216aa1847bd1e4c1282f41a875717bebd155201d7c906bb2811c3fafc8b3aa0960df4e7 WHIRLPOOL 31a102d0a497ec8c6a9b0a07c02cb513ee7944549967a8ad178c069081b06ac60ae10a08279085a82a8d2ca176267a857f864e62fef143dc7e8de9dcc6077780
+EBUILD xul-ext-monkeysphere-0.8.ebuild 936 SHA256 23425169317e7c3ff4d37f4de3bddaab57170df45ddba9a74d8bf32b93655abb SHA512 e33b5413c3a83f05a37a7a7819c4ad3d76b513824c4d9229c1c4fc0c118a8c82f85adafba2e871fab16d4436d9a6dca3cb672b412c5eef1464b1ac700a6077ef WHIRLPOOL 0047f12c54d12ff1ec1c85140c6b8298e34a344317e22a37b234e814cc0db62e36c60d74113bfc322ac3e77ecedcb3d82e02f7c1ea9bcc8ed5c27bae04a3de19
index 58df3a1..fd852fa 100644 (file)
@@ -25,7 +25,7 @@ DEPEND="|| ( www-client/firefox-bin www-client/firefox ) app-arch/unzip media-gf
 
 src_install(){
        local emid=$(sed -n 's/.*<em:id>\(.*\)<\/em:id>.*/\1/p' ${S}/install.rdf | head -1)
-       local cleanup="Makefile install.rdf.template monkeysphere.xpi"
+       local cleanup="NOTES Makefile install.rdf.template monkeysphere.xpi chrome/content/*.svg"
        for i in $cleanup; do rm ${S}/$i; done; 
        mkdir -p "${D}/opt/firefox/extensions/${emid}"
        cp -r ${S}/* "${D}/opt/firefox/extensions/${emid}/"