git: 06227fb64bf2 - main - security/gnupg: Create symlink for manpage
Date: Mon, 31 Jul 2023 23:35:22 UTC
The branch main has been updated by yasu:
URL: https://cgit.FreeBSD.org/ports/commit/?id=06227fb64bf2ec95f68889540516922498010903
commit 06227fb64bf2ec95f68889540516922498010903
Author: Yasuhiro Kimura <yasu@FreeBSD.org>
AuthorDate: 2023-07-15 16:58:03 +0000
Commit: Yasuhiro Kimura <yasu@FreeBSD.org>
CommitDate: 2023-07-31 23:34:41 +0000
security/gnupg: Create symlink for manpage
When security/gnupg1 isn't installed, ${PREFIX}/bin/gpg symlink is
created whose target is 'gpg2'. It means gpg2 can also be invoked as
'gpg'. And under such situation it is convenient for user if gpg2(1)
man page can also be accessed as gpg(1). So create
${PREFIX}/man/man1/gpg.1.gz symlink whose target is 'gpg2.1.gz'.
PR: 272519
Approved by: maintainer timeout
---
security/gnupg/Makefile | 2 +-
security/gnupg/pkg-plist | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/security/gnupg/Makefile b/security/gnupg/Makefile
index 02637667f41b..2e175ae58415 100644
--- a/security/gnupg/Makefile
+++ b/security/gnupg/Makefile
@@ -1,6 +1,6 @@
PORTNAME= gnupg
DISTVERSION= 2.4.3
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= security
MASTER_SITES= GNUPG
diff --git a/security/gnupg/pkg-plist b/security/gnupg/pkg-plist
index 49090edb2b2e..a279fde721f7 100644
--- a/security/gnupg/pkg-plist
+++ b/security/gnupg/pkg-plist
@@ -123,3 +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