summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rw-r--r--contrib/Makefile.standalone26
-rw-r--r--contrib/README.txt6
-rw-r--r--contrib/pam-pwdfile.spec44
3 files changed, 76 insertions, 0 deletions
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