From 24330b81d6d1a4d87708692f0ee9906d3297012e Mon Sep 17 00:00:00 2001 From: kousu Date: Sat, 30 Nov 2019 16:28:27 -0500 Subject: OpenBSD patches to installer --- Makefile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index d0b916d..88ed5f4 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,9 @@ PROG ?= otp -PREFIX ?= /usr +PREFIX ?= /usr/local DESTDIR ?= LIBDIR ?= $(PREFIX)/lib SYSTEM_EXTENSION_DIR ?= $(LIBDIR)/password-store/extensions -MANDIR ?= $(PREFIX)/share/man +MANDIR ?= $(PREFIX)/man BASHCOMPDIR ?= /etc/bash_completion.d all: @@ -15,17 +15,17 @@ all: @echo " password store" install: - @install -v -d "$(DESTDIR)$(MANDIR)/man1" && install -m 0644 -v pass-$(PROG).1 "$(DESTDIR)$(MANDIR)/man1/pass-$(PROG).1" - @install -v -d "$(DESTDIR)$(SYSTEM_EXTENSION_DIR)/" - @install -v -m0755 $(PROG).bash "$(DESTDIR)$(SYSTEM_EXTENSION_DIR)/$(PROG).bash" - @install -v -d "$(DESTDIR)$(BASHCOMPDIR)/" - @install -v -m 644 pass-otp.bash.completion "$(DESTDIR)$(BASHCOMPDIR)/pass-otp" + install -d "$(DESTDIR)$(MANDIR)/man1" && install -m 0644 pass-$(PROG).1 "$(DESTDIR)$(MANDIR)/man1/pass-$(PROG).1" + install -d "$(DESTDIR)$(SYSTEM_EXTENSION_DIR)/" + install -m0755 $(PROG).bash "$(DESTDIR)$(SYSTEM_EXTENSION_DIR)/$(PROG).bash" + install -d "$(DESTDIR)$(BASHCOMPDIR)/" + install -m 644 pass-otp.bash.completion "$(DESTDIR)$(BASHCOMPDIR)/pass-otp" @echo @echo "pass-$(PROG) is installed succesfully" @echo uninstall: - @rm -vrf \ + rm -vrf \ "$(DESTDIR)$(SYSTEM_EXTENSION_DIR)/$(PROG).bash" \ "$(DESTDIR)$(MANDIR)/man1/pass-$(PROG).1" \ "$(DESTDIR)$(BASHCOMPDIR)/pass-otp" -- cgit v1.2.3