Signed-off-by: Kirill Elagin <kirelagin@xxxxxxxxx> --- term-utils/Makefile.am | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/term-utils/Makefile.am b/term-utils/Makefile.am index 5e03560..8ab9d0b 100644 --- a/term-utils/Makefile.am +++ b/term-utils/Makefile.am @@ -66,9 +66,15 @@ endif if USE_TTY_GROUP if MAKEINSTALL_DO_CHOWN +if BUILD_WALL install-exec-hook:: - chgrp tty $(DESTDIR)$(usrbin_execdir)/wall $(DESTDIR)$(usrbin_execdir)/write - chmod g+s $(DESTDIR)$(usrbin_execdir)/wall $(DESTDIR)$(usrbin_execdir)/write - + chgrp tty $(DESTDIR)$(usrbin_execdir)/wall + chmod g+s $(DESTDIR)$(usrbin_execdir)/wall +endif +if BUILD_WRITE +install-exec-hook:: + chgrp tty $(DESTDIR)$(usrbin_execdir)/write + chmod g+s $(DESTDIR)$(usrbin_execdir)/write +endif endif endif -- 1.7.3.4 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html