aboutsummaryrefslogtreecommitdiff
path: root/security/gnupg1
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2017-01-10 15:42:11 +0000
committerTijl Coosemans <tijl@FreeBSD.org>2017-01-10 15:42:11 +0000
commit39d5bc9ff7d52124764fc40585285cd40b23ca53 (patch)
tree2734c5d1c1e338b7ec80214e739431a450d32259 /security/gnupg1
parent575ee991de8017aa9515a21fb5b17adde09599b8 (diff)
downloadports-39d5bc9ff7d52124764fc40585285cd40b23ca53.tar.gz
ports-39d5bc9ff7d52124764fc40585285cd40b23ca53.zip
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)
Notes
Notes: svn path=/head/; revision=431096
Diffstat (limited to 'security/gnupg1')
-rw-r--r--security/gnupg1/Makefile2
-rw-r--r--security/gnupg1/pkg-plist1
2 files changed, 2 insertions, 1 deletions
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