summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharl Botha <cpbotha@cpbotha.net>2002-05-14 15:58:53 +0000
committerCharl Botha <cpbotha@cpbotha.net>2002-05-14 15:58:53 +0000
commitbfe9eeea11251c883259fafc80f1bab7505a43a7 (patch)
tree6f1719911e8fc013d5652a93b385bd0695ca1593
parent783592339fa45b38c3f2ea81b7d73c43ac19315c (diff)
downloadlibpam-pwdfile-bfe9eeea11251c883259fafc80f1bab7505a43a7.tar.gz
Added contributed files.
-rw-r--r--changelog5
-rw-r--r--contrib/Makefile.standalone26
-rw-r--r--contrib/README.txt6
-rw-r--r--contrib/pam-pwdfile.spec44
4 files changed, 80 insertions, 1 deletions
diff --git a/changelog b/changelog
index 8b08a5c..8309811 100644
--- a/changelog
+++ b/changelog
@@ -1,7 +1,10 @@
changelog for pam_pwdfile PAM module - Charl P. Botha <cpbotha@ieee.org>
-$Id: changelog,v 1.13 2002-05-11 14:47:06 cpbotha Exp $
+$Id: changelog,v 1.14 2002-05-14 15:58:51 cpbotha Exp $
---------------------------------------------------------------------------
+* added contrib directory with spec file and Makefile by Jason F. McBrayer
+ <jason@xeran.com>.
+
0.97 : Sat May 11 16:40:19 CEST 2002
* added md5.h, md5.c, md5_crypt.c and bigcrypt.c from the pam_unix.c module.
diff --git a/contrib/Makefile.standalone b/contrib/Makefile.standalone
new file mode 100644
index 0000000..136f04a
--- /dev/null
+++ b/contrib/Makefile.standalone
@@ -0,0 +1,26 @@
+PAM_LIB_DIR = /lib/security
+CC = gcc
+LD = ld
+INSTALL = /usr/bin/install
+CFLAGS = -fPIC -O2 -c -g -Wall -Wformat-security
+LDFLAGS = -x --shared
+PAMLIB = -lpam
+CRYPTLIB = -lcrypt
+
+all: pam_pwdfile.so
+
+pam_pwdfile.so: pam_pwdfile.o
+ $(LD) $(LDFLAGS) -o pam_pwdfile.so pam_pwdfile.o $(PAMLIB) $(CRYPTLIB)
+
+pam_pwdfile.o: pam_pwdfile.c
+ $(CC) $(CFLAGS) pam_pwdfile.c
+
+install: pam_pwdfile.so
+ $(INSTALL) -m 0755 -d $(PAM_LIB_DIR)
+ $(INSTALL) -m 0755 pam_pwdfile.so $(PAM_LIB_DIR)
+
+clean:
+ rm -f pam_pwdfile.o pam_pwdfile.so
+
+spotless:
+ rm -f pam_pwdfile.so pam_pwdfile.o *~ core
diff --git a/contrib/README.txt b/contrib/README.txt
new file mode 100644
index 0000000..1ae686e
--- /dev/null
+++ b/contrib/README.txt
@@ -0,0 +1,6 @@
+$Id: README.txt,v 1.1 2002-05-14 15:58:53 cpbotha Exp $
+
+* Makefile.standalone and pam-pwdfile.spec were contributed by Jason F.
+ McBrayer <jason@xeran.com>. You can use these for building RPMs of
+ pam_pwdfile; you should also be able to use the Makefile to build
+ pam_pwdfile on other platforms _without_ the Linux-PAM hierarchy.
diff --git a/contrib/pam-pwdfile.spec b/contrib/pam-pwdfile.spec
new file mode 100644
index 0000000..cbcd88a
--- /dev/null
+++ b/contrib/pam-pwdfile.spec
@@ -0,0 +1,44 @@
+%define nam pam-pwdfile
+%define ver 0.95
+%define prefix /usr
+%define docdir %{prefix}/doc/%{nam}-%{ver}
+
+%define installer /usr/bin/install
+
+Summary: A PAM module that allows users to authenticate on htpasswd-type files separate from /etc/passwd.
+Name: pam-pwdfile
+Version: %{ver}
+Release: 1
+Copyright: LGPL
+Group: System Environment/Base
+Source0: %{nam}-%{ver}.tar.gz
+Source1: pam-pwdfile-Makefile.standalone
+URL: http://cpbotha.net/pam_pwdfile.html
+Distribution: Xeran Internal Packages
+Vendor: Xeran Technologies
+Packager: Jason F. McBrayer <jason@xeran.com>
+BuildRoot: /var/tmp/%{nam}-%{ver}-root
+BuildPrereq: pam
+Requires: pam
+
+%description
+This pam module can be used for the authentication service only, in cases
+where one wants to use a different set of passwords than those in the main
+system password database. E.g. in our case we have an imap server running,
+and prefer to keep the imap passwords different from the system passwords
+for security reasons.
+
+%prep
+%setup
+cp $RPM_SOURCE_DIR/pam-pwdfile-Makefile.standalone $RPM_BUILD_DIR/%{nam}-%{ver}/Makefile.standalone
+
+%build
+make -f Makefile.standalone
+
+%install
+make -f Makefile.standalone PAM_LIB_DIR="$RPM_BUILD_ROOT/lib/security" install
+
+%files
+%attr(0755, root, root) /lib/security/pam_pwdfile.so
+%attr(-, root, root) %doc README
+%attr(-, root, root) %doc changelog