net-misc/dropbox: add 252.4.3485

Signed-off-by: Ben Kohler <bkohler@gentoo.org>
This commit is contained in:
Ben Kohler
2026-05-15 13:25:26 -05:00
parent bf78d357e5
commit 4b5c05c660
2 changed files with 124 additions and 0 deletions
+1
View File
@@ -4,3 +4,4 @@ DIST dropbox-lnx.x86_64-244.4.6580.tar.gz 91592193 BLAKE2B afa2d395f202814992c84
DIST dropbox-lnx.x86_64-246.4.3513.tar.gz 91458293 BLAKE2B d4b3f5fd9543cbf96fa61edc55dc27c5de08fdad605754c24650eafb50f5691cebbc6eafafc41550f3feaff7281be398368a865990ad294a7cc9916e2483ea56 SHA512 97f23f4d17eaecef3f1f2407212f5ba3fe761f8b4a3010bde93bcd157d91e36fd7489a384469bb56148236c81ee258f6558e0a391b32fda0ff0e826d056d1735
DIST dropbox-lnx.x86_64-248.4.3576.tar.gz 90997123 BLAKE2B e7636a57d69faa9a92805cb1f77b9cc08f3710f0246a5b4b04d9ab65e161307fb8128b8a96018d54036e5f7d765eb04d54f7c1d55c623d48ef72896ae2feee62 SHA512 710c8d1105f6bac200b41495a9a7d8445f1dc9361d702b872ee111d4d650e0b968c463d0ae581b0721fb5af6dc07e86a910ccf96d747e8b8de4537440e911acf
DIST dropbox-lnx.x86_64-250.4.3245.tar.gz 90466725 BLAKE2B dc9646901cfe47bf6dc31e13f4250f485e20e010f69ef8eec4b55a5bc189d0edc8b4c30b818c5bb78b6b8afe060160847896256dcc9d75eaf68f735a88df5411 SHA512 44559badeadbc322a88019e76ba86cfe6bd20bc574d7d0251309ddc7b21cd4c10f2460607122af59d4368ad329fc3daab1ad95a093a7f0e7b5bcdf56363d2953
DIST dropbox-lnx.x86_64-252.4.3485.tar.gz 90209472 BLAKE2B 86e71325c2a0675ef8e3988a20e28e9e5b8196133bda887dd0a318d4c5bd33659780c9f5cfa63161400bfcf3c4459a65a3e8035fbd294cb1c084f8374461b221 SHA512 5f5cfb5d5146680f7a5f8e106f81b9c035eb4d914f078f4eac690ad76f2fdeadbc40e0ccabc39e8d4e51ab5fe9a2d9c5977943718739c78e16678d5a81d0a07f
+123
View File
@@ -0,0 +1,123 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop pax-utils systemd xdg
DESCRIPTION="Dropbox daemon (pretends to be GUI-less)"
HOMEPAGE="https://www.dropbox.com/"
SRC_URI="
https://clientupdates.dropboxstatic.com/dbx-releng/client/dropbox-lnx.x86_64-${PV}.tar.gz
https://uxwing.com/wp-content/themes/uxwing/download/brands-and-social-media/dropbox-icon.svg
"
LICENSE="BSD-2 CC-BY-ND-3.0 FTL MIT LGPL-2 openssl dropbox"
SLOT="0"
KEYWORDS="-* ~amd64"
IUSE="selinux X"
RESTRICT="mirror strip"
QA_PREBUILT="opt/.*"
QA_EXECSTACK="opt/dropbox/dropbox"
RDEPEND="
X? (
x11-themes/hicolor-icon-theme
dev-libs/libayatana-appindicator
)
selinux? ( sec-policy/selinux-dropbox )
app-arch/bzip2
dev-libs/glib:2
dev-libs/libffi:0/8
media-libs/fontconfig
media-libs/freetype
net-misc/wget
virtual/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 this in RDEPEND
rm -vf libffi.so.8* || die
if use X ; then
mv images/hicolor/16x16/status "${T}" || die
else
rm -vrf images || die
fi
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"
# Bug 972885
dosym ../libdropbox_tprt.so "${targetdir}/python-pyext/libdropbox_tprt.so"
if use X; then
# symlinks for bug 955139
dosym ../../usr/$(get_libdir)/libayatana-appindicator3.so.1 ${targetdir}/libappindicator3.so.1
dosym libappindicator3.so.1 ${targetdir}/libappindicator3.so
doicon -s 16 -c status "${T}"/status
newicon -s scalable "${DISTDIR}/dropbox-icon.svg" dropbox.svg
fi
make_desktop_entry "${PN}" "Dropbox" "dropbox"
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() {
xdg_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"
einfo ""
einfo "If you do allow dropbox to update/install to your user homedir, you"
einfo " will need to create some compat symlinks to keep the tray icon working:"
einfo ""
einfo "ln -sf /usr/$(get_libdir)/libayatana-appindicator3.so.1 ~/.dropbox-dist/dropbox-lnx.*/libappindicator3.so.1"
einfo "ln -sf libappindicator3.so.1 ~/.dropbox-dist/dropbox-lnx.*/libappindicator3.so"
if has_version gnome-base/gnome-shell; then
if ! has_version gnome-extra/gnome-shell-extension-appindicator; then
einfo ""
einfo "Please install gnome-extra/gnome-shell-extension-appindicator if you"
einfo " require tray icon support for Dropbox in Gnome."
fi
fi
}