From nobody Mon Aug 26 14:15:09 2024 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Wst3y0lqBz5T0Ws; Mon, 26 Aug 2024 14:15:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wst3x6lznz4j65; Mon, 26 Aug 2024 14:15:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724681709; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=oeswUu7DzKr58oB1QSVCWchIkahHR6ZKKml4Su9KL8Y=; b=kv0+2w+tdKt5QKhd3EAO2TQIfIakRZItYllZS15nE1iSTTPNjVB9fBraWw/zyIqzljqI6p 4hP4Fz6LHgfAUXMZ5UbS1LtygtXGTTpK9aWzExQUGhJjszV4FpvIQJJtzw3Q6jH2uQskhL 8anNujfC+tcxJhLB2kki9CFHp47u9EkY2AGn7r3BvZupUBkjueyv98zIHhHLqrNCUshlEd G+IN386FxRraMfrStsYxc3YbvDFbByjWQXKwpTDbOxHlMn+88rLN2G0MyI+nW4SLu0SBZv OVbSHicRlTX15JJEyF2cjlIwuswJHI1vDNW1InAtRmZ31E/Hkq0DnXqHCp2gMA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724681709; a=rsa-sha256; cv=none; b=SYfmrCUItMq2jDVGFD6hpe10PFY1jJ7vRpCCGuHVIJp1aH+G8u2wI98UQsT7bEVWvnOp/+ EnhfY8MAt5Ul2GOB1IigakGtscqQiNGunJqxYOrFzWJ85vMyUxBzDNiyagPehX85vjQq9p Mt/S5PakU8qThcKMcywQR60/RY5M2SEqNIC0H+ComqmPzpwp+TWXj5eP1q9yWs2yiKyFUb uXBs0h+HZEWZlN7WNXYbwaEBssLNX9M6otNqOWZkpf5O5//yIpvACrVuPmcISGB9rNKUts NxYnye6H9kxKDfvkwZkU60ydheEypBO8Qd62vLvkZ+dxhhGTD0MQc9t9vouv+Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724681709; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=oeswUu7DzKr58oB1QSVCWchIkahHR6ZKKml4Su9KL8Y=; b=LKk8EJBiJNBtKSmepq64TtTnanzVXysiNNDDY6MhODilCFYr5Gx5kOciuxz6UlyfjpNexg B2tD+l/bdezet1rcGyWAubi6pN8rm54GHN2/g8F+RO/ReVgTjTBLD6xNO4QeAiS8Ac0NPp 5xDSh3hQwqBa2WP7B/g7isWaevkevDqFXCr1DGR6fNNHzNqdthd/Ztne9erLbOzWP5cLd0 JR12Dc/JztvgREtjfZakZmGpQ/aoHivJs68pZwhAPMjWYHXEMtGMoVIGS1v2jnGQQBVW0T pWQvoTU55hLQOQfQ1JR//WoaM9Qzqpc9NIEV3Ei66x3/4Gy1eYQyvtK47dVbOw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Wst3x6H41z18wb; Mon, 26 Aug 2024 14:15:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 47QEF9UH052648; Mon, 26 Aug 2024 14:15:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47QEF9dG052645; Mon, 26 Aug 2024 14:15:09 GMT (envelope-from git) Date: Mon, 26 Aug 2024 14:15:09 GMT Message-Id: <202408261415.47QEF9dG052645@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Nicola Vitale Subject: git: 7811b1c17174 - main - net-im/linux-discord: Add new port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: nivit X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7811b1c1717419bced96a21b319ab38f32d7dc0d Auto-Submitted: auto-generated The branch main has been updated by nivit: URL: https://cgit.FreeBSD.org/ports/commit/?id=7811b1c1717419bced96a21b319ab38f32d7dc0d commit 7811b1c1717419bced96a21b319ab38f32d7dc0d Author: Nicola Vitale AuthorDate: 2024-08-26 14:09:38 +0000 Commit: Nicola Vitale CommitDate: 2024-08-26 14:09:38 +0000 net-im/linux-discord: Add new port Official client for the Discord platform (Linux version). Discord is great for playing games and chilling with friends, or even building a worldwide community. Customize your own space to talk, play, and hang out. https://discord.com/ --- net-im/Makefile | 1 + net-im/linux-discord/Makefile | 53 ++++++++++++++ net-im/linux-discord/distinfo | 3 + net-im/linux-discord/files/linux-discord.in | 11 +++ .../linux-discord/files/patch-Discord_postinst.sh | 23 ++++++ net-im/linux-discord/files/pkg-message.in | 17 +++++ net-im/linux-discord/pkg-descr | 4 ++ net-im/linux-discord/pkg-plist | 81 ++++++++++++++++++++++ 8 files changed, 193 insertions(+) diff --git a/net-im/Makefile b/net-im/Makefile index 5c5dd6347bc2..e56e237d586a 100644 --- a/net-im/Makefile +++ b/net-im/Makefile @@ -51,6 +51,7 @@ SUBDIR += libsignal-node SUBDIR += libsignon-glib SUBDIR += libstrophe + SUBDIR += linux-discord SUBDIR += loudmouth SUBDIR += lurch SUBDIR += mastodon diff --git a/net-im/linux-discord/Makefile b/net-im/linux-discord/Makefile new file mode 100644 index 000000000000..8d8088975131 --- /dev/null +++ b/net-im/linux-discord/Makefile @@ -0,0 +1,53 @@ +PORTNAME= discord +DISTVERSION= 0.0.65 +CATEGORIES= net-im +MASTER_SITES= https://dl.discordapp.net/apps/linux/${DISTVERSION}/ +PKGNAMEPREFIX= linux- + +MAINTAINER= nivit@FreeBSD.org +COMMENT= Official client for the Discord platform (Linux version) +WWW= https://discord.com/ + +LICENSE= AGPLv3 BSD3CLAUSE CC-BY-2.5 CC-BY-3.0 DISCORD LGPL21 MIT MPL11 +LICENSE_COMB= multi +LICENSE_NAME_DISCORD= Discord's Term of Service +LICENSE_TEXT_DISCORD= https://discord.com/terms +LICENSE_PERMS_DISCORD= dist-mirror pkg-mirror auto-accept + +ONLY_FOR_ARCHS= amd64 + +RUN_DEPENDS= linux-rl9-libatomic>=11.4.1:devel/linux-rl9-libatomic \ + pulseaudio:audio/pulseaudio + +USES= linux:rl9 +USE_LINUX= alsa-plugins-oss alsa-plugins-pulseaudio alsalib at-spi2-atk \ + atk ca-certificates cups-libs dbuslibs devtools gtk3 libdrm \ + libsigsegv nspr nss opus + +DATADIR= ${PREFIX}/share/${PKGBASE} + +NO_BUILD= yes +SUB_FILES= ${PKGBASE} pkg-message +SUB_LIST= LINUXBASE=${LINUXBASE} + +NO_WRKSUBDIR= yes + +ICONS_DIR= ${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256/apps + +post-patch: + ${REINPLACE_CMD} -i "" \ + -e 's,/usr,${PREFIX},g' \ + -e 's,\(^Exec=\).*,\1${PREFIX}/bin/${PKGBASE},1' \ + ${WRKSRC}/Discord/discord.desktop + +do-install: + @${MKDIR} ${STAGEDIR}${DATADIR} + (cd ${WRKSRC}/Discord && \ + ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} \ + "-not -regex \./discord.*") + ${INSTALL_SCRIPT} ${WRKDIR}/${PKGBASE} ${STAGEDIR}${LOCALBASE}/bin/${PKGBASE} + ${INSTALL_DATA} ${WRKSRC}/Discord/discord.desktop ${STAGEDIR}${DESKTOPDIR}/${PKGBASE}.desktop + @${MKDIR} ${ICONS_DIR} + ${INSTALL_DATA} ${WRKSRC}/Discord/discord.png ${ICONS_DIR} + +.include diff --git a/net-im/linux-discord/distinfo b/net-im/linux-discord/distinfo new file mode 100644 index 000000000000..1cdf053b3879 --- /dev/null +++ b/net-im/linux-discord/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1724402306 +SHA256 (discord-0.0.65.tar.gz) = 93360b65c8ee1bb93c4528dce68a0394c29a025307be6d320a5e4aae786aabc0 +SIZE (discord-0.0.65.tar.gz) = 103550088 diff --git a/net-im/linux-discord/files/linux-discord.in b/net-im/linux-discord/files/linux-discord.in new file mode 100755 index 000000000000..e4c462613861 --- /dev/null +++ b/net-im/linux-discord/files/linux-discord.in @@ -0,0 +1,11 @@ +#!%%LINUXBASE%%/bin/bash + +# workaround Chromium bug https://bugs.chromium.org/p/chromium/issues/detail?id=918234 +if [ "$DBUS_SESSION_BUS_ADDRESS" = "" ]; then + export DBUS_SESSION_BUS_ADDRESS="autolaunch:" +fi +export ELECTRON_IS_DEV=0 +export LIBGL_DRI3_DISABLE=1 +export NODE_ENV=production + +exec -a "$0" "%%DATADIR%%/Discord" --no-sandbox --no-zygote "$@" diff --git a/net-im/linux-discord/files/patch-Discord_postinst.sh b/net-im/linux-discord/files/patch-Discord_postinst.sh new file mode 100644 index 000000000000..2464e095a7eb --- /dev/null +++ b/net-im/linux-discord/files/patch-Discord_postinst.sh @@ -0,0 +1,23 @@ +--- Discord/postinst.sh.orig 2024-08-22 19:49:42 UTC ++++ Discord/postinst.sh +@@ -16,16 +16,16 @@ for DIR in /home/* ; do + # This is probably just paranoia, but some people claim that clearing out + # cache and/or the sock file fixes bugs for them, so here we go + for DIR in /home/* ; do +- rm -rf "$DIR/.config/discord/Cache" +- rm -rf "$DIR/.config/discord/GPUCache" ++ rm -Rf "$DIR/.config/discord/Cache" ++ rm -Rf "$DIR/.config/discord/GPUCache" + + # A previous bug made some files in this folder owned by root + # and discord will hang if those files are present + SETTINGS_FILE="$DIR/.config/discord/Crashpad/settings.dat" + if [ -f "$SETTINGS_FILE" ]; then +- OWNER=$(stat -c "%U" "$SETTINGS_FILE") ++ OWNER=$(stat -f "%Su" "$SETTINGS_FILE") + if [ "$OWNER" = "root" ]; then +- rm -rf "$DIR/.config/discord/Crashpad" ++ rm -Rf "$DIR/.config/discord/Crashpad" + fi + fi + done diff --git a/net-im/linux-discord/files/pkg-message.in b/net-im/linux-discord/files/pkg-message.in new file mode 100644 index 000000000000..9006df957430 --- /dev/null +++ b/net-im/linux-discord/files/pkg-message.in @@ -0,0 +1,17 @@ +[ +{ type: install + message: <