forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Ben Kohler <[email protected]>
- Loading branch information
Showing
2 changed files
with
104 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
DIST dropbox-lnx.x86-94.4.384.tar.gz 94254443 BLAKE2B 4d12d0268ea71f4d06304dbe29bcd54f3af4c39e10ba8be4892724c6dc556dd844e587f789cc957dad66d7bd44ae8fdac398cefbfb714a8b01d7f8c06b1d6d50 SHA512 710af644cdaf88a6db26f86b2cafd1bb729b4cd52aab4a3328c9c3061183db32db016adb6d8dc9c5a2fc860a55c3abc712a774ac3e635459c605e91c0178c37e | ||
DIST dropbox-lnx.x86-96.4.172.tar.gz 95619165 BLAKE2B 3d839e3ea9e1b9a7399693e8540230a8bd173b1cbe7fb9ee3a85621f6a3c59bc8c2c58d2f8e0f0998dcd9b0d77cbfcb006c9b543609546efca6ae8d85817b5ee SHA512 83ee64f7db74742c375fca8fa661da0774c3ec451cfe6cc71e5879427e8f822ae9f533ca2920bc01158b05dd52fac9f89fb3bd8928a2a71c4df4162f67547e22 | ||
DIST dropbox-lnx.x86-97.3.451.tar.gz 96560209 BLAKE2B 9ca8b50afddb8e0435cc1e408fdb10a12a1097baebf7241033661ac26e5d8c369b09bb6dfe707d1f0f3f6a79832ff0ae097eed859b0a3612574fb69d9d74fd47 SHA512 d50ba534f3b7b87755d09ffb216cc8741f0d520c088577fbda486aa4debd7317fd87fa7a86a0131800b1cdd75a60f2ee6c1b7d264a8e75b11d7d619e509f221e | ||
DIST dropbox-lnx.x86-97.4.467.tar.gz 96556504 BLAKE2B 1959c134126870e2d86b925766db9466be49fa0f71caeadac79f529194e85afeb4b45e47507a6786a2dc91cdb1cd976ec02110dac2c9d2abd71d789fd81204ac SHA512 fa056a96c1dd68f8c691c21b73d6d7159472616d2d67611a7ee01cb9b6bc4eeceed04087cb77114d6a62a715cbe82f828c6e75e4e92d3a4ce88ca7bbc2d71dd4 | ||
DIST dropbox-lnx.x86_64-94.4.384.tar.gz 98561877 BLAKE2B ff1ec6a8f76b9b79ed3cfe34d5dd5642886d01631bba062ba15528929e1068425fadc403c8a7fb3242b08c2d2742a2f4ccd255c8772691ee1e4f1b8693be4dcb SHA512 e905b283ef435d7b6c0d7973f49e8c0a4a5e7c25c2570967b24bb8476ef1889f63d01e7951f1c6d78a5c6851e1a30737b9297032dede1540e3bf391c56bc0c8b | ||
DIST dropbox-lnx.x86_64-96.4.172.tar.gz 99944904 BLAKE2B 0b9b6c3d283de2751df9c083f7cf4ec8bd013def2a6cacc1a006e5a66ef5d0451d5c1faef3b10d7295ff3c23b941e48248126064e9eab6391e11ad7c193ebb01 SHA512 1aaf4b3e88e047f184af813d80e7754649ab33f2337ae1555c7d408d3358195e48cb0b1daaae1fe6f8a1e572ea087960eb2bda2413158f60588e022f5f01136f | ||
DIST dropbox-lnx.x86_64-97.3.451.tar.gz 100909755 BLAKE2B 75de9da05ebdb1c1da0d604d8e7aff3fd1fa5a6b9f281cb8ae20f673ea05f0a4af775d6c5926fc5962782c896a71aaa48651c7b49e05ed4bc783f64275b1fcce SHA512 501e8754717a91b1fe01ebe5f895341b3ab74da97633faadf3bcf81735672efd6beffa87125aad7e32e851ef656cf5ba8951e57ecc6180a2f3b77af37a629e65 | ||
DIST dropbox-lnx.x86_64-97.4.467.tar.gz 100899563 BLAKE2B 0ab7b98d9e1394ce997aa456157a85586addb0c82f47d831721bd36a716cb3117b280e2753040369bc04d5a0360a3861a34e9381dcba747fdb4a38e11d4dd34a SHA512 05ddc063c9dcfb8b9b03f93f0b298b53d90702aef25ce44254efc1e7b21c0e767702c91cbfa3b1876a4c32980f80dd34eaf40453d76d093635df17818f663c9c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
# Copyright 1999-2020 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="+librsync-bundled 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? ( | ||
dev-libs/glib:2 | ||
media-libs/fontconfig | ||
media-libs/freetype | ||
virtual/jpeg | ||
x11-libs/libSM | ||
x11-libs/libX11 | ||
x11-libs/libXinerama | ||
x11-libs/libXxf86vm | ||
x11-libs/pango[X] | ||
x11-misc/wmctrl | ||
x11-themes/hicolor-icon-theme | ||
) | ||
!librsync-bundled? ( <net-libs/librsync-2 ) | ||
selinux? ( sec-policy/selinux-dropbox ) | ||
app-arch/bzip2 | ||
dev-libs/libffi-compat:6 | ||
dev-libs/popt | ||
net-misc/wget | ||
>=sys-devel/gcc-4.2.0 | ||
sys-libs/zlib | ||
sys-libs/ncurses-compat:5" | ||
|
||
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 | ||
|
||
rm -vf libGL.so.1 libX11* libdrm.so.2 libffi.so.6 libpopt.so.0 wmctrl || die | ||
# tray icon doesnt load when removing libQt5* (bug 641416) | ||
#rm -vrf libQt5* libicu* qt.conf plugins/ || die | ||
if use X ; then | ||
mv images/hicolor/16x16/status "${T}" || die | ||
else | ||
rm -vrf images || die | ||
fi | ||
if use librsync-bundled ; then | ||
patchelf --set-rpath '$ORIGIN' librsyncffi_native.*.so || die | ||
else | ||
rm -vf librsync.so.1 || 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 "[email protected]" | ||
|
||
dodoc "${T}"/{README,ACKNOWLEDGEMENTS} | ||
} |