From 1cc16728c42184ca437fc66e7840e2780b3c7b98 Mon Sep 17 00:00:00 2001 From: tonnerre Date: Sun, 15 Feb 2009 13:21:52 +0000 Subject: 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. --- security/pam-mkhomedir/Makefile | 46 +++++++++++++++++++++++++++++++++++++++++ security/pam-mkhomedir/PLIST | 2 ++ 2 files changed, 48 insertions(+) create mode 100644 security/pam-mkhomedir/Makefile create mode 100644 security/pam-mkhomedir/PLIST (limited to 'security/pam-mkhomedir') 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 -- cgit v1.2.3