diff options
-rw-r--r-- | Makefile.in | 52 | ||||
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | contrib/cygwin/Makefile | 11 |
3 files changed, 26 insertions, 38 deletions
diff --git a/Makefile.in b/Makefile.in index 2f6f9818e..6ce95c616 100644 --- a/Makefile.in +++ b/Makefile.in | |||
@@ -61,6 +61,7 @@ XAUTH_PATH=@XAUTH_PATH@ | |||
61 | LDFLAGS=-L. -Lopenbsd-compat/ @LDFLAGS@ | 61 | LDFLAGS=-L. -Lopenbsd-compat/ @LDFLAGS@ |
62 | EXEEXT=@EXEEXT@ | 62 | EXEEXT=@EXEEXT@ |
63 | MANFMT=@MANFMT@ | 63 | MANFMT=@MANFMT@ |
64 | MKDIR_P=@MKDIR_P@ | ||
64 | 65 | ||
65 | TARGETS=ssh$(EXEEXT) sshd$(EXEEXT) ssh-add$(EXEEXT) ssh-keygen$(EXEEXT) ssh-keyscan${EXEEXT} ssh-keysign${EXEEXT} ssh-pkcs11-helper$(EXEEXT) ssh-agent$(EXEEXT) scp$(EXEEXT) sftp-server$(EXEEXT) sftp$(EXEEXT) | 66 | TARGETS=ssh$(EXEEXT) sshd$(EXEEXT) ssh-add$(EXEEXT) ssh-keygen$(EXEEXT) ssh-keyscan${EXEEXT} ssh-keysign${EXEEXT} ssh-pkcs11-helper$(EXEEXT) ssh-agent$(EXEEXT) scp$(EXEEXT) sftp-server$(EXEEXT) sftp$(EXEEXT) |
66 | 67 | ||
@@ -310,14 +311,13 @@ check-config: | |||
310 | -$(DESTDIR)$(sbindir)/sshd -t -f $(DESTDIR)$(sysconfdir)/sshd_config | 311 | -$(DESTDIR)$(sbindir)/sshd -t -f $(DESTDIR)$(sysconfdir)/sshd_config |
311 | 312 | ||
312 | install-files: | 313 | install-files: |
313 | $(srcdir)/mkinstalldirs $(DESTDIR)$(bindir) | 314 | $(MKDIR_P) $(DESTDIR)$(bindir) |
314 | $(srcdir)/mkinstalldirs $(DESTDIR)$(sbindir) | 315 | $(MKDIR_P) $(DESTDIR)$(sbindir) |
315 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir) | 316 | $(MKDIR_P) $(DESTDIR)$(mandir)/$(mansubdir)1 |
316 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$(mansubdir)1 | 317 | $(MKDIR_P) $(DESTDIR)$(mandir)/$(mansubdir)5 |
317 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$(mansubdir)5 | 318 | $(MKDIR_P) $(DESTDIR)$(mandir)/$(mansubdir)8 |
318 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$(mansubdir)8 | 319 | $(MKDIR_P) $(DESTDIR)$(libexecdir) |
319 | $(srcdir)/mkinstalldirs $(DESTDIR)$(libexecdir) | 320 | $(MKDIR_P) -m 0755 $(DESTDIR)$(PRIVSEP_PATH) |
320 | (umask 022 ; $(srcdir)/mkinstalldirs $(DESTDIR)$(PRIVSEP_PATH)) | ||
321 | $(INSTALL) -m 0755 $(STRIP_OPT) ssh$(EXEEXT) $(DESTDIR)$(bindir)/ssh$(EXEEXT) | 321 | $(INSTALL) -m 0755 $(STRIP_OPT) ssh$(EXEEXT) $(DESTDIR)$(bindir)/ssh$(EXEEXT) |
322 | $(INSTALL) -m 0755 $(STRIP_OPT) scp$(EXEEXT) $(DESTDIR)$(bindir)/scp$(EXEEXT) | 322 | $(INSTALL) -m 0755 $(STRIP_OPT) scp$(EXEEXT) $(DESTDIR)$(bindir)/scp$(EXEEXT) |
323 | $(INSTALL) -m 0755 $(STRIP_OPT) ssh-add$(EXEEXT) $(DESTDIR)$(bindir)/ssh-add$(EXEEXT) | 323 | $(INSTALL) -m 0755 $(STRIP_OPT) ssh-add$(EXEEXT) $(DESTDIR)$(bindir)/ssh-add$(EXEEXT) |
@@ -345,9 +345,7 @@ install-files: | |||
345 | $(INSTALL) -m 644 ssh-pkcs11-helper.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-pkcs11-helper.8 | 345 | $(INSTALL) -m 644 ssh-pkcs11-helper.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-pkcs11-helper.8 |
346 | 346 | ||
347 | install-sysconf: | 347 | install-sysconf: |
348 | if [ ! -d $(DESTDIR)$(sysconfdir) ]; then \ | 348 | $(MKDIR_P) $(DESTDIR)$(sysconfdir) |
349 | $(srcdir)/mkinstalldirs $(DESTDIR)$(sysconfdir); \ | ||
350 | fi | ||
351 | @if [ ! -f $(DESTDIR)$(sysconfdir)/ssh_config ]; then \ | 349 | @if [ ! -f $(DESTDIR)$(sysconfdir)/ssh_config ]; then \ |
352 | $(INSTALL) -m 644 ssh_config.out $(DESTDIR)$(sysconfdir)/ssh_config; \ | 350 | $(INSTALL) -m 644 ssh_config.out $(DESTDIR)$(sysconfdir)/ssh_config; \ |
353 | else \ | 351 | else \ |
@@ -418,28 +416,16 @@ uninstall: | |||
418 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-pkcs11-helper.8 | 416 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-pkcs11-helper.8 |
419 | 417 | ||
420 | regress-prep: | 418 | regress-prep: |
421 | [ -d `pwd`/regress ] || mkdir -p `pwd`/regress | 419 | $(MKDIR_P) `pwd`/regress/unittests/test_helper |
422 | [ -d `pwd`/regress/unittests ] || mkdir -p `pwd`/regress/unittests | 420 | $(MKDIR_P) `pwd`/regress/unittests/sshbuf |
423 | [ -d `pwd`/regress/unittests/test_helper ] || \ | 421 | $(MKDIR_P) `pwd`/regress/unittests/sshkey |
424 | mkdir -p `pwd`/regress/unittests/test_helper | 422 | $(MKDIR_P) `pwd`/regress/unittests/bitmap |
425 | [ -d `pwd`/regress/unittests/sshbuf ] || \ | 423 | $(MKDIR_P) `pwd`/regress/unittests/conversion |
426 | mkdir -p `pwd`/regress/unittests/sshbuf | 424 | $(MKDIR_P) `pwd`/regress/unittests/hostkeys |
427 | [ -d `pwd`/regress/unittests/sshkey ] || \ | 425 | $(MKDIR_P) `pwd`/regress/unittests/kex |
428 | mkdir -p `pwd`/regress/unittests/sshkey | 426 | $(MKDIR_P) `pwd`/regress/unittests/match |
429 | [ -d `pwd`/regress/unittests/bitmap ] || \ | 427 | $(MKDIR_P) `pwd`/regress/unittests/utf8 |
430 | mkdir -p `pwd`/regress/unittests/bitmap | 428 | $(MKDIR_P) `pwd`/regress/misc/kexfuzz |
431 | [ -d `pwd`/regress/unittests/conversion ] || \ | ||
432 | mkdir -p `pwd`/regress/unittests/conversion | ||
433 | [ -d `pwd`/regress/unittests/hostkeys ] || \ | ||
434 | mkdir -p `pwd`/regress/unittests/hostkeys | ||
435 | [ -d `pwd`/regress/unittests/kex ] || \ | ||
436 | mkdir -p `pwd`/regress/unittests/kex | ||
437 | [ -d `pwd`/regress/unittests/match ] || \ | ||
438 | mkdir -p `pwd`/regress/unittests/match | ||
439 | [ -d `pwd`/regress/unittests/utf8 ] || \ | ||
440 | mkdir -p `pwd`/regress/unittests/utf8 | ||
441 | [ -d `pwd`/regress/misc/kexfuzz ] || \ | ||
442 | mkdir -p `pwd`/regress/misc/kexfuzz | ||
443 | [ -f `pwd`/regress/Makefile ] || \ | 429 | [ -f `pwd`/regress/Makefile ] || \ |
444 | ln -s `cd $(srcdir) && pwd`/regress/Makefile `pwd`/regress/Makefile | 430 | ln -s `cd $(srcdir) && pwd`/regress/Makefile `pwd`/regress/Makefile |
445 | 431 | ||
diff --git a/configure.ac b/configure.ac index 78ba25c96..1c7af609d 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -30,6 +30,7 @@ AC_PROG_CPP | |||
30 | AC_PROG_RANLIB | 30 | AC_PROG_RANLIB |
31 | AC_PROG_INSTALL | 31 | AC_PROG_INSTALL |
32 | AC_PROG_EGREP | 32 | AC_PROG_EGREP |
33 | AC_PROG_MKDIR_P | ||
33 | AC_CHECK_TOOLS([AR], [ar]) | 34 | AC_CHECK_TOOLS([AR], [ar]) |
34 | AC_PATH_PROG([CAT], [cat]) | 35 | AC_PATH_PROG([CAT], [cat]) |
35 | AC_PATH_PROG([KILL], [kill]) | 36 | AC_PATH_PROG([KILL], [kill]) |
diff --git a/contrib/cygwin/Makefile b/contrib/cygwin/Makefile index a0261f48d..4b78cd950 100644 --- a/contrib/cygwin/Makefile +++ b/contrib/cygwin/Makefile | |||
@@ -13,6 +13,7 @@ defaultsdir=$(sysconfdir)/defaults/etc | |||
13 | inetdefdir=$(defaultsdir)/inetd.d | 13 | inetdefdir=$(defaultsdir)/inetd.d |
14 | PRIVSEP_PATH=/var/empty | 14 | PRIVSEP_PATH=/var/empty |
15 | INSTALL=/usr/bin/install -c | 15 | INSTALL=/usr/bin/install -c |
16 | MKDIR_P=$(srcdir)/mkinstalldirs | ||
16 | 17 | ||
17 | DESTDIR= | 18 | DESTDIR= |
18 | 19 | ||
@@ -23,7 +24,7 @@ all: | |||
23 | @echo | 24 | @echo |
24 | 25 | ||
25 | move-config-files: $(DESTDIR)$(sysconfdir)/ssh_config $(DESTDIR)$(sysconfdir)/sshd_config | 26 | move-config-files: $(DESTDIR)$(sysconfdir)/ssh_config $(DESTDIR)$(sysconfdir)/sshd_config |
26 | $(srcdir)/mkinstalldirs $(DESTDIR)$(defaultsdir) | 27 | $(MKDIR_P) $(DESTDIR)$(defaultsdir) |
27 | mv $(DESTDIR)$(sysconfdir)/ssh_config $(DESTDIR)$(defaultsdir) | 28 | mv $(DESTDIR)$(sysconfdir)/ssh_config $(DESTDIR)$(defaultsdir) |
28 | mv $(DESTDIR)$(sysconfdir)/sshd_config $(DESTDIR)$(defaultsdir) | 29 | mv $(DESTDIR)$(sysconfdir)/sshd_config $(DESTDIR)$(defaultsdir) |
29 | 30 | ||
@@ -31,11 +32,11 @@ remove-empty-dir: | |||
31 | rm -rf $(DESTDIR)$(PRIVSEP_PATH) | 32 | rm -rf $(DESTDIR)$(PRIVSEP_PATH) |
32 | 33 | ||
33 | install-inetd-config: | 34 | install-inetd-config: |
34 | $(srcdir)/mkinstalldirs $(DESTDIR)$(inetdefdir) | 35 | $(MKDIR_P) $(DESTDIR)$(inetdefdir) |
35 | $(INSTALL) -m 644 sshd-inetd $(DESTDIR)$(inetdefdir)/sshd-inetd | 36 | $(INSTALL) -m 644 sshd-inetd $(DESTDIR)$(inetdefdir)/sshd-inetd |
36 | 37 | ||
37 | install-sshdoc: | 38 | install-sshdoc: |
38 | $(srcdir)/mkinstalldirs $(DESTDIR)$(sshdocdir) | 39 | $(MKDIR_P) $(DESTDIR)$(sshdocdir) |
39 | -$(INSTALL) -m 644 $(srcdir)/CREDITS $(DESTDIR)$(sshdocdir)/CREDITS | 40 | -$(INSTALL) -m 644 $(srcdir)/CREDITS $(DESTDIR)$(sshdocdir)/CREDITS |
40 | -$(INSTALL) -m 644 $(srcdir)/ChangeLog $(DESTDIR)$(sshdocdir)/ChangeLog | 41 | -$(INSTALL) -m 644 $(srcdir)/ChangeLog $(DESTDIR)$(sshdocdir)/ChangeLog |
41 | -$(INSTALL) -m 644 $(srcdir)/LICENCE $(DESTDIR)$(sshdocdir)/LICENCE | 42 | -$(INSTALL) -m 644 $(srcdir)/LICENCE $(DESTDIR)$(sshdocdir)/LICENCE |
@@ -52,13 +53,13 @@ install-sshdoc: | |||
52 | -$(INSTALL) -m 644 $(srcdir)/TODO $(DESTDIR)$(sshdocdir)/TODO | 53 | -$(INSTALL) -m 644 $(srcdir)/TODO $(DESTDIR)$(sshdocdir)/TODO |
53 | 54 | ||
54 | install-cygwindoc: README | 55 | install-cygwindoc: README |
55 | $(srcdir)/mkinstalldirs $(DESTDIR)$(cygdocdir) | 56 | $(MKDIR_P) $(DESTDIR)$(cygdocdir) |
56 | $(INSTALL) -m 644 README $(DESTDIR)$(cygdocdir)/openssh.README | 57 | $(INSTALL) -m 644 README $(DESTDIR)$(cygdocdir)/openssh.README |
57 | 58 | ||
58 | install-doc: install-sshdoc install-cygwindoc | 59 | install-doc: install-sshdoc install-cygwindoc |
59 | 60 | ||
60 | install-scripts: ssh-host-config ssh-user-config | 61 | install-scripts: ssh-host-config ssh-user-config |
61 | $(srcdir)/mkinstalldirs $(DESTDIR)$(bindir) | 62 | $(MKDIR_P) $(DESTDIR)$(bindir) |
62 | $(INSTALL) -m 755 ssh-host-config $(DESTDIR)$(bindir)/ssh-host-config | 63 | $(INSTALL) -m 755 ssh-host-config $(DESTDIR)$(bindir)/ssh-host-config |
63 | $(INSTALL) -m 755 ssh-user-config $(DESTDIR)$(bindir)/ssh-user-config | 64 | $(INSTALL) -m 755 ssh-user-config $(DESTDIR)$(bindir)/ssh-user-config |
64 | 65 | ||