• Leigh B. Stoller's avatar
    Makefile Whacking! Try to deal with the problem caused by the delay · 7590f9c5
    Leigh B. Stoller authored
    between when something is installed and when post-install runs. Short
    of a global lock (which we probably need anyway someday), my solution
    is this. In your makefiles, add these variables before the line that
    has the include of $(TESTBED_SRCDIR)/GNUmakerules:
    I have added three new rules to GNUmakerules that look like this:
    	$(addprefix $(SBINDIR)/, $(SETUID_SBIN_SCRIPTS)): $(SBINDIR)/%: %
    		echo "Installing (setuid) $<"
    		-mkdir -p $(INSTALL_SBINDIR)
    		$(SUDO) $(INSTALL) -o root -m 4755 $< $@
    Yep, your eyes ain't lying to you; use sudo to run the target so that
    install does the right thing (which is that the old file is not
    replaced until the new one has the proper attributes on it).
    Note that post-install is still needed for the initial install, but
    should no longer be needed for day to day installs since all that other
    stuff post-install does is mkdir/chmod on directories.
Last commit
Last update
GNUmakefile.in Loading commit data...
genlastlog.c Loading commit data...
lastlog_daemon.in Loading commit data...
paper.identity.pub Loading commit data...
suexec.c Loading commit data...
suexec.h Loading commit data...