From 1aaf63f2a01b8c78e9c9fbeda4ddefeb2c5afa68 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Sun, 5 Jan 2020 20:53:03 -0700 Subject: [PATCH] dtterm, dtsession, dtappgather, dtmail: set correct perms on make install --- cde/programs/dtmail/dtmail/Makefile.am | 5 +++++ cde/programs/dtsearchpath/dtappg/Makefile.am | 4 ++++ cde/programs/dtsession/Makefile.am | 6 ++++++ cde/programs/dtterm/Makefile.am | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/cde/programs/dtmail/dtmail/Makefile.am b/cde/programs/dtmail/dtmail/Makefile.am index 29c68b141..e9f9c65ab 100644 --- a/cde/programs/dtmail/dtmail/Makefile.am +++ b/cde/programs/dtmail/dtmail/Makefile.am @@ -70,3 +70,8 @@ dtmail_SOURCES = AliasListUiItem.C AlternatesListUiItem.C \ XmTextEditor.C XtArgCollector.C \ dtb_utils.C options_stubs.C \ options_ui.C options_util.C + +install-exec-hook: + chown root $(DESTDIR)$(CDE_INSTALLATION_TOP)/bin/dtmail + chgrp mail $(DESTDIR)$(CDE_INSTALLATION_TOP)/bin/dtmail + chmod 2755 $(DESTDIR)$(CDE_INSTALLATION_TOP)/bin/dtmail diff --git a/cde/programs/dtsearchpath/dtappg/Makefile.am b/cde/programs/dtsearchpath/dtappg/Makefile.am index 77840ff47..07407343c 100644 --- a/cde/programs/dtsearchpath/dtappg/Makefile.am +++ b/cde/programs/dtsearchpath/dtappg/Makefile.am @@ -11,3 +11,7 @@ dtappgather_LDADD += -ldl -lintl endif dtappgather_SOURCES = Options.C dtappgather.C dtappgather.h Options.h + +install-exec-hook: + chown root $(DESTDIR)$(CDE_INSTALLATION_TOP)/bin/dtappgather + chmod 4755 $(DESTDIR)$(CDE_INSTALLATION_TOP)/bin/dtappgather diff --git a/cde/programs/dtsession/Makefile.am b/cde/programs/dtsession/Makefile.am index bb2c831f8..4e6726f81 100644 --- a/cde/programs/dtsession/Makefile.am +++ b/cde/programs/dtsession/Makefile.am @@ -116,3 +116,9 @@ sys.session: sys.session.src sys.session.ive: sys.session.src $(RM) $@ $(GENCPP) -P -DXCOMM=# $(LOCAL_CPP_DEFINES) -DIVE $< > $@ + + +install-exec-hook: + chown root $(DESTDIR)$(CDE_INSTALLATION_TOP)/bin/dtsession + chmod 4755 $(DESTDIR)$(CDE_INSTALLATION_TOP)/bin/dtsession + diff --git a/cde/programs/dtterm/Makefile.am b/cde/programs/dtterm/Makefile.am index 0a6d3449b..2e608877d 100644 --- a/cde/programs/dtterm/Makefile.am +++ b/cde/programs/dtterm/Makefile.am @@ -42,3 +42,8 @@ DtTermFallBackResources.c: DtTermFallBackResources.c.src dtterm.ti: terminfoChecklist $(RM) $@ CPP="$(GENCPP)" $(SHELL) terminfoCreate < terminfoChecklist > $@ + +install-exec-hook: + chown root $(DESTDIR)$(CDE_INSTALLATION_TOP)/bin/dtterm + chmod 4755 $(DESTDIR)$(CDE_INSTALLATION_TOP)/bin/dtterm +