mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-12-24 10:52:05 +00:00
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@
|
||||
libdir=@libdir@
|
||||
mandir=@mandir@
|
||||
sysconfdir=@sysconfdir@
|
||||
|
||||
SSH_PROGRAM=@bindir@/ssh
|
||||
ASKPASS_PROGRAM=@libdir@/ssh/ssh-askpass
|
||||
|
||||
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@
|
||||
EXTRA_TARGETS=@GNOME_ASKPASS@
|
||||
TARGETS=libssh.a ssh sshd ssh-add ssh-keygen ssh-agent scp $(EXTRA_TARGETS)
|
||||
@ -89,6 +90,12 @@ install: all
|
||||
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
|
||||
rm -f Makefile config.h core *~
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user