Gentoo Archives: gentoo-user

From: Matti Nykyri <Matti.Nykyri@×××.fi>
To: "gentoo-user@l.g.o" <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] Overlay for wickr
Date: Fri, 20 Mar 2015 19:59:36
Message-Id: 20150320195912.GA27082@lyseo.edu.ouka.fi
In Reply to: Re: [gentoo-user] Overlay for wickr by Matti Nykyri
1 On Mon, Mar 16, 2015 at 08:49:18AM +0200, Matti Nykyri wrote:
2 > > On Mar 16, 2015, at 8:28, Mick <michaelkintzios@×××××.com> wrote:
3 > >
4 > > I've looked at zugaina too and didn't find anything, hence I asked here. I'll
5 > > file a bug at some point, unless anyone beats me to it.
6 >
7 > Writing an ebuild to do the install is like 5 min job :) I'm now in a train only with a phone, but when i get home i can write you one.
8 >
9 > Just my opinion... I would never ever trust non open source encryption software. Everyting published isn't true :)
10
11 Ok... No I'm happily back home after circling around the World ;)
12
13 Doing the ebuild was a bit more tricky... The program has bad bugs :(
14
15 The wickr executable is linked against icu-52, but in the archive the libraries are libicui18n-53 -> had to make symbolic link
16 Also the symboltable in wickr had to be altered.
17
18 And the ebuild:
19
20 ------------- Clip ---------------
21 EAPI=5
22
23 inherit eutils
24
25 DESCRIPTION="Wickr Top-Secret Messenger"
26 HOMEPAGE="https://www.wickr.com/downloads/"
27 SRC_URI="x86? ( http://mywickr.info/download.php?p=332 -> ${P}_i386.deb )
28 amd64? ( http://mywickr.info/download.php?p=364 -> ${P}_amd64.deb )"
29
30 LICENCE=""
31 SLOT="0"
32 KEYWORDS="~amd64 ~x86"
33 IUSE="x86 amd64"
34
35 RDEPEND="sys-libs/glibc
36 sys-devel/gcc
37 sys-apps/util-linux
38 media-sound/pulseaudio"
39
40 src_unpack() {
41 mkdir ${S}
42 cd ${S}
43
44 ar x ${DISTDIR}/${A}
45 }
46
47 src_install() {
48 cd ${D}
49 tar --same-owner --preserve-permissions -xof ${S}/data.tar.xz
50
51 if use x86 ; then
52 MY_OFFSET=332312
53 elif use amd64 ; then
54 MY_OFFSET=393763
55 fi
56 echo "3" | dd of=usr/bin/wickr bs=1 count=1 seek=${MY_OFFSET} conv=notrunc
57
58 cd usr/lib/wickr
59 ln -s libicui18n.so.53 libicui18n.so.52
60 }
61 ------------- Clip ---------------
62
63 After correcting those the software segfaults in libQt5core.so that is provided in the archive... So you probably need Qt5 installed.
64
65 --
66 -Matti

Replies

Subject Author
Re: [gentoo-user] Overlay for wickr Mick <michaelkintzios@×××××.com>