summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2011-07-29 14:25:12 +0100
committerColin Watson <cjwatson@debian.org>2011-07-29 14:25:12 +0100
commita8c854c8ff341b1b41a7fdd9274e68d1e444b245 (patch)
tree5614d9205dcb5627d5d8e37255fdf5bab822a4fb /debian/rules
parenta8018473e7368d27cf60d32ebc5df2b239b149a2 (diff)
Only recommend ssh-import-id when built on Ubuntu (closes: #635887).
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules9
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
66endif 66endif
67SUPERUSER_PATH := /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11 67SUPERUSER_PATH := /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
68 68
69ifeq ($(DISTRIBUTOR),Ubuntu)
70server_recommends := ssh-import-id
71else
72server_recommends :=
73endif
74
69# Common path configuration. 75# Common path configuration.
70confflags += --sysconfdir=/etc/ssh 76confflags += --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
210override_dh_gencontrol:
211 dh_gencontrol -- -V'openssh-server:Recommends=$(server_recommends)'
212
204debian/faq.html: 213debian/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' \