From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1489096-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 4C59515800F
	for <garchives@archives.gentoo.org>; Wed, 22 Feb 2023 13:32:17 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id F154DE076B;
	Wed, 22 Feb 2023 13:32:15 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id C4197E076B
	for <gentoo-commits@lists.gentoo.org>; Wed, 22 Feb 2023 13:32:15 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 6851C34027D
	for <gentoo-commits@lists.gentoo.org>; Wed, 22 Feb 2023 13:32:14 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id AC28875
	for <gentoo-commits@lists.gentoo.org>; Wed, 22 Feb 2023 13:32:12 +0000 (UTC)
From: "Ben Kohler" <bkohler@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Ben Kohler" <bkohler@gentoo.org>
Message-ID: <1677072727.e4586adb780541ef6b67bb160e87a959643c8db7.bkohler@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/dropbox/
X-VCS-Repository: repo/gentoo
X-VCS-Files: net-misc/dropbox/Manifest net-misc/dropbox/dropbox-168.4.4802.ebuild
X-VCS-Directories: net-misc/dropbox/
X-VCS-Committer: bkohler
X-VCS-Committer-Name: Ben Kohler
X-VCS-Revision: e4586adb780541ef6b67bb160e87a959643c8db7
X-VCS-Branch: master
Date: Wed, 22 Feb 2023 13:32:12 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: b9ee914e-97c8-4b7d-9885-dbb436c482f1
X-Archives-Hash: 294aa93e58b3d81da1a463810a40a02b

commit:     e4586adb780541ef6b67bb160e87a959643c8db7
Author:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 22 13:31:55 2023 +0000
Commit:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
CommitDate: Wed Feb 22 13:32:07 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4586adb

net-misc/dropbox: add 168.4.4802

Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>

 net-misc/dropbox/Manifest                  |   2 +
 net-misc/dropbox/dropbox-168.4.4802.ebuild | 110 +++++++++++++++++++++++++++++
 2 files changed, 112 insertions(+)

diff --git a/net-misc/dropbox/Manifest b/net-misc/dropbox/Manifest
index de2513545f76..c835c26438d0 100644
--- a/net-misc/dropbox/Manifest
+++ b/net-misc/dropbox/Manifest
@@ -1,5 +1,7 @@
 DIST DropboxGlyph_Blue.svg 605 BLAKE2B 6c488bd261293b22da98035935ddfa9247bedbc6f4da2f9fc2470af802c1f4f597ac88b01b5bef9e77e1e717267f633d6a04af2ccfd3c5f9dbff22fbceaf9a91 SHA512 9202344b904dcd7955e5a355dadf537d1544140d74f8a33bdc40e18e36661e3a474d11cf17613eaebf4e76c170d8413d99abdedfb8635784bcd6892b4b259712
 DIST dropbox-lnx.x86-166.4.2920.tar.gz 108842039 BLAKE2B 6d814c8afd84d32f72901ec2afb80c7bd54e37b8498c54f5bc1aa6bebf249a1106b428118f79992afcaf0228dbf7d4039b01d8c5c6752cf5f97a344735497bdc SHA512 f05075424892d42cfb64ed9642931460235b4a3fdf70387832db1838c17b9636ef9a0f279633e8d2ddbb9f730d3a62b13458bb6b3c35ea5f481f0f4ad2964581
 DIST dropbox-lnx.x86-167.4.4719.tar.gz 108269070 BLAKE2B d8a559feb00b7c27228c7f5d7794b64fb096d69061a0674b9c70dd03b8518590e3fc1482a85e521caa50b6012d4c13726aa512a2fd21ea4c5faf32e8cbe70b71 SHA512 3dbcea89364c5a9e2947a54369eb3144b7a894674059cb9f6e9ca2d4ad5ee9a4de095825cc343ea12e03630536433c2db05d06b157f416ba28acdb32d3210c05
+DIST dropbox-lnx.x86-168.4.4802.tar.gz 108507391 BLAKE2B 58579507c1899e0d7861ad26c8734f244c6a29aab82e59f533dbaaae8dd21966e6225435c83853541b34eafd83e755bfde67a96439f73a13d57bd608ae54df3f SHA512 c0d38db2b4b37b8889018341bd045947ad024bff50c6443da48b69cb273a0891efb37294f3a7841201d45cd3a01f1917c40c0942da9530c4afe1b67c17be757d
 DIST dropbox-lnx.x86_64-166.4.2920.tar.gz 110591254 BLAKE2B 21977a6dcf94cf5963488c5dd3ef9106b449e39210bd315c5b216c208f04c25a40bb49377bc654758d746a4eb8429e454a9a85a6179df9765a3cefc78eb21022 SHA512 2aa90eb422b2a224a3d5ff70b9b3a76b0ac4bc0f8301b35f0db1b08c495e83041a49be445f2fa3945ce4ba3726230294fca190ec367ce5c5a49ada35bd965e85
 DIST dropbox-lnx.x86_64-167.4.4719.tar.gz 110035190 BLAKE2B 2b29ec4371cc0db6ebd49d0355fb3d11a20f20824e5f090058f481af18b8572efe7d574dabaacb3fc513577a2c6e0854fc493e7e7ed9019ab33baa8d54285a0c SHA512 8aaa27266281a7ec0c95fad4ad716ba8f54e3c9efaf0e3cde89b288fa01e9ffb7d5e070745c6378f03b89193c823cc96c822a5e2e6386e7174b0b7af2c53fd5c
+DIST dropbox-lnx.x86_64-168.4.4802.tar.gz 110197663 BLAKE2B 6f4bca5fcd7def68a5e7f83c95e9b21254162504725df5459d2eb18813802a952739cf006ffa4b4fbbb64f6798803f348225895216e7a19a84bcb79b95149ee1 SHA512 6a59f75f9947c54512886872f4e67c2a069ab939bd31b246d9878830e348e9558c4cfa622e7974272a52b4723f6507eac484d1690f135f6f0e78f94bf08009ec

diff --git a/net-misc/dropbox/dropbox-168.4.4802.ebuild b/net-misc/dropbox/dropbox-168.4.4802.ebuild
new file mode 100644
index 000000000000..e1949fb60f88
--- /dev/null
+++ b/net-misc/dropbox/dropbox-168.4.4802.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2023 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 )
+	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 "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"
+}