summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--security/openpam/DESCR19
-rw-r--r--security/openpam/Makefile32
-rw-r--r--security/openpam/PLIST56
-rw-r--r--security/openpam/distinfo6
-rw-r--r--security/openpam/patches/patch-aa12
-rw-r--r--security/openpam/patches/patch-ab22
6 files changed, 147 insertions, 0 deletions
diff --git a/security/openpam/DESCR b/security/openpam/DESCR
new file mode 100644
index 00000000000..4e15336e197
--- /dev/null
+++ b/security/openpam/DESCR
@@ -0,0 +1,19 @@
+OpenPAM is an open source PAM library that focuses on simplicity,
+correctness, and cleanliness.
+
+OpenPAM aims to gather the best features of Solaris PAM, XSSO and
+Linux-PAM, plus some innovations of its own. In areas where these
+implementations disagree, OpenPAM tries to remain compatible with
+Solaris, at the expense of XSSO conformance and Linux-PAM
+compatibility.
+
+These are some of OpenPAM's features:
+
+ - Implements the complete PAM API as described in the original PAM
+ paper and in OSF-RFC 86.0; this corresponds to the full XSSO API
+ except for mappings and secondary authentication. Also
+ implements some extensions found in Solaris 9.
+
+ - Extends the API with several useful and time-saving functions.
+
+ - Performs strict checking of return values from service modules.
diff --git a/security/openpam/Makefile b/security/openpam/Makefile
new file mode 100644
index 00000000000..51640169190
--- /dev/null
+++ b/security/openpam/Makefile
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/01/13 21:51:08 jlam Exp $
+
+DISTNAME= openpam-20040210
+CATEGORIES= security
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=openpam/}
+
+MAINTAINER= jlam@NetBSD.org
+HOMEPAGE= http://www.openpam.org/
+COMMENT= open-source PAM library
+
+CONFLICTS+= PAM-[0-9]*
+
+USE_BUILDLINK3= yes
+USE_LIBTOOL= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+= --without-pam-su
+CONFIGURE_ARGS+= --with-pam-unix
+CONFIGURE_ARGS+= --with-modules-dir=${PREFIX}/lib/security
+
+# Create a fake perl binary to avoid recreating the man pages.
+post-tools:
+ ${RM} -f ${TOOLS_DIR}/bin/perl
+ ${LN} -sf ${TRUE} ${TOOLS_DIR}/bin/perl
+
+# Remove a directory that's created for the sample su application that
+# we don't install.
+#
+post-install:
+ ${RMDIR} -p ${PREFIX}/bin 2>/dev/null || ${TRUE}
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/openpam/PLIST b/security/openpam/PLIST
new file mode 100644
index 00000000000..31d529f4198
--- /dev/null
+++ b/security/openpam/PLIST
@@ -0,0 +1,56 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/01/13 21:51:08 jlam Exp $
+include/security/openpam.h
+include/security/openpam_version.h
+include/security/pam_appl.h
+include/security/pam_constants.h
+include/security/pam_modules.h
+include/security/pam_types.h
+lib/libpam.la
+lib/security/pam_deny.la
+lib/security/pam_permit.la
+lib/security/pam_unix.la
+man/man3/openpam.3
+man/man3/openpam_borrow_cred.3
+man/man3/openpam_free_data.3
+man/man3/openpam_get_option.3
+man/man3/openpam_log.3
+man/man3/openpam_nullconv.3
+man/man3/openpam_readline.3
+man/man3/openpam_restore_cred.3
+man/man3/openpam_set_option.3
+man/man3/openpam_ttyconv.3
+man/man3/pam.3
+man/man3/pam_acct_mgmt.3
+man/man3/pam_authenticate.3
+man/man3/pam_chauthtok.3
+man/man3/pam_close_session.3
+man/man3/pam_conv.3
+man/man3/pam_end.3
+man/man3/pam_error.3
+man/man3/pam_get_authtok.3
+man/man3/pam_get_data.3
+man/man3/pam_get_item.3
+man/man3/pam_get_user.3
+man/man3/pam_getenv.3
+man/man3/pam_getenvlist.3
+man/man3/pam_info.3
+man/man3/pam_open_session.3
+man/man3/pam_prompt.3
+man/man3/pam_putenv.3
+man/man3/pam_set_data.3
+man/man3/pam_set_item.3
+man/man3/pam_setcred.3
+man/man3/pam_setenv.3
+man/man3/pam_sm_acct_mgmt.3
+man/man3/pam_sm_authenticate.3
+man/man3/pam_sm_chauthtok.3
+man/man3/pam_sm_close_session.3
+man/man3/pam_sm_open_session.3
+man/man3/pam_sm_setcred.3
+man/man3/pam_start.3
+man/man3/pam_strerror.3
+man/man3/pam_verror.3
+man/man3/pam_vinfo.3
+man/man3/pam_vprompt.3
+@dirrm lib/security
+@dirrm include/security
diff --git a/security/openpam/distinfo b/security/openpam/distinfo
new file mode 100644
index 00000000000..d59b4d47669
--- /dev/null
+++ b/security/openpam/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/01/13 21:51:08 jlam Exp $
+
+SHA1 (openpam-20040210.tar.gz) = 99967a06cba98736d8999bf31aec80592f4718b2
+Size (openpam-20040210.tar.gz) = 212523 bytes
+SHA1 (patch-aa) = a24f8ccd0da01358b4d1015fe54e21c4e78e659e
+SHA1 (patch-ab) = 9e5149c20b1ea0c0b937e7d90e5c6b609d5b4796
diff --git a/security/openpam/patches/patch-aa b/security/openpam/patches/patch-aa
new file mode 100644
index 00000000000..27330e98032
--- /dev/null
+++ b/security/openpam/patches/patch-aa
@@ -0,0 +1,12 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/01/13 21:51:08 jlam Exp $
+
+--- configure.orig 2004-02-09 18:00:00.000000000 -0500
++++ configure
+@@ -3213,6 +3213,7 @@ else
+ echo "${ECHO_T}no" >&6
+ fi;
+
++CPPFLAGS="$CPPFLAGS -DSYSCONFDIR=\\\"$sysconfdir\\\""
+
+ echo "$as_me:$LINENO: checking whether to build example version of /bin/su" >&5
+ echo $ECHO_N "checking whether to build example version of /bin/su... $ECHO_C" >&6
diff --git a/security/openpam/patches/patch-ab b/security/openpam/patches/patch-ab
new file mode 100644
index 00000000000..72828eca9e8
--- /dev/null
+++ b/security/openpam/patches/patch-ab
@@ -0,0 +1,22 @@
+$NetBSD: patch-ab,v 1.1.1.1 2005/01/13 21:51:08 jlam Exp $
+
+--- lib/openpam_configure.c.orig 2004-02-09 18:00:00.000000000 -0500
++++ lib/openpam_configure.c
+@@ -262,11 +262,13 @@ openpam_read_chain(pam_handle_t *pamh,
+ return (-1);
+ }
+
++#ifndef SYSCONFDIR
++#define SYSCONFDIR "/usr/local/etc"
++#endif
++
+ static const char *openpam_policy_path[] = {
+- "/etc/pam.d/",
+- "/etc/pam.conf",
+- "/usr/local/etc/pam.d/",
+- "/usr/local/etc/pam.conf",
++ SYSCONFDIR "/pam.d/",
++ SYSCONFDIR "/pam.conf",
+ NULL
+ };
+