Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-backup/spideroak-bin/
Date: Mon, 03 Apr 2017 21:46:55
Message-Id: 1491255940.afa00281f4738f96127137eedc347b66ba46837c.blueness@gentoo
1 commit: afa00281f4738f96127137eedc347b66ba46837c
2 Author: Fernandez-Alcon, Jose <jose <AT> atlantis <DOT> blackmagic <DOT> io>
3 AuthorDate: Mon Apr 3 15:51:31 2017 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 3 21:45:40 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=afa00281
7
8 app-backup/spideroak-bin: version bump to 6.1.5, issue #582660
9
10 Reported-by: Frank Krömmelbein <kroemmelbein <AT> gmx.de>
11
12 app-backup/spideroak-bin/Manifest | 2 +
13 .../spideroak-bin/spideroak-bin-6.1.5.ebuild | 100 +++++++++++++++++++++
14 2 files changed, 102 insertions(+)
15
16 diff --git a/app-backup/spideroak-bin/Manifest b/app-backup/spideroak-bin/Manifest
17 index fde426b9247..e253b7b6c91 100644
18 --- a/app-backup/spideroak-bin/Manifest
19 +++ b/app-backup/spideroak-bin/Manifest
20 @@ -1,2 +1,4 @@
21 DIST spideroak-bin-6.1.3_amd64.deb 26655852 SHA256 65ecab3096e6de675fd9facf81f387775c2419158112c4914447fa0af07d8015 SHA512 f9d4e4178721609ec4a544ac8b84e581088ad9be5aaf3aa68de12e2d7e17d7c148d9a619917b69ecfd9c08087d1987b0b67081673b81f56908089caa9ab0edc5 WHIRLPOOL 6751d84d9739bc66f189b52cf944544213f10e978b9e2cb1b85fcf1303fb4ae0373d7bf9633638586cceea659c2448a442b459fdaefc7306854f8b1f58c189d9
22 DIST spideroak-bin-6.1.3_x86.deb 26173318 SHA256 50fd7d442291bb9ec64d51308444c83b7d76d55bafcc3e9f5d3009e6a49eee0f SHA512 0ddf1be909b44042e3fe0f7e791558e50c649a3d4472c3a05c78835c593d6db3369c0e862b79f2a4812232503346defc1c889fbc4c701a125d3364810b524481 WHIRLPOOL 2e19e4ac0f9028acea19eb2f395faba2031959c09544c07a7f10c690f67317558ac0fbdf2e1fe1b52a922e4ac9480486348b0c4cf053b03336018d3aef7f2dab
23 +DIST spideroak-bin-6.1.5_amd64.deb 26882606 SHA256 7ef458381c17f7a3712043aa672b5509500e7e6999cd52ba5d85ba76f7a29d2c SHA512 c23e41d359879ce671f8af66e32d08affe10c92492ed46dc6eea5942f14190d28a4b1b96722959bfcec98b05f9176c0a959c93c32bf22709139332b42d805a52 WHIRLPOOL 8f9b56f091951dafb6849cfbafd60314708dd5a5deed0852d5bb06869b36f1fa5d8e55508407c5bbf34024523531bfe26325fce7895ac04b59f6f1dd1aa50c58
24 +DIST spideroak-bin-6.1.5_x86.deb 26405076 SHA256 a001e464b87406e775f421ff041fbc80a3f3b33548c792a095c9632e137a3e89 SHA512 4aa87c2fd35569bb4acaf5492ca520d66bb9d53c5a53d5e8f418ae0518cb143f35bc769a7d37bc1ea6e4536b944780a3403d3800c45973bed537f573f3e07d0a WHIRLPOOL 7471b8ebf394cbcbc05400cc0e0c390ea30d92194567458b6955bd9a25f5f40fbe27c52e30767e467aa4f45ecf6fa304b82ab60bf30d1408846c4cff7f4087b9
25
26 diff --git a/app-backup/spideroak-bin/spideroak-bin-6.1.5.ebuild b/app-backup/spideroak-bin/spideroak-bin-6.1.5.ebuild
27 new file mode 100644
28 index 00000000000..885e81a1a1d
29 --- /dev/null
30 +++ b/app-backup/spideroak-bin/spideroak-bin-6.1.5.ebuild
31 @@ -0,0 +1,100 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI="5"
36 +
37 +inherit eutils unpacker
38 +
39 +SRC_URI_BASE="https://spideroak.com/getbuild?platform=ubuntu"
40 +
41 +DESCRIPTION="Secure free online backup, storage, and sharing system"
42 +HOMEPAGE="https://spideroak.com"
43 +SRC_URI="x86? ( ${SRC_URI_BASE}&arch=i386&version=${PV} -> ${P}_x86.deb )
44 + amd64? ( ${SRC_URI_BASE}&arch=x86_64&version=${PV} -> ${P}_amd64.deb )"
45 +RESTRICT="mirror strip"
46 +
47 +LICENSE="spideroak"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +IUSE="dbus X"
51 +
52 +DEPEND="dev-util/patchelf"
53 +RDEPEND="
54 + app-crypt/mit-krb5[keyutils]
55 + dbus? ( sys-apps/dbus )
56 + X? (
57 + media-libs/fontconfig
58 + media-libs/freetype:2
59 + dev-libs/glib:2
60 + x11-libs/libICE
61 + x11-libs/libSM
62 + x11-libs/libX11
63 + x11-libs/libXext
64 + x11-libs/libXmu
65 + x11-libs/libXrender
66 + x11-libs/libXt
67 + )
68 +"
69 +
70 +S=${WORKDIR}
71 +
72 +QA_PREBUILT="*"
73 +
74 +src_prepare() {
75 + # Set RPATH for preserve-libs handling (bug #400979).
76 + cd "${S}/opt/SpiderOakONE/lib" || die
77 + local x
78 + for x in `find` ; do
79 + # Use \x7fELF header to separate ELF executables and libraries
80 + [[ -f ${x} && $(od -t x1 -N 4 "${x}") == *"7f 45 4c 46"* ]] || continue
81 + patchelf --set-rpath '$ORIGIN' "${x}" || \
82 + die "patchelf failed on ${x}"
83 + done
84 +
85 + #Remove the libraries that break compatibility in modern systems
86 + #SpiderOak will use the system libs instead
87 + rm -f "${S}/opt/SpiderOakONE/lib/libstdc++.so.6"
88 + rm -f "${S}/opt/SpiderOakONE/lib/libgcc_s.so.1"
89 + rm -f "${S}/opt/SpiderOakONE/lib/libpng12.so.0"
90 + rm -f "${S}/opt/SpiderOakONE/lib/libz.so.1"
91 +}
92 +
93 +src_install() {
94 + #install the wrapper script
95 + exeinto /usr/bin
96 + doexe usr/bin/SpiderOakONE
97 +
98 + # inotify_dir_watcher needs to be marked executable, bug #453266
99 + #chmod a+rx opt/SpiderOakONE/lib/inotify_dir_watcher
100 +
101 + #install the executable
102 + exeinto /opt/SpiderOakONE/lib
103 + doexe opt/SpiderOakONE/lib/SpiderOakONE
104 + doexe opt/SpiderOakONE/lib/inotify_dir_watcher
105 + rm -f opt/SpiderOakONE/lib/{SpiderOakONE,inotify_dir_watcher}
106 +
107 + #install the prebundled libraries
108 + insinto /opt/SpiderOakONE
109 + doins -r opt/SpiderOakONE/lib
110 +
111 + #install the config files
112 + use dbus || rm -rf etc/dbus-1
113 + insinto /
114 + doins -r etc
115 +
116 + #install the manpage
117 + doman usr/share/man/man1/SpiderOakONE.1.gz
118 +
119 + if use X; then
120 + domenu usr/share/applications/SpiderOakONE.desktop
121 + doicon usr/share/pixmaps/SpiderOakONE.png
122 + fi
123 +}
124 +
125 +pkg_postinst() {
126 + if ! use X; then
127 + einfo "For instructions on running SpiderOakONE without a GUI, please read the FAQ:"
128 + einfo " https://spideroak.com/faq/questions/62/how_do_i_install_spideroak_on_a_headless_linux_server/"
129 + einfo " https://spideroak.com/faq/questions/67/how_can_i_use_spideroak_from_the_commandline/"
130 + fi
131 +}