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
This commit is contained in:
Yasuhiro Kimura 2023-07-16 01:58:03 +09:00
parent bd3870067d
commit 06227fb64b
2 changed files with 3 additions and 1 deletions

View file

@ -1,6 +1,6 @@
PORTNAME= gnupg
DISTVERSION= 2.4.3
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= security
MASTER_SITES= GNUPG

View file

@ -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