diff options
author | Colin Watson <cjwatson@debian.org> | 2011-07-29 14:25:12 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2011-07-29 14:25:12 +0100 |
commit | a8c854c8ff341b1b41a7fdd9274e68d1e444b245 (patch) | |
tree | 5614d9205dcb5627d5d8e37255fdf5bab822a4fb /debian/rules | |
parent | a8018473e7368d27cf60d32ebc5df2b239b149a2 (diff) |
Only recommend ssh-import-id when built on Ubuntu (closes: #635887).
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules index 1c58630f3..9731c320b 100755 --- a/debian/rules +++ b/debian/rules | |||
@@ -66,6 +66,12 @@ DEFAULT_PATH := /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games | |||
66 | endif | 66 | endif |
67 | SUPERUSER_PATH := /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11 | 67 | SUPERUSER_PATH := /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11 |
68 | 68 | ||
69 | ifeq ($(DISTRIBUTOR),Ubuntu) | ||
70 | server_recommends := ssh-import-id | ||
71 | else | ||
72 | server_recommends := | ||
73 | endif | ||
74 | |||
69 | # Common path configuration. | 75 | # Common path configuration. |
70 | confflags += --sysconfdir=/etc/ssh | 76 | confflags += --sysconfdir=/etc/ssh |
71 | 77 | ||
@@ -201,6 +207,9 @@ override_dh_installdeb: | |||
201 | ETC_PAM_D_SSH debian/openssh-server/etc/pam.d/sshd \ | 207 | ETC_PAM_D_SSH debian/openssh-server/etc/pam.d/sshd \ |
202 | debian/openssh-server/DEBIAN/preinst | 208 | debian/openssh-server/DEBIAN/preinst |
203 | 209 | ||
210 | override_dh_gencontrol: | ||
211 | dh_gencontrol -- -V'openssh-server:Recommends=$(server_recommends)' | ||
212 | |||
204 | debian/faq.html: | 213 | debian/faq.html: |
205 | wget -O - http://www.openssh.org/faq.html | \ | 214 | wget -O - http://www.openssh.org/faq.html | \ |
206 | sed 's,\(href="\)\(txt/\|[^":]*\.html\),\1http://www.openssh.org/\2,g' \ | 215 | sed 's,\(href="\)\(txt/\|[^":]*\.html\),\1http://www.openssh.org/\2,g' \ |