6 datadir=$(prefix)/share
9 sshdocdir
=$(docdir
)/openssh
10 cygdocdir
=$(docdir
)/Cygwin
12 defaultsdir
=$(sysconfdir
)/defaults
/etc
13 inetdefdir
=$(defaultsdir
)/inetd.d
14 PRIVSEP_PATH
=/var
/empty
15 INSTALL
=/usr
/bin
/install -c
21 @echo
"Use \`make cygwin-postinstall DESTDIR=[package directory]'"
22 @echo
"Be sure having DESTDIR set correctly!"
25 move-config-files
: $(DESTDIR
)$(sysconfdir
)/ssh_config
$(DESTDIR
)$(sysconfdir
)/sshd_config
26 $(srcdir)/mkinstalldirs
$(DESTDIR
)$(defaultsdir
)
27 mv
$(DESTDIR
)$(sysconfdir
)/ssh_config
$(DESTDIR
)$(defaultsdir
)
28 mv
$(DESTDIR
)$(sysconfdir
)/sshd_config
$(DESTDIR
)$(defaultsdir
)
31 rm -rf
$(DESTDIR
)$(PRIVSEP_PATH
)
34 $(srcdir)/mkinstalldirs
$(DESTDIR
)$(inetdefdir
)
35 $(INSTALL
) -m
644 sshd-inetd
$(DESTDIR
)$(inetdefdir
)/sshd-inetd
38 $(srcdir)/mkinstalldirs
$(DESTDIR
)$(sshdocdir
)
39 $(INSTALL
) -m
644 $(srcdir)/CREDITS
$(DESTDIR
)$(sshdocdir
)/CREDITS
40 $(INSTALL
) -m
644 $(srcdir)/ChangeLog
$(DESTDIR
)$(sshdocdir
)/ChangeLog
41 $(INSTALL
) -m
644 $(srcdir)/LICENCE
$(DESTDIR
)$(sshdocdir
)/LICENCE
42 $(INSTALL
) -m
644 $(srcdir)/OVERVIEW
$(DESTDIR
)$(sshdocdir
)/OVERVIEW
43 $(INSTALL
) -m
644 $(srcdir)/PROTOCOL
$(DESTDIR
)$(sshdocdir
)/PROTOCOL
44 $(INSTALL
) -m
644 $(srcdir)/PROTOCOL.agent
$(DESTDIR
)$(sshdocdir
)/PROTOCOL.agent
45 $(INSTALL
) -m
644 $(srcdir)/PROTOCOL.certkeys
$(DESTDIR
)$(sshdocdir
)/PROTOCOL.certkeys
46 $(INSTALL
) -m
644 $(srcdir)/PROTOCOL.mux
$(DESTDIR
)$(sshdocdir
)/PROTOCOL.mux
47 $(INSTALL
) -m
644 $(srcdir)/README
$(DESTDIR
)$(sshdocdir
)/README
48 $(INSTALL
) -m
644 $(srcdir)/README.dns
$(DESTDIR
)$(sshdocdir
)/README.dns
49 $(INSTALL
) -m
644 $(srcdir)/README.platform
$(DESTDIR
)$(sshdocdir
)/README.platform
50 $(INSTALL
) -m
644 $(srcdir)/README.privsep
$(DESTDIR
)$(sshdocdir
)/README.privsep
51 $(INSTALL
) -m
644 $(srcdir)/README.tun
$(DESTDIR
)$(sshdocdir
)/README.tun
52 $(INSTALL
) -m
644 $(srcdir)/TODO
$(DESTDIR
)$(sshdocdir
)/TODO
53 $(INSTALL
) -m
644 $(srcdir)/WARNING.RNG
$(DESTDIR
)$(sshdocdir
)/WARNING.RNG
55 install-cygwindoc
: README
56 $(srcdir)/mkinstalldirs
$(DESTDIR
)$(cygdocdir
)
57 $(INSTALL
) -m
644 README
$(DESTDIR
)$(cygdocdir
)/openssh.README
59 install-doc
: install-sshdoc install-cygwindoc
61 install-scripts
: ssh-host-config ssh-user-config
62 $(srcdir)/mkinstalldirs
$(DESTDIR
)$(bindir)
63 $(INSTALL
) -m
755 ssh-host-config
$(DESTDIR
)$(bindir)/ssh-host-config
64 $(INSTALL
) -m
755 ssh-user-config
$(DESTDIR
)$(bindir)/ssh-user-config
66 install-copy-id
: $(copyidsrcdir
)/ssh-copy-id
$(copyidsrcdir
)/ssh-copy-id
.1
67 $(INSTALL
) -m
755 $(copyidsrcdir
)/ssh-copy-id
$(DESTDIR
)$(bindir)/ssh-copy-id
68 $(INSTALL
) -m
644 $(copyidsrcdir
)/ssh-copy-id
.1 $(DESTDIR
)$(mandir)/man1
/ssh-copy-id
.1
71 rm $(DESTDIR
)$(mandir)/man1
/slogin
.1
72 gzip
$(DESTDIR
)$(mandir)/man1
/*.1
73 gzip
$(DESTDIR
)$(mandir)/man5
/*.5
74 gzip
$(DESTDIR
)$(mandir)/man8
/*.8
75 cd
$(DESTDIR
)$(mandir)/man1
&& ln
-s ssh
.1.gz slogin
.1.gz
77 cygwin-postinstall
: move-config-files remove-empty-dir install-inetd-config install-doc install-scripts install-copy-id gzip-man-pages
78 @echo
"Cygwin specific configuration finished."