/[gentoo-x86]/app-backup/spideroak-bin/spideroak-bin-4.8.3-r1.ebuild
Gentoo

Contents of /app-backup/spideroak-bin/spideroak-bin-4.8.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Mar 24 17:55:18 2013 UTC (15 months, 4 weeks ago) by blueness
Branch: MAIN
Changes since 1.2: +2 -2 lines
Fix patch name, thanks oblikoamorale

(Portage version: 2.1.11.55/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)

1 # Copyright 1999-2013 Gentoo Foundation
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.8.3-r1.ebuild,v 1.2 2013/03/23 19:44:29 vapier Exp $
4
5 EAPI="4"
6
7 inherit eutils unpacker
8
9 SRC_URI_BASE="https://spideroak.com/getbuild?platform=ubuntu"
10
11 DESCRIPTION="An easy, secure and consolidated free online backup, storage, access and sharing system."
12 HOMEPAGE="https://spideroak.com"
13 SRC_URI="x86? ( ${SRC_URI_BASE}&arch=i386&version=${PV} -> ${P}_x86.deb )
14 amd64? ( ${SRC_URI_BASE}&arch=x86_64&version=${PV} -> ${P}_amd64.deb )"
15 RESTRICT="mirror strip"
16
17 LICENSE="spideroak"
18 SLOT="0"
19 KEYWORDS="~amd64 ~x86"
20 IUSE="dbus headless"
21
22 DEPEND="dev-util/patchelf"
23 RDEPEND="
24 app-crypt/mit-krb5[keyutils]
25 dbus? ( sys-apps/dbus )
26 !headless? (
27 media-libs/fontconfig
28 media-libs/freetype:2
29 dev-libs/glib:2
30 x11-libs/libICE
31 x11-libs/libSM
32 x11-libs/libX11
33 x11-libs/libXext
34 x11-libs/libXmu
35 x11-libs/libXrender
36 x11-libs/libXt
37 )
38 "
39
40 S=${WORKDIR}
41
42 QA_PREBUILT="*"
43
44 src_prepare() {
45 use headless && epatch "${FILESDIR}"/${P}-headless.patch
46
47 # Set RPATH for preserve-libs handling (bug #400979).
48 cd "${S}/opt/SpiderOak/lib" || die
49 local x
50 for x in `find` ; do
51 # Use \x7fELF header to separate ELF executables and libraries
52 [[ -f ${x} && $(od -t x1 -N 4 "${x}") == *"7f 45 4c 46"* ]] || continue
53 patchelf --set-rpath '$ORIGIN' "${x}" || \
54 die "patchelf failed on ${x}"
55 done
56 }
57
58 src_install() {
59 #install the wrapper script
60 exeinto /usr/bin
61 doexe usr/bin/SpiderOak
62
63 # inotify_dir_watcher needs to be marked executable, bug #453266
64 #chmod a+rx opt/SpiderOak/lib/inotify_dir_watcher
65
66 #install the executable
67 exeinto /opt/SpiderOak/lib
68 doexe opt/SpiderOak/lib/SpiderOak
69 doexe opt/SpiderOak/lib/inotify_dir_watcher
70 rm -f opt/SpiderOak/lib/{SpiderOak,inotify_dir_watcher}
71
72 #install the prebundled libraries
73 insinto /opt/SpiderOak
74 doins -r opt/SpiderOak/lib
75
76 #install the config files
77 use dbus || rm -rf etc/dbus-1
78 insinto /
79 doins -r etc
80
81 #install the manpage
82 doman usr/share/man/man1/SpiderOak.1.gz
83
84 if ! use headless ; then
85 domenu usr/share/applications/spideroak.desktop
86 doicon usr/share/pixmaps/SpiderOak.png
87 fi
88 }
89
90 pkg_postinst() {
91 if use headless; then
92 einfo "For instructions on running SpiderOak without a GUI, please read the FAQ:"
93 einfo " https://spideroak.com/faq/questions/62/how_do_i_install_spideroak_on_a_headless_linux_server/"
94 einfo " https://spideroak.com/faq/questions/67/how_can_i_use_spideroak_from_the_commandline/"
95 fi
96 }

  ViewVC Help
Powered by ViewVC 1.1.20