git: c1bc74bfc97d - main - security/gnupg: Fix postexec/postunexec dealing with manpages

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Wed, 03 Apr 2024 06:25:39 UTC
The branch main has been updated by arrowd:

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

commit c1bc74bfc97dfce5ee95a99f4e26e547913d98f8
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2024-04-03 06:22:48 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2024-04-03 06:22:48 +0000

    security/gnupg: Fix postexec/postunexec dealing with manpages
    
    Approved by:    portmgr (blanket)
---
 security/gnupg/Makefile  | 1 +
 security/gnupg/pkg-plist | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/security/gnupg/Makefile b/security/gnupg/Makefile
index 3f4bbc68f93d..c14d3a78de16 100644
--- a/security/gnupg/Makefile
+++ b/security/gnupg/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	gnupg
 DISTVERSION=	2.4.4
+PORTREVISION=	1
 CATEGORIES=	security
 MASTER_SITES=	GNUPG
 
diff --git a/security/gnupg/pkg-plist b/security/gnupg/pkg-plist
index 4a1bb5dccf6b..5caf61bf2ec0 100644
--- a/security/gnupg/pkg-plist
+++ b/security/gnupg/pkg-plist
@@ -123,5 +123,5 @@ sbin/applygnupgdefaults
 %%NLS%%share/locale/zh_TW/LC_MESSAGES/gnupg2.mo
 @postexec [ -e %D/bin/gpg ] || ln -sf gpg2 %D/bin/gpg
 @postunexec [ -e %D/bin/gpg ] || rm -f %D/bin/gpg
-@postexec [ -e %D/man/man1/gpg.1.gz ] || ln -sf gpg2.1.gz %D/man/man1/gpg.1.gz
-@postunexec [ -e %D/man/man1/gpg.1.gz ] || rm -f %D/man/man1/gpg.1.gz
+@postexec [ -e %D/share/man/man1/gpg.1.gz ] || ln -sf gpg2.1.gz %D/share/man/man1/gpg.1.gz
+@postunexec [ -e %D/share/man/man1/gpg.1.gz ] || rm -f %D/share/man/man1/gpg.1.gz