svn commit: r431058 - head/security/gnupg1
Tijl Coosemans
tijl at FreeBSD.org
Tue Jan 10 11:10:42 UTC 2017
On Tue, 10 Jan 2017 02:48:53 +0000 (UTC) Adam Weinberger <adamw at FreeBSD.org> wrote:
> Don't link gpg to gpg2 on uninstallation. This is not a good idea.
> The gnupg{,20} ports handle creating that symlink.
>
> Modified: head/security/gnupg1/pkg-plist
> ==============================================================================
> --- head/security/gnupg1/pkg-plist Tue Jan 10 02:46:49 2017 (r431057)
> +++ head/security/gnupg1/pkg-plist Tue Jan 10 02:48:53 2017 (r431058)
> @@ -1,4 +1,5 @@
> -@(,,%%GPGMODE%%) bin/gpg
> +%%SUID_GPG%%@(,,4555) bin/gpg
> +%%NO_SUID_GPG%%bin/gpg
> bin/gpg-zip
> bin/gpgsplit
> bin/gpgv
> @@ -41,4 +42,3 @@ man/man1/gpgv.1.gz
> %%NLS%%share/locale/uk/LC_MESSAGES/gnupg.mo
> %%NLS%%share/locale/zh_CN/LC_MESSAGES/gnupg.mo
> %%NLS%%share/locale/zh_TW/LC_MESSAGES/gnupg.mo
> - at postunexec [ -r %D/bin/gpg2 ] && ln -s gpg2 %D/bin/gpg || true
When gnupg2 is installed installing gnupg1 overwrites the symlink.
Uninstalling gnupg1 then should restore the symlink so the system is
back in the same state.
@postunexec [ ! -e %D/bin/gpg2 ] || ln -sf gpg2 %D/bin/gpg
More information about the svn-ports-all
mailing list