pkgsrc/mail/dbmail/Makefile
obache 19f4ab8c1a Update DBMail to 2.2.10.
Changes since 2.2.9:
 * 0000676: PostgreSQL 8.3 compatibility (# 676)
 * 0000685: Duplicate key errors and other insertion problems ( #685, #686)
2008-05-06 01:49:20 +00:00

63 lines
2.1 KiB
Makefile

# $NetBSD: Makefile,v 1.19 2008/05/06 01:49:20 obache Exp $
#
DISTNAME= dbmail-2.2.10
CATEGORIES= mail
MASTER_SITES= http://www.dbmail.org/download/2.2/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.dbmail.org/
COMMENT= Store and retrieve mail messages in a database
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-logdir=${VARBASE}/log
CONFIGURE_ARGS+= --with-pkglibdir=${PREFIX}/lib/dbmail
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --localstatedir=${VARBASE}/run
USE_TOOLS+= gmake pkg-config
USE_LIBTOOL= yes
USE_PKGLOCALEDIR= yes
BUILD_DEFS+= VARBASE
PKG_DESTDIR_SUPPORT= user-destdir
EGDIR= ${PREFIX}/share/examples/dbmail
CONF_FILES= ${EGDIR}/dbmail.conf ${PKG_SYSCONFDIR}/dbmail.conf
RCD_SCRIPTS= dbmail dbmailimapd dbmaillmtpd dbmailpop3d
DATADIR= ${PREFIX}/share/dbmail
DOCSDIR= ${PREFIX}/share/doc/dbmail
DOCS= AUTHORS BUGS COPYING INSTALL NEWS README
DOCS+= README.aliases README.exim README.ldap
DOCS+= README.postfix README.qmail README.sieve
DOCS+= README.smtp README.solaris README.usermap
DOCS+= THANKS UPGRADING
MESSAGE_SUBST+= DOCSDIR=${DOCSDIR}
MESSAGE_SUBST+= DATADIR=${DATADIR}
SUBST_CLASSES+= sysconf
SUBST_STAGE.sysconf= do-configure
SUBST_FILES.sysconf= man/dbmail-imapd.8 man/dbmail-lmtpd.8 man/dbmail-pop3d.8
SUBST_FILES.sysconf+= man/dbmail-smtp.1 man/dbmail-users.8 man/dbmail-util.8
SUBST_FILES.sysconf+= man/dbmail.1 man/dbmail.conf.5 man/dbmail-export.8
SUBST_FILES.sysconf+= man/dbmail-sievecmd.8 mail/dbmail-timsieved.8
SUBST_SED.sysconf= -e 's|/etc/dbmail\.conf|${PKG_SYSCONFDIR}/dbmail.conf|g'
SUBST_MESSAGE.sysconf= Fixing sysconf paths.
INSTALLATION_DIRS= lib ${PKGMANDIR}/man1 ${PKGMANDIR}/man5 ${PKGMANDIR}/man8 sbin ${DOCSDIR} ${EGDIR} ${DATADIR}/sql
post-install:
${INSTALL_DATA} ${WRKSRC}/dbmail.conf ${DESTDIR}${EGDIR}
.for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${DOCSDIR}
.endfor
.include "options.mk"
.include "../../devel/glib2/buildlink3.mk"
BUILDLINK_API_DEPENDS.glib2+= glib2>=2.8.0
.include "../../mail/gmime/buildlink3.mk"
BUILDLINK_API_DEPENDS.gmime+= gmime>=2.1.19
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"