Lines 1-18
Link Here
|
1 |
# Copyright 1999-2012 Gentoo Foundation |
1 |
# Copyright 1999-2012 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/app-backup/spideroak-bin/spideroak-bin-4.7.9948.ebuild,v 1.3 2012/10/11 14:27:27 zmedico Exp $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
EAPI="4" |
5 |
EAPI="4" |
6 |
|
6 |
|
7 |
inherit eutils versionator |
7 |
inherit eutils |
8 |
|
8 |
|
9 |
REV=$(get_version_component_range 3) |
9 |
SRC_URI_BASE="https://spideroak.com/getbuild?platform=ubuntu" |
10 |
SRC_URI_BASE="https://spideroak.com/directdownload?platform=ubuntulucid" |
|
|
11 |
|
10 |
|
12 |
DESCRIPTION="An easy, secure and consolidated free online backup, storage, access and sharing system." |
11 |
DESCRIPTION="An easy, secure and consolidated free online backup, storage, access and sharing system." |
13 |
HOMEPAGE="https://spideroak.com" |
12 |
HOMEPAGE="https://spideroak.com" |
14 |
SRC_URI="x86? ( ${SRC_URI_BASE}&arch=i386&revision=${REV} -> ${P}_x86.deb ) |
13 |
SRC_URI="x86? ( ${SRC_URI_BASE}&arch=i386&version=${PV} -> ${P}_x86.deb ) |
15 |
amd64? ( ${SRC_URI_BASE}&arch=x86_64&revision=${REV} -> ${P}_amd64.deb )" |
14 |
amd64? ( ${SRC_URI_BASE}&arch=x86_64&version=${PV} -> ${P}_amd64.deb )" |
16 |
RESTRICT="mirror strip" |
15 |
RESTRICT="mirror strip" |
17 |
|
16 |
|
18 |
LICENSE="spideroak" |
17 |
LICENSE="spideroak" |
Lines 37-57
Link Here
|
37 |
x11-libs/libXrender |
36 |
x11-libs/libXrender |
38 |
x11-libs/libXt |
37 |
x11-libs/libXt |
39 |
) |
38 |
) |
40 |
system-libs? ( |
|
|
41 |
dev-libs/openssl:$SSL_SLOT |
42 |
net-misc/curl |
43 |
>=sys-devel/gcc-4 |
44 |
dev-libs/glib:2 |
45 |
dev-libs/libpcre |
46 |
media-libs/libpng:1.2 |
47 |
x11-libs/qt-core:4 |
48 |
x11-libs/qt-gui:4 |
49 |
dev-db/sqlite:3 |
50 |
net-libs/libssh2 |
51 |
sys-libs/zlib |
52 |
dev-lang/python:2.7 |
53 |
dev-python/pycurl |
54 |
) |
55 |
" |
39 |
" |
56 |
|
40 |
|
57 |
S=${WORKDIR} |
41 |
S=${WORKDIR} |
Lines 69-119
Link Here
|
69 |
epatch "${FILESDIR}"/${PF}-opt-path.patch |
53 |
epatch "${FILESDIR}"/${PF}-opt-path.patch |
70 |
use headless && epatch "${FILESDIR}"/${PF}-headless.patch |
54 |
use headless && epatch "${FILESDIR}"/${PF}-headless.patch |
71 |
|
55 |
|
72 |
# Remove bundled libraries/plugins/python interpreter. Please keep this |
|
|
73 |
# mapping in sync with the RDEPEND system-libs? ( atoms ) above, and the |
74 |
# list of deleted files below |
75 |
# |
76 |
# libcrypto.so.0.$SSL_SLOT => dev-libs/openssl:$SSL_SLOT |
77 |
# libssl.so.$SSL_SLOT => dev-libs/openssl:$SSL_SLOT |
78 |
# libcurl.so* => net-misc/curl |
79 |
# libexpat.so* => dev-libs/expat |
80 |
# libgcc_s.so => >=sys-devel/gcc-4 |
81 |
# libstdc++.so* => >=sys-devel/gcc-4 |
82 |
# libpcre.so* => dev-libs/libpcre |
83 |
# libpng12* => media-libs/libpng:1.2 |
84 |
# libQt*.so* => x11-libs/qt-core x11-libs/qt-gui |
85 |
# libsqlite3.so* => dev-db/sqlite:3 |
86 |
# libssh2.so* => net-libs/libssh2 |
87 |
# libz.so* => sys-libs/zlib |
88 |
# |
89 |
# pycurl.so => dev-python/pycurl |
90 |
# |
91 |
# usr/lib/SpiderOak/py pyexpat.so => dev-lang/python:2.7 |
92 |
# |
93 |
if use system-libs; then |
94 |
for lib in \ |
95 |
libcrypto.so.$SSL_SLOT \ |
96 |
libssl.so.$SSL_SLOT \ |
97 |
libcurl.so* \ |
98 |
libexpat.so* \ |
99 |
libgcc_s.so* \ |
100 |
libpcre.so* \ |
101 |
libpng12* \ |
102 |
libQt*.so* \ |
103 |
libsqlite3.so* \ |
104 |
libssh2.so* \ |
105 |
libstdc++.so* \ |
106 |
libz.so* \ |
107 |
pycurl.so \ |
108 |
pyexpat.so |
109 |
do |
110 |
rm usr/lib/SpiderOak/$lib || die "rm $lib failed" |
111 |
done |
112 |
|
113 |
# Remove bundled python interpreter => dev-lang/python:2.7 |
114 |
rm usr/lib/SpiderOak/py || die "rm py failed" |
115 |
fi |
116 |
|
117 |
# Set RPATH for preserve-libs handling (bug #400979). |
56 |
# Set RPATH for preserve-libs handling (bug #400979). |
118 |
cd "${S}/usr/lib/SpiderOak" || die |
57 |
cd "${S}/usr/lib/SpiderOak" || die |
119 |
local x |
58 |
local x |
Lines 156-166
Link Here
|
156 |
einfo " https://spideroak.com/faq/questions/62/how_do_i_install_spideroak_on_a_headless_linux_server/" |
95 |
einfo " https://spideroak.com/faq/questions/62/how_do_i_install_spideroak_on_a_headless_linux_server/" |
157 |
einfo " https://spideroak.com/faq/questions/67/how_can_i_use_spideroak_from_the_commandline/" |
96 |
einfo " https://spideroak.com/faq/questions/67/how_can_i_use_spideroak_from_the_commandline/" |
158 |
fi |
97 |
fi |
159 |
if use system-libs; then |
|
|
160 |
einfo "You have chosen to use your system libraries rather than the precompiled libraries that" |
161 |
einfo "SpiderOak bundles with their software. While upstream discourages this (see bug #398313)," |
162 |
einfo "there are advantages to using the system libraries, like reducing the size of the package" |
163 |
einfo "on your hard drive. For more reasons why bundled librars are not a good idea, see" |
164 |
einfo " https://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries" |
165 |
fi |
166 |
} |
98 |
} |