From: Marc-Antoine Perennou Date: Thu, 30 Jun 2011 00:26:32 +0000 (+0200) Subject: build-sys: don't try to chgrp write or wall if they are not built X-Git-Tag: v2.20-rc1~112 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73ae0d5be6e070afe83d1a2324ac79941629201e;p=thirdparty%2Futil-linux.git build-sys: don't try to chgrp write or wall if they are not built Fix regression from commit 4aa9d65bfa76afd0d886ca410ae83428a490d4ea Signed-off-by: Marc-Antoine Perennou --- diff --git a/term-utils/Makefile.am b/term-utils/Makefile.am index 5e03560f1b..50138980f1 100644 --- a/term-utils/Makefile.am +++ b/term-utils/Makefile.am @@ -67,8 +67,13 @@ endif if USE_TTY_GROUP if MAKEINSTALL_DO_CHOWN install-exec-hook:: - chgrp tty $(DESTDIR)$(usrbin_execdir)/wall $(DESTDIR)$(usrbin_execdir)/write - chmod g+s $(DESTDIR)$(usrbin_execdir)/wall $(DESTDIR)$(usrbin_execdir)/write - +if BUILD_WALL + chgrp tty $(DESTDIR)$(usrbin_execdir)/wall + chmod g+s $(DESTDIR)$(usrbin_execdir)/wall +endif +if BUILD_WRITE + chgrp tty $(DESTDIR)$(usrbin_execdir)/write + chmod g+s $(DESTDIR)$(usrbin_execdir)/write +endif endif endif