The init.d files are generated from a .in file so we need to install
from top_builddir not top_srcdir. From Ross Burton. Bug #708
This commit is contained in:
@@ -25,6 +25,7 @@ you believe you should be listed, please send a note to sudo@sudo.ws.
|
||||
Brooks, Piete
|
||||
Brown, Jerry
|
||||
Burr, Michael E
|
||||
Burton, Ross
|
||||
Bussjaeger, Andreas
|
||||
Calvin, Gary
|
||||
Campbell, Aaron
|
||||
|
@@ -165,11 +165,11 @@ install-dirs:
|
||||
|
||||
install-rc: install-dirs
|
||||
if [ -n "$(INIT_SCRIPT)" ]; then \
|
||||
$(INSTALL) $(INSTALL_OWNER) -m 0755 $(top_srcdir)/init.d/$(INIT_SCRIPT) $(DESTDIR)$(INIT_DIR)/sudo; \
|
||||
$(INSTALL) $(INSTALL_OWNER) -m 0755 $(top_builddir)/init.d/$(INIT_SCRIPT) $(DESTDIR)$(INIT_DIR)/sudo; \
|
||||
rm -f $(DESTDIR)$(RC_LINK); \
|
||||
ln -s $(INIT_DIR)/sudo $(DESTDIR)$(RC_LINK); \
|
||||
elif test -n "$(tmpfiles_d)"; then \
|
||||
$(INSTALL) $(INSTALL_OWNER) -m 0644 $(top_srcdir)/init.d/sudo.conf $(DESTDIR)$(tmpfiles_d)/sudo.conf; \
|
||||
$(INSTALL) $(INSTALL_OWNER) -m 0644 $(top_builddir)/init.d/sudo.conf $(DESTDIR)$(tmpfiles_d)/sudo.conf; \
|
||||
fi
|
||||
|
||||
install-binaries: install-dirs $(PROGS)
|
||||
|
Reference in New Issue
Block a user