- Fix build as non-root (similar to what mail/mutt does)

Approved by:	portmgr blanket
This commit is contained in:
Dmitry Marakasov 2015-09-23 19:57:05 +00:00
parent d9ab5d229a
commit 07557d27c2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=397636
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,18 @@
--- Makefile.am.orig 2007-05-23 01:17:52 UTC
+++ Makefile.am
@@ -121,15 +121,6 @@ patchlist.c: $(srcdir)/PATCHES $(srcdir)
$(srcdir)/patchlist.sh < $(srcdir)/PATCHES > patchlist.c
install-exec-local:
- if test -f $(DESTDIR)$(bindir)/mutt.dotlock && test -f $(DESTDIR)$(bindir)/mutt_dotlock ; then \
- rm -f $(DESTDIR)$(bindir)/mutt.dotlock ; \
- ln -sf $(DESTDIR)$(bindir)/mutt_dotlock $(DESTDIR)$(bindir)/mutt.dotlock ; \
- fi
- if test -f $(DESTDIR)$(bindir)/mutt_dotlock && test x@DOTLOCK_GROUP@ != x ; then \
- chgrp @DOTLOCK_GROUP@ $(DESTDIR)$(bindir)/mutt_dotlock && \
- chmod @DOTLOCK_PERMISSION@ $(DESTDIR)$(bindir)/mutt_dotlock || \
- { echo "Can't fix mutt_dotlock's permissions!" >&2 ; exit 1 ; } \
- fi
install-data-local: Muttrc
$(srcdir)/mkinstalldirs $(DESTDIR)$(sysconfdir)

View File

@ -1,5 +1,5 @@
bin/mutt
bin/mutt_dotlock
@(,mail,2755) bin/mutt_dotlock
bin/pgpewrap
bin/pgpring
@sample etc/Muttrc.sample