summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules22
1 files changed, 6 insertions, 16 deletions
diff --git a/debian/rules b/debian/rules
index f2c24ddf9..85b916bd4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -151,30 +151,20 @@ endif
151 > debian/copyright 151 > debian/copyright
152 152
153override_dh_auto_install: 153override_dh_auto_install:
154 $(MAKE) -C build-deb DESTDIR=`pwd`/debian/openssh-client install-nokeys 154 $(MAKE) -C build-deb DESTDIR=`pwd`/debian/tmp install-nokeys
155 155
156 rm -f debian/openssh-client/etc/ssh/sshd_config 156override_dh_install:
157 rm -f debian/tmp/etc/ssh/sshd_config
157 158
158 # Split off the server. 159 dh_install -Nopenssh-client-udeb -Nopenssh-server-udeb --fail-missing
159 mv debian/openssh-client/usr/sbin/sshd debian/openssh-server/usr/sbin/ 160 dh_install -popenssh-client-udeb -popenssh-server-udeb \
160 mv debian/openssh-client/usr/lib/openssh/sftp-server debian/openssh-server/usr/lib/openssh/ 161 --sourcedir=build-udeb
161 mv debian/openssh-client/usr/share/man/man5/authorized_keys.5 debian/openssh-server/usr/share/man/man5/
162 mv debian/openssh-client/usr/share/man/man5/sshd_config.5 debian/openssh-server/usr/share/man/man5/
163 mv debian/openssh-client/usr/share/man/man8/sshd.8 debian/openssh-server/usr/share/man/man8/
164 mv debian/openssh-client/usr/share/man/man8/sftp-server.8 debian/openssh-server/usr/share/man/man8/
165 rmdir debian/openssh-client/usr/sbin debian/openssh-client/var/run/sshd
166 162
167 install -s -o root -g root -m 755 contrib/gnome-ssh-askpass2 debian/ssh-askpass-gnome/usr/lib/openssh/gnome-ssh-askpass 163 install -s -o root -g root -m 755 contrib/gnome-ssh-askpass2 debian/ssh-askpass-gnome/usr/lib/openssh/gnome-ssh-askpass
168 164
169 install -o root -g root debian/openssh-server.if-up debian/openssh-server/etc/network/if-up.d/openssh-server 165 install -o root -g root debian/openssh-server.if-up debian/openssh-server/etc/network/if-up.d/openssh-server
170 install -o root -g root -m 644 debian/openssh-server.ufw.profile debian/openssh-server/etc/ufw/applications.d/openssh-server 166 install -o root -g root -m 644 debian/openssh-server.ufw.profile debian/openssh-server/etc/ufw/applications.d/openssh-server
171 167
172 install -m 755 build-udeb/ssh debian/openssh-client-udeb/usr/bin/ssh
173 install -m 755 build-udeb/scp debian/openssh-client-udeb/usr/bin/scp
174 install -m 755 build-udeb/sftp debian/openssh-client-udeb/usr/bin/sftp
175 install -m 755 build-udeb/sshd debian/openssh-server-udeb/usr/sbin/sshd
176 install -m 755 build-udeb/ssh-keygen debian/openssh-server-udeb/usr/bin/ssh-keygen
177
178 # Remove version control tags to avoid unnecessary conffile 168 # Remove version control tags to avoid unnecessary conffile
179 # resolution steps for administrators. 169 # resolution steps for administrators.
180 sed -i '/\$$OpenBSD:/d' \ 170 sed -i '/\$$OpenBSD:/d' \