Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jan 2017 12:10:37 +0100
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        Adam Weinberger <adamw@FreeBSD.org>
Cc:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   Re: svn commit: r431058 - head/security/gnupg1
Message-ID:  <20170110121037.5b0622c6@kalimero.tijl.coosemans.org>
In-Reply-To: <201701100248.v0A2mrol028639@repo.freebsd.org>
References:  <201701100248.v0A2mrol028639@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 10 Jan 2017 02:48:53 +0000 (UTC) Adam Weinberger <adamw@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
> -@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170110121037.5b0622c6>