diff --git a/net-im/Makefile b/net-im/Makefile index 5c5dd6347bc2..e56e237d586a 100644 --- a/net-im/Makefile +++ b/net-im/Makefile @@ -1,180 +1,181 @@ COMMENT = Instant messaging SUBDIR += beebeep SUBDIR += biboumi SUBDIR += chatterino2 SUBDIR += coccinella SUBDIR += conduit SUBDIR += convey SUBDIR += coyim SUBDIR += cutegram SUBDIR += dendrite SUBDIR += dino SUBDIR += discordo SUBDIR += dissent SUBDIR += echat SUBDIR += ejabberd SUBDIR += farstream SUBDIR += finch SUBDIR += folks SUBDIR += fractal SUBDIR += freetalk SUBDIR += gajim SUBDIR += gloox SUBDIR += gomuks SUBDIR += gotktrix SUBDIR += gotosocial SUBDIR += gurk-rs SUBDIR += iamb SUBDIR += icmpchat SUBDIR += icqlib SUBDIR += jarl SUBDIR += jicofo SUBDIR += jitsi-meet-full SUBDIR += jitsi-prosody-plugins SUBDIR += jitsi-srtp-native SUBDIR += jitsi-videobridge SUBDIR += jsxc SUBDIR += kaccounts-integration SUBDIR += kaccounts-providers SUBDIR += kaidan SUBDIR += kopete SUBDIR += libaccounts-glib SUBDIR += libaccounts-qt SUBDIR += libmesode SUBDIR += libnice SUBDIR += libnice-gst1 SUBDIR += libpurple SUBDIR += libqtelegram-ae SUBDIR += libquotient SUBDIR += libsignal-client SUBDIR += libsignal-node SUBDIR += libsignon-glib SUBDIR += libstrophe + SUBDIR += linux-discord SUBDIR += loudmouth SUBDIR += lurch SUBDIR += mastodon SUBDIR += matterbridge SUBDIR += matterhorn SUBDIR += matterircd SUBDIR += mbpurple SUBDIR += mcabber SUBDIR += meanwhile SUBDIR += mikutter SUBDIR += mtxclient SUBDIR += neochat SUBDIR += nextcloud-spreed-signaling SUBDIR += nextcloud-talk SUBDIR += nheko SUBDIR += openfire SUBDIR += oysttyer SUBDIR += p5-AnyEvent-XMPP SUBDIR += p5-DJabberd SUBDIR += p5-Jabber-Lite SUBDIR += p5-Jabber-SimpleSend SUBDIR += p5-Net-AOLIM SUBDIR += p5-Net-Async-XMPP SUBDIR += p5-Net-Jabber SUBDIR += p5-Net-NetSend SUBDIR += p5-Net-OSCAR SUBDIR += p5-Net-Stomp SUBDIR += p5-Net-XMPP SUBDIR += p5-Net-XMPP2 SUBDIR += p5-Protocol-XMPP SUBDIR += p5-SOAP-Transport-JABBER SUBDIR += pecl-stomp2 SUBDIR += pidgin SUBDIR += pidgin-bot-sentry SUBDIR += pidgin-fetion SUBDIR += pidgin-hotkeys SUBDIR += pidgin-icyque SUBDIR += pidgin-latex SUBDIR += pidgin-libnotify SUBDIR += pidgin-manualsize SUBDIR += pidgin-sipe SUBDIR += pidgin-skypeweb SUBDIR += pidgin-twitter SUBDIR += pidgin-window_merge SUBDIR += profanity SUBDIR += prosody SUBDIR += prosody-modules SUBDIR += psi SUBDIR += purple-discord SUBDIR += purple-facebook SUBDIR += purple-googlechat SUBDIR += purple-gowhatsapp SUBDIR += purple-mattermost SUBDIR += purple-plugin-pack SUBDIR += purple-rocketchat SUBDIR += purple-slack SUBDIR += py-apprise SUBDIR += py-fbmq SUBDIR += py-matrix-synapse SUBDIR += py-mattermostdriver SUBDIR += py-nbxmpp SUBDIR += py-punjab SUBDIR += py-python-telegram-bot SUBDIR += py-slack-sdk SUBDIR += py-slackeventsapi SUBDIR += py-slixmpp SUBDIR += py-telepot SUBDIR += py-toxcore-c SUBDIR += py-unmessage SUBDIR += qTox SUBDIR += quaternion SUBDIR += qxmpp SUBDIR += ricochet SUBDIR += rubygem-discordrb-webhooks SUBDIR += rubygem-discordrb-webhooks-blackst0ne SUBDIR += rubygem-hipchat SUBDIR += rubygem-lita SUBDIR += rubygem-termtter SUBDIR += rubygem-tinder SUBDIR += ruqola SUBDIR += sayaka SUBDIR += scli SUBDIR += sendxmpp SUBDIR += signal-cli SUBDIR += signal-desktop SUBDIR += signald SUBDIR += slack-term SUBDIR += spectral SUBDIR += ssh-chat SUBDIR += sshout SUBDIR += talkatu SUBDIR += tdlib SUBDIR += tdlib-purple SUBDIR += telegram-cli SUBDIR += telegram-desktop SUBDIR += telegramqml SUBDIR += teleirc SUBDIR += telepathy-accounts-signon SUBDIR += telepathy-farstream SUBDIR += telepathy-gabble SUBDIR += telepathy-glib SUBDIR += telepathy-idle SUBDIR += telepathy-logger SUBDIR += telepathy-logger-qt5 SUBDIR += telepathy-mission-control SUBDIR += telepathy-qt SUBDIR += telepathy-sofiasip SUBDIR += tg_owt SUBDIR += tkabber SUBDIR += tkabber-plugins SUBDIR += tokodon SUBDIR += toot SUBDIR += tox SUBDIR += tox_extension_messages SUBDIR += toxbot SUBDIR += toxext SUBDIR += toxic SUBDIR += toxins SUBDIR += twirssi SUBDIR += uTox SUBDIR += vqcc-gtk SUBDIR += xmpp-client SUBDIR += yume SUBDIR += zkgroup SUBDIR += zoom .include 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: <