aboutsummaryrefslogtreecommitdiff
path: root/security/gnupg
diff options
context:
space:
mode:
authorYasuhiro Kimura <yasu@FreeBSD.org>2023-07-15 16:58:03 +0000
committerYasuhiro Kimura <yasu@FreeBSD.org>2023-07-31 23:34:41 +0000
commit06227fb64bf2ec95f68889540516922498010903 (patch)
treeaa86839a5901cedbe3b005ba7723f5a0b9b751dd /security/gnupg
parentbd3870067d33e4796417070d5ec6f3e00ec2f055 (diff)
downloadports-06227fb64bf2ec95f68889540516922498010903.tar.gz
ports-06227fb64bf2ec95f68889540516922498010903.zip
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
Diffstat (limited to 'security/gnupg')
-rw-r--r--security/gnupg/Makefile2
-rw-r--r--security/gnupg/pkg-plist2
2 files changed, 3 insertions, 1 deletions
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