diff -u openssh-3.8.1p1/debian/changelog openssh-3.8.1p1/debian/changelog
--- openssh-3.8.1p1/debian/changelog
+++ openssh-3.8.1p1/debian/changelog
@@ -1,3 +1,9 @@
+openssh (1:3.8.1p1-8.sarge.4opensc1) unstable; urgency=low
+
+  * Compile --with-opensc.
+
+ -- Christoph Berg <myon@debian.org>  Tue, 15 Nov 2005 15:00:43 +0100
+
 openssh (1:3.8.1p1-8.sarge.4) unstable; urgency=high
 
   * Fix timing information leak allowing discovery of invalid usernames in
diff -u openssh-3.8.1p1/debian/control openssh-3.8.1p1/debian/control
--- openssh-3.8.1p1/debian/control
+++ openssh-3.8.1p1/debian/control
@@ -2,7 +2,7 @@
 Section: net
 Priority: standard
 Maintainer: Matthew Vernon <matthew@debian.org>
-Build-Depends: libwrap0-dev | libwrap-dev, zlib1g-dev | libz-dev, libssl-dev, libpam0g-dev | libpam-dev, libgnomeui-dev (>= 2.0.0) | libgnome-dev, groff, debhelper (>=1.1.17), sharutils
+Build-Depends: libwrap0-dev | libwrap-dev, zlib1g-dev | libz-dev, libssl-dev, libpam0g-dev | libpam-dev, libgnomeui-dev (>= 2.0.0) | libgnome-dev, groff, debhelper (>=1.1.17), sharutils, libopensc1-dev
 Standards-Version: 3.6.1
 Uploaders: Colin Watson <cjwatson@debian.org>
 
diff -u openssh-3.8.1p1/debian/rules openssh-3.8.1p1/debian/rules
--- openssh-3.8.1p1/debian/rules
+++ openssh-3.8.1p1/debian/rules
@@ -58,7 +58,7 @@
 build-deb-stamp:
 	dh_testdir
 	mkdir -p build-deb
-	cd build-deb && $(FORCE_LIBS) ../configure --prefix=/usr --sysconfdir=/etc/ssh --libexecdir=/usr/lib --mandir=/usr/share/man --with-tcp-wrappers --with-xauth=/usr/bin/X11/xauth --with-default-path=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin --with-superuser-path=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin --with-pam --with-4in6 --with-privsep-path=/var/run/sshd  --without-rand-helper
+	cd build-deb && $(FORCE_LIBS) ../configure --prefix=/usr --sysconfdir=/etc/ssh --libexecdir=/usr/lib --mandir=/usr/share/man --with-tcp-wrappers --with-xauth=/usr/bin/X11/xauth --with-default-path=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin --with-superuser-path=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin --with-pam --with-4in6 --with-privsep-path=/var/run/sshd  --without-rand-helper --with-opensc
 
 	# Some 2.2 kernels have trouble with setres[ug]id() (bug #239999).
 	perl -pi -e 's/.*#undef (BROKEN_SETRES[UG]ID).*/#define $$1 1/' build-deb/config.h
