summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-01-12 14:43:31 -0500
committerJune McEnroe <june@causal.agency>2019-01-12 14:43:31 -0500
commit16fbdc072204852cde38a927bf7a3f94ade4e8e0 (patch)
tree6407373efbcca263400aab70479c7b6dd4a6e544
parentReference cash builtin man pages in cash.1 SEE ALSO (diff)
downloadsrc-16fbdc072204852cde38a927bf7a3f94ade4e8e0.tar.gz
src-16fbdc072204852cde38a927bf7a3f94ade4e8e0.zip
Install gnupg2 from pkgsrc and symlink gpg
Diffstat (limited to '')
-rwxr-xr-xinstall.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/install.sh b/install.sh
index f9f7ab29..2a9ce28f 100755
--- a/install.sh
+++ b/install.sh
@@ -1,11 +1,11 @@
 #!/bin/sh
 set -e -u
 
-pkgAny='curl git gnupg htop mksh sl the_silver_searcher tree'
-pkgDarwin='git'
-pkgFreeBSD='ddate neovim sudo'
-pkgNetBSD='sudo vim'
-pkgLinux='base-devel bc ctags gdb neovim openssh'
+pkgAny='curl git htop mksh sl the_silver_searcher tree'
+pkgDarwin='git gnupg2'
+pkgFreeBSD='ddate gnupg neovim sudo'
+pkgNetBSD='gnupg2 sudo vim'
+pkgLinux='base-devel bc ctags gdb gnupg neovim openssh'
 
 pkgsrcTag='20171103'
 neovimTag='v0.3.1'
@@ -26,6 +26,7 @@ Darwin() {
 	fi
 	sudo pkgin update
 	sudo pkgin install ${pkgAny} ${pkgDarwin}
+	sudo ln -sf /opt/pkg/bin/gpg2 /usr/local/bin/gpg
 	if [ ! -f /usr/local/bin/nvim ]; then
 		curl -L -O ${neovimURL}
 		sudo tar -xf ${neovimTar} --strip-components 1 -C /usr/local
@@ -45,6 +46,7 @@ NetBSD() {
 	fi
 	pkgin update
 	pkgin install ${pkgAny} ${pkgNetBSD}
+	ln -sf /usr/pkg/bin/gpg2 /usr/local/bin/gpg
 }
 
 FreeBSD() {