]>
Commit | Line | Data |
---|---|---|
3c0ef626 | 1 | # $Id$ |
2 | ||
2980ea68 | 3 | # uncomment if you run a non bourne compatable shell. Ie. csh |
4 | #SHELL = @SH@ | |
5 | ||
6 | AUTORECONF=autoreconf | |
7 | ||
3c0ef626 | 8 | prefix=@prefix@ |
9 | exec_prefix=@exec_prefix@ | |
10 | bindir=@bindir@ | |
11 | sbindir=@sbindir@ | |
12 | libexecdir=@libexecdir@ | |
13 | datadir=@datadir@ | |
14 | mandir=@mandir@ | |
15 | mansubdir=@mansubdir@ | |
ae43c103 | 16 | sysconfdir=$$GLOBUS_LOCATION/etc/ssh |
3c0ef626 | 17 | piddir=@piddir@ |
18 | srcdir=@srcdir@ | |
19 | top_srcdir=@top_srcdir@ | |
20 | ||
21 | DESTDIR= | |
22 | VPATH=@srcdir@ | |
23 | SSH_PROGRAM=@bindir@/ssh | |
24 | ASKPASS_PROGRAM=$(libexecdir)/ssh-askpass | |
25 | SFTP_SERVER=$(libexecdir)/sftp-server | |
2980ea68 | 26 | PRIVSEP_PATH=@PRIVSEP_PATH@ |
27 | ||
28 | PATHS= -D_PATH_SSH_PIDDIR=\"$(piddir)\" \ | |
078f71c2 | 29 | -D_PATH_PRIVSEP_CHROOT_DIR=\"$(PRIVSEP_PATH)\" |
3c0ef626 | 30 | |
3c0ef626 | 31 | CC=@CC@ |
32 | LD=@LD@ | |
33 | CFLAGS=@CFLAGS@ | |
34 | CPPFLAGS=-I. -I$(srcdir) @CPPFLAGS@ $(PATHS) @DEFS@ | |
35 | LIBS=@LIBS@ | |
e9a17296 | 36 | LIBPAM=@LIBPAM@ |
37 | LIBWRAP=@LIBWRAP@ | |
3c0ef626 | 38 | AR=@AR@ |
39 | RANLIB=@RANLIB@ | |
40 | INSTALL=@INSTALL@ | |
41 | PERL=@PERL@ | |
42 | ENT=@ENT@ | |
43 | XAUTH_PATH=@XAUTH_PATH@ | |
44 | LDFLAGS=-L. -Lopenbsd-compat/ @LDFLAGS@ | |
45 | EXEEXT=@EXEEXT@ | |
46 | SSH_MODE= @SSHMODE@ | |
47 | ||
48 | INSTALL_SSH_PRNG_CMDS=@INSTALL_SSH_PRNG_CMDS@ | |
e9a17296 | 49 | INSTALL_SSH_RAND_HELPER=@INSTALL_SSH_RAND_HELPER@ |
3c0ef626 | 50 | |
51 | @NO_SFTP@SFTP_PROGS=sftp-server$(EXEEXT) sftp$(EXEEXT) | |
52 | ||
e9a17296 | 53 | TARGETS=ssh$(EXEEXT) sshd$(EXEEXT) ssh-add$(EXEEXT) ssh-keygen$(EXEEXT) ssh-keyscan${EXEEXT} ssh-agent$(EXEEXT) scp$(EXEEXT) ssh-rand-helper${EXEEXT} $(SFTP_PROGS) |
3c0ef626 | 54 | |
3a3f30be | 55 | LIBSSH_OBJS=atomicio.o authfd.o authfile.o bufaux.o buffer.o canohost.o channels.o cipher.o compat.o compress.o crc32.o deattack.o dh.o dispatch.o fatal.o mac.o hostfile.o key.o kex.o kexdh.o kexgex.o log.o match.o misc.o mpaux.o nchan.o packet.o pathnames.o radix.o rijndael.o entropy.o readpass.o rsa.o scard.o scard-opensc.o ssh-dss.o ssh-rsa.o tildexpand.o ttymodes.o uidswap.o uuencode.o xmalloc.o monitor_wrap.o monitor_fdpass.o kexgss.o gss-genr.o |
3c0ef626 | 56 | |
57 | SSHOBJS= ssh.o sshconnect.o sshconnect1.o sshconnect2.o sshtty.o readconf.o clientloop.o | |
58 | ||
2980ea68 | 59 | SSHDOBJS= sshd.o auth.o auth1.o auth2.o auth-chall.o auth2-chall.o auth-rhosts.o auth-options.o auth-krb4.o auth-krb5.o auth-pam.o auth2-pam.o auth-passwd.o auth-rsa.o auth-rh-rsa.o auth-sia.o sshpty.o sshlogin.o loginrec.o servconf.o serverloop.o md5crypt.o session.o groupaccess.o auth-skey.o auth-bsdauth.o monitor_mm.o monitor.o gss-serv.o |
3c0ef626 | 60 | |
2980ea68 | 61 | MANPAGES = 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 |
62 | MANPAGES_IN = 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 | |
3c0ef626 | 63 | MANTYPE = @MANTYPE@ |
64 | ||
65 | CONFIGFILES=sshd_config.out ssh_config.out moduli.out | |
66 | CONFIGFILES_IN=sshd_config ssh_config moduli | |
67 | ||
68 | PATHSUBS = \ | |
2980ea68 | 69 | -D/etc/ssh/ssh_prng_cmds='$(sysconfdir)'/ssh_prng_cmds \ |
ae43c103 | 70 | -D/etc/ssh/ssh_config='$(sysconfdir)'/ssh_config \ |
71 | -D/etc/ssh/ssh_known_hosts='$(sysconfdir)'/ssh_known_hosts \ | |
72 | -D/etc/ssh/sshd_config='$(sysconfdir)'/sshd_config \ | |
3c0ef626 | 73 | -D/usr/libexec=$(libexecdir) \ |
ae43c103 | 74 | -D/etc/shosts.equiv='$(sysconfdir)'/shosts.equiv \ |
75 | -D/etc/ssh/ssh_host_key='$(sysconfdir)'/ssh_host_key \ | |
76 | -D/etc/ssh/ssh_host_dsa_key='$(sysconfdir)'/ssh_host_dsa_key \ | |
77 | -D/etc/ssh/ssh_host_rsa_key='$(sysconfdir)'/ssh_host_rsa_key \ | |
3c0ef626 | 78 | -D/var/run/sshd.pid=$(piddir)/sshd.pid \ |
ae43c103 | 79 | -D/etc/ssh/moduli='$(sysconfdir)'/moduli \ |
80 | -D/etc/ssh/sshrc='$(sysconfdir)'/sshrc \ | |
3c0ef626 | 81 | -D/usr/X11R6/bin/xauth=$(XAUTH_PATH) \ |
2980ea68 | 82 | -D/var/empty=$(PRIVSEP_PATH) \ |
3c0ef626 | 83 | -D/usr/bin:/bin:/usr/sbin:/sbin=@user_path@ |
84 | ||
85 | FIXPATHSCMD = $(PERL) $(srcdir)/fixpaths $(PATHSUBS) | |
86 | ||
87 | all: $(CONFIGFILES) $(MANPAGES) $(TARGETS) | |
88 | ||
93f0fb9e | 89 | gpt-all: $(CONFIGFILES) $(MANPAGES) $(TARGETS) |
f406a57e | 90 | |
3c0ef626 | 91 | $(LIBSSH_OBJS): config.h |
92 | $(SSHOBJS): config.h | |
93 | $(SSHDOBJS): config.h | |
94 | ||
95 | .c.o: | |
96 | $(CC) $(CFLAGS) $(CPPFLAGS) -c $< | |
97 | ||
98 | LIBCOMPAT=openbsd-compat/libopenbsd-compat.a | |
99 | $(LIBCOMPAT): always | |
100 | (cd openbsd-compat && $(MAKE)) | |
101 | always: | |
102 | ||
103 | libssh.a: $(LIBSSH_OBJS) | |
104 | $(AR) rv $@ $(LIBSSH_OBJS) | |
105 | $(RANLIB) $@ | |
106 | ||
107 | ssh$(EXEEXT): $(LIBCOMPAT) libssh.a $(SSHOBJS) | |
108 | $(LD) -o $@ $(SSHOBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) | |
109 | ||
110 | sshd$(EXEEXT): libssh.a $(LIBCOMPAT) $(SSHDOBJS) | |
e9a17296 | 111 | $(LD) -o $@ $(SSHDOBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBWRAP) $(LIBPAM) $(LIBS) |
3c0ef626 | 112 | |
113 | scp$(EXEEXT): $(LIBCOMPAT) libssh.a scp.o | |
114 | $(LD) -o $@ scp.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) | |
115 | ||
116 | ssh-add$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-add.o | |
117 | $(LD) -o $@ ssh-add.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) | |
118 | ||
119 | ssh-agent$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-agent.o | |
120 | $(LD) -o $@ ssh-agent.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) | |
121 | ||
122 | ssh-keygen$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-keygen.o | |
123 | $(LD) -o $@ ssh-keygen.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) | |
124 | ||
125 | ssh-keyscan$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-keyscan.o | |
126 | $(LD) -o $@ ssh-keyscan.o $(LDFLAGS) -lssh -lopenbsd-compat -lssh $(LIBS) | |
127 | ||
128 | sftp-server$(EXEEXT): $(LIBCOMPAT) libssh.a sftp.o sftp-common.o sftp-server.o | |
129 | $(LD) -o $@ sftp-server.o sftp-common.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) | |
130 | ||
131 | sftp$(EXEEXT): $(LIBCOMPAT) libssh.a sftp.o sftp-client.o sftp-int.o sftp-common.o sftp-glob.o | |
132 | $(LD) -o $@ sftp.o sftp-client.o sftp-common.o sftp-int.o sftp-glob.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) | |
133 | ||
e9a17296 | 134 | ssh-rand-helper${EXEEXT}: $(LIBCOMPAT) libssh.a ssh-rand-helper.o |
135 | $(LD) -o $@ ssh-rand-helper.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) | |
136 | ||
3c0ef626 | 137 | # test driver for the loginrec code - not built by default |
138 | logintest: logintest.o $(LIBCOMPAT) libssh.a loginrec.o | |
139 | $(LD) -o $@ logintest.o $(LDFLAGS) loginrec.o -lopenbsd-compat -lssh $(LIBS) | |
140 | ||
141 | $(MANPAGES): $(MANPAGES_IN) | |
142 | if test "$(MANTYPE)" = "cat"; then \ | |
143 | manpage=$(srcdir)/`echo $@ | sed 's/\.[1-9]\.out$$/\.0/'`; \ | |
144 | else \ | |
145 | manpage=$(srcdir)/`echo $@ | sed 's/\.out$$//'`; \ | |
146 | fi; \ | |
147 | if test "$(MANTYPE)" = "man"; then \ | |
148 | $(FIXPATHSCMD) $${manpage} | $(PERL) $(srcdir)/mdoc2man.pl > $@; \ | |
149 | else \ | |
150 | $(FIXPATHSCMD) $${manpage} > $@; \ | |
151 | fi | |
152 | ||
153 | $(CONFIGFILES): $(CONFIGFILES_IN) | |
154 | conffile=`echo $@ | sed 's/.out$$//'`; \ | |
155 | $(FIXPATHSCMD) $(srcdir)/$${conffile} > $@ | |
156 | ||
157 | clean: | |
158 | rm -f *.o *.a $(TARGETS) logintest config.cache config.log | |
159 | rm -f *.out core | |
160 | (cd openbsd-compat && $(MAKE) clean) | |
161 | ||
162 | distclean: | |
163 | rm -f *.o *.a $(TARGETS) logintest config.cache config.log | |
164 | rm -f *.out core | |
165 | rm -f Makefile config.h config.status ssh_prng_cmds *~ | |
166 | rm -rf autom4te.cache | |
167 | (cd openbsd-compat && $(MAKE) distclean) | |
168 | (cd scard && $(MAKE) distclean) | |
169 | ||
170 | veryclean: | |
171 | rm -f configure config.h.in *.0 | |
172 | rm -f *.o *.a $(TARGETS) logintest config.cache config.log | |
173 | rm -f *.out core | |
174 | rm -f Makefile config.h config.status ssh_prng_cmds *~ | |
175 | (cd openbsd-compat && $(MAKE) distclean) | |
176 | (cd scard && $(MAKE) distclean) | |
177 | ||
178 | mrproper: distclean | |
179 | ||
180 | catman-do: | |
181 | @for f in $(MANPAGES_IN) ; do \ | |
182 | base=`echo $$f | sed 's/\..*$$//'` ; \ | |
183 | echo "$$f -> $$base.0" ; \ | |
184 | nroff -mandoc $$f | cat -v | sed -e 's/.\^H//g' \ | |
185 | >$$base.0 ; \ | |
186 | done | |
187 | ||
188 | distprep: catman-do | |
2980ea68 | 189 | $(AUTORECONF) |
3c0ef626 | 190 | (cd scard && $(MAKE) -f Makefile.in distprep) |
191 | ||
192 | install: $(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files host-key | |
193 | install-nokeys: $(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files | |
194 | ||
258769aa | 195 | gpt-install: gpt-all gpt-install-files |
196 | gpt-install-nokeys: gpt-all gpt-install-files | |
f406a57e | 197 | |
3c0ef626 | 198 | scard-install: |
199 | (cd scard && $(MAKE) DESTDIR=$(DESTDIR) install) | |
200 | ||
201 | install-files: scard-install | |
202 | $(srcdir)/mkinstalldirs $(DESTDIR)$(bindir) | |
203 | $(srcdir)/mkinstalldirs $(DESTDIR)$(sbindir) | |
204 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir) | |
205 | $(srcdir)/mkinstalldirs $(DESTDIR)$(datadir) | |
206 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$(mansubdir)1 | |
207 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$(mansubdir)8 | |
208 | $(srcdir)/mkinstalldirs $(DESTDIR)$(libexecdir) | |
209 | $(INSTALL) -m $(SSH_MODE) -s ssh $(DESTDIR)$(bindir)/ssh | |
210 | $(INSTALL) -m 0755 -s scp $(DESTDIR)$(bindir)/scp | |
211 | $(INSTALL) -m 0755 -s ssh-add $(DESTDIR)$(bindir)/ssh-add | |
212 | $(INSTALL) -m 0755 -s ssh-agent $(DESTDIR)$(bindir)/ssh-agent | |
213 | $(INSTALL) -m 0755 -s ssh-keygen $(DESTDIR)$(bindir)/ssh-keygen | |
214 | $(INSTALL) -m 0755 -s ssh-keyscan $(DESTDIR)$(bindir)/ssh-keyscan | |
215 | $(INSTALL) -m 0755 -s sshd $(DESTDIR)$(sbindir)/sshd | |
e9a17296 | 216 | if test ! -z "$(INSTALL_SSH_RAND_HELPER)" ; then \ |
217 | $(INSTALL) -m 0755 -s ssh-rand-helper $(DESTDIR)$(libexecdir)/ssh-rand-helper ; \ | |
218 | fi | |
3c0ef626 | 219 | @NO_SFTP@$(INSTALL) -m 0755 -s sftp $(DESTDIR)$(bindir)/sftp |
220 | @NO_SFTP@$(INSTALL) -m 0755 -s sftp-server $(DESTDIR)$(SFTP_SERVER) | |
221 | $(INSTALL) -m 644 ssh.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh.1 | |
222 | $(INSTALL) -m 644 scp.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/scp.1 | |
223 | $(INSTALL) -m 644 ssh-add.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-add.1 | |
224 | $(INSTALL) -m 644 ssh-agent.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-agent.1 | |
225 | $(INSTALL) -m 644 ssh-keygen.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keygen.1 | |
226 | $(INSTALL) -m 644 ssh-keyscan.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keyscan.1 | |
227 | $(INSTALL) -m 644 sshd.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/sshd.8 | |
2980ea68 | 228 | if [ ! -z "$(INSTALL_SSH_PRNG_CMDS)" ]; then \ |
229 | $(INSTALL) -m 644 ssh-rand-helper.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-rand-helper.8 ; \ | |
230 | fi | |
3c0ef626 | 231 | @NO_SFTP@$(INSTALL) -m 644 sftp.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/sftp.1 |
232 | @NO_SFTP@$(INSTALL) -m 644 sftp-server.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/sftp-server.8 | |
233 | -rm -f $(DESTDIR)$(bindir)/slogin | |
234 | ln -s ssh$(EXEEXT) $(DESTDIR)$(bindir)/slogin | |
235 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1 | |
236 | ln -s ssh.1 $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1 | |
ecaa74f8 | 237 | -rm -f $(DESTDIR)$(bindir)/gsissh |
238 | ln -s ssh$(EXEEXT) $(DESTDIR)$(bindir)/gsissh | |
239 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/gsissh.1 | |
240 | ln -s ssh.1 $(DESTDIR)$(mandir)/$(mansubdir)1/gsissh.1 | |
241 | -rm -f $(DESTDIR)$(bindir)/gsiscp | |
242 | ln -s scp$(EXEEXT) $(DESTDIR)$(bindir)/gsiscp | |
243 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/gsiscp.1 | |
244 | ln -s scp.1 $(DESTDIR)$(mandir)/$(mansubdir)1/gsiscp.1 | |
3c0ef626 | 245 | if [ ! -d $(DESTDIR)$(sysconfdir) ]; then \ |
246 | $(srcdir)/mkinstalldirs $(DESTDIR)$(sysconfdir); \ | |
247 | fi | |
248 | if [ ! -f $(DESTDIR)$(sysconfdir)/ssh_config ]; then \ | |
249 | $(INSTALL) -m 644 ssh_config.out $(DESTDIR)$(sysconfdir)/ssh_config; \ | |
250 | else \ | |
251 | echo "$(DESTDIR)$(sysconfdir)/ssh_config already exists, install will not overwrite"; \ | |
252 | fi | |
253 | if [ ! -f $(DESTDIR)$(sysconfdir)/sshd_config ]; then \ | |
254 | $(INSTALL) -m 644 sshd_config.out $(DESTDIR)$(sysconfdir)/sshd_config; \ | |
255 | else \ | |
256 | echo "$(DESTDIR)$(sysconfdir)/sshd_config already exists, install will not overwrite"; \ | |
257 | fi | |
258 | if [ -f ssh_prng_cmds -a ! -z "$(INSTALL_SSH_PRNG_CMDS)" ]; then \ | |
259 | $(PERL) $(srcdir)/fixprogs ssh_prng_cmds $(ENT); \ | |
260 | if [ ! -f $(DESTDIR)$(sysconfdir)/ssh_prng_cmds ] ; then \ | |
261 | $(INSTALL) -m 644 ssh_prng_cmds.out $(DESTDIR)$(sysconfdir)/ssh_prng_cmds; \ | |
262 | else \ | |
263 | echo "$(DESTDIR)$(sysconfdir)/ssh_prng_cmds already exists, install will not overwrite"; \ | |
264 | fi ; \ | |
265 | fi | |
266 | if [ ! -f $(DESTDIR)$(sysconfdir)/moduli ]; then \ | |
267 | if [ -f $(DESTDIR)$(sysconfdir)/primes ]; then \ | |
268 | echo "moving $(DESTDIR)$(sysconfdir)/primes to $(DESTDIR)$(sysconfdir)/moduli"; \ | |
269 | mv "$(DESTDIR)$(sysconfdir)/primes" "$(DESTDIR)$(sysconfdir)/moduli"; \ | |
270 | else \ | |
271 | $(INSTALL) -m 644 moduli.out $(DESTDIR)$(sysconfdir)/moduli; \ | |
272 | fi ; \ | |
273 | else \ | |
274 | echo "$(DESTDIR)$(sysconfdir)/moduli already exists, install will not overwrite"; \ | |
275 | fi | |
276 | ||
258769aa | 277 | gpt-install-files: |
278 | $(srcdir)/mkinstalldirs $(DESTDIR)$(bindir) | |
279 | $(srcdir)/mkinstalldirs $(DESTDIR)$(sbindir) | |
280 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir) | |
281 | $(srcdir)/mkinstalldirs $(DESTDIR)$(datadir) | |
282 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$(mansubdir)1 | |
283 | $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$(mansubdir)8 | |
284 | $(srcdir)/mkinstalldirs $(DESTDIR)$(libexecdir) | |
285 | $(INSTALL) -m $(SSH_MODE) -s ssh $(DESTDIR)$(bindir)/ssh | |
286 | $(INSTALL) -m 0755 -s scp $(DESTDIR)$(bindir)/scp | |
287 | $(INSTALL) -m 0755 -s ssh-add $(DESTDIR)$(bindir)/ssh-add | |
288 | $(INSTALL) -m 0755 -s ssh-agent $(DESTDIR)$(bindir)/ssh-agent | |
289 | $(INSTALL) -m 0755 -s ssh-keygen $(DESTDIR)$(bindir)/ssh-keygen | |
290 | $(INSTALL) -m 0755 -s ssh-keyscan $(DESTDIR)$(bindir)/ssh-keyscan | |
291 | $(INSTALL) -m 0755 -s sshd $(DESTDIR)$(sbindir)/sshd | |
292 | if test ! -z "$(INSTALL_SSH_RAND_HELPER)" ; then \ | |
293 | $(INSTALL) -m 0755 -s ssh-rand-helper $(DESTDIR)$(libexecdir)/ssh-rand-helper ; \ | |
294 | fi | |
295 | @NO_SFTP@$(INSTALL) -m 0755 -s sftp $(DESTDIR)$(bindir)/sftp | |
296 | @NO_SFTP@$(INSTALL) -m 0755 -s sftp-server $(DESTDIR)$(SFTP_SERVER) | |
297 | $(INSTALL) -m 644 ssh.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh.1 | |
298 | $(INSTALL) -m 644 scp.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/scp.1 | |
299 | $(INSTALL) -m 644 ssh-add.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-add.1 | |
300 | $(INSTALL) -m 644 ssh-agent.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-agent.1 | |
301 | $(INSTALL) -m 644 ssh-keygen.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keygen.1 | |
302 | $(INSTALL) -m 644 ssh-keyscan.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keyscan.1 | |
303 | $(INSTALL) -m 644 sshd.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/sshd.8 | |
304 | if [ ! -z "$(INSTALL_SSH_PRNG_CMDS)" ]; then \ | |
305 | $(INSTALL) -m 644 ssh-rand-helper.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-rand-helper.8 ; \ | |
306 | fi | |
307 | @NO_SFTP@$(INSTALL) -m 644 sftp.1.out $(DESTDIR)$(mandir)/$(mansubdir)1/sftp.1 | |
308 | @NO_SFTP@$(INSTALL) -m 644 sftp-server.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/sftp-server.8 | |
309 | -rm -f $(DESTDIR)$(bindir)/slogin | |
310 | ln -s ssh$(EXEEXT) $(DESTDIR)$(bindir)/slogin | |
311 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1 | |
312 | ln -s ssh.1 $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1 | |
ecaa74f8 | 313 | -rm -f $(DESTDIR)$(bindir)/gsissh |
314 | ln -s ssh$(EXEEXT) $(DESTDIR)$(bindir)/gsissh | |
315 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/gsissh.1 | |
316 | ln -s ssh.1 $(DESTDIR)$(mandir)/$(mansubdir)1/gsissh.1 | |
317 | -rm -f $(DESTDIR)$(bindir)/gsiscp | |
318 | ln -s scp$(EXEEXT) $(DESTDIR)$(bindir)/gsiscp | |
319 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/gsiscp.1 | |
320 | ln -s scp.1 $(DESTDIR)$(mandir)/$(mansubdir)1/gsiscp.1 | |
258769aa | 321 | |
3c0ef626 | 322 | host-key: ssh-keygen$(EXEEXT) |
323 | if [ -z "$(DESTDIR)" ] ; then \ | |
324 | if [ -f "$(DESTDIR)$(sysconfdir)/ssh_host_key" ] ; then \ | |
325 | echo "$(DESTDIR)$(sysconfdir)/ssh_host_key already exists, skipping." ; \ | |
326 | else \ | |
327 | ./ssh-keygen -t rsa1 -f $(DESTDIR)$(sysconfdir)/ssh_host_key -N "" ; \ | |
328 | fi ; \ | |
329 | if [ -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key ] ; then \ | |
330 | echo "$(DESTDIR)$(sysconfdir)/ssh_host_dsa_key already exists, skipping." ; \ | |
331 | else \ | |
332 | ./ssh-keygen -t dsa -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key -N "" ; \ | |
333 | fi ; \ | |
334 | if [ -f $(DESTDIR)$(sysconfdir)/ssh_host_rsa_key ] ; then \ | |
335 | echo "$(DESTDIR)$(sysconfdir)/ssh_host_rsa_key already exists, skipping." ; \ | |
336 | else \ | |
337 | ./ssh-keygen -t rsa -f $(DESTDIR)$(sysconfdir)/ssh_host_rsa_key -N "" ; \ | |
338 | fi ; \ | |
339 | fi ; | |
340 | ||
341 | host-key-force: ssh-keygen$(EXEEXT) | |
342 | ./ssh-keygen -t rsa1 -f $(DESTDIR)$(sysconfdir)/ssh_host_key -N "" | |
343 | ./ssh-keygen -t dsa -f $(DESTDIR)$(sysconfdir)/ssh_host_dsa_key -N "" | |
344 | ./ssh-keygen -t rsa -f $(DESTDIR)$(sysconfdir)/ssh_host_rsa_key -N "" | |
345 | ||
346 | uninstallall: uninstall | |
347 | -rm -f $(DESTDIR)$(sysconfdir)/ssh_config | |
348 | -rm -f $(DESTDIR)$(sysconfdir)/sshd_config | |
349 | -rm -f $(DESTDIR)$(sysconfdir)/ssh_prng_cmds | |
350 | -rmdir $(DESTDIR)$(sysconfdir) | |
351 | -rmdir $(DESTDIR)$(bindir) | |
352 | -rmdir $(DESTDIR)$(sbindir) | |
353 | -rmdir $(DESTDIR)$(mandir)/$(mansubdir)1 | |
354 | -rmdir $(DESTDIR)$(mandir)/$(mansubdir)8 | |
355 | -rmdir $(DESTDIR)$(mandir) | |
356 | -rmdir $(DESTDIR)$(libexecdir) | |
357 | ||
358 | uninstall: | |
359 | -rm -f $(DESTDIR)$(bindir)/slogin | |
ecaa74f8 | 360 | -rm -f $(DESTDIR)$(bindir)/gsiscp |
361 | -rm -f $(DESTDIR)$(bindir)/gsissh | |
3c0ef626 | 362 | -rm -f $(DESTDIR)$(bindir)/ssh$(EXEEXT) |
363 | -rm -f $(DESTDIR)$(bindir)/scp$(EXEEXT) | |
364 | -rm -f $(DESTDIR)$(bindir)/ssh-add$(EXEEXT) | |
365 | -rm -f $(DESTDIR)$(bindir)/ssh-agent$(EXEEXT) | |
366 | -rm -f $(DESTDIR)$(bindir)/ssh-keygen$(EXEEXT) | |
367 | -rm -f $(DESTDIR)$(bindir)/ssh-keyscan$(EXEEXT) | |
368 | -rm -f $(DESTDIR)$(bindir)/sftp$(EXEEXT) | |
369 | -rm -f $(DESTDIR)$(sbindir)/sshd$(EXEEXT) | |
370 | -rm -r $(DESTDIR)$(SFTP_SERVER)$(EXEEXT) | |
371 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh.1 | |
372 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/scp.1 | |
ecaa74f8 | 373 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/gsissh.1 |
374 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/gsiscp.1 | |
3c0ef626 | 375 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-add.1 |
376 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-agent.1 | |
377 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keygen.1 | |
378 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/sftp.1 | |
379 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keyscan.1 | |
380 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/sshd.8 | |
2980ea68 | 381 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-rand-helper.8 |
3c0ef626 | 382 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/sftp-server.8 |
383 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1 |