pkgsrc/mail/dbmail/Makefile

66 lines
2.2 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.28 2011/06/10 21:57:08 obache Exp $
2010-09-09 14:42:27 +02:00
DISTNAME= dbmail-2.2.17
PKGREVISION= 3
2010-09-09 14:42:27 +02:00
CATEGORIES= mail
MASTER_SITES= http://www.dbmail.org/download/2.2/
2010-09-09 14:42:27 +02:00
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.dbmail.org/
COMMENT= Store and retrieve mail messages in a database
LICENSE= gnu-gpl-v2
2010-09-09 14:42:27 +02:00
USE_TOOLS+= gmake pkg-config
USE_LIBTOOL= yes
USE_PKGLOCALEDIR= yes
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
BUILD_DEFS+= VARBASE
PKG_DESTDIR_SUPPORT= user-destdir
EGDIR= ${PREFIX}/share/examples/dbmail
CONF_FILES_PERMS+= ${EGDIR}/dbmail.conf ${PKG_SYSCONFDIR}/dbmail.conf \
${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0640
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
Update to 2.0.7. Bugs fixed, from the changelog: 2.0.2: * Bug 115: MAX_LINESIZE consistency. * Bug 119: Memory leak in dbmail-lmtpd. * Bug 131: Determine DBMail version (for now, only via command line -V). * Bug 132: dbmail-util had a few incorrect stdout/stderr messages. * Bug 135: Delivery chain fails to set is_header on header rows. * Bug 143: Sort.c compiles without CFLAGS. * Bug 142: Merge preforking with the 2.0 codebase. * Bug 118: dbmail-users -c username -W does not prompt for password on FreeBSD. WORKAROUND: Use -W "" (double quotes) to fool getopt and prompt for a password. * Bug 91: Infinite loops in both imapd and pop3d. 2.0.4: * Bug 163: dbmail-users -l nonexistantuser should return non-zero value * Bug 153: dbmail-util cannot remove unconnected mailboxes. * Bug 118: dbmail-users -c username -W does not prompt for password on FreeBSD. * Bug 131: determine dbmail version only shows major.minor, not micro. * Bug 159: alias bug: if user exists, auth_check_user is skipped. * Bug 149: Improved imap search performance using weighted search lists. * Bug 171: max() is indexable in mysql but not in postgresql causing extreme slowness * Bug 134: Some MySQL tweaks to be applied. * Bug 180: dbmail-user -e someuser does not clear the mailboxes * improved performance on postgresql when opening mailboxes (imapd) by avoiding SUM() calls. * Bug 177: compile fails on FreeBSDs getopt.h * Bug 164: No more mailbox full. Mail bounced with user unknown. * Bug 181: Error in SQL using SuSE Linux 9, max value for int8 is exceeded, PostgreSQL 8 + Postfix 2.0.5: * bug 177: compile fails on FreeBSDs getopt.h * bug 182: compile fails on FreeBSDs sort.c * bug 158: a sig term to the root process e.g. the pid from the pidfile doesn't shutdown imapd/pop3d * bug 154: dbmail-util outputing "-r" error when -r is no longer valid * bug 201: Unix socket support for lmtpd * bug 199: spare child creates zombie * bug 190: huge load if database crash * bug 145: LMTP loses return-path * bug 162: dbmail-pop3d zombies galore.. * bug 213: pop3d sends SIGKILL to init's process group * bug 185: segfault if user is over-quota in lmtp delivery * bug 189: if alias == deliver_to, dbmail-smtp hogs mem until killed by oom or queue gives up 2.0.6: * corrected reported version (closes #247) * fixes fatal error in process pool 2.0.7: * Removed all unsafe code from the signal handlers. This should mostly benefit FreeBSD users which may have suffered from unreliable behaviour in the process pool code. * Added 'ON UPDATE CASCADE' to all foreign key restraints in the MySQL (InnoDB) and Postgresql create_table files. * POP3 AUTH command no longer returns list of supported authentication mechanisms when issued without arguments.
2006-01-13 22:43:54 +01:00
post-install:
${INSTALL_DATA} ${WRKSRC}/dbmail.conf ${DESTDIR}${EGDIR}
.for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${DOCSDIR}
.endfor
.include "options.mk"
BUILDLINK_API_DEPENDS.glib2+= glib2>=2.8.0
.include "../../devel/glib2/buildlink3.mk"
BUILDLINK_API_DEPENDS.gmime+= gmime>=2.2.10
.include "../../mail/gmime/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"