diff options
-rw-r--r-- | net-misc/dropbox/Manifest | 2 | ||||
-rw-r--r-- | net-misc/dropbox/dropbox-132.4.3800.ebuild | 105 |
2 files changed, 107 insertions, 0 deletions
diff --git a/net-misc/dropbox/Manifest b/net-misc/dropbox/Manifest index 1c8e6d8cc982..b41bc35322c3 100644 --- a/net-misc/dropbox/Manifest +++ b/net-misc/dropbox/Manifest @@ -1,4 +1,6 @@ DIST dropbox-lnx.x86-130.4.4978.tar.gz 99316040 BLAKE2B 2760b2f94e0c5308660698b3887df062518f950e145499dd8b082a547a75415ad6fe60c5a505c2c4486a579447f6f9656e7f2306e7dfa51f8f300df989a2cc38 SHA512 160f1e7cb9f91ead905e35f79cccdc08c661053143c681a3766c57384bf7b61015fd4c6521aa0a8bdca5c1e6ae88f2dc997a6aec6024f6309c785d5a6baa48dd DIST dropbox-lnx.x86-131.4.3968.tar.gz 99373510 BLAKE2B f9db71b392218b09d1428729af8ad83353c9c9b045342af7fcb19d63e318d260cf35ec8ce52ab14eabd6f5c5e094f9f6fb14517fed806381ee5d6f1f61e16ae8 SHA512 3b220c9768199e7cafafde5b73c0ea5a976aa73ed2b9bba9fcc116c25a0da362b1cff65d86f71c3c75a7ba82337c4d4673abf56934ad0e4b4a6c797e7664f4c5 +DIST dropbox-lnx.x86-132.4.3800.tar.gz 99450051 BLAKE2B c765236721e462a1f0a1b1d48bfc1bb80c8347a0b64b0fb37a68a03fc10ff69274e84065802d31419d5810324a41e638eabeafc1563b2b464770fafd40b5be1d SHA512 8a132623b4dde39e0e39d88a4ca90c88c6349236a7e3941be77f1784fd1a289a803a211f532b78d7805c5e765d0f358a20745a6300ad4c1e16f385fb82b01625 DIST dropbox-lnx.x86_64-130.4.4978.tar.gz 101155639 BLAKE2B 097802a707049c2c5eea8cd66c950c9f7139b9e53119269714d8b474bcdc6746b7de3fd57c79411208bfb8ee9015ba47ef0ab2b836adae621f78f26c3974d928 SHA512 4a317bb15bcf7e5b02bc3da4a23cb34dd52c353c667f3290eca1206aaddfe7ef8885296b97c2b7619aa74f85d64f51133908510436eb0dfca011c8cde5fa6ddf DIST dropbox-lnx.x86_64-131.4.3968.tar.gz 101176952 BLAKE2B da7470b1f401792874e6fd1c0fb2546d38f111f0db232f20adb9488ee844c7cbe469362f1ccb74b8708da43fd7389642ca5ba5579de60ae340c13f833add63cd SHA512 1a6b9262f31f540c4aa718058106dafc990694ef26f247d0f43e32592a2bfcc831dd2f1009feed634299546034aba4451fc7ce621f8574bb83510b783011b78e +DIST dropbox-lnx.x86_64-132.4.3800.tar.gz 101246481 BLAKE2B 9ad48da71e42810dcd898fb3f52e5b0a6c0791be03a41ab54a5a97c88c635542ccfb528e2b8d6165b9d8497ac48002d62139eaad649fb4fac694975542dc295a SHA512 e4b7fdcfe8aeb67f523f2ce320dba7e689e9947d741f2ae21a0a12a3f25dab6e3e9a67394d312149b5e181207d0c2b28d417684b739d3462c9984ccca3fba3c3 diff --git a/net-misc/dropbox/dropbox-132.4.3800.ebuild b/net-misc/dropbox/dropbox-132.4.3800.ebuild new file mode 100644 index 000000000000..be2fed244fff --- /dev/null +++ b/net-misc/dropbox/dropbox-132.4.3800.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop pax-utils systemd xdg + +DESCRIPTION="Dropbox daemon (pretends to be GUI-less)" +HOMEPAGE="https://www.dropbox.com/" +SRC_URI=" + amd64? ( https://clientupdates.dropboxstatic.com/dbx-releng/client/dropbox-lnx.x86_64-${PV}.tar.gz ) + x86? ( https://clientupdates.dropboxstatic.com/dbx-releng/client/dropbox-lnx.x86-${PV}.tar.gz )" + +LICENSE="BSD-2 CC-BY-ND-3.0 FTL MIT LGPL-2 openssl dropbox" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x86-linux" +IUSE="selinux X" + +RESTRICT="mirror strip" + +QA_PREBUILT="opt/.*" +QA_EXECSTACK="opt/dropbox/dropbox" + +BDEPEND="dev-util/patchelf" + +# Be sure to have GLIBCXX_3.4.9, #393125 +RDEPEND=" + X? ( + x11-themes/hicolor-icon-theme + ) + selinux? ( sec-policy/selinux-dropbox ) + app-arch/bzip2 + dev-libs/glib:2 + dev-libs/libffi-compat:6 + media-libs/fontconfig + media-libs/freetype + net-misc/wget + sys-libs/zlib + sys-libs/ncurses-compat:5 + virtual/opengl + x11-libs/libICE + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXrender + x11-libs/libxcb +" + +src_unpack() { + unpack ${A} + mkdir -p "${S}" || die + mv "${WORKDIR}"/.dropbox-dist/* "${S}" || die + mv "${S}"/dropbox-lnx.*-${PV}/* "${S}" || die + rmdir "${S}"/dropbox-lnx.*-${PV}/ || die + rmdir .dropbox-dist || die +} + +src_prepare() { + default + # we supply all of these in RDEPEND + rm -vf libGL.so.1 libX11* libffi.so.6 || die + # some of these do not appear to be used + rm -vf libQt5{OpenGL,PrintSupport,Qml,Quick,Sql,WebKit,WebKitWidgets}.so.5 \ + PyQt5.QtPrintSupport.* PyQt5.QtQml.* PyQt5.QtQuick.* \ + wmctrl libdrm.so.2 libpopt.so.0 || die + if use X ; then + mv images/hicolor/16x16/status "${T}" || die + else + rm -vrf images || die + fi + patchelf --set-rpath '$ORIGIN' \ + apex._apex.*.so \ + nucleus_python.*.so \ + tprt.*.so \ + || die + pax-mark cm dropbox + mv README ACKNOWLEDGEMENTS "${T}" || die +} + +src_install() { + local targetdir="/opt/dropbox" + + insinto "${targetdir}" + doins -r * + fperms a+x "${targetdir}"/{dropbox,dropboxd} + dosym "${targetdir}/dropboxd" "/opt/bin/dropbox" + + use X && doicon -s 16 -c status "${T}"/status + + make_desktop_entry "${PN}" "Dropbox" "dropboxstatus-logo" + + newinitd "${FILESDIR}"/dropbox.initd dropbox + newconfd "${FILESDIR}"/dropbox.conf dropbox + systemd_newunit "${FILESDIR}"/dropbox_at.service-r2 "dropbox@.service" + + dodoc "${T}"/{README,ACKNOWLEDGEMENTS} +} + +pkg_postinst() { + einfo "Warning: while running, dropbox may attempt to autoupdate itself in" + einfo " your user's home directory. To prevent this, run the following as" + einfo " each user who will run dropbox:" + einfo "" + einfo "install -dm0 ~/.dropbox-dist" +} |