All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
1 all: known_hosts authorized_keys config
5 known_hosts: $(wildcard known_hosts.d/*)
8 echo "### from $$f:"; \
13 authorized_keys: $(wildcard authorized_keys.d/*)
16 echo "### from $$f:"; \
21 ifeq ($(strip $(wildcard config.local)),)
22 LOCAL_CONFIG=/dev/null
24 LOCAL_CONFIG=config.local
27 SSH_VERSION = $(shell ssh -V 2>&1)
28 config: $(LOCAL_CONFIG) config.in
30 case "$(SSH_VERSION)" in \
32 sed -ri -e 's,^.+\bCanonical.+$$,##UNSUPPORTED##&,' \
33 -e 's,^.+\bIgnoreUnknown\b.+$$,##UNSUPPORTED##&,' \
34 -e 's,^.+\bUpdateHostKeys\b.+$$,##UNSUPPORTED##&,' \
35 -e 's,^Match host ,Host ,' \
37 sed -ri -e 's,ProxyJump ([-.[:alnum:]]+),ProxyCommand ssh \1 nc -q0 %h %p,' $@ \
40 sed -ri -e 's,^.+\bControlPersist\b.+$$,##UNSUPPORTED##&,' \
41 -e 's,^.+\bIPQoS\b.+$$,##UNSUPPORTED##&,' \
42 -e 's,^.+\bCanonical.+$$,##UNSUPPORTED##&,' \
46 sed -ri -e 's,^.+\bVisualHostKey\b.+$$,##UNSUPPORTED##&,' \
47 -e 's,^.+\bControlPersist\b.+$$,##UNSUPPORTED##&,' \
48 -e 's,^.+\bIPQoS\b.+$$,##UNSUPPORTED##&,' \
49 -e 's,^.+\bCanonical.+$$,##UNSUPPORTED##&,' \
53 sed -ri -e 's,^.+\bExitOnForwardFailure\b.+$$,##UNSUPPORTED##&,' \
54 -e 's,^.+\bMACs\b.+$$,##UNSUPPORTED##&,' \
55 -e 's,^(.+ControlPath ~/.var/ssh/ssh_control_)%l_(.+),\1\2,' \
56 -e 's,^.+\bVisualHostKey\b.+$$,##UNSUPPORTED##&,' \
57 -e 's,^.+\bControlPersist\b.+$$,##UNSUPPORTED##&,' \
58 -e 's,^.+\bIPQoS\b.+$$,##UNSUPPORTED##&,' \
59 -e 's,^.+\bCanonical.+$$,##UNSUPPORTED##&,' \
63 sed -ri -e 's,^.+\bExitOnForwardFailure\b.+$$,##UNSUPPORTED##&,' \
64 -e 's,^.+\bMACs\b.+$$,##UNSUPPORTED##&,' \
65 -e 's,^.+\bHashKnownHosts\b.+$$,##UNSUPPORTED##&,' \
66 -e 's,^.+\bControl(Master|Path|Persist)\b.+$$,##UNSUPPORTED##&,' \
67 -e 's,^.+\bIPQoS\b.+$$,##UNSUPPORTED##&,' \
68 -e 's,^.+\bCanonical.+$$,##UNSUPPORTED##&,' \
72 case "$$HOSTNAME" in \
74 sed -i -re '/^Host fishbowl/,/^[[:space:]]*ProxyCommand/s/ProxyCommand.*/Host localhost/' $@; \