Don't install config files if they already exist
This commit is contained in:
parent
06e42932b2
commit
296a546476
|
@ -4,12 +4,13 @@ bindir=@bindir@
|
||||||
sbindir=@sbindir@
|
sbindir=@sbindir@
|
||||||
libdir=@libdir@
|
libdir=@libdir@
|
||||||
mandir=@mandir@
|
mandir=@mandir@
|
||||||
|
sysconfdir=@sysconfdir@
|
||||||
|
|
||||||
SSH_PROGRAM=@bindir@/ssh
|
SSH_PROGRAM=@bindir@/ssh
|
||||||
ASKPASS_PROGRAM=@libdir@/ssh/ssh-askpass
|
ASKPASS_PROGRAM=@libdir@/ssh/ssh-askpass
|
||||||
|
|
||||||
CC=@CC@
|
CC=@CC@
|
||||||
PATHS=-DETCDIR=\"@sysconfdir@\" -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" -DASKPASS_PROGRAM=\"$(ASKPASS_PROGRAM)\"
|
PATHS=-DETCDIR=\"$(sysconfdir)\" -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" -DASKPASS_PROGRAM=\"$(ASKPASS_PROGRAM)\"
|
||||||
CFLAGS=@CFLAGS@ $(PATHS) @DEFS@
|
CFLAGS=@CFLAGS@ $(PATHS) @DEFS@
|
||||||
EXTRA_TARGETS=@GNOME_ASKPASS@
|
EXTRA_TARGETS=@GNOME_ASKPASS@
|
||||||
TARGETS=libssh.a ssh sshd ssh-add ssh-keygen ssh-agent scp $(EXTRA_TARGETS)
|
TARGETS=libssh.a ssh sshd ssh-add ssh-keygen ssh-agent scp $(EXTRA_TARGETS)
|
||||||
|
@ -89,6 +90,12 @@ install: all
|
||||||
fi ; \
|
fi ; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! -f $(sysconfdir)/ssh_config -a ! -f $(sysconfdir)/sshd_config ]; then \
|
||||||
|
install -d $(sysconfdir); \
|
||||||
|
install -m644 ssh_config $(sysconfdir)/ssh_config; \
|
||||||
|
install -m644 sshd_config $(sysconfdir)/sshd_config; \
|
||||||
|
fi
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
rm -f Makefile config.h core *~
|
rm -f Makefile config.h core *~
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue