diff options
author | Greg Norris <adric@debian.org> | 2003-12-22 19:39:46 -0600 |
---|---|---|
committer | Timo Weingärtner <timo@tiwe.de> | 2012-11-08 08:21:18 +0100 |
commit | a5e39be83fdda78550b960b6099e48f60ac6305c (patch) | |
tree | 10a35c220d6f6969b9adba5840fbf1dd384339fd | |
parent | 39cc0d22f5c8950f98ecbce84f42e158619db561 (diff) | |
download | libpam-pwdfile-f17b61cd0794e813a1ed6f8b6d37fd38973e85f1.tar.gz |
Imported Debian patch 0.99-2debian/0.99-2
-rw-r--r-- | Makefile.Debian | 56 | ||||
-rw-r--r-- | debian/README.Debian | 16 | ||||
-rw-r--r-- | debian/changelog | 84 | ||||
-rw-r--r-- | debian/control | 14 | ||||
-rw-r--r-- | debian/copyright | 33 | ||||
-rw-r--r-- | debian/dirs | 1 | ||||
-rw-r--r-- | debian/docs | 2 | ||||
-rwxr-xr-x | debian/rules | 76 |
8 files changed, 282 insertions, 0 deletions
diff --git a/Makefile.Debian b/Makefile.Debian new file mode 100644 index 0000000..2b9e302 --- /dev/null +++ b/Makefile.Debian @@ -0,0 +1,56 @@ +# Modified Makefile to allow for building of the standalone module + +TITLE=pam_pwdfile + +CC = gcc +LD = ld +CFLAGS = -fPIC -c -g -Wall -Wformat-security +LDFLAGS = -x --shared +LDLIBS = -lcrypt -lpam -lpam_misc +LIBSRC = $(TITLE).c +LIBOBJ = $(TITLE).o md5_good.o md5_broken.o md5_crypt_good.o md5_crypt_broken.o bigcrypt.o +LIBSHARED = $(TITLE).so +PAM_LIB_DIR = $(DESTDIR)/lib/security +INSTALL = /usr/bin/install + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + + +all: $(LIBSHARED) + +md5_good.o: md5.c + $(CC) $(CFLAGS) $(CPPFLAGS) -DHIGHFIRST -D'MD5Name(x)=Good##x' \ + $(TARGET_ARCH) $< -o $@ + +md5_broken.o: md5.c + $(CC) $(CFLAGS) $(CPPFLAGS) -D'MD5Name(x)=Broken##x' \ + $(TARGET_ARCH) $< -o $@ + +md5_crypt_good.o: md5_crypt.c + $(CC) $(CFLAGS) $(CPPFLAGS) -D'MD5Name(x)=Good##x' \ + $(TARGET_ARCH) $< -o $@ + +md5_crypt_broken.o: md5_crypt.c + $(CC) $(CFLAGS) $(CPPFLAGS) -D'MD5Name(x)=Broken##x' \ + $(TARGET_ARCH) $< -o $@ + +$(LIBSHARED): $(LIBOBJ) + $(LD) $(LDFLAGS) -o $@ $(LIBOBJ) $(LDLIBS) + +install: $(LIBSHARED) + $(INSTALL) -m 0755 -d $(PAM_LIB_DIR) + $(INSTALL) -m 0644 pam_pwdfile.so $(PAM_LIB_DIR) + +clean: + rm -f $(LIBOBJS) $(LIBSHARED) core *~ + +extraclean: clean + rm -f *.a *.o *.so *.bak + +.c.o: + $(CC) $(CFLAGS) $< -o $@ + diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..be39559 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,16 @@ +libpam-pwdfile for Debian +------------------------- + +This module allows one to authenticate users using a passwd-like file. +Creating this file currently means either copying the relevant entries from +/etc/{passwd,shadow}, or using the chpwdfile utility (not yet packaged) from +http://eclipse.che.uct.ac.za/chpwdfile/. + +Below is an example of a working /etc/pam.d/* configuration... specifically, +this is copy of my /etc/pam.d/qpopper. Please note that the "account" entry +is required. + + auth required pam_pwdfile.so pwdfile /etc/qpopper/qpopper.pwd + account required pam_unix_acct.so + + -- Greg Norris <adric@debian.org>, Tue, 08 Jul 2003 18:57:16 -0500 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..c970a4d --- /dev/null +++ b/debian/changelog @@ -0,0 +1,84 @@ +libpam-pwdfile (0.99-2) unstable; urgency=low + + * Include contrib/warwick_duncan-cyrus_without_system_accounts.txt under + /usr/share/doc/libpam-pwdfile. + + -- Greg Norris <adric@debian.org> Mon, 22 Dec 2003 19:39:46 -0600 + +libpam-pwdfile (0.99-1) unstable; urgency=low + + * New upstream release. + + -- Greg Norris <adric@debian.org> Sat, 20 Dec 2003 14:36:09 -0600 + +libpam-pwdfile (0.98-4) unstable; urgency=low + + * Complete yesterday's pam_pwdfile.c update, in which I inadvertently omitted + a one-line change. + + -- Greg Norris <adric@debian.org> Sat, 20 Dec 2003 13:53:24 -0600 + +libpam-pwdfile (0.98-3) unstable; urgency=low + + * Updated pam_pwdfile.c to distinguish between crypt and bigcrypt passwords, + and handle them appropriately. The patch has been forwarded upstream, and + Charl has indicated that it will be incorporated into the next release. + (closes: 220770) + + -- Greg Norris <adric@debian.org> Fri, 19 Dec 2003 22:31:31 -0600 + +libpam-pwdfile (0.98-2) unstable; urgency=low + + * The previous upload failed because dpkg-buildpackage wanted to include + the source archive, but the existing file can't be overwritten. Bump the + revision number, and re-upload. + + -- Greg Norris <adric@debian.org> Tue, 8 Jul 2003 21:17:49 -0500 + +libpam-pwdfile (0.98-1) unstable; urgency=low + + * Hijack this package, as the previous maintainer appears to have been + unreachable for quite some time. Guess I should have done this in the + first place. ;-) + * Miscellaneous updates to packaging files. + + -- Greg Norris <adric@debian.org> Tue, 8 Jul 2003 18:10:15 -0500 + +libpam-pwdfile (0.98-0.2) unstable; urgency=low + + * NMU + * Build using -fPIC (closes: #200477) + + -- Greg Norris <adric@debian.org> Tue, 8 Jul 2003 10:21:52 -0500 + +libpam-pwdfile (0.98-0.1) unstable; urgency=low + + * NMU + * New upstream release. + * Updated to policy version 3.5.10 (no changes required), in order to make + lintian happy. + * Removed obsolete call to dh_suidregister from debian/rules. + + -- Greg Norris <adric@debian.org> Mon, 7 Jul 2003 20:20:12 -0500 + +libpam-pwdfile (0.6-2) unstable; urgency=low + + * Added debhelper to Build-Depends (Closes: Bug#77881). + + -- Michael-John Turner <mj@debian.org> Fri, 24 Nov 2000 21:41:43 +0200 + +libpam-pwdfile (0.6-1) unstable; urgency=low + + * New upstream. + + -- Michael-John Turner <mj@debian.org> Sat, 18 Nov 2000 21:24:03 +0200 + +libpam-pwdfile (0.1-1) unstable; urgency=low + + * Initial Release. + + -- Michael-John Turner <mj@debian.org> Tue, 7 Dec 1999 12:02:43 +0200 + +Local variables: +mode: debian-changelog +End: diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..30f0398 --- /dev/null +++ b/debian/control @@ -0,0 +1,14 @@ +Source: libpam-pwdfile +Section: admin +Priority: extra +Maintainer: Greg Norris <adric@debian.org> +Standards-Version: 3.5.10 +Build-Depends: debhelper, libpam0g-dev + +Package: libpam-pwdfile +Architecture: any +Depends: ${shlibs:Depends} +Description: PAM module allowing authentication via an /etc/passwd-like file + This PAM module lets you use an arbitrarily-named text file similar in + structure to /etc/passwd to authenticate users. Both DES and MD5 + hashed passwords are supported. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..331385f --- /dev/null +++ b/debian/copyright @@ -0,0 +1,33 @@ +This package was debianized by Michael-John Turner <mj@debian.org> on +Tue, 7 Dec 1999 12:02:43 +0200. It is currently packaged by +Greg Norris <adric@debian.org>. + +It was downloaded from http://cpbotha.net/pam_pwdfile.html + +Upstream Author: Charl P. Botha <cpbotha@ieee.org> + +Copyright: + Copyright (c) Charl P. Botha, 1999-2002. All rights reserved + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, and the entire permission notice in its entirety, + including the disclaimer of warranties. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. The name of the author may not be used to endorse or promote + products derived from this software without specific prior + written permission. + + ALTERNATIVELY, this product may be distributed under the terms of + the GNU Public License, in which case the provisions of the GPL are + required INSTEAD OF the above restrictions. (This clause is + necessary due to a potential bad interaction between the GPL and + the restrictions contained in a BSD-style copyright.) + +On Debian GNU systems, a copy of the GNU GPL can be found in +/usr/share/common-licenses/GPL + diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..d1f6515 --- /dev/null +++ b/debian/dirs @@ -0,0 +1 @@ +lib/security diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..5c130d3 --- /dev/null +++ b/debian/docs @@ -0,0 +1,2 @@ +README +contrib/warwick_duncan-cyrus_without_system_accounts.txt diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..57b4e85 --- /dev/null +++ b/debian/rules @@ -0,0 +1,76 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +export DH_COMPAT=1 + +export PACKAGE=pam_pwdfile + +build: build-stamp +build-stamp: + dh_testdir + + + # Add here commands to compile the package. + $(MAKE) -f Makefile.Debian + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + -$(MAKE) -f Makefile.Debian extraclean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) -f Makefile.Debian DESTDIR=$(CURDIR)/debian/tmp install + + touch install-stamp + +# 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_testversion + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs +# dh_installexamples +# dh_installmenu +# dh_installemacsen +# dh_installpam +# dh_installinit +# dh_installcron + dh_installmanpages +# dh_installinfo +# dh_undocumented + dh_installchangelogs changelog + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install |