Small Makefile.in Patch
Phil Dibowitz
phil at ipom.com
Sat May 10 17:30:35 EST 2003
This is a fairly inconsequential patch, but it comes in handy in a few
instances. The patch simply splits install-files into "install-files"
and "install-sysconf" - taking all of the sysconfdir stuff and putting
in its own target which I then added to 'install' and 'install-nokeys'.
I then added an install-nosysconf to NOT do that stuff.
This helped us because we install in a directory that gets rdist'd out
to other hosts, but on the rdist host we didn't want to put the config
files in /etc/ssh... we have a script to do that on each host and rdist
time.
Its small and inconsequential... but if it could be applied, I think the
occasional group might find it useful, and it would be one less patch we
need to apply each time. Thanks!
------------------------------------------------------------
--- Makefile.in 2003/05/03 02:14:32 1.1
+++ Makefile.in 2003/05/09 23:41:54
@@ -1,4 +1,4 @@
-# $Id: Makefile.in,v 1.1 2003/05/03 02:14:32 phil Exp $
+# $Id: Makefile.in,v 1.3 2003/05/09 23:41:38 phil Exp $
@@ -215,8 +215,9 @@
$(AUTORECONF)
(cd scard && $(MAKE) -f Makefile.in distprep)
-install: $(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files host-key
check-config
-install-nokeys: $(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files
+install: $(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files
install-sysconf host-key check-config
+install-nokeys: $(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files
install-sysconf
+install-nosysconf: $(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files
check-config:
-$(DESTDIR)$(sbindir)/sshd -t -f
$(DESTDIR)$(sysconfdir)/sshd_config
@@ -266,6 +267,9 @@
ln -s ./ssh$(EXEEXT) $(DESTDIR)$(bindir)/slogin
-rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1
ln -s ./ssh.1 $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1
+
+
+install-sysconf:
if [ ! -d $(DESTDIR)$(sysconfdir) ]; then \
$(srcdir)/mkinstalldirs $(DESTDIR)$(sysconfdir); \
fi
------------------------------------------------------------
--
Phil Dibowitz phil at ipom.com
Freeware and Technical Pages Insanity Palace of Metallica
http://www.phildev.net/ http://www.ipom.com/
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
- Benjamin Franklin, 1759
More information about the openssh-unix-dev
mailing list