summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2013-05-06 22:03:49 +0000
committerAnthony G. Basile <blueness@gentoo.org>2013-05-06 22:03:49 +0000
commit5fa31d230f1cfb26fb5ade9a2c64f7076fe7e5c9 (patch)
tree1bf6df7dc6af5c21b808fa7077a005bd3dc7449a /app-backup
parentmedia-libs/gegl: Compile fix (bug #468248) (diff)
downloadgentoo-2-5fa31d230f1cfb26fb5ade9a2c64f7076fe7e5c9.tar.gz
gentoo-2-5fa31d230f1cfb26fb5ade9a2c64f7076fe7e5c9.tar.bz2
gentoo-2-5fa31d230f1cfb26fb5ade9a2c64f7076fe7e5c9.zip
Version bump and clean older unstable, bug #468774
(Portage version: 2.1.11.62/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
Diffstat (limited to 'app-backup')
-rw-r--r--app-backup/spideroak-bin/ChangeLog10
-rw-r--r--app-backup/spideroak-bin/files/spideroak-bin-4.7.9948-headless.patch8
-rw-r--r--app-backup/spideroak-bin/files/spideroak-bin-4.7.9948-opt-path.patch13
-rw-r--r--app-backup/spideroak-bin/spideroak-bin-4.5.9941.ebuild148
-rw-r--r--app-backup/spideroak-bin/spideroak-bin-4.6.9945.ebuild148
-rw-r--r--app-backup/spideroak-bin/spideroak-bin-4.7.9948.ebuild158
-rw-r--r--app-backup/spideroak-bin/spideroak-bin-5.0.1.ebuild96
7 files changed, 105 insertions, 476 deletions
diff --git a/app-backup/spideroak-bin/ChangeLog b/app-backup/spideroak-bin/ChangeLog
index 7c68a451be1d..6f28e90e6d1c 100644
--- a/app-backup/spideroak-bin/ChangeLog
+++ b/app-backup/spideroak-bin/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for app-backup/spideroak-bin
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-backup/spideroak-bin/ChangeLog,v 1.34 2013/03/24 17:55:18 blueness Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-backup/spideroak-bin/ChangeLog,v 1.35 2013/05/06 22:03:48 blueness Exp $
+
+*spideroak-bin-5.0.1 (06 May 2013)
+
+ 06 May 2013; Anthony G. Basile <blueness@gentoo.org>
+ +spideroak-bin-5.0.1.ebuild, -files/spideroak-bin-4.7.9948-headless.patch,
+ -files/spideroak-bin-4.7.9948-opt-path.patch, -spideroak-bin-4.5.9941.ebuild,
+ -spideroak-bin-4.6.9945.ebuild, -spideroak-bin-4.7.9948.ebuild:
+ Version bump and clean older unstable, bug #468774
24 Mar 2013; Anthony G. Basile <blueness@gentoo.org>
spideroak-bin-4.8.3-r1.ebuild:
diff --git a/app-backup/spideroak-bin/files/spideroak-bin-4.7.9948-headless.patch b/app-backup/spideroak-bin/files/spideroak-bin-4.7.9948-headless.patch
deleted file mode 100644
index 1ba7c088ef07..000000000000
--- a/app-backup/spideroak-bin/files/spideroak-bin-4.7.9948-headless.patch
+++ /dev/null
@@ -1,8 +0,0 @@
---- usr/bin/SpiderOak.orig 2012-08-26 08:10:42.387011624 +0200
-+++ usr/bin/SpiderOak 2012-08-26 08:10:48.899956298 +0200
-@@ -5,4 +5,4 @@
- QT_PLUGIN_PATH= ; export QT_PLUGIN_PATH
- SpiderOak_EXEC_SCRIPT=$(cd `dirname $0` ; pwd)/SpiderOak
- export SpiderOak_EXEC_SCRIPT
--exec "/opt/SpiderOak/SpiderOak" "$@"
-+exec "/opt/SpiderOak/SpiderOak" --headless "$@"
diff --git a/app-backup/spideroak-bin/files/spideroak-bin-4.7.9948-opt-path.patch b/app-backup/spideroak-bin/files/spideroak-bin-4.7.9948-opt-path.patch
deleted file mode 100644
index afdbc333f26e..000000000000
--- a/app-backup/spideroak-bin/files/spideroak-bin-4.7.9948-opt-path.patch
+++ /dev/null
@@ -1,13 +0,0 @@
---- usr/bin/SpiderOak.orig 2012-08-15 17:03:09.697548990 +0200
-+++ usr/bin/SpiderOak 2012-08-15 17:03:54.637356071 +0200
-@@ -1,8 +1,8 @@
- #!/bin/sh
-
--LD_LIBRARY_PATH="/usr/lib/SpiderOak:$LD_LIBRARY_PATH"
-+LD_LIBRARY_PATH="/opt/SpiderOak:$LD_LIBRARY_PATH"
- export LD_LIBRARY_PATH
- QT_PLUGIN_PATH= ; export QT_PLUGIN_PATH
- SpiderOak_EXEC_SCRIPT=$(cd `dirname $0` ; pwd)/SpiderOak
- export SpiderOak_EXEC_SCRIPT
--exec "/usr/lib/SpiderOak/SpiderOak" "$@"
-+exec "/opt/SpiderOak/SpiderOak" "$@"
diff --git a/app-backup/spideroak-bin/spideroak-bin-4.5.9941.ebuild b/app-backup/spideroak-bin/spideroak-bin-4.5.9941.ebuild
deleted file mode 100644
index 6e6e910aab5e..000000000000
--- a/app-backup/spideroak-bin/spideroak-bin-4.5.9941.ebuild
+++ /dev/null
@@ -1,148 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-backup/spideroak-bin/spideroak-bin-4.5.9941.ebuild,v 1.4 2013/03/23 19:44:29 vapier Exp $
-
-EAPI="4"
-
-inherit eutils versionator unpacker
-
-REV=$(get_version_component_range 3)
-SRC_URI_BASE="https://spideroak.com/directdownload?platform=ubuntulucid"
-
-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&revision=${REV} -> ${P}_x86.deb )
- amd64? ( ${SRC_URI_BASE}&arch=x86_64&revision=${REV} -> ${P}_amd64.deb )"
-RESTRICT="mirror strip"
-
-LICENSE="spideroak"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="dbus headless system-libs"
-
-SSL_SLOT="0.9.8"
-
-DEPEND=""
-RDEPEND="
- dbus? ( sys-apps/dbus )
- !headless? (
- 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
- )
- system-libs? (
- dev-libs/openssl:$SSL_SLOT
- net-misc/curl
- >=sys-devel/gcc-4
- dev-libs/glib:2
- dev-libs/libpcre
- media-libs/libpng:1.2
- dev-qt/qtcore:4
- dev-qt/qtgui:4
- dev-db/sqlite:3
- net-libs/libssh2
- sys-libs/zlib
- dev-lang/python:2.7
- dev-python/pycurl
- )
-"
-
-S=${WORKDIR}
-
-QA_PREBUILT="*"
-
-src_prepare() {
- epatch "${FILESDIR}"/opt-path.patch
- use headless && epatch "${FILESDIR}"/headless.patch
-
- # Remove bundled libraries/plugins/python interpreter. Please keep this
- # mapping in sync with the RDEPEND system-libs? ( atoms ) above, and the
- # list of deleted files below
- #
- # libcrypto.so.0.$SSL_SLOT => dev-libs/openssl:$SSL_SLOT
- # libssl.so.$SSL_SLOT => dev-libs/openssl:$SSL_SLOT
- # libcurl.so* => net-misc/curl
- # libexpat.so* => dev-libs/expat
- # libgcc_s.so => >=sys-devel/gcc-4
- # libstdc++.so* => >=sys-devel/gcc-4
- # libpcre.so* => dev-libs/libpcre
- # libpng12* => media-libs/libpng:1.2
- # libQt*.so* => dev-qt/qtcore dev-qt/qtgui
- # libsqlite3.so* => dev-db/sqlite:3
- # libssh2.so* => net-libs/libssh2
- # libz.so* => sys-libs/zlib
- #
- # pycurl.so => dev-python/pycurl
- #
- # usr/lib/SpiderOak/py pyexpat.so => dev-lang/python:2.7
- #
- if use system-libs; then
- for lib in \
- libcrypto.so.$SSL_SLOT \
- libssl.so.$SSL_SLOT \
- libcurl.so* \
- libexpat.so* \
- libgcc_s.so* \
- libpcre.so* \
- libpng12* \
- libQt*.so* \
- libsqlite3.so* \
- libssh2.so* \
- libstdc++.so* \
- libz.so* \
- pycurl.so \
- pyexpat.so
- do
- rm usr/lib/SpiderOak/$lib || die "rm $lib failed"
- done
-
- # Remove bundled python interpreter => dev-lang/python:2.7
- rm usr/lib/SpiderOak/py || die "rm py failed"
- fi
-}
-
-src_install() {
- #install the executable script
- exeinto /usr/bin
- doexe usr/bin/SpiderOak
-
- #install the prebundled libraries
- dodir /opt
- cp -pPR usr/lib/SpiderOak "${ED}"/opt/
-
- #install the config files
- rm -rf etc/apt
- use dbus || rm -rf etc/dbus-1
- insinto /
- doins -r etc
-
- #install the changelog
- dodoc usr/share/doc/spideroak/changelog.gz
-
- if ! use headless ; then
- domenu usr/share/applications/spideroak.desktop
- doicon usr/share/pixmaps/spideroak.png
- fi
-}
-
-pkg_postinst() {
- if use headless; 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
- if use system-libs; then
- einfo "You have chosen to use your system libraries rather than the precompiled libraries that"
- einfo "SpiderOak bundles with their software. While upstream discourages this (see bug #398313),"
- einfo "there are advantages to using the system libraries, like reducing the size of the package"
- einfo "on your hard drive. For more reasons why bundled librars are not a good idea, see"
- einfo " https://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries"
- fi
-}
diff --git a/app-backup/spideroak-bin/spideroak-bin-4.6.9945.ebuild b/app-backup/spideroak-bin/spideroak-bin-4.6.9945.ebuild
deleted file mode 100644
index a43130ca3215..000000000000
--- a/app-backup/spideroak-bin/spideroak-bin-4.6.9945.ebuild
+++ /dev/null
@@ -1,148 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-backup/spideroak-bin/spideroak-bin-4.6.9945.ebuild,v 1.4 2013/03/23 19:44:29 vapier Exp $
-
-EAPI="4"
-
-inherit eutils versionator unpacker
-
-REV=$(get_version_component_range 3)
-SRC_URI_BASE="https://spideroak.com/directdownload?platform=ubuntulucid"
-
-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&revision=${REV} -> ${P}_x86.deb )
- amd64? ( ${SRC_URI_BASE}&arch=x86_64&revision=${REV} -> ${P}_amd64.deb )"
-RESTRICT="mirror strip"
-
-LICENSE="spideroak"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="dbus headless system-libs"
-
-SSL_SLOT="0.9.8"
-
-DEPEND=""
-RDEPEND="
- dbus? ( sys-apps/dbus )
- !headless? (
- 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
- )
- system-libs? (
- dev-libs/openssl:$SSL_SLOT
- net-misc/curl
- >=sys-devel/gcc-4
- dev-libs/glib:2
- dev-libs/libpcre
- media-libs/libpng:1.2
- dev-qt/qtcore:4
- dev-qt/qtgui:4
- dev-db/sqlite:3
- net-libs/libssh2
- sys-libs/zlib
- dev-lang/python:2.7
- dev-python/pycurl
- )
-"
-
-S=${WORKDIR}
-
-QA_PREBUILT="*"
-
-src_prepare() {
- epatch "${FILESDIR}"/opt-path.patch
- use headless && epatch "${FILESDIR}"/headless.patch
-
- # Remove bundled libraries/plugins/python interpreter. Please keep this
- # mapping in sync with the RDEPEND system-libs? ( atoms ) above, and the
- # list of deleted files below
- #
- # libcrypto.so.0.$SSL_SLOT => dev-libs/openssl:$SSL_SLOT
- # libssl.so.$SSL_SLOT => dev-libs/openssl:$SSL_SLOT
- # libcurl.so* => net-misc/curl
- # libexpat.so* => dev-libs/expat
- # libgcc_s.so => >=sys-devel/gcc-4
- # libstdc++.so* => >=sys-devel/gcc-4
- # libpcre.so* => dev-libs/libpcre
- # libpng12* => media-libs/libpng:1.2
- # libQt*.so* => dev-qt/qtcore dev-qt/qtgui
- # libsqlite3.so* => dev-db/sqlite:3
- # libssh2.so* => net-libs/libssh2
- # libz.so* => sys-libs/zlib
- #
- # pycurl.so => dev-python/pycurl
- #
- # usr/lib/SpiderOak/py pyexpat.so => dev-lang/python:2.7
- #
- if use system-libs; then
- for lib in \
- libcrypto.so.$SSL_SLOT \
- libssl.so.$SSL_SLOT \
- libcurl.so* \
- libexpat.so* \
- libgcc_s.so* \
- libpcre.so* \
- libpng12* \
- libQt*.so* \
- libsqlite3.so* \
- libssh2.so* \
- libstdc++.so* \
- libz.so* \
- pycurl.so \
- pyexpat.so
- do
- rm usr/lib/SpiderOak/$lib || die "rm $lib failed"
- done
-
- # Remove bundled python interpreter => dev-lang/python:2.7
- rm usr/lib/SpiderOak/py || die "rm py failed"
- fi
-}
-
-src_install() {
- #install the executable script
- exeinto /usr/bin
- doexe usr/bin/SpiderOak
-
- #install the prebundled libraries
- dodir /opt
- cp -pPR usr/lib/SpiderOak "${ED}"/opt/
-
- #install the config files
- rm -rf etc/apt
- use dbus || rm -rf etc/dbus-1
- insinto /
- doins -r etc
-
- #install the changelog
- dodoc usr/share/doc/spideroak/changelog.gz
-
- if ! use headless ; then
- domenu usr/share/applications/spideroak.desktop
- doicon usr/share/pixmaps/spideroak.png
- fi
-}
-
-pkg_postinst() {
- if use headless; 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
- if use system-libs; then
- einfo "You have chosen to use your system libraries rather than the precompiled libraries that"
- einfo "SpiderOak bundles with their software. While upstream discourages this (see bug #398313),"
- einfo "there are advantages to using the system libraries, like reducing the size of the package"
- einfo "on your hard drive. For more reasons why bundled librars are not a good idea, see"
- einfo " https://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries"
- fi
-}
diff --git a/app-backup/spideroak-bin/spideroak-bin-4.7.9948.ebuild b/app-backup/spideroak-bin/spideroak-bin-4.7.9948.ebuild
deleted file mode 100644
index 57eeb108b5df..000000000000
--- a/app-backup/spideroak-bin/spideroak-bin-4.7.9948.ebuild
+++ /dev/null
@@ -1,158 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-backup/spideroak-bin/spideroak-bin-4.7.9948.ebuild,v 1.5 2013/03/23 19:44:29 vapier Exp $
-
-EAPI="4"
-
-inherit eutils versionator unpacker
-
-REV=$(get_version_component_range 3)
-SRC_URI_BASE="https://spideroak.com/directdownload?platform=ubuntulucid"
-
-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&revision=${REV} -> ${P}_x86.deb )
- amd64? ( ${SRC_URI_BASE}&arch=x86_64&revision=${REV} -> ${P}_amd64.deb )"
-RESTRICT="mirror strip"
-
-LICENSE="spideroak"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="dbus headless system-libs"
-
-SSL_SLOT="0.9.8"
-
-DEPEND="dev-util/patchelf"
-RDEPEND="
- dbus? ( sys-apps/dbus )
- !headless? (
- 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
- )
- system-libs? (
- dev-libs/openssl:$SSL_SLOT
- net-misc/curl
- >=sys-devel/gcc-4
- dev-libs/glib:2
- dev-libs/libpcre
- media-libs/libpng:1.2
- dev-qt/qtcore:4
- dev-qt/qtgui:4
- dev-db/sqlite:3
- net-libs/libssh2
- sys-libs/zlib
- dev-lang/python:2.7
- dev-python/pycurl
- )
-"
-
-S=${WORKDIR}
-
-QA_PREBUILT="*"
-
-src_prepare() {
- epatch "${FILESDIR}"/${PF}-opt-path.patch
- use headless && epatch "${FILESDIR}"/${PF}-headless.patch
-
- # Remove bundled libraries/plugins/python interpreter. Please keep this
- # mapping in sync with the RDEPEND system-libs? ( atoms ) above, and the
- # list of deleted files below
- #
- # libcrypto.so.0.$SSL_SLOT => dev-libs/openssl:$SSL_SLOT
- # libssl.so.$SSL_SLOT => dev-libs/openssl:$SSL_SLOT
- # libcurl.so* => net-misc/curl
- # libexpat.so* => dev-libs/expat
- # libgcc_s.so => >=sys-devel/gcc-4
- # libstdc++.so* => >=sys-devel/gcc-4
- # libpcre.so* => dev-libs/libpcre
- # libpng12* => media-libs/libpng:1.2
- # libQt*.so* => dev-qt/qtcore dev-qt/qtgui
- # libsqlite3.so* => dev-db/sqlite:3
- # libssh2.so* => net-libs/libssh2
- # libz.so* => sys-libs/zlib
- #
- # pycurl.so => dev-python/pycurl
- #
- # usr/lib/SpiderOak/py pyexpat.so => dev-lang/python:2.7
- #
- if use system-libs; then
- for lib in \
- libcrypto.so.$SSL_SLOT \
- libssl.so.$SSL_SLOT \
- libcurl.so* \
- libexpat.so* \
- libgcc_s.so* \
- libpcre.so* \
- libpng12* \
- libQt*.so* \
- libsqlite3.so* \
- libssh2.so* \
- libstdc++.so* \
- libz.so* \
- pycurl.so \
- pyexpat.so
- do
- rm usr/lib/SpiderOak/$lib || die "rm $lib failed"
- done
-
- # Remove bundled python interpreter => dev-lang/python:2.7
- rm usr/lib/SpiderOak/py || die "rm py failed"
- fi
-
- # Set RPATH for preserve-libs handling (bug #400979).
- cd "${S}/usr/lib/SpiderOak" || die
- local x
- for x in * ; 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 executable script
- exeinto /usr/bin
- doexe usr/bin/SpiderOak
-
- #install the prebundled libraries
- dodir /opt
- cp -pPR usr/lib/SpiderOak "${ED}"/opt/
-
- #install the config files
- rm -rf etc/apt
- use dbus || rm -rf etc/dbus-1
- insinto /
- doins -r etc
-
- #install the changelog
- dodoc usr/share/doc/spideroak/changelog.gz
-
- if ! use headless ; then
- domenu usr/share/applications/spideroak.desktop
- doicon usr/share/pixmaps/spideroak.png
- fi
-}
-
-pkg_postinst() {
- if use headless; 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
- if use system-libs; then
- einfo "You have chosen to use your system libraries rather than the precompiled libraries that"
- einfo "SpiderOak bundles with their software. While upstream discourages this (see bug #398313),"
- einfo "there are advantages to using the system libraries, like reducing the size of the package"
- einfo "on your hard drive. For more reasons why bundled librars are not a good idea, see"
- einfo " https://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries"
- fi
-}
diff --git a/app-backup/spideroak-bin/spideroak-bin-5.0.1.ebuild b/app-backup/spideroak-bin/spideroak-bin-5.0.1.ebuild
new file mode 100644
index 000000000000..2366086e9e57
--- /dev/null
+++ b/app-backup/spideroak-bin/spideroak-bin-5.0.1.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-backup/spideroak-bin/spideroak-bin-5.0.1.ebuild,v 1.1 2013/05/06 22:03:48 blueness Exp $
+
+EAPI="4"
+
+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 headless"
+
+DEPEND="dev-util/patchelf"
+RDEPEND="
+ app-crypt/mit-krb5[keyutils]
+ dbus? ( sys-apps/dbus )
+ !headless? (
+ 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() {
+ use headless && epatch "${FILESDIR}"/headless.patch
+
+ # 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
+ exeinto /usr/bin
+ doexe 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 headless ; then
+ domenu usr/share/applications/spideroak.desktop
+ doicon usr/share/pixmaps/SpiderOak.png
+ fi
+}
+
+pkg_postinst() {
+ if use headless; 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
+}