msva-perl make more robust
authorkristianf <devnull@localhost>
Sun, 22 Sep 2013 20:49:35 +0000 (22:49 +0200)
committerkristianf <devnull@localhost>
Sun, 22 Sep 2013 20:49:35 +0000 (22:49 +0200)
app-crypt/msva-perl/Manifest
app-crypt/msva-perl/files/02_Makefile.patch
app-crypt/msva-perl/msva-perl-0.9.2.ebuild

index 1cfd071..c6bd7f5 100644 (file)
@@ -1,4 +1,4 @@
 AUX 01_Makefile.patch 462 SHA256 637aeaf956d54dafed2104b96d06332be191c7876f7c0e3ac4acd0dbb831beed SHA512 5a2213175f8ea07625257f1f2856ee58b4e67c61774b9a2a3e85f33bfa4fa79d39e872cd4e65c95754b1b63a31d7e76fda6c1393eb0ea3bbadd44f696d36ab4d WHIRLPOOL ad71b7d41911445093a603942d78e2d299caa73a24d091213a8292b66cf964e2780d646ba3f1aa5ad9c26d334506377deed7a9ad8ef7d4ec9799f603755cb04e
-AUX 02_Makefile.patch 882 SHA256 b22d275a1cd511872fbdd9c4ca7cf244af60d553f5fbd02223a65542f908cb12 SHA512 4284743d90c690ddfb697e9dcd6785e1bd58b4a1debf6f372b89926a29db155f544629a6f8db4bfda75bfc2519087edd6275daf8476c726bde83651b6b0c43c2 WHIRLPOOL 7a85c2da93c650ef9597d5922cb2a6fafdf06de7b4f6e429da17a16fcc7ff1696ae5d6bb811796804f2126a1535ceedcd9e32bb4ad1d8315e7a8b90f75550141
+AUX 02_Makefile.patch 870 SHA256 0649b5b77ec4e8f1806e7a300bf5acdfb1abbd59576b6bd11a52caf09b12f795 SHA512 c0c9662ef432f8a417e922435dcee9f589c240fa90846c87ab9e511fabd4730ad59457bdb65c935124721f3a44f465dc5cc8e0ed8d8f79d2b4595de40d3faa6b WHIRLPOOL 11e64b2318b5c3fe060abbd3dadebab9cbde2f276f7651ffb66c19117a775ed5d498a2e6c6cdfeabbff79fc8002c9b96a94223884ab48a329f0e89c562d0a471
 DIST msva-perl_0.9.2.orig.tar.gz 56057 SHA256 8587fa07b02a6201a6af1e8f62184eca95d1c95b4076c676d93bed480c326756 SHA512 01dd60e1874dfd91dd486a78922fcb0a1bb6641d2c7089dd8ab1180bd1c535a767b7669370068b564aaed8c4ac4048d7e319428dacdef142373db956bd493eb3 WHIRLPOOL 437e3ce96a746d54d62e0892ea6fddfdd45905bf1bbba3fc25e46da58b840d5100c24cd2a326c5d2135ac3d4eec8872512537e351d7278b7501e645ff060d99a
-EBUILD msva-perl-0.9.2.ebuild 1415 SHA256 dedd66ce9cb1ed6893619b38a437aadc30268bdc89b5795f7dd901c1565025fe SHA512 52b4d1639095940ca998dcd680f1cd426866149e98fd7089de1da10da230f66a543b25b7ef2dfa1ee4339519d922c90f1989673b07099c94a4f52977a33ff086 WHIRLPOOL 21033cccd6542e0f4380286de425d5f65a2162a9d9b2343c25dda3f549926aa2120c73770540588a3f5ab09ef46cafa1a546f1de840863c3e7c34f6ec20a0786
+EBUILD msva-perl-0.9.2.ebuild 1488 SHA256 398e4f9d5639f0b4c699f8a49079c28d5750bde640675923ddf54960082cef75 SHA512 303744c0a694bc96f62c058597b457d3072dd8642ac34e05783cddb1cb297733cf2c5a70c668b3c785449f431b475c3635dc909f854af3aa30b9253aa5178a32 WHIRLPOOL b54915a6115274caa8bf093f8dfde25113623f4088df9b35a974932298bf87aadb907d724785ca68c2346bed679402322f487117a2234d98c4cb0e619768cea3
index 0a694de..7187017 100644 (file)
@@ -10,8 +10,8 @@
 +      install -m 0444 -D Crypt/Monkeysphere/MSVA/MarginalUI.pm ##PERL##/Crypt/Monkeysphere/MSVA/MarginalUI.pm
 +      install -m 0444 Crypt/Monkeysphere/MSVA/*.pm ##PERL##/Crypt/Monkeysphere/MSVA
 +      install -m 0444 -D Net/Server/MSVA.pm ##PERL##/Net/Server/MSVA.pm
-+      install -m 0555 -D msva-perl ../../image/usr/bin/msva-perl
-+      install -m 0555 -D msva-query-agent ../../image/usr/bin/msva-query-agent
++      install -m 0555 -D msva-perl ${ED}/usr/bin/msva-perl
++      install -m 0555 -D msva-query-agent ${ED}/usr/bin/msva-query-agent
 +
  .PHONY: upstream-tag debian-package debian-tag all clean
 +
index 409fb20..e7f686c 100644 (file)
@@ -24,7 +24,7 @@ HOMEPAGE="http://web.monkeysphere.info/validation-agent/"
 LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE="test"
+IUSE="X"
 
 #RESTRICT="test" # ssh connection failed
 
@@ -44,17 +44,21 @@ RDEPEND="
 DEPEND="
        app-portage/g-cpan
        virtual/perl-Module-Build
-       test? ( ${RDEPEND} )
        "
 
 src_prepare() {
        epatch "${FILESDIR}/01_Makefile.patch"
        sed -i "s/##VERSION##/${PV}/" Makefile
        epatch "${FILESDIR}/02_Makefile.patch"
-       sed -i "s/##PERL##/..\/..\/image\/usr\/local\/lib64\/site_perl/" Makefile
+       sed -i 's/##PERL##/${ED}usr\/local\/lib\/site_perl/' Makefile
 }
 
 src_install() {
     mytargets="install doc=/usr/share/doc/${P}"
        perl-module_src_install
 }
+
+pkg_postinst()
+{
+       use 'X' && elog "You seem to be using X. Make sure to edit Xsessions to start msva-perl"
+}