pkgsrc/mail/courier-authpgsql/Makefile
jlam 54f92a2785 Move dependency on courier-auth into the module Makefiles and use
Makefile.authdaemond to replace a lot of the complexity in
courier-auth/Makefile.
2002-01-27 23:47:08 +00:00

43 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.2 2002/01/27 23:47:09 jlam Exp $
PKGNAME= courier-authpgsql-${BASE_VERS}
PKGREVISION?= # empty
COMMENT= Courier PostgreSQL authentication module
DEPENDS+= courier-auth>=${BASE_VERS}:../../mail/courier-auth
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"