summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2012-09-07 12:16:28 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2012-09-07 17:43:22 +0200
commit35186fcf79b56eb943c477715ad9b41ae9c5365b (patch)
tree81d1649312b971de10083ef29c8cdd0c2ffdea19
parentf08790f8282abd0569c9781c92432ca7a5eddc05 (diff)
downloadpass-35186fcf79b56eb943c477715ad9b41ae9c5365b.tar.gz
pass-35186fcf79b56eb943c477715ad9b41ae9c5365b.tar.bz2
pass-35186fcf79b56eb943c477715ad9b41ae9c5365b.zip
Explicitly set permissions when running 'install'
The default permissions set by 'install' are 0755 which is not what we want for manpages and the bash completion file.
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 19a8717..62f2ca0 100644
--- a/Makefile
+++ b/Makefile
@@ -11,9 +11,9 @@ all:
install:
@mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1 $(DESTDIR)$(SYSCONFDIR)/bash_completion.d
- @install -v src/password-store.sh $(DESTDIR)$(BINDIR)/pass
- @install -v man/pass.1 $(DESTDIR)$(MANDIR)/man1/pass.1
- @install -v bash-completion/pass-bash-completion.sh $(DESTDIR)$(SYSCONFDIR)/bash_completion.d/password-store
+ @install -m 0755 -v src/password-store.sh $(DESTDIR)$(BINDIR)/pass
+ @install -m 0644 -v man/pass.1 $(DESTDIR)$(MANDIR)/man1/pass.1
+ @install -m 0644 -v bash-completion/pass-bash-completion.sh $(DESTDIR)$(SYSCONFDIR)/bash_completion.d/password-store
uninstall:
@rm -vf $(DESTDIR)$(BINDIR)/pass $(DESTDIR)$(MANDIR)/man1/pass.1 $(DESTDIR)$(SYSCONFDIR)/bash_completion.d/password-store