diff options
author | tonnerre <tonnerre> | 2009-02-15 13:21:52 +0000 |
---|---|---|
committer | tonnerre <tonnerre> | 2009-02-15 13:21:52 +0000 |
commit | 1cc16728c42184ca437fc66e7840e2780b3c7b98 (patch) | |
tree | 9b86c787636a4bb78fcec86d6490e3b715de0346 /security/pam-mkhomedir | |
parent | e028cb90b3917814785597ce1089676e141674ac (diff) | |
download | pkgsrc-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/Makefile | 46 | ||||
-rw-r--r-- | security/pam-mkhomedir/PLIST | 2 |
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 |