]>
Commit | Line | Data |
---|---|---|
3c0ef626 | 1 | # $Id$ |
2 | ||
2980ea68 | 3 | # uncomment if you run a non bourne compatable shell. Ie. csh |
4 | #SHELL = @SH@ | |
5 | ||
f5587594 | 6 | DISTPERL=perl |
087f6b9d | 7 | DISTSED=sed |
d5a1ff3f | 8 | DISTAWK=awk |
2980ea68 | 9 | AUTORECONF=autoreconf |
10 | ||
3c0ef626 | 11 | prefix=@prefix@ |
12 | exec_prefix=@exec_prefix@ | |
8f01de73 | 13 | bindir=@bindir@/ssh.d |
3c0ef626 | 14 | sbindir=@sbindir@ |
15 | libexecdir=@libexecdir@ | |
16 | datadir=@datadir@ | |
2e437378 | 17 | datarootdir=@datarootdir@ |
64d285c8 | 18 | mandir=@mandir@ |
3c0ef626 | 19 | mansubdir=@mansubdir@ |
ae43c103 | 20 | sysconfdir=$$GLOBUS_LOCATION/etc/ssh |
a624eecb | 21 | docdir=$$GLOBUS_LOCATION/doc/gsi_openssh |
1c14df9e | 22 | piddir=$$GLOBUS_LOCATION/var |
3c0ef626 | 23 | srcdir=@srcdir@ |
24 | top_srcdir=@top_srcdir@ | |
25 | ||
07e2eb8f | 26 | globusbindir=@bindir@ |
07e2eb8f | 27 | |
3c0ef626 | 28 | DESTDIR= |
29 | VPATH=@srcdir@ | |
8f01de73 | 30 | SSH_PROGRAM=$(bindir)/ssh |
3c0ef626 | 31 | ASKPASS_PROGRAM=$(libexecdir)/ssh-askpass |
32 | SFTP_SERVER=$(libexecdir)/sftp-server | |
ff2d7a98 | 33 | SSH_KEYSIGN=$(libexecdir)/ssh-keysign |
34 | RAND_HELPER=$(libexecdir)/ssh-rand-helper | |
766fdec6 | 35 | PRIVSEP_PATH=/var/empty |
ff2d7a98 | 36 | SSH_PRIVSEP_USER=@SSH_PRIVSEP_USER@ |
1c14df9e | 37 | STRIP_OPT=@STRIP_OPT@ |
2980ea68 | 38 | |
d7766c89 | 39 | PATHS= -D_PATH_PRIVSEP_CHROOT_DIR=\"$(PRIVSEP_PATH)\" |
3c0ef626 | 40 | |
3c0ef626 | 41 | CC=@CC@ |
42 | LD=@LD@ | |
43 | CFLAGS=@CFLAGS@ | |
44 | CPPFLAGS=-I. -I$(srcdir) @CPPFLAGS@ $(PATHS) @DEFS@ | |
46201ce0 | 45 | LIBS=@LIBS@ |
2e437378 | 46 | SSHDLIBS=@SSHDLIBS@ |
34fee935 | 47 | LIBEDIT=@LIBEDIT@ |
3c0ef626 | 48 | AR=@AR@ |
70791e56 | 49 | AWK=@AWK@ |
3c0ef626 | 50 | RANLIB=@RANLIB@ |
51 | INSTALL=@INSTALL@ | |
52 | PERL=@PERL@ | |
1c14df9e | 53 | SED=@SED@ |
3c0ef626 | 54 | ENT=@ENT@ |
55 | XAUTH_PATH=@XAUTH_PATH@ | |
56 | LDFLAGS=-L. -Lopenbsd-compat/ @LDFLAGS@ | |
57 | EXEEXT=@EXEEXT@ | |
3c0ef626 | 58 | |
59 | INSTALL_SSH_PRNG_CMDS=@INSTALL_SSH_PRNG_CMDS@ | |
e9a17296 | 60 | INSTALL_SSH_RAND_HELPER=@INSTALL_SSH_RAND_HELPER@ |
3c0ef626 | 61 | |
1c14df9e | 62 | TARGETS=ssh$(EXEEXT) sshd$(EXEEXT) ssh-add$(EXEEXT) ssh-keygen$(EXEEXT) ssh-keyscan${EXEEXT} ssh-keysign${EXEEXT} ssh-agent$(EXEEXT) scp$(EXEEXT) ssh-rand-helper${EXEEXT} sftp-server$(EXEEXT) sftp$(EXEEXT) |
63 | ||
1d3ebb02 | 64 | # |
65 | # objects to add to LIBSSH_OBJS | |
66 | # pathnames.o | |
67 | # | |
68 | ||
2e437378 | 69 | LIBSSH_OBJS=acss.o authfd.o authfile.o bufaux.o bufbn.o buffer.o \ |
416fd2a8 | 70 | canohost.o channels.o cipher.o cipher-acss.o cipher-aes.o \ |
46201ce0 | 71 | cipher-bf1.o cipher-ctr.o cipher-3des1.o cleanup.o \ |
416fd2a8 | 72 | compat.o compress.o crc32.o deattack.o fatal.o hostfile.o \ |
2e437378 | 73 | log.o match.o md-sha256.o moduli.o nchan.o packet.o \ |
6f25cbdd | 74 | readpass.o rsa.o ttymodes.o xmalloc.o addrmatch.o \ |
1b56ff3d | 75 | atomicio.o key.o dispatch.o kex.o mac.o uidswap.o uuencode.o misc.o \ |
76 | monitor_fdpass.o rijndael.o ssh-dss.o ssh-rsa.o dh.o kexdh.o \ | |
77 | kexgex.o kexdhc.o kexgexc.o scard.o msg.o progressmeter.o dns.o \ | |
70791e56 | 78 | pathnames.o \ |
46201ce0 | 79 | entropy.o scard-opensc.o gss-genr.o umac.o jpake.o schnorr.o \ |
80 | kexgssc.o | |
1c14df9e | 81 | |
82 | SSHOBJS= ssh.o readconf.o clientloop.o sshtty.o \ | |
6f25cbdd | 83 | sshconnect.o sshconnect1.o sshconnect2.o mux.o |
1c14df9e | 84 | |
85 | SSHDOBJS=sshd.o auth-rhosts.o auth-passwd.o auth-rsa.o auth-rh-rsa.o \ | |
1b56ff3d | 86 | sshpty.o sshlogin.o servconf.o serverloop.o \ |
1c14df9e | 87 | auth.o auth1.o auth2.o auth-options.o session.o \ |
88 | auth-chall.o auth2-chall.o groupaccess.o \ | |
89 | auth-skey.o auth-bsdauth.o auth2-hostbased.o auth2-kbdint.o \ | |
16eb0a3b | 90 | auth2-none.o auth2-passwd.o auth2-pubkey.o auth2-jpake.o \ |
1b56ff3d | 91 | monitor_mm.o monitor.o monitor_wrap.o kexdhs.o kexgexs.o \ |
70791e56 | 92 | auth-krb5.o \ |
46201ce0 | 93 | auth2-gss.o gss-serv.o gss-serv-krb5.o kexgsss.o\ |
e00da40d | 94 | gss-serv-gsi.o \ |
34fee935 | 95 | loginrec.o auth-pam.o auth-shadow.o auth-sia.o md5crypt.o \ |
bd5d5d2a | 96 | audit.o audit-bsm.o platform.o sftp-server.o sftp-common.o |
3c0ef626 | 97 | |
6f25cbdd | 98 | MANPAGES = moduli.5.out scp.1.out ssh-add.1.out ssh-agent.1.out ssh-keygen.1.out ssh-keyscan.1.out ssh.1.out sshd.8.out sftp-server.8.out sftp.1.out ssh-rand-helper.8.out ssh-keysign.8.out sshd_config.5.out ssh_config.5.out |
99 | MANPAGES_IN = moduli.5 scp.1 ssh-add.1 ssh-agent.1 ssh-keygen.1 ssh-keyscan.1 ssh.1 sshd.8 sftp-server.8 sftp.1 ssh-rand-helper.8 ssh-keysign.8 sshd_config.5 ssh_config.5 | |
3c0ef626 | 100 | MANTYPE = @MANTYPE@ |
101 | ||
102 | CONFIGFILES=sshd_config.out ssh_config.out moduli.out | |
103 | CONFIGFILES_IN=sshd_config ssh_config moduli | |
104 | ||
105 | PATHSUBS = \ | |
1c14df9e | 106 | -e 's|/etc/ssh/ssh_prng_cmds|$(sysconfdir)/ssh_prng_cmds|g' \ |
107 | -e 's|/etc/ssh/ssh_config|$(sysconfdir)/ssh_config|g' \ | |
108 | -e 's|/etc/ssh/ssh_known_hosts|$(sysconfdir)/ssh_known_hosts|g' \ | |
109 | -e 's|/etc/ssh/sshd_config|$(sysconfdir)/sshd_config|g' \ | |
110 | -e 's|/usr/libexec|$(libexecdir)|g' \ | |
111 | -e 's|/etc/shosts.equiv|$(sysconfdir)/shosts.equiv|g' \ | |
112 | -e 's|/etc/ssh/ssh_host_key|$(sysconfdir)/ssh_host_key|g' \ | |
113 | -e 's|/etc/ssh/ssh_host_dsa_key|$(sysconfdir)/ssh_host_dsa_key|g' \ | |
114 | -e 's|/etc/ssh/ssh_host_rsa_key|$(sysconfdir)/ssh_host_rsa_key|g' \ | |
115 | -e 's|/var/run/sshd.pid|$(piddir)/sshd.pid|g' \ | |
6f25cbdd | 116 | -e 's|/etc/moduli|$(sysconfdir)/moduli|g' \ |
1c14df9e | 117 | -e 's|/etc/ssh/moduli|$(sysconfdir)/moduli|g' \ |
2e437378 | 118 | -e 's|/etc/ssh/sshrc|$(sysconfdir)/sshrc|g' \ |
1c14df9e | 119 | -e 's|/usr/X11R6/bin/xauth|$(XAUTH_PATH)|g' \ |
120 | -e 's|/var/empty|$(PRIVSEP_PATH)|g' \ | |
121 | -e 's|/usr/bin:/bin:/usr/sbin:/sbin|@user_path@|g' | |
122 | ||
123 | FIXPATHSCMD = $(SED) $(PATHSUBS) | |
087f6b9d | 124 | DISTFIXPATHSCMD = $(DISTSED) $(PATHSUBS) |
3c0ef626 | 125 | |
70791e56 | 126 | all: $(CONFIGFILES) ssh_prng_cmds.out $(MANPAGES) $(TARGETS) |
3c0ef626 | 127 | |
f5587594 | 128 | gpt-all: $(TARGETS) |
f406a57e | 129 | |
70791e56 | 130 | $(LIBSSH_OBJS): Makefile.in config.h |
131 | $(SSHOBJS): Makefile.in config.h | |
132 | $(SSHDOBJS): Makefile.in config.h | |
3c0ef626 | 133 | |
134 | .c.o: | |
135 | $(CC) $(CFLAGS) $(CPPFLAGS) -c $< | |
136 | ||
137 | LIBCOMPAT=openbsd-compat/libopenbsd-compat.a | |
138 | $(LIBCOMPAT): always | |
139 | (cd openbsd-compat && $(MAKE)) | |
140 | always: | |
141 | ||
142 | libssh.a: $(LIBSSH_OBJS) | |
143 | $(AR) rv $@ $(LIBSSH_OBJS) | |
144 | $(RANLIB) $@ | |
145 | ||
146 | ssh$(EXEEXT): $(LIBCOMPAT) libssh.a $(SSHOBJS) | |
147 | $(LD) -o $@ $(SSHOBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) | |
148 | ||
149 | sshd$(EXEEXT): libssh.a $(LIBCOMPAT) $(SSHDOBJS) | |
25d429a2 | 150 | $(LD) -o $@ $(SSHDOBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(SSHDLIBS) $(LIBS) |
3c0ef626 | 151 | |
1c14df9e | 152 | scp$(EXEEXT): $(LIBCOMPAT) libssh.a scp.o progressmeter.o |
e00da40d | 153 | $(LD) -o $@ scp.o progressmeter.o bufaux.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) |
3c0ef626 | 154 | |
155 | ssh-add$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-add.o | |
416fd2a8 | 156 | $(LD) -o $@ ssh-add.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) |
3c0ef626 | 157 | |
158 | ssh-agent$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-agent.o | |
416fd2a8 | 159 | $(LD) -o $@ ssh-agent.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) |
3c0ef626 | 160 | |
161 | ssh-keygen$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-keygen.o | |
416fd2a8 | 162 | $(LD) -o $@ ssh-keygen.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) |
3c0ef626 | 163 | |
ff2d7a98 | 164 | ssh-keysign$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-keysign.o |
416fd2a8 | 165 | $(LD) -o $@ ssh-keysign.o readconf.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) |
ff2d7a98 | 166 | |
3c0ef626 | 167 | ssh-keyscan$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-keyscan.o |
416fd2a8 | 168 | $(LD) -o $@ ssh-keyscan.o $(LDFLAGS) -lssh -lopenbsd-compat -lssh $(LIBS) |
3c0ef626 | 169 | |
bd5d5d2a | 170 | sftp-server$(EXEEXT): $(LIBCOMPAT) libssh.a sftp.o sftp-common.o sftp-server.o sftp-server-main.o |
171 | $(LD) -o $@ sftp-server.o sftp-common.o sftp-server-main.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) | |
3c0ef626 | 172 | |
416fd2a8 | 173 | sftp$(EXEEXT): $(LIBCOMPAT) libssh.a sftp.o sftp-client.o sftp-common.o sftp-glob.o progressmeter.o |
34fee935 | 174 | $(LD) -o $@ progressmeter.o sftp.o sftp-client.o sftp-common.o sftp-glob.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) $(LIBEDIT) |
3c0ef626 | 175 | |
e9a17296 | 176 | ssh-rand-helper${EXEEXT}: $(LIBCOMPAT) libssh.a ssh-rand-helper.o |
177 | $(LD) -o $@ ssh-rand-helper.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) | |
178 | ||
3c0ef626 | 179 | # test driver for the loginrec code - not built by default |
180 | logintest: logintest.o $(LIBCOMPAT) libssh.a loginrec.o | |
181 | $(LD) -o $@ logintest.o $(LDFLAGS) loginrec.o -lopenbsd-compat -lssh $(LIBS) | |
182 | ||
183 | $(MANPAGES): $(MANPAGES_IN) | |
184 | if test "$(MANTYPE)" = "cat"; then \ | |
185 | manpage=$(srcdir)/`echo $@ | sed 's/\.[1-9]\.out$$/\.0/'`; \ | |
186 | else \ | |
187 | manpage=$(srcdir)/`echo $@ | sed 's/\.out$$//'`; \ | |
188 | fi; \ | |
189 | if test "$(MANTYPE)" = "man"; then \ | |
70791e56 | 190 | $(FIXPATHSCMD) $${manpage} | $(AWK) -f $(srcdir)/mdoc2man.awk > $@; \ |
3c0ef626 | 191 | else \ |
192 | $(FIXPATHSCMD) $${manpage} > $@; \ | |
193 | fi | |
194 | ||
195 | $(CONFIGFILES): $(CONFIGFILES_IN) | |
196 | conffile=`echo $@ | sed 's/.out$$//'`; \ | |
197 | $(FIXPATHSCMD) $(srcdir)/$${conffile} > $@ | |
198 | ||
70791e56 | 199 | ssh_prng_cmds.out: ssh_prng_cmds |
200 | if test ! -z "$(INSTALL_SSH_PRNG_CMDS)"; then \ | |
201 | $(PERL) $(srcdir)/fixprogs ssh_prng_cmds $(ENT); \ | |
202 | fi | |
203 | ||
34fee935 | 204 | # fake rule to stop make trying to compile moduli.o into a binary "moduli.o" |
70791e56 | 205 | moduli: |
206 | echo | |
207 | ||
208 | clean: regressclean | |
416fd2a8 | 209 | rm -f *.o *.a $(TARGETS) logintest config.cache config.log |
34fee935 | 210 | rm -f *.out core survey |
3c0ef626 | 211 | (cd openbsd-compat && $(MAKE) clean) |
212 | ||
70791e56 | 213 | distclean: regressclean |
416fd2a8 | 214 | rm -f *.o *.a $(TARGETS) logintest config.cache config.log |
2e437378 | 215 | rm -f *.out core opensshd.init openssh.xml |
216 | rm -f Makefile buildpkg.sh config.h config.status ssh_prng_cmds | |
217 | rm -f survey.sh openbsd-compat/regress/Makefile *~ | |
3c0ef626 | 218 | rm -rf autom4te.cache |
219 | (cd openbsd-compat && $(MAKE) distclean) | |
220 | (cd scard && $(MAKE) distclean) | |
1b56ff3d | 221 | if test -d pkg ; then \ |
222 | rm -fr pkg ; \ | |
223 | fi | |
3c0ef626 | 224 | |
70791e56 | 225 | veryclean: distclean |
3c0ef626 | 226 | rm -f configure config.h.in *.0 |
3c0ef626 | 227 | |
70791e56 | 228 | mrproper: veryclean |
229 | ||
230 | realclean: veryclean | |
3c0ef626 | 231 | |
232 | catman-do: | |
f5587594 | 233 | mkdir -p ./cat/ |
234 | mkdir -p ./man/ | |
83e0a891 | 235 | mkdir -p ./mdoc/ |
3c0ef626 | 236 | @for f in $(MANPAGES_IN) ; do \ |
83e0a891 | 237 | echo -n "$$f -> mdoc.." ; \ |
238 | $(DISTFIXPATHSCMD) $$f > ./mdoc/$$f ; \ | |
239 | echo -n "cat.." ; \ | |
240 | nroff -mandoc ./mdoc/$$f | cat -v | sed -e 's/.\^H//g' > ./cat/$$f ; \ | |
f5587594 | 241 | echo -n "man.." ; \ |
d5a1ff3f | 242 | cat ./mdoc/$$f | $(DISTAWK) -f ./mdoc2man.awk > ./man/$$f ; \ |
f5587594 | 243 | echo "done." ; \ |
3c0ef626 | 244 | done |
245 | ||
246 | distprep: catman-do | |
2980ea68 | 247 | $(AUTORECONF) |
416fd2a8 | 248 | -rm -rf autom4te.cache |
679b56fe | 249 | # (cd scard && $(MAKE) -f Makefile.in distprep) |
3c0ef626 | 250 | |
34fee935 | 251 | install: $(CONFIGFILES) ssh_prng_cmds.out $(MANPAGES) $(TARGETS) install-files install-sysconf host-key check-config |
252 | install-nokeys: $(CONFIGFILES) ssh_prng_cmds.out $(MANPAGES) $(TARGETS) install-files install-sysconf | |
253 | install-nosysconf: $(CONFIGFILES) ssh_prng_cmds.out $(MANPAGES) $(TARGETS) install-files | |
3c0ef626 | 254 | |
258769aa | 255 | gpt-install: gpt-all gpt-install-files |
256 | gpt-install-nokeys: gpt-all gpt-install-files | |
f406a57e | 257 | |
e54b3d7c | 258 | check-config: |
259 | -$(DESTDIR)$(sbindir)/sshd -t -f $(DESTDIR)$(sysconfdir)/sshd_config | |
ff2d7a98 | 260 | |
3c0ef626 | 261 | scard-install: |
262 | (cd scard && $(MAKE) DESTDIR=$(DESTDIR) install) | |
263 | ||
264 | install-files: scard-install | |
265 | $(srcdir)/mkinstalldirs $(DESTDIR)$(bindir) | |
266 | $(srcdir)/mkinstalldirs $(DESTDIR)$(sbindir) | |
267 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir) | |
268 | $(srcdir)/mkinstalldirs $(DESTDIR)$(datadir) | |
269 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$(mansubdir)1 | |
ff2d7a98 | 270 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$(mansubdir)5 |
3c0ef626 | 271 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$(mansubdir)8 |
272 | $(srcdir)/mkinstalldirs $(DESTDIR)$(libexecdir) | |
e54b3d7c | 273 | (umask 022 ; $(srcdir)/mkinstalldirs $(DESTDIR)$(PRIVSEP_PATH)) |
1c14df9e | 274 | $(INSTALL) -m 0755 $(STRIP_OPT) ssh $(DESTDIR)$(bindir)/ssh |
275 | $(INSTALL) -m 0755 $(STRIP_OPT) scp $(DESTDIR)$(bindir)/scp | |
276 | $(INSTALL) -m 0755 $(STRIP_OPT) ssh-add $(DESTDIR)$(bindir)/ssh-add | |
277 | $(INSTALL) -m 0755 $(STRIP_OPT) ssh-agent $(DESTDIR)$(bindir)/ssh-agent | |
278 | $(INSTALL) -m 0755 $(STRIP_OPT) ssh-keygen $(DESTDIR)$(bindir)/ssh-keygen | |
279 | $(INSTALL) -m 0755 $(STRIP_OPT) ssh-keyscan $(DESTDIR)$(bindir)/ssh-keyscan | |
280 | $(INSTALL) -m 0755 $(STRIP_OPT) sshd $(DESTDIR)$(sbindir)/sshd | |
e9a17296 | 281 | if test ! -z "$(INSTALL_SSH_RAND_HELPER)" ; then \ |
1c14df9e | 282 | $(INSTALL) -m 0755 $(STRIP_OPT) ssh-rand-helper $(DESTDIR)$(libexecdir)/ssh-rand-helper ; \ |
e9a17296 | 283 | fi |
1c14df9e | 284 | $(INSTALL) -m 4711 $(STRIP_OPT) ssh-keysign $(DESTDIR)$(SSH_KEYSIGN) |
285 | $(INSTALL) -m 0755 $(STRIP_OPT) sftp $(DESTDIR)$(bindir)/sftp | |
286 | $(INSTALL) -m 0755 $(STRIP_OPT) sftp-server $(DESTDIR)$(SFTP_SERVER) | |
3c0ef626 | 287 | $(INSTALL) -m 644 ssh.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh.1 |
288 | $(INSTALL) -m 644 scp.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/scp.1 | |
289 | $(INSTALL) -m 644 ssh-add.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-add.1 | |
290 | $(INSTALL) -m 644 ssh-agent.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-agent.1 | |
291 | $(INSTALL) -m 644 ssh-keygen.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keygen.1 | |
292 | $(INSTALL) -m 644 ssh-keyscan.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keyscan.1 | |
6f25cbdd | 293 | $(INSTALL) -m 644 moduli.5.out $(DESTDIR)$(mandir)/$(mansubdir)5/moduli.5 |
ff2d7a98 | 294 | $(INSTALL) -m 644 sshd_config.5.out $(DESTDIR)$(mandir)/$(mansubdir)5/sshd_config.5 |
295 | $(INSTALL) -m 644 ssh_config.5.out $(DESTDIR)$(mandir)/$(mansubdir)5/ssh_config.5 | |
3c0ef626 | 296 | $(INSTALL) -m 644 sshd.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/sshd.8 |
ff2d7a98 | 297 | if [ ! -z "$(INSTALL_SSH_RAND_HELPER)" ]; then \ |
2980ea68 | 298 | $(INSTALL) -m 644 ssh-rand-helper.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-rand-helper.8 ; \ |
299 | fi | |
1c14df9e | 300 | $(INSTALL) -m 644 sftp.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/sftp.1 |
301 | $(INSTALL) -m 644 sftp-server.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/sftp-server.8 | |
ff2d7a98 | 302 | $(INSTALL) -m 644 ssh-keysign.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-keysign.8 |
3c0ef626 | 303 | -rm -f $(DESTDIR)$(bindir)/slogin |
e54b3d7c | 304 | ln -s ./ssh$(EXEEXT) $(DESTDIR)$(bindir)/slogin |
3c0ef626 | 305 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1 |
e54b3d7c | 306 | ln -s ./ssh.1 $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1 |
34fee935 | 307 | |
308 | install-sysconf: | |
3c0ef626 | 309 | if [ ! -d $(DESTDIR)$(sysconfdir) ]; then \ |
310 | $(srcdir)/mkinstalldirs $(DESTDIR)$(sysconfdir); \ | |
311 | fi | |
e54b3d7c | 312 | @if [ ! -f $(DESTDIR)$(sysconfdir)/ssh_config ]; then \ |
3c0ef626 | 313 | $(INSTALL) -m 644 ssh_config.out $(DESTDIR)$(sysconfdir)/ssh_config; \ |
314 | else \ | |
315 | echo "$(DESTDIR)$(sysconfdir)/ssh_config already exists, install will not overwrite"; \ | |
316 | fi | |
e54b3d7c | 317 | @if [ ! -f $(DESTDIR)$(sysconfdir)/sshd_config ]; then \ |
3c0ef626 | 318 | $(INSTALL) -m 644 sshd_config.out $(DESTDIR)$(sysconfdir)/sshd_config; \ |
319 | else \ | |
320 | echo "$(DESTDIR)$(sysconfdir)/sshd_config already exists, install will not overwrite"; \ | |
321 | fi | |
34fee935 | 322 | @if [ -f ssh_prng_cmds ] && [ ! -z "$(INSTALL_SSH_PRNG_CMDS)" ]; then \ |
3c0ef626 | 323 | if [ ! -f $(DESTDIR)$(sysconfdir)/ssh_prng_cmds ] ; then \ |
324 | $(INSTALL) -m 644 ssh_prng_cmds.out $(DESTDIR)$(sysconfdir)/ssh_prng_cmds; \ | |
325 | else \ | |
326 | echo "$(DESTDIR)$(sysconfdir)/ssh_prng_cmds already exists, install will not overwrite"; \ | |
327 | fi ; \ | |
328 | fi | |
e54b3d7c | 329 | @if [ ! -f $(DESTDIR)$(sysconfdir)/moduli ]; then \ |
3c0ef626 | 330 | if [ -f $(DESTDIR)$(sysconfdir)/primes ]; then \ |
331 | echo "moving $(DESTDIR)$(sysconfdir)/primes to $(DESTDIR)$(sysconfdir)/moduli"; \ | |
332 | mv "$(DESTDIR)$(sysconfdir)/primes" "$(DESTDIR)$(sysconfdir)/moduli"; \ | |
333 | else \ | |
334 | $(INSTALL) -m 644 moduli.out $(DESTDIR)$(sysconfdir)/moduli; \ | |
335 | fi ; \ | |
336 | else \ | |
337 | echo "$(DESTDIR)$(sysconfdir)/moduli already exists, install will not overwrite"; \ | |
338 | fi | |
339 | ||
37b75ddb | 340 | ### |
336f92ec | 341 | # |
37b75ddb | 342 | # Upon a new OpenSSH merge into the repository: |
7b624033 | 343 | # |
f5587594 | 344 | # o Set up new catman-do. |
345 | # o Set up new gpt-all. | |
346 | # o Remove $(MANPAGES) and $(CONFIGFILES) from target list. | |
37b75ddb | 347 | # o Set up new gpt-install-files. |
348 | # o Destroy current/old gpt-install-files target. | |
349 | # o Copy install-files target into gpt-install-files target. | |
f5587594 | 350 | # o Remove the following sections: |
1c14df9e | 351 | # o Copying the configuration files (ssh_config, sshd_config, ssh_prng_cmds, moduli). |
f5587594 | 352 | # o The scard-install target. |
353 | # o Creating and chmod'ing PRIVSEP_PATH. | |
1c14df9e | 354 | # o Stripping of installed binaries. |
355 | # o The conditionals around ssh-rand-helper*. | |
88928908 | 356 | # o Install docs into $GL/doc/gsi_openssh by adding 'gpt-install-docs' target. |
f5587594 | 357 | # o Add links for gsi tools (gsissh -> ssh, etc). |
358 | # o Refer to the new man and cat pages. | |
336f92ec | 359 | # |
360 | ||
88928908 | 361 | gpt-install-files: gpt-install-docs |
258769aa | 362 | $(srcdir)/mkinstalldirs $(DESTDIR)$(bindir) |
07e2eb8f | 363 | $(srcdir)/mkinstalldirs $(DESTDIR)$(globusbindir) |
258769aa | 364 | $(srcdir)/mkinstalldirs $(DESTDIR)$(sbindir) |
258769aa | 365 | $(srcdir)/mkinstalldirs $(DESTDIR)$(datadir) |
518661be | 366 | docdir=man; \ |
367 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir); \ | |
368 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$${docdir}1; \ | |
369 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$${docdir}5; \ | |
8b40ca58 | 370 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$${docdir}8; \ |
371 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$${docdir}1/ssh.d; \ | |
372 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$${docdir}5/ssh.d; \ | |
373 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$${docdir}8/ssh.d | |
518661be | 374 | docdir=cat; \ |
375 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir); \ | |
376 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$${docdir}1; \ | |
377 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$${docdir}5; \ | |
8b40ca58 | 378 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$${docdir}8; \ |
379 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$${docdir}1/ssh.d; \ | |
380 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$${docdir}5/ssh.d; \ | |
381 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$${docdir}8/ssh.d | |
1c14df9e | 382 | $(srcdir)/mkinstalldirs $(DESTDIR)$(libexecdir) |
8b46b951 | 383 | $(INSTALL) -m 0755 $(STRIP_OPT) ssh $(DESTDIR)$(bindir)/ssh |
384 | $(INSTALL) -m 0755 $(STRIP_OPT) scp $(DESTDIR)$(bindir)/scp | |
385 | $(INSTALL) -m 0755 $(STRIP_OPT) ssh-add $(DESTDIR)$(bindir)/ssh-add | |
386 | $(INSTALL) -m 0755 $(STRIP_OPT) ssh-agent $(DESTDIR)$(bindir)/ssh-agent | |
387 | $(INSTALL) -m 0755 $(STRIP_OPT) ssh-keygen $(DESTDIR)$(bindir)/ssh-keygen | |
388 | $(INSTALL) -m 0755 $(STRIP_OPT) ssh-keyscan $(DESTDIR)$(bindir)/ssh-keyscan | |
389 | $(INSTALL) -m 0755 $(STRIP_OPT) sshd $(DESTDIR)$(sbindir)/sshd | |
390 | $(INSTALL) -m 0755 $(STRIP_OPT) ssh-rand-helper $(DESTDIR)$(libexecdir)/ssh-rand-helper | |
391 | $(INSTALL) -m 4711 $(STRIP_OPT) ssh-keysign $(DESTDIR)$(SSH_KEYSIGN) | |
392 | $(INSTALL) -m 0755 $(STRIP_OPT) sftp $(DESTDIR)$(bindir)/sftp | |
393 | $(INSTALL) -m 0755 $(STRIP_OPT) sftp-server $(DESTDIR)$(SFTP_SERVER) | |
e54b3d7c | 394 | -rm -f $(DESTDIR)$(bindir)/slogin |
395 | ln -s ./ssh$(EXEEXT) $(DESTDIR)$(bindir)/slogin | |
07e2eb8f | 396 | -rm -f $(DESTDIR)$(globusbindir)/gsissh |
397 | ln -s ./ssh.d/ssh$(EXEEXT) $(DESTDIR)$(globusbindir)/gsissh | |
398 | -rm -f $(DESTDIR)$(globusbindir)/gsiscp | |
399 | ln -s ./ssh.d/scp$(EXEEXT) $(DESTDIR)$(globusbindir)/gsiscp | |
400 | -rm -f $(DESTDIR)$(globusbindir)/gsisftp | |
401 | ln -s ./ssh.d/sftp$(EXEEXT) $(DESTDIR)$(globusbindir)/gsisftp | |
518661be | 402 | # start man |
403 | docdir=man; \ | |
8b40ca58 | 404 | $(INSTALL) -m 644 $${docdir}/ssh.1 $(DESTDIR)$(mandir)/$${docdir}1/ssh.d/ssh.1; \ |
405 | $(INSTALL) -m 644 $${docdir}/scp.1 $(DESTDIR)$(mandir)/$${docdir}1/ssh.d/scp.1; \ | |
406 | $(INSTALL) -m 644 $${docdir}/ssh-add.1 $(DESTDIR)$(mandir)/$${docdir}1/ssh.d/ssh-add.1; \ | |
407 | $(INSTALL) -m 644 $${docdir}/ssh-agent.1 $(DESTDIR)$(mandir)/$${docdir}1/ssh.d/ssh-agent.1; \ | |
408 | $(INSTALL) -m 644 $${docdir}/ssh-keygen.1 $(DESTDIR)$(mandir)/$${docdir}1/ssh.d/ssh-keygen.1; \ | |
409 | $(INSTALL) -m 644 $${docdir}/ssh-keyscan.1 $(DESTDIR)$(mandir)/$${docdir}1/ssh.d/ssh-keyscan.1; \ | |
410 | $(INSTALL) -m 644 $${docdir}/sshd_config.5 $(DESTDIR)$(mandir)/$${docdir}5/ssh.d/sshd_config.5; \ | |
411 | $(INSTALL) -m 644 $${docdir}/ssh_config.5 $(DESTDIR)$(mandir)/$${docdir}5/ssh.d/ssh_config.5; \ | |
412 | $(INSTALL) -m 644 $${docdir}/sshd.8 $(DESTDIR)$(mandir)/$${docdir}8/ssh.d/sshd.8; \ | |
413 | $(INSTALL) -m 644 $${docdir}/ssh-rand-helper.8 $(DESTDIR)$(mandir)/$${docdir}8/ssh.d/ssh-rand-helper.8; \ | |
414 | $(INSTALL) -m 644 $${docdir}/sftp.1 $(DESTDIR)$(mandir)/$${docdir}1/ssh.d/sftp.1; \ | |
415 | $(INSTALL) -m 644 $${docdir}/sftp-server.8 $(DESTDIR)$(mandir)/$${docdir}8/ssh.d/sftp-server.8; \ | |
416 | $(INSTALL) -m 644 $${docdir}/ssh-keysign.8 $(DESTDIR)$(mandir)/$${docdir}8/ssh.d/ssh-keysign.8; \ | |
417 | rm -f $(DESTDIR)$(mandir)/$${docdir}1/ssh.d/slogin.1; \ | |
418 | ln -s ./ssh.1 $(DESTDIR)$(mandir)/$${docdir}1/ssh.d/slogin.1; \ | |
419 | rm -f $(DESTDIR)$(mandir)/$${docdir}1/gsissh.1; \ | |
420 | ln -s ./ssh.d/ssh.1 $(DESTDIR)$(mandir)/$${docdir}1/gsissh.1; \ | |
421 | rm -f $(DESTDIR)$(mandir)/$${docdir}1/gsiscp.1; \ | |
422 | ln -s ./ssh.d/scp.1 $(DESTDIR)$(mandir)/$${docdir}1/gsiscp.1; \ | |
423 | rm -f $(DESTDIR)$(mandir)/$${docdir}1/gsisftp.1; \ | |
fbb72725 | 424 | ln -s ./ssh.d/sftp.1 $(DESTDIR)$(mandir)/$${docdir}1/gsisftp.1; \ |
425 | rm -f $(DESTDIR)$(mandir)/$${docdir}5/sshd_config.5; \ | |
426 | ln -s ./ssh.d/sshd_config.5 $(DESTDIR)$(mandir)/$${docdir}5/sshd_config.5; \ | |
427 | rm -f $(DESTDIR)$(mandir)/$${docdir}5/ssh_config.5; \ | |
428 | ln -s ./ssh.d/ssh_config.5 $(DESTDIR)$(mandir)/$${docdir}5/ssh_config.5; | |
518661be | 429 | # end man |
430 | # start cat | |
431 | docdir=cat; \ | |
8b40ca58 | 432 | $(INSTALL) -m 644 $${docdir}/ssh.1 $(DESTDIR)$(mandir)/$${docdir}1/ssh.d/ssh.1; \ |
433 | $(INSTALL) -m 644 $${docdir}/scp.1 $(DESTDIR)$(mandir)/$${docdir}1/ssh.d/scp.1; \ | |
434 | $(INSTALL) -m 644 $${docdir}/ssh-add.1 $(DESTDIR)$(mandir)/$${docdir}1/ssh.d/ssh-add.1; \ | |
435 | $(INSTALL) -m 644 $${docdir}/ssh-agent.1 $(DESTDIR)$(mandir)/$${docdir}1/ssh.d/ssh-agent.1; \ | |
436 | $(INSTALL) -m 644 $${docdir}/ssh-keygen.1 $(DESTDIR)$(mandir)/$${docdir}1/ssh.d/ssh-keygen.1; \ | |
437 | $(INSTALL) -m 644 $${docdir}/ssh-keyscan.1 $(DESTDIR)$(mandir)/$${docdir}1/ssh.d/ssh-keyscan.1; \ | |
438 | $(INSTALL) -m 644 $${docdir}/sshd_config.5 $(DESTDIR)$(mandir)/$${docdir}5/ssh.d/sshd_config.5; \ | |
439 | $(INSTALL) -m 644 $${docdir}/ssh_config.5 $(DESTDIR)$(mandir)/$${docdir}5/ssh.d/ssh_config.5; \ | |
440 | $(INSTALL) -m 644 $${docdir}/sshd.8 $(DESTDIR)$(mandir)/$${docdir}8/ssh.d/sshd.8; \ | |
441 | $(INSTALL) -m 644 $${docdir}/ssh-rand-helper.8 $(DESTDIR)$(mandir)/$${docdir}8/ssh.d/ssh-rand-helper.8; \ | |
442 | $(INSTALL) -m 644 $${docdir}/sftp.1 $(DESTDIR)$(mandir)/$${docdir}1/ssh.d/sftp.1; \ | |
443 | $(INSTALL) -m 644 $${docdir}/sftp-server.8 $(DESTDIR)$(mandir)/$${docdir}8/ssh.d/sftp-server.8; \ | |
444 | $(INSTALL) -m 644 $${docdir}/ssh-keysign.8 $(DESTDIR)$(mandir)/$${docdir}8/ssh.d/ssh-keysign.8; \ | |
445 | rm -f $(DESTDIR)$(mandir)/$${docdir}1/ssh.d/slogin.1; \ | |
446 | ln -s ./ssh.1 $(DESTDIR)$(mandir)/$${docdir}1/ssh.d/slogin.1; \ | |
447 | rm -f $(DESTDIR)$(mandir)/$${docdir}1/gsissh.1; \ | |
448 | ln -s ./ssh.d/ssh.1 $(DESTDIR)$(mandir)/$${docdir}1/gsissh.1; \ | |
449 | rm -f $(DESTDIR)$(mandir)/$${docdir}1/gsiscp.1; \ | |
450 | ln -s ./ssh.d/scp.1 $(DESTDIR)$(mandir)/$${docdir}1/gsiscp.1; \ | |
451 | rm -f $(DESTDIR)$(mandir)/$${docdir}1/gsisftp.1; \ | |
fbb72725 | 452 | ln -s ./ssh.d/sftp.1 $(DESTDIR)$(mandir)/$${docdir}1/gsisftp.1; \ |
453 | rm -f $(DESTDIR)$(mandir)/$${docdir}5/sshd_config.5; \ | |
454 | ln -s ./ssh.d/sshd_config.5 $(DESTDIR)$(mandir)/$${docdir}5/sshd_config.5; \ | |
455 | rm -f $(DESTDIR)$(mandir)/$${docdir}5/ssh_config.5; \ | |
456 | ln -s ./ssh.d/ssh_config.5 $(DESTDIR)$(mandir)/$${docdir}5/ssh_config.5; | |
518661be | 457 | # end cat |
88928908 | 458 | |
459 | gpt-install-docs: | |
1c14df9e | 460 | # make doc dir and copy docs into it |
a624eecb | 461 | if [ ! -d $(DESTDIR)$(docdir) ]; then \ |
462 | $(srcdir)/mkinstalldirs $(DESTDIR)$(docdir); \ | |
463 | fi | |
464 | $(INSTALL) -m 644 README $(DESTDIR)$(docdir)/README | |
465 | $(INSTALL) -m 644 README.gpt $(DESTDIR)$(docdir)/README.gpt | |
466 | $(INSTALL) -m 644 README.privsep $(DESTDIR)$(docdir)/README.privsep | |
467 | $(INSTALL) -m 644 INSTALL $(DESTDIR)$(docdir)/INSTALL | |
468 | $(INSTALL) -m 644 WARNING.RNG $(DESTDIR)$(docdir)/WARNING.RNG | |
469 | $(INSTALL) -m 644 LICENCE $(DESTDIR)$(docdir)/LICENSE.OpenSSH | |
470 | $(INSTALL) -m 644 CREDITS $(DESTDIR)$(docdir)/CREDITS | |
258769aa | 471 | |
3c0ef626 | 472 | host-key: ssh-keygen$(EXEEXT) |
e54b3d7c | 473 | @if [ -z "$(DESTDIR)" ] ; then \ |
3c0ef626 | 474 | if [ -f "$(DESTDIR)$(sysconfdir)/ssh_host_key" ] ; then \ |
475 | echo "$(DESTDIR)$(sysconfdir)/ssh_host_key already exists, skipping." ; \ | |
476 | else \ | |
477 | ./ssh-keygen -t rsa1 -f $(DESTDIR)$(sysconfdir)/ssh_host_key -N "" ; \ | |
478 | fi ; \ | |
479 | if [ -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key ] ; then \ | |
480 | echo "$(DESTDIR)$(sysconfdir)/ssh_host_dsa_key already exists, skipping." ; \ | |
481 | else \ | |
482 | ./ssh-keygen -t dsa -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key -N "" ; \ | |
483 | fi ; \ | |
484 | if [ -f $(DESTDIR)$(sysconfdir)/ssh_host_rsa_key ] ; then \ | |
485 | echo "$(DESTDIR)$(sysconfdir)/ssh_host_rsa_key already exists, skipping." ; \ | |
486 | else \ | |
487 | ./ssh-keygen -t rsa -f $(DESTDIR)$(sysconfdir)/ssh_host_rsa_key -N "" ; \ | |
488 | fi ; \ | |
489 | fi ; | |
490 | ||
491 | host-key-force: ssh-keygen$(EXEEXT) | |
492 | ./ssh-keygen -t rsa1 -f $(DESTDIR)$(sysconfdir)/ssh_host_key -N "" | |
493 | ./ssh-keygen -t dsa -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key -N "" | |
494 | ./ssh-keygen -t rsa -f $(DESTDIR)$(sysconfdir)/ssh_host_rsa_key -N "" | |
495 | ||
496 | uninstallall: uninstall | |
497 | -rm -f $(DESTDIR)$(sysconfdir)/ssh_config | |
498 | -rm -f $(DESTDIR)$(sysconfdir)/sshd_config | |
499 | -rm -f $(DESTDIR)$(sysconfdir)/ssh_prng_cmds | |
500 | -rmdir $(DESTDIR)$(sysconfdir) | |
501 | -rmdir $(DESTDIR)$(bindir) | |
502 | -rmdir $(DESTDIR)$(sbindir) | |
503 | -rmdir $(DESTDIR)$(mandir)/$(mansubdir)1 | |
504 | -rmdir $(DESTDIR)$(mandir)/$(mansubdir)8 | |
505 | -rmdir $(DESTDIR)$(mandir) | |
506 | -rmdir $(DESTDIR)$(libexecdir) | |
507 | ||
416fd2a8 | 508 | uninstall: |
3c0ef626 | 509 | -rm -f $(DESTDIR)$(bindir)/slogin |
79e66f07 | 510 | -rm -f $(DESTDIR)$(bindir)/gsiscp |
511 | -rm -f $(DESTDIR)$(bindir)/gsissh | |
70791e56 | 512 | -rm -f $(DESTDIR)$(bindir)/gsisftp |
3c0ef626 | 513 | -rm -f $(DESTDIR)$(bindir)/ssh$(EXEEXT) |
514 | -rm -f $(DESTDIR)$(bindir)/scp$(EXEEXT) | |
515 | -rm -f $(DESTDIR)$(bindir)/ssh-add$(EXEEXT) | |
516 | -rm -f $(DESTDIR)$(bindir)/ssh-agent$(EXEEXT) | |
517 | -rm -f $(DESTDIR)$(bindir)/ssh-keygen$(EXEEXT) | |
518 | -rm -f $(DESTDIR)$(bindir)/ssh-keyscan$(EXEEXT) | |
519 | -rm -f $(DESTDIR)$(bindir)/sftp$(EXEEXT) | |
520 | -rm -f $(DESTDIR)$(sbindir)/sshd$(EXEEXT) | |
521 | -rm -r $(DESTDIR)$(SFTP_SERVER)$(EXEEXT) | |
ff2d7a98 | 522 | -rm -f $(DESTDIR)$(SSH_KEYSIGN)$(EXEEXT) |
523 | -rm -f $(DESTDIR)$(RAND_HELPER)$(EXEEXT) | |
3c0ef626 | 524 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh.1 |
525 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/scp.1 | |
79e66f07 | 526 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/gsissh.1 |
527 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/gsiscp.1 | |
70791e56 | 528 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/gsisftp.1 |
3c0ef626 | 529 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-add.1 |
530 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-agent.1 | |
531 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keygen.1 | |
532 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/sftp.1 | |
533 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keyscan.1 | |
fbb72725 | 534 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)5/sshd_config.5 |
535 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)5/ssh_config.5 | |
3c0ef626 | 536 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/sshd.8 |
2980ea68 | 537 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-rand-helper.8 |
3c0ef626 | 538 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/sftp-server.8 |
ff2d7a98 | 539 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-keysign.8 |
3c0ef626 | 540 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1 |
70791e56 | 541 | |
bd5d5d2a | 542 | tests interop-tests: $(TARGETS) |
70791e56 | 543 | BUILDDIR=`pwd`; \ |
544 | [ -d `pwd`/regress ] || mkdir -p `pwd`/regress; \ | |
545 | [ -f `pwd`/regress/Makefile ] || \ | |
34fee935 | 546 | ln -s `cd $(srcdir) && pwd`/regress/Makefile `pwd`/regress/Makefile ; \ |
1b56ff3d | 547 | TEST_SHELL="@TEST_SHELL@"; \ |
70791e56 | 548 | TEST_SSH_SSH="$${BUILDDIR}/ssh"; \ |
549 | TEST_SSH_SSHD="$${BUILDDIR}/sshd"; \ | |
550 | TEST_SSH_SSHAGENT="$${BUILDDIR}/ssh-agent"; \ | |
551 | TEST_SSH_SSHADD="$${BUILDDIR}/ssh-add"; \ | |
552 | TEST_SSH_SSHKEYGEN="$${BUILDDIR}/ssh-keygen"; \ | |
553 | TEST_SSH_SSHKEYSCAN="$${BUILDDIR}/ssh-keyscan"; \ | |
554 | TEST_SSH_SFTP="$${BUILDDIR}/sftp"; \ | |
555 | TEST_SSH_SFTPSERVER="$${BUILDDIR}/sftp-server"; \ | |
bd5d5d2a | 556 | TEST_SSH_PLINK="plink"; \ |
557 | TEST_SSH_PUTTYGEN="puttygen"; \ | |
6f25cbdd | 558 | TEST_SSH_CONCH="conch"; \ |
559 | TEST_SSH_IPV6="@TEST_SSH_IPV6@" ; \ | |
70791e56 | 560 | cd $(srcdir)/regress || exit $$?; \ |
561 | $(MAKE) \ | |
562 | .OBJDIR="$${BUILDDIR}/regress" \ | |
563 | .CURDIR="`pwd`" \ | |
564 | BUILDDIR="$${BUILDDIR}" \ | |
565 | OBJ="$${BUILDDIR}/regress/" \ | |
566 | PATH="$${BUILDDIR}:$${PATH}" \ | |
416fd2a8 | 567 | TEST_SHELL="$${TEST_SHELL}" \ |
70791e56 | 568 | TEST_SSH_SSH="$${TEST_SSH_SSH}" \ |
569 | TEST_SSH_SSHD="$${TEST_SSH_SSHD}" \ | |
570 | TEST_SSH_SSHAGENT="$${TEST_SSH_SSHAGENT}" \ | |
571 | TEST_SSH_SSHADD="$${TEST_SSH_SSHADD}" \ | |
572 | TEST_SSH_SSHKEYGEN="$${TEST_SSH_SSHKEYGEN}" \ | |
573 | TEST_SSH_SSHKEYSCAN="$${TEST_SSH_SSHKEYSCAN}" \ | |
574 | TEST_SSH_SFTP="$${TEST_SSH_SFTP}" \ | |
575 | TEST_SSH_SFTPSERVER="$${TEST_SSH_SFTPSERVER}" \ | |
bd5d5d2a | 576 | TEST_SSH_PLINK="$${TEST_SSH_PLINK}" \ |
577 | TEST_SSH_PUTTYGEN="$${TEST_SSH_PUTTYGEN}" \ | |
6f25cbdd | 578 | TEST_SSH_CONCH="$${TEST_SSH_CONCH}" \ |
579 | TEST_SSH_IPV6="@TEST_SSH_IPV6@" \ | |
70791e56 | 580 | EXEEXT="$(EXEEXT)" \ |
6f25cbdd | 581 | $@ && echo all tests passed |
70791e56 | 582 | |
2e437378 | 583 | compat-tests: $(LIBCOMPAT) |
584 | (cd openbsd-compat/regress && $(MAKE)) | |
585 | ||
70791e56 | 586 | regressclean: |
34fee935 | 587 | if [ -f regress/Makefile ] && [ -r regress/Makefile ]; then \ |
70791e56 | 588 | (cd regress && $(MAKE) clean) \ |
589 | fi | |
1b56ff3d | 590 | |
34fee935 | 591 | survey: survey.sh ssh |
592 | @$(SHELL) ./survey.sh > survey | |
593 | @echo 'The survey results have been placed in the file "survey" in the' | |
594 | @echo 'current directory. Please review the file then send with' | |
595 | @echo '"make send-survey".' | |
596 | ||
597 | send-survey: survey | |
598 | mail portable-survey@mindrot.org <survey | |
599 | ||
1b56ff3d | 600 | package: $(CONFIGFILES) ssh_prng_cmds.out $(MANPAGES) $(TARGETS) |
601 | if [ "@MAKE_PACKAGE_SUPPORTED@" = yes ]; then \ | |
602 | sh buildpkg.sh; \ | |
603 | fi | |
604 |