diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-backup/spideroak-bin/spideroak-bin-5.1.8-r2.ebuild | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.xz |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-backup/spideroak-bin/spideroak-bin-5.1.8-r2.ebuild')
-rw-r--r-- | app-backup/spideroak-bin/spideroak-bin-5.1.8-r2.ebuild | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/app-backup/spideroak-bin/spideroak-bin-5.1.8-r2.ebuild b/app-backup/spideroak-bin/spideroak-bin-5.1.8-r2.ebuild new file mode 100644 index 00000000000..c821e20a138 --- /dev/null +++ b/app-backup/spideroak-bin/spideroak-bin-5.1.8-r2.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils unpacker + +SRC_URI_BASE="https://spideroak.com/getbuild?platform=ubuntu" + +DESCRIPTION="An easy, secure and consolidated free online backup, storage, access and sharing system" +HOMEPAGE="https://spideroak.com" +SRC_URI="x86? ( ${SRC_URI_BASE}&arch=i386&version=${PV} -> ${P}_x86.deb ) + amd64? ( ${SRC_URI_BASE}&arch=x86_64&version=${PV} -> ${P}_amd64.deb )" +RESTRICT="mirror strip" + +LICENSE="spideroak" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="dbus X" + +DEPEND="dev-util/patchelf" +RDEPEND=" + app-crypt/mit-krb5[keyutils] + dbus? ( sys-apps/dbus ) + X? ( + media-libs/fontconfig + media-libs/freetype:2 + dev-libs/glib:2 + x11-libs/libICE + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXmu + x11-libs/libXrender + x11-libs/libXt + ) +" + +S=${WORKDIR} + +QA_PREBUILT="*" + +src_prepare() { + # Set RPATH for preserve-libs handling (bug #400979). + cd "${S}/opt/SpiderOak/lib" || die + local x + for x in `find` ; do + # Use \x7fELF header to separate ELF executables and libraries + [[ -f ${x} && $(od -t x1 -N 4 "${x}") == *"7f 45 4c 46"* ]] || continue + patchelf --set-rpath '$ORIGIN' "${x}" || \ + die "patchelf failed on ${x}" + done +} + +src_install() { + #install the wrapper script + dobin usr/bin/SpiderOak + + # inotify_dir_watcher needs to be marked executable, bug #453266 + #chmod a+rx opt/SpiderOak/lib/inotify_dir_watcher + + #install the executable + exeinto /opt/SpiderOak/lib + doexe opt/SpiderOak/lib/SpiderOak + doexe opt/SpiderOak/lib/inotify_dir_watcher + rm -f opt/SpiderOak/lib/{SpiderOak,inotify_dir_watcher} + + #install the prebundled libraries + insinto /opt/SpiderOak + doins -r opt/SpiderOak/lib + + #install the config files + use dbus || rm -rf etc/dbus-1 + insinto / + doins -r etc + + #install the manpage + doman usr/share/man/man1/SpiderOak.1.gz + + if use X; then + domenu usr/share/applications/spideroak.desktop + doicon usr/share/pixmaps/SpiderOak.png + fi +} + +pkg_postinst() { + if ! use X; then + einfo "For instructions on running SpiderOak without a GUI, please read the FAQ:" + einfo " https://spideroak.com/faq/questions/62/how_do_i_install_spideroak_on_a_headless_linux_server/" + einfo " https://spideroak.com/faq/questions/67/how_can_i_use_spideroak_from_the_commandline/" + fi +} |