From 2d12cf754ee3eee72b2066d441f0adcf695cec72 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Tue, 11 May 2004 21:27:20 +0000 Subject: Add openssh-client-udeb and openssh-server-udeb binary packages for use in debian-installer. They still need libnss_files to be supplied in udeb form by glibc. --- debian/.cvsignore | 4 +- debian/changelog | 3 ++ debian/control | 25 +++++++++++ debian/openssh-client-udeb.dirs | 1 + debian/openssh-server-udeb.dirs | 2 + debian/rules | 95 +++++++++++++++++++++++++++++++---------- 6 files changed, 106 insertions(+), 24 deletions(-) create mode 100644 debian/openssh-client-udeb.dirs create mode 100644 debian/openssh-server-udeb.dirs (limited to 'debian') diff --git a/debian/.cvsignore b/debian/.cvsignore index 907978a06..1e2b2ac7e 100644 --- a/debian/.cvsignore +++ b/debian/.cvsignore @@ -1,6 +1,8 @@ files ssh-askpass-gnome templates -tmp +openssh-client-udeb +openssh-server-udeb +ssh *.debhelper *substvars diff --git a/debian/changelog b/debian/changelog index acd60b215..c8aadebf0 100644 --- a/debian/changelog +++ b/debian/changelog @@ -10,6 +10,9 @@ openssh (1:3.8.1p1-1) UNRELEASED; urgency=low real RFC but only an Internet-Draft. It's available from http://www.free.lp.se/bamse/draft-ylonen-ssh-protocol-00.txt if you want it for some reason. + * Add openssh-client-udeb and openssh-server-udeb binary packages for use + in debian-installer. They still need libnss_files to be supplied in udeb + form by glibc. * Fix grammar in sshd(8) (closes: #238753). * Add .desktop file and icon for ssh-askpass-gnome (closes: #232333). * Update Polish debconf template translation (thanks, Emil Nowak; diff --git a/debian/control b/debian/control index d3dd23d0a..2f7ab44b6 100644 --- a/debian/control +++ b/debian/control @@ -46,3 +46,28 @@ Description: under X, asks user for a passphrase for ssh-add You probably want the ssh-askpass package instead, but this is provided to add to your choice and/or confusion. +Package: openssh-client-udeb +Section: debian-installer +Priority: optional +Architecture: any +Depends: ${shlibs:Depends} +Description: Secure shell client for the Debian installer + This is the portable version of OpenSSH, a free implementation of + the Secure Shell protocol as specified by the IETF secsh working + group. + . + This package provides the ssh client for use in debian-installer. + +Package: openssh-server-udeb +Section: debian-installer +Priority: optional +Architecture: any +Depends: ${shlibs:Depends} +Description: Secure shell server for the Debian installer + This is the portable version of OpenSSH, a free implementation of + the Secure Shell protocol as specified by the IETF secsh working + group. + . + This package provides the sshd server for use in debian-installer. + Since it is expected to be used in specialized situations (e.g. S/390 + installs with no console), it does not provide any configuration. diff --git a/debian/openssh-client-udeb.dirs b/debian/openssh-client-udeb.dirs new file mode 100644 index 000000000..e77248175 --- /dev/null +++ b/debian/openssh-client-udeb.dirs @@ -0,0 +1 @@ +usr/bin diff --git a/debian/openssh-server-udeb.dirs b/debian/openssh-server-udeb.dirs new file mode 100644 index 000000000..e5fe80d83 --- /dev/null +++ b/debian/openssh-server-udeb.dirs @@ -0,0 +1,2 @@ +usr/sbin +var/run/sshd diff --git a/debian/rules b/debian/rules index d34cf406d..54c6c1482 100755 --- a/debian/rules +++ b/debian/rules @@ -3,8 +3,8 @@ # Uncomment this to turn on verbose mode. # export DH_VERBOSE=1 -# This is the debhelper compatability version to use. -export DH_COMPAT=1 +# This is the debhelper compatibility version to use. +export DH_COMPAT=2 # This has to be exported to make some magic below work. export DH_OPTIONS @@ -15,7 +15,11 @@ else OPTFLAGS := -O0 endif -#PKG_VER = $(shell perl -e 'print <> =~ /\((.*)\)/' debian/changelog) +VERSION := $(shell dpkg-parsechangelog | grep ^Version: | cut -d' ' -f2 | sed 's/.*://') +DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH) + +CLIENT_UDEB := openssh-client-udeb_$(VERSION)_$(DEB_HOST_ARCH).udeb +SERVER_UDEB := openssh-server-udeb_$(VERSION)_$(DEB_HOST_ARCH).udeb ifeq (,$(wildcard /usr/bin/po2debconf)) PO2DEBCONF := no @@ -42,7 +46,9 @@ endif # Change the version string to include the Debian version SSH_VERSION := $(shell sed -e '/define/!d; s/.*\"\(.*\)\".*/\1/; q' debian/tmp/usr/share/doc/ssh/copyright + cat debian/copyright.head LICENCE > debian/ssh/usr/share/doc/ssh/copyright ifeq ($(PAMSUBST),yes) # Clean up if we've done this already, to ensure idempotency. if [ -f debian/ssh.pam.new-style ]; then \ @@ -151,13 +171,42 @@ endif dh_compress dh_fixperms dh_installdeb - test ! -e debian/tmp/etc/ssh/ssh_prng_cmds \ - || echo "/etc/ssh/ssh_prng_cmds" >> debian/tmp/DEBIAN/conffiles + test ! -e debian/ssh/etc/ssh/ssh_prng_cmds \ + || echo "/etc/ssh/ssh_prng_cmds" >> debian/ssh/DEBIAN/conffiles dh_shlibdeps dh_gencontrol -- -V'debconf-depends=debconf (>= $(MINDEBCONFVER))' \ -V'pam-depends=$(PAMDEP)' dh_md5sums dh_builddeb +binary-openssh-client-udeb: DH_OPTIONS=-popenssh-client-udeb +binary-openssh-client-udeb: build install + dh_testdir + dh_testroot + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol -- -fdebian/files~ + dpkg-distaddfile $(CLIENT_UDEB) debian-installer optional + dh_builddeb --filename=$(CLIENT_UDEB) + +binary-openssh-server-udeb: DH_OPTIONS=-popenssh-server-udeb +binary-openssh-server-udeb: build install + dh_testdir + dh_testroot + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol -- -fdebian/files~ + dpkg-distaddfile $(SERVER_UDEB) debian-installer optional + dh_builddeb --filename=$(SERVER_UDEB) + binary: binary-indep binary-arch + .PHONY: build clean binary-indep binary-arch binary install +.PHONY: build-deb build-udeb binary-ssh +.PHONY: binary-openssh-client-udeb binary-openssh-server-udeb -- cgit v1.2.3