diff options
author | jlam <jlam> | 2002-01-27 22:39:56 +0000 |
---|---|---|
committer | jlam <jlam> | 2002-01-27 22:39:56 +0000 |
commit | 15c28c7e40a4fdc87091b73368293e2c7e8b541e (patch) | |
tree | c7eb28332c70a49bf77a92332efa2178039e6570 /mail | |
parent | f519d0660a555dcbeb25bbf8021e444593c39c2f (diff) | |
download | pkgsrc-15c28c7e40a4fdc87091b73368293e2c7e8b541e.tar.gz |
Initial import of mail/courier-authpgsql, which contains the Courier
authentication module that can authenticate against a list of mail accounts
stored in a PostgreSQL database.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/courier-authpgsql/DESCR | 3 | ||||
-rw-r--r-- | mail/courier-authpgsql/MESSAGE | 12 | ||||
-rw-r--r-- | mail/courier-authpgsql/Makefile | 41 | ||||
-rw-r--r-- | mail/courier-authpgsql/PLIST | 5 |
4 files changed, 61 insertions, 0 deletions
diff --git a/mail/courier-authpgsql/DESCR b/mail/courier-authpgsql/DESCR new file mode 100644 index 00000000000..88c7f712d77 --- /dev/null +++ b/mail/courier-authpgsql/DESCR @@ -0,0 +1,3 @@ +This package contains the Courier authenticiation module that can +authenticate against a list of mail accounts stored in a PostgreSQL +database. diff --git a/mail/courier-authpgsql/MESSAGE b/mail/courier-authpgsql/MESSAGE new file mode 100644 index 00000000000..400edc44099 --- /dev/null +++ b/mail/courier-authpgsql/MESSAGE @@ -0,0 +1,12 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2002/01/27 22:39:56 jlam Exp $ + +To use ${PKGNAME}, you will need to make the following +changes to ${PKG_SYSCONFDIR}/authdaemonrc: + + 1) Add "authpgsql" to the lists of available authentication modules + in "authmodulelist" and "authmodulelistorig", and + + 2) Set version="authdaemond.pgsql" to start the correct authentication + daemon. +=========================================================================== diff --git a/mail/courier-authpgsql/Makefile b/mail/courier-authpgsql/Makefile new file mode 100644 index 00000000000..115792965e9 --- /dev/null +++ b/mail/courier-authpgsql/Makefile @@ -0,0 +1,41 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/01/27 22:39:56 jlam Exp $ + +PKGNAME= courier-authpgsql-${BASE_VERS} +PKGREVISION?= # empty +COMMENT= Courier PostgreSQL authentication module + +USE_BUILDLINK_ONLY= yes + +.include "../../mail/courier-auth/Makefile.authdaemond" + +CONFIGURE_ARGS+= --with-authpgsql +CONFIGURE_ARGS+= --with-pgsql-includes=${BUILDLINK_DIR}/include/pgsql +CONFIGURE_ARGS+= --with-pgsql-libs=${BUILDLINK_DIR}/lib + +GEN_FILES= authpgsqlrc +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}/../../mail/courier-auth/INSTALL +FILES_SUBST+= GEN_FILES=${GEN_FILES:Q} + +post-build: + cd ${WRKSRC}/authlib; \ + ${SED} -e "s,mysql,pgsql,g" \ + -e "s,MYSQL,PGSQL,g" \ + -e "s,MySQL,PostgreSQL,g" \ + README.authmysql.html > README.authpgsql.html + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/authlib/authdaemond.pgsql ${AUTHLIBDIR} + ${INSTALL_DATA} ${WRKSRC}/authlib/authpgsqlrc ${EGDIR}/authpgsqlrc.dist + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/courier + ${INSTALL_DATA} ${WRKSRC}/authlib/README.authpgsql.html \ + ${PREFIX}/share/doc/html/courier + +.include "../../databases/postgresql-lib/buildlink.mk" +.include "../../mk/bsd.pkg.install.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/mail/courier-authpgsql/PLIST b/mail/courier-authpgsql/PLIST new file mode 100644 index 00000000000..fac669d62ba --- /dev/null +++ b/mail/courier-authpgsql/PLIST @@ -0,0 +1,5 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/01/27 22:39:56 jlam Exp $ +libexec/courier/authlib/authdaemond.pgsql +share/doc/html/courier/README.authpgsql.html +share/examples/courier/authpgsqlrc.dist +@unexec ${RMDIR} -p %D/share/doc/html/courier 2>/dev/null || ${TRUE} |