3f84565d62
* rfc2045/rfc2045reply.c (mkreply): Fix copying of the contents of the original message. * rfc2045/reformime.c (do_print_info): rfc2231_udecodeDisposition() failure is not fatal. * rfc2045/reformime.c (get_suitable_filename): Ditto. * rfc2045/reformime.c (main2): Fixed segfault on some arches from an initial null given to strtok. * mailbot: add "feedback" and "replyfeedback" formats, generating RFC 5965-formatted feedback report. -a option attaches the entire original message, instead of only its headers, for "replydsn", "feedback", and "replyfeedback" formats. * rfc2045/reformime.c (main2): On ia64 and arm, argv is in readonly memory.
74 lines
2.5 KiB
Makefile
74 lines
2.5 KiB
Makefile
# $NetBSD: Makefile,v 1.56 2012/06/09 11:50:20 adam Exp $
|
|
|
|
DISTNAME= maildrop-2.5.5
|
|
CATEGORIES= security
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=courier/}
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
COMMENT= Courier mail delivery agent with filtering abilities
|
|
HOMEPAGE= http://www.courier-mta.org/maildrop/
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
DEPENDS+= courier-maildir>=${COURIER_VERSION}:../../mail/courier-maildir
|
|
|
|
USE_TOOLS+= gmake perl
|
|
USE_TOOLS+= cat:run # used by makedat(1)
|
|
USE_LANGUAGES= c c++
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.maildrop
|
|
PKG_SUPPORTED_OPTIONS= authlib
|
|
PKG_SUGGESTED_OPTIONS= authlib
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
.include "../../mail/courier-mta/Makefile.common"
|
|
|
|
# These are the users that may invoke maildrop with the "-d user"
|
|
# argument (mailbox delivery mode).
|
|
MAILDROP_TRUSTED_USERS?= ${REAL_ROOT_USER} ${COURIER_USER} qmaild
|
|
|
|
CONFIGURE_ARGS+= --datadir=${DATADIR}
|
|
CONFIGURE_ARGS+= --libexecdir=${LIBEXECDIR}
|
|
CONFIGURE_ARGS+= --with-etcdir=${PKG_SYSCONFDIR}
|
|
CONFIGURE_ARGS+= --with-makedatprog=${LIBEXECDIR}/makedatprog
|
|
CONFIGURE_ARGS+= --enable-maildirquota
|
|
CONFIGURE_ARGS+= --enable-maildrop-uid=${REAL_ROOT_USER}
|
|
CONFIGURE_ARGS+= --enable-maildrop-gid=${COURIER_GROUP}
|
|
CONFIGURE_ARGS+= --enable-trusted-users=${MAILDROP_TRUSTED_USERS:Q}
|
|
CONFIGURE_ARGS+= --enable-trusted-groups=${COURIER_GROUP}
|
|
CONFIGURE_ARGS+= --enable-syslog=1
|
|
|
|
###
|
|
### Support using courier-authlib to look up mail account information.
|
|
###
|
|
.if !empty(PKG_OPTIONS:Mauthlib)
|
|
CONFIGURE_ARGS+= --enable-authlib
|
|
. include "../../security/courier-authlib/buildlink3.mk"
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-authlib
|
|
.endif
|
|
|
|
INSTALL_AM_MAKEFLAGS+= htmldir=${DOCDIR:Q}
|
|
INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} AM_MAKEFLAGS=${INSTALL_AM_MAKEFLAGS:Q}
|
|
|
|
REQD_DIRS= ${DATADIR} ${DOCDIR} ${LIBEXECDIR}
|
|
|
|
# Note special permissions for some binaries. These are set to match
|
|
# the defaults from a courier-mta installation.
|
|
#
|
|
SPECIAL_PERMS= bin/lockmail ${REAL_ROOT_USER} ${COURIER_GROUP} 755
|
|
SPECIAL_PERMS+= bin/maildrop ${REAL_ROOT_USER} ${COURIER_GROUP} 4555
|
|
|
|
.include "../../devel/sysexits/buildlink3.mk"
|
|
|
|
INSTALLATION_DIRS= libexec/courier ${DOCDIR}/maildrop share/courier
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/README.postfix ${DESTDIR}${DOCDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/maildrop/maildroptips.html ${DESTDIR}${DOCDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/maildrop/README.html ${DESTDIR}${DOCDIR}/maildrop
|
|
${INSTALL_DATA} ${WRKSRC}/maildrop/makedat.html ${DESTDIR}${DOCDIR}
|
|
${INSTALL_MAN} ${WRKSRC}/maildrop/makedat.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|