]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: don't try to chgrp write or wall if they are not built
authorMarc-Antoine Perennou <Marc-Antoine@Perennou.com>
Thu, 30 Jun 2011 00:26:32 +0000 (02:26 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 11 Jul 2011 09:53:44 +0000 (11:53 +0200)
Fix regression from commit 4aa9d65bfa76afd0d886ca410ae83428a490d4ea

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
term-utils/Makefile.am

index 5e03560f1bede453ed1574366939260524705149..50138980f18e2fa5c76852599b062ca518d9cbb7 100644 (file)
@@ -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