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/courier-authpgsql/Makefile | |
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/courier-authpgsql/Makefile')
-rw-r--r-- | mail/courier-authpgsql/Makefile | 41 |
1 files changed, 41 insertions, 0 deletions
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" |