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