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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Jan 24 04:31:50 2013 UTC (17 months, 2 weeks ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Mark inotify_dir_watcher executable, bug #453266

(Portage version: 2.1.11.31/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.ebuild,v 1.1 2013/01/04 03:31:48 blueness Exp $
4
5 EAPI="4"
6
7 inherit eutils
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_unpack() {
45 unpack ${A}
46 unpack ./data.tar.gz
47 rm -f control.tar.gz data.tar.gz debian-binary
48 rm -f usr/share/doc/spideroak/copyright
49 }
50
51 src_prepare() {
52 use headless && epatch "${FILESDIR}"/${PF}-headless.patch
53
54 # Set RPATH for preserve-libs handling (bug #400979).
55 cd "${S}/opt/SpiderOak/lib" || die
56 local x
57 for x in `find` ; do
58 # Use \x7fELF header to separate ELF executables and libraries
59 [[ -f ${x} && $(od -t x1 -N 4 "${x}") == *"7f 45 4c 46"* ]] || continue
60 patchelf --set-rpath '$ORIGIN' "${x}" || \
61 die "patchelf failed on ${x}"
62 done
63 }
64
65 src_install() {
66 #install the wrapper script
67 exeinto /usr/bin
68 doexe usr/bin/SpiderOak
69
70 #install the executable
71 exeinto /opt/SpiderOak/lib
72 doexe opt/SpiderOak/lib/SpiderOak
73 rm -f opt/SpiderOak/lib/SpiderOak
74
75 #install the prebundled libraries
76 insinto /opt/SpiderOak
77 doins -r opt/SpiderOak/lib
78
79 #install the config files
80 use dbus || rm -rf etc/dbus-1
81 insinto /
82 doins -r etc
83
84 #install the manpage
85 doman usr/share/man/man1/SpiderOak.1.gz
86
87 if ! use headless ; then
88 domenu usr/share/applications/spideroak.desktop
89 doicon usr/share/pixmaps/SpiderOak.png
90 fi
91 }
92
93 pkg_postinst() {
94 if use headless; then
95 einfo "For instructions on running SpiderOak without a GUI, please read the FAQ:"
96 einfo " https://spideroak.com/faq/questions/62/how_do_i_install_spideroak_on_a_headless_linux_server/"
97 einfo " https://spideroak.com/faq/questions/67/how_can_i_use_spideroak_from_the_commandline/"
98 fi
99 }

  ViewVC Help
Powered by ViewVC 1.1.20