# $NetBSD: Makefile,v 1.10 2005/02/07 11:35:44 jlam Exp $ PKGNAME= courier-authmysql-${BASE_VERS} PKGREVISION= 1 COMMENT= Courier MySQL authentication module DEPENDS+= courier-auth-${BASE_VERS}{,nb*}:../../mail/courier-auth PKG_OPTION_VAR= PKG_OPTIONS.courier-authmysql .include "../courier-auth/Makefile.authdaemond" USE_PKGINSTALL= yes INSTALL_EXTRA_TMPL= ${.CURDIR}/../courier-auth/INSTALL CONFIGURE_ARGS+= --with-authmysql GEN_FILES= authmysqlrc FILES_SUBST+= GEN_FILES=${GEN_FILES:Q} CONF_FILES_PERMS= # empty .for FILE in ${GEN_FILES} CONF_FILES_PERMS+= ${EGDIR}/${FILE}.dist ${PKG_SYSCONFDIR}/${FILE} \ ${ROOT_USER} ${ROOT_GROUP} 0600 .endfor .include "../../mk/mysql.buildlink3.mk" do-install: ${INSTALL_PROGRAM_DIR} ${AUTHLIBDIR} ${INSTALL_PROGRAM} ${WRKSRC}/authlib/authdaemond.mysql ${AUTHLIBDIR} ${INSTALL_DATA_DIR} ${EGDIR} ${INSTALL_DATA} ${WRKSRC}/authlib/authmysqlrc ${EGDIR}/authmysqlrc.dist ${INSTALL_DATA_DIR} ${DOCDIR} ${INSTALL_DATA} ${WRKSRC}/authlib/README.authmysql.html ${DOCDIR} .include "../../mk/bsd.pkg.mk"