--- otpw-1.3.orig/Makefile +++ otpw-1.3/Makefile @@ -27,7 +27,7 @@ otpw-l.o: otpw-l.c otpw.c otpw.h md.h conf.h pam_otpw.o: pam_otpw.c otpw.h md.h conf.h pam_otpw.so: pam_otpw.o otpw-l.o rmd160.o md.o - ld --shared -o $@ $+ -lcrypt -lpam -lpam_misc + $(CC) --shared -o $@ $+ -lcrypt -lpam -lpam_misc ship: all clean ci -sRel -l RCS/* --- otpw-1.3.orig/debian/compat +++ otpw-1.3/debian/compat @@ -0,0 +1 @@ +5 --- otpw-1.3.orig/debian/libpam-otpw.install +++ otpw-1.3/debian/libpam-otpw.install @@ -0,0 +1 @@ +/lib/security --- otpw-1.3.orig/debian/libotpw-dev.docs +++ otpw-1.3/debian/libotpw-dev.docs @@ -0,0 +1,2 @@ +otpw.html +README --- otpw-1.3.orig/debian/otpw-bin.install +++ otpw-1.3/debian/otpw-bin.install @@ -0,0 +1 @@ +/usr/bin --- otpw-1.3.orig/debian/otpw-bin.manpages +++ otpw-1.3/debian/otpw-bin.manpages @@ -0,0 +1 @@ +otpw-gen.1 --- otpw-1.3.orig/debian/libpam-otpw.manpages +++ otpw-1.3/debian/libpam-otpw.manpages @@ -0,0 +1 @@ +pam_otpw.8 --- otpw-1.3.orig/debian/rules +++ otpw-1.3/debian/rules @@ -0,0 +1,91 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +patch: patch-stamp +patch-stamp: + dpatch apply-all + dpatch cat-all >patch-stamp + +unpatch: + dpatch deapply-all + rm -rf patch-stamp debian/patched + +build: build-stamp +build-stamp: patch + dh_testdir + + # Add here commands to compile the package. + $(MAKE) CFLAGS="-fPIC -O -ggdb -W -Wall" otpw-gen pam_otpw.so + ar r libotpw.a md.o otpw-l.o pam_otpw.o rmd160.o + ranlib libotpw.a + + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) clean + rm -f libotpw.a + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp + mkdir -p debian/tmp + install -d debian/tmp/usr/bin + install otpw-gen debian/tmp/usr/bin + install -d debian/tmp/lib/security + install pam_otpw.so debian/tmp/lib/security + install -d debian/tmp/usr/include + install -m644 otpw.h debian/tmp/usr/include + install -d debian/tmp/usr/lib + install -m644 libotpw.a debian/tmp/usr/lib + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs CHANGES + dh_installdocs + dh_installman + dh_install --sourcedir=debian/tmp + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- otpw-1.3.orig/debian/libpam-otpw.docs +++ otpw-1.3/debian/libpam-otpw.docs @@ -0,0 +1,2 @@ +otpw.html +README --- otpw-1.3.orig/debian/otpw-bin.docs +++ otpw-1.3/debian/otpw-bin.docs @@ -0,0 +1,2 @@ +otpw.html +README --- otpw-1.3.orig/debian/control +++ otpw-1.3/debian/control @@ -0,0 +1,46 @@ +Source: otpw +Priority: optional +Maintainer: Matthew Johnson +Build-Depends: debhelper (>= 5), libpam-dev, dpatch +Standards-Version: 3.7.2 +Section: libs + +Package: libotpw-dev +Section: libdevel +Architecture: any +Depends: +Recommends: otpw-bin +Description: OTPW library development files and documentation + OTPW is a one-time password system which is robust against + the password list being stolen and race for the last digit + attacks. + . + This package contains the development files needed to write + programs using OTPW and the documentation of the OTPW system. + +Package: libpam-otpw +Section: libs +Architecture: any +Recommends: otpw-bin +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Use OTPW for PAM authentication + OTPW is a one-time password system which is robust against + the password list being stolen and race for the last digit + attacks. + . + This package contains the PAM library to use OTPW in any + program which uses PAM. + +Package: otpw-bin +Section: admin +Architecture: any +Suggests: libpam-otpw +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: OTPW programs for generating OTPW lists + OTPW is a one-time password system which is robust against + the password list being stolen and race for the last digit + attacks. + . + This package contains the programs used to setup OTPW for + a user and generate the password lists. + --- otpw-1.3.orig/debian/copyright +++ otpw-1.3/debian/copyright @@ -0,0 +1,66 @@ +This package was debianized by Matthew Johnson on +Tue, 13 Mar 2007 09:45:06 +0000. + +It was downloaded from http://www.cl.cam.ac.uk/~mgk25/download/otpw-1.3.tar.gz + +Upstream Author: Markus Kuhn + +Copyright: 1998--2003 Markus Kuhn (exceptions below). + +License: + +This program is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free Software +Foundation; either version 2 of the License, or (at your option) any later +version. + +This program is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A +PARTICULAR PURPOSE. See the GNU General Public License for more details. + +Full text of the licence can be found in /usr/share/common-licenses/GPL + +Upstream has confirmed that all the files distributed in the tarball are +licenced under the GPL. + +The files rmd160.c and rmd160.h are written by Antoon Bosselaers and Copyright +(c) Katholieke Universiteit Leuven 1996. Upstream has confirmed that he has +permission to distribute and use these also under the terms of the GNU GPL +version 2 or later as well: + + > To: Matthew Johnson + > Subject: Re: OTPW + > From: Markus Kuhn + > + > It says GPL on + > + > http://freshmeat.net/projects/otpw/ + > + > so must be true ... ;-) That was the intention anyway. I've also + > received permission from one of the rmd160 authors to include their + > code: + > + > Subject: Re: Using rmd160.[ch] + > From: Antoon Bosselaers + > Date: Fri, 23 Jan 1998 16:59:15 +0100 (MET) + > + > By the way, the lab actually uses + > + > http://www.cl.cam.ac.uk/~mgk25/download/otpw-snapshot.tar.gz + > + > instead of 1.3. Sadly I forgot what the difference was, but probably + > nothing critical (some special wish by Piete Brooks). Hope to have time + > one day to implement the long wishlist that has piled up in ~/w/otpw/ + > TODO and then finally release a 1.4. + > + > Markus + > + > -- + > Markus Kuhn, Computer Laboratory, University of Cambridge + > http://www.cl.cam.ac.uk/~mgk25/ || CB3 0FD, Great Britain + > + +The Debian packaging is (C) 2007, Matthew Johnson and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. + + --- otpw-1.3.orig/debian/changelog +++ otpw-1.3/debian/changelog @@ -0,0 +1,20 @@ +otpw (1.3-2ubuntu1) oneiric; urgency=low + + * Link with gcc instead of ld. LP: #247190, LP: #756078. + + -- Matthias Klose Wed, 14 Sep 2011 10:45:51 +0200 + +otpw (1.3-2) unstable; urgency=low + + * Update maintainer address + + -- Matthew Johnson Wed, 05 Dec 2007 10:26:26 +0000 + +otpw (1.3-1) unstable; urgency=low + + * Initial release (Closes: #414686) + * Patch pam_otpw.8 to be in section 8 + * Clarify licence + + -- Matthew Johnson Sun, 29 Jul 2007 11:27:43 +0100 + --- otpw-1.3.orig/debian/libotpw-dev.install +++ otpw-1.3/debian/libotpw-dev.install @@ -0,0 +1,2 @@ +/usr/lib +/usr/include --- otpw-1.3.orig/debian/watch +++ otpw-1.3/debian/watch @@ -0,0 +1,10 @@ +# Example watch control file for uscan +# Rename this file to "watch" and then you can run the "uscan" command +# to check for upstream updates and more. +# See uscan(1) for format + +# Compulsory line, this is a version 3 file +version=3 + +http://www.cl.cam.ac.uk/~mgk25/download/otpw-([\.0-9]*)\.tar\.gz + --- otpw-1.3.orig/debian/patches/01_pam_otpw_8.dpatch +++ otpw-1.3/debian/patches/01_pam_otpw_8.dpatch @@ -0,0 +1,16 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01_pam_otpw_8.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Patch the manpage to the correct section + +@DPATCH@ + +--- a/pam_otpw.8 2007-03-13 10:27:09.979243250 +0000 ++++ b/pam_otpw.8.orig 2007-03-13 10:27:02.262761000 +0000 +@@ -1,4 +1,4 @@ +-.TH PAMOTPW 1 "2003-09-30" ++.TH PAMOTPW 8 "2003-09-30" + .SH NAME + pam_otpw \- verify one-time passwords + .SH SYNOPSIS --- otpw-1.3.orig/debian/patches/00list +++ otpw-1.3/debian/patches/00list @@ -0,0 +1 @@ +01_pam_otpw_8