git: 48e8888c3094 - main - net-im/linux-discord: Add missing dependency

From: Nicola Vitale <nivit_at_FreeBSD.org>
Date: Tue, 27 Aug 2024 09:21:32 UTC
The branch main has been updated by nivit:

URL: https://cgit.FreeBSD.org/ports/commit/?id=48e8888c3094f26b5799642c493ddfe5884bccbc

commit 48e8888c3094f26b5799642c493ddfe5884bccbc
Author:     Nicola Vitale <nivit@FreeBSD.org>
AuthorDate: 2024-08-27 09:14:51 +0000
Commit:     Nicola Vitale <nivit@FreeBSD.org>
CommitDate: 2024-08-27 09:20:17 +0000

    net-im/linux-discord: Add missing dependency
    
    - Add multimedia/linux-rl9-libva to the run dependencies
    - Execute the post-installation script (provided by Discord) for any
      user, not just those who update the program.
    - Modify pkg-message accordingly
    - Bump PORTREVISION
---
 net-im/linux-discord/Makefile             | 3 ++-
 net-im/linux-discord/files/pkg-message.in | 5 +----
 net-im/linux-discord/pkg-plist            | 4 ++++
 3 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/net-im/linux-discord/Makefile b/net-im/linux-discord/Makefile
index 8d8088975131..173ac9024ef2 100644
--- a/net-im/linux-discord/Makefile
+++ b/net-im/linux-discord/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	discord
 DISTVERSION=	0.0.65
+PORTREVISION=	1
 CATEGORIES=	net-im
 MASTER_SITES=	https://dl.discordapp.net/apps/linux/${DISTVERSION}/
 PKGNAMEPREFIX=	linux-
@@ -22,7 +23,7 @@ RUN_DEPENDS=	linux-rl9-libatomic>=11.4.1:devel/linux-rl9-libatomic \
 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
+		libsigsegv libva nspr nss opus
 
 DATADIR=	${PREFIX}/share/${PKGBASE}
 
diff --git a/net-im/linux-discord/files/pkg-message.in b/net-im/linux-discord/files/pkg-message.in
index 9006df957430..c60ea8b8313a 100644
--- a/net-im/linux-discord/files/pkg-message.in
+++ b/net-im/linux-discord/files/pkg-message.in
@@ -8,10 +8,7 @@ If the user's directory is located in /usr/home/ and doesn't exist the link
   ln -s /usr/home /home
 
 Discord uses pulseaudio(1), so you have to start the relative server.
-
-If you have updated the port/package, you have to run the following command:
-
-  %%DATADIR%%/postinst.sh
 EOM
 }
 ]
+
diff --git a/net-im/linux-discord/pkg-plist b/net-im/linux-discord/pkg-plist
index 22fcbea8b5fd..dd36e5facca6 100644
--- a/net-im/linux-discord/pkg-plist
+++ b/net-im/linux-discord/pkg-plist
@@ -76,6 +76,10 @@ share/icons/hicolor/256x256/apps/discord.png
 %%DATADIR%%/chrome_crashpad_handler
 %%DATADIR%%/postinst.sh
 @mode
+@comment Excerpt from postinst.sh script:
+@comment "This is probably just paranoia, but some people claim that clearing out
+@comment and/or the sock file fixes bugs for them, so here we go"
+@postexec %D/%F
 @mode 4555
 %%DATADIR%%/chrome-sandbox
 @mode