Fix non-root installation: ignore chown/chmod errors
Prefix chown root and chmod 4755 commands with - to allow installation to succeed when running as non-root user. Affected files: - programs/dtcm/dtcm/Makefile.am: use localstatedir for spool - programs/dtsearchpath/dtappg/Makefile.am: ignore setuid errors - programs/dtsession/Makefile.am: ignore setuid errors - programs/dtterm/Makefile.am: ignore setuid errors
This commit is contained in:
parent
f0154141b1
commit
ee42be7489
|
|
@ -42,4 +42,4 @@ dtcm_editor_SOURCES = datefield.c deskset.c dssw.c \
|
|||
reminders.c rfp.c
|
||||
|
||||
install-exec-hook:
|
||||
$(INSTALL) -m 0755 -d $(DESTDIR)/var/spool/calendar
|
||||
$(INSTALL) -m 0755 -d $(DESTDIR)$(localstatedir)/spool/calendar
|
||||
|
|
|
|||
|
|
@ -14,5 +14,5 @@ dtappgather_SOURCES = Options.C dtappgather.C dtappgather.h Options.h
|
|||
|
||||
# can't use INSTALL here as the program is already installed
|
||||
install-exec-hook:
|
||||
chown root $(DESTDIR)$(bindir)/dtappgather
|
||||
chmod 4755 $(DESTDIR)$(bindir)/dtappgather
|
||||
-chown root $(DESTDIR)$(bindir)/dtappgather
|
||||
-chmod 4755 $(DESTDIR)$(bindir)/dtappgather
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ sys.session.ive: sys.session.src
|
|||
|
||||
install-exec-hook:
|
||||
if !HAS_PAM_LIBRARY
|
||||
chown root $(DESTDIR)$(bindir)/dtsession
|
||||
chmod 4755 $(DESTDIR)$(bindir)/dtsession
|
||||
-chown root $(DESTDIR)$(bindir)/dtsession
|
||||
-chmod 4755 $(DESTDIR)$(bindir)/dtsession
|
||||
endif
|
||||
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ dtterm.ti: terminfoChecklist
|
|||
|
||||
install-exec-hook:
|
||||
if !HAS_UTEMPTER_LIBRARY
|
||||
chown root $(DESTDIR)$(bindir)/dtterm
|
||||
chmod 4755 $(DESTDIR)$(bindir)/dtterm
|
||||
-chown root $(DESTDIR)$(bindir)/dtterm
|
||||
-chmod 4755 $(DESTDIR)$(bindir)/dtterm
|
||||
endif
|
||||
@TIC@ dtterm.ti
|
||||
|
|
|
|||
Loading…
Reference in New Issue