summaryrefslogtreecommitdiff
path: root/security/pam-mkhomedir
diff options
context:
space:
mode:
authortonnerre <tonnerre>2009-02-15 13:21:52 +0000
committertonnerre <tonnerre>2009-02-15 13:21:52 +0000
commit1cc16728c42184ca437fc66e7840e2780b3c7b98 (patch)
tree9b86c787636a4bb78fcec86d6490e3b715de0346 /security/pam-mkhomedir
parente028cb90b3917814785597ce1089676e141674ac (diff)
downloadpkgsrc-1cc16728c42184ca437fc66e7840e2780b3c7b98.tar.gz
Initial import of the mkhomedir PAM module.
The pam_mkhomedir module provides the means for automatic creation of home directories upon login, if necessary. Key Benefits are: * Uses the Pluggable Authentication Module API defined in OSF DCE RFC 86.0. * Removes the need to pre-create user home directories. The software is distributed under the terms of the 2.5-clause BSD license.
Diffstat (limited to 'security/pam-mkhomedir')
-rw-r--r--security/pam-mkhomedir/Makefile46
-rw-r--r--security/pam-mkhomedir/PLIST2
2 files changed, 48 insertions, 0 deletions
diff --git a/security/pam-mkhomedir/Makefile b/security/pam-mkhomedir/Makefile
new file mode 100644
index 00000000000..ebb682c52e7
--- /dev/null
+++ b/security/pam-mkhomedir/Makefile
@@ -0,0 +1,46 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/02/15 13:21:52 tonnerre Exp $
+
+DISTNAME= pam-mkhomedir-1
+CATEGORIES= security
+MASTER_SITES= # empty
+DISTFILES= # empty
+
+MAINTAINER= tonnerre@NetBSD.org
+COMMENT= Pluggable authentication module for automatic homedir creation
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+INSTALLATION_DIRS= lib/security
+LDLIBS= -lpam
+
+USE_LIBTOOL= yes
+
+NO_FETCH= yes
+NO_CHECKSUM= yes
+WRKSRC= ${WRKDIR}
+
+do-extract:
+ ${CP} ${FILESDIR}/pam_mkhomedir.c ${WRKSRC}
+
+do-build:
+ cd ${WRKSRC} && ${SHLIBTOOL} --mode=compile ${CC} ${CFLAGS} \
+ -c pam_mkhomedir.c
+ cd ${WRKSRC} && ${SHLIBTOOL} --mode=link ${CC} ${LDFLAGS} \
+ -avoid-version -module ${LDLIBS} -o pam_mkhomedir.la \
+ -rpath ${PREFIX}/lib/security pam_mkhomedir.lo
+
+do-install:
+ ${SHLIBTOOL} --mode=install ${INSTALL_PROGRAM} -c \
+ ${WRKSRC}/pam_mkhomedir.la ${PREFIX}/lib/security
+
+# Fix (workaround?) a bug with openpam/NetBSD
+# The bug is described in PR security/39313.
+#
+.include "../../mk/bsd.prefs.mk"
+#
+.if ${OPSYS} == "NetBSD"
+CFLAGS+= -DNO_STATIC_MODULES
+.endif
+
+.include "../../mk/pam.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/pam-mkhomedir/PLIST b/security/pam-mkhomedir/PLIST
new file mode 100644
index 00000000000..2ce1c632818
--- /dev/null
+++ b/security/pam-mkhomedir/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2009/02/15 13:22:24 tonnerre Exp $
+lib/security/pam_mkhomedir.la