mail/courier-imap-ldap - Courier IMAP LDAP authentication daemon

This package contains the Courier IMAP authenticiation daemon that can
authenticate against a list of mail accounts stored in an external LDAP
directory.
This commit is contained in:
jlam 2002-01-02 22:26:56 +00:00
parent bed67a7728
commit adbeb303a4
4 changed files with 59 additions and 0 deletions

View file

@ -0,0 +1,3 @@
This package contains the Courier IMAP authenticiation daemon that can
authenticate against a list of mail accounts stored in an external LDAP
directory.

View file

@ -0,0 +1,18 @@
# $NetBSD: INSTALL,v 1.1.1.1 2002/01/02 22:26:56 jlam Exp $
EGDIR=${PKG_PREFIX}/share/examples/courier
GEN_FILES="${GEN_FILES}"
case ${STAGE} in
POST-INSTALL)
eval set -- ${GEN_FILES}
for file
do
# Merge new config files with the old ones.
${CP} ${EGDIR}/${file}.dist @PKG_SYSCONFDIR@/${file}.dist
${PKG_PREFIX}/sbin/sysconftool @PKG_SYSCONFDIR@/${file}
${CHMOD} 0600 ${file}
${RM} -f @PKG_SYSCONFDIR@/${file}.dist
done
;;
esac

View file

@ -0,0 +1,32 @@
# $NetBSD: Makefile,v 1.1.1.1 2002/01/02 22:26:56 jlam Exp $
PKGNAME= courier-imap-ldap-${BASE_VERS}
PKGREVISION?= # empty
COMMENT= Courier IMAP LDAP authentication daemon
DEPENDS+= courier-imap>=${BASE_VERS}:../../mail/courier-imap
USE_BUILDLINK_ONLY= yes
.include "../../mail/courier-imap/Makefile.common"
CONFIGURE_ARGS+= --with-authldap
GEN_FILES= authldaprc
CONF_FILES_PERMS= # empty
.for FILE in ${GEN_FILES}
CONF_FILES_PERMS+= ${EGDIR}/${FILE}.dist ${PKG_SYSCONFDIR}/${FILE} \
${ROOT_USER} ${ROOT_GROUP} 0600
.endfor
INSTALL_EXTRA_TMPL= ${.CURDIR}/INSTALL
FILES_SUBST+= GEN_FILES=${GEN_FILES:Q}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/authlib/authdaemond.ldap ${AUTHLIBDIR}
${INSTALL_DATA} ${WRKSRC}/authlib/authldap.schema ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/authlib/authldaprc ${EGDIR}/authldaprc.dist
.include "../../databases/openldap/buildlink.mk"
.include "../../mk/bsd.pkg.install.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -0,0 +1,6 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2002/01/02 22:26:56 jlam Exp $
libexec/courier/authlib/authdaemond.ldap
share/examples/courier/authldap.schema
share/examples/courier/authldaprc.dist
@unexec ${RMDIR} -p %D/share/examples/courier 2>/dev/null || ${TRUE}
@unexec ${RMDIR} -p %D/libexec/courier 2>/dev/null || ${TRUE}