From 39d5bc9ff7d52124764fc40585285cd40b23ca53 Mon Sep 17 00:00:00 2001 From: Tijl Coosemans Date: Tue, 10 Jan 2017 15:42:11 +0000 Subject: [PATCH] Restore the link from gpg to gpg2 on uninstallation, removed in r431058. When gnupg is installed, installing gnupg1 overwrites the link. Uninstall should restore the link so the system is back in the same state. Approved by: adamw (maintainer) --- security/gnupg1/Makefile | 2 +- security/gnupg1/pkg-plist | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/security/gnupg1/Makefile b/security/gnupg1/Makefile index 39af31fd42e9..3a93b2a43877 100644 --- a/security/gnupg1/Makefile +++ b/security/gnupg1/Makefile @@ -2,7 +2,7 @@ PORTNAME= gnupg PORTVERSION= 1.4.21 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= security MASTER_SITES= GNUPG PKGNAMESUFFIX= 1 diff --git a/security/gnupg1/pkg-plist b/security/gnupg1/pkg-plist index d2e4b8eb2939..08df3a784e3a 100644 --- a/security/gnupg1/pkg-plist +++ b/security/gnupg1/pkg-plist @@ -42,3 +42,4 @@ 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 [ ! -e %D/bin/gpg2 ] || ln -sf gpg2 %D/bin/gpg