Skip to content

Commit

Permalink
security/gnupg: Create symlink for manpage
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Yasuhiro Kimura authored and Yasuhiro Kimura committed Jul 31, 2023
1 parent bd38700 commit 06227fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion security/gnupg/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PORTNAME= gnupg
DISTVERSION= 2.4.3
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= security
MASTER_SITES= GNUPG

Expand Down
2 changes: 2 additions & 0 deletions security/gnupg/pkg-plist
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 06227fb

Please sign in to comment.