Skip to content

Commit

Permalink
net-misc/dropbox: add 204.4.5420
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Kohler <[email protected]>
  • Loading branch information
benkohler committed Jul 29, 2024
1 parent 60c54b9 commit 16392cc
Show file tree
Hide file tree
Showing 2 changed files with 112 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net-misc/dropbox/Manifest
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
DIST DropboxGlyph_Blue.svg 605 BLAKE2B 6c488bd261293b22da98035935ddfa9247bedbc6f4da2f9fc2470af802c1f4f597ac88b01b5bef9e77e1e717267f633d6a04af2ccfd3c5f9dbff22fbceaf9a91 SHA512 9202344b904dcd7955e5a355dadf537d1544140d74f8a33bdc40e18e36661e3a474d11cf17613eaebf4e76c170d8413d99abdedfb8635784bcd6892b4b259712
DIST dropbox-lnx.x86-202.4.5551.tar.gz 113668681 BLAKE2B 2590c89af767803b77ff7bd57e4978c90a90be6f6394f7058393045fa4f3c68ae97ab365a460eccf38ab1e0b0a58b0e33aa482348a0bdf040dbe71d0bf683eeb SHA512 d5176c6c4b8f178fced661ef6df73fb767c3e7ff7f111df4829ab258d218586e128acb4187de6d840a0faca5a8766ea97b77c4d5c915fbd944be458ff07b8765
DIST dropbox-lnx.x86-203.4.4857.tar.gz 113474071 BLAKE2B 109111bca49d7c59d9f7c28b9c012953b8cb01a116cdfe757b0c37b9a168e12ed61501cf313c5b5264fbbafa1528d5e2c884de51c3e3a18318dfd195b14ff7d1 SHA512 54945ecb11094d1a73a96f0469415eee8c2b936a22f8a9410ea5cac75e5eda4b3db72def487eef6f113e6bac7eb656403587fbaab4503bb331032648225660a3
DIST dropbox-lnx.x86-204.4.5420.tar.gz 113538291 BLAKE2B bd8bb5a2ff327627d9664f93a9c68cc01b6a745b69fa1d312e3f64da7edc9ef62da45807d5fdfcdcad194a5eebf6562b67e22abce241c435c37c9d46d485cae9 SHA512 868350b68e77a91d4a1e74ede5cf4b219b998089956c1827c96f36fd6401a8bf058d573d31485e1ca94e7d2c72a6c20f34563d5c04ed2833971d8f2bc41de08e
DIST dropbox-lnx.x86_64-202.4.5551.tar.gz 116236652 BLAKE2B f8a7c45ed45ce70580cb0c2f23e83c06098b8792e4a47b01f8ea9d2b1674b6d6470450edc25d58917630106b9f3ba49c20e87829b2f594d9e3a458d2586276fe SHA512 2d33f9f6d7a8b59f381ed43033c7638a54ae0a84f68845127505f6eb7ef00fbae490d7ba8d4f5e31790a39348612db665591e2785870acf816d60ca6d20097c3
DIST dropbox-lnx.x86_64-203.4.4857.tar.gz 116080942 BLAKE2B 44b039a1478bc48a01c2a6c81250417c753dacbac0c7b393e2bf5b1ed1fdcb06855432c6f48bdc3d734d036f5f6e769eee6fdc9ac1685d003db711c9a6646112 SHA512 372ebe6a621f9df7143a4f685d9a6c305d3b124813b13514dd56a409ec473240115000bbedad624efc40c36660811e4a347f0847a9c9a1e0e526f20559f3390d
DIST dropbox-lnx.x86_64-204.4.5420.tar.gz 116062581 BLAKE2B a9740c2c7d1c36fa1b263c65c3bce119e0974409451af0e17038184de4986a6a5349b7b687c4f484fadd8d3698ddeb030358cd22a4a0e28a9d46eb88b64f9544 SHA512 850804590b7fc1932ef421451355e47b55ecf40c1090382317b4dad168f6dad67448ec9df59296da010a50f39dce1e62621177f7e0b3c250bcb1be33daf62ceb
110 changes: 110 additions & 0 deletions net-misc/dropbox/dropbox-204.4.5420.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
# Copyright 1999-2024 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="
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 )
https://www.dropbox.com/sh/42f8d4kq6yt5lte/AAD69lhaw6gy46W8HfQAm0GSa/Glyph/Dropbox/SVG/DropboxGlyph_Blue.svg
"

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"

if use X; then
doicon -s 16 -c status "${T}"/status
newicon -s scalable "${DISTDIR}/DropboxGlyph_Blue.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 "[email protected]"

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"
}

0 comments on commit 16392cc

Please sign in to comment.