2006-11-16 16:48:21 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.22 2006/11/16 21:48:21 mbalmer Exp $
|
2001-04-09 20:23:01 -04:00
|
|
|
|
2006-11-03 08:50:54 -05:00
|
|
|
COMMENT= "mail delivery agent with filtering abilities"
|
|
|
|
COMMENT-utils= "quota tools for the Courier mail suite"
|
import maildrop-1.2
This one has been pending for around two months because
it installs root suid files. The port strips these out
by default, and pkg/SECURITY has details on if they need
to be reenabled. qmail at least doesnt need it, others can
probably be configured to not.
(naddy@ and avsm@ discussed this)
--
maildrop is a replacement for your local mail delivery agent. It
reads a mail message from standard input, then delivers the message
to your mailbox. maildrop knows how to deliver mail to mbox-style
mailboxes, and maildirs.
maildrop will optionally read instructions from a file, which
describes how to filter incoming mail. Instructions can be provided
having mail delivered to alternate mailboxes, or forwarded somewhere
else. Unlike procmail, maildrop uses a structured filtering language.
maildrop is written in C++, and is significantly larger than procmail
in compiled form. However, it uses resources much more efficiently.
Unlike procmail, maildrop will not read a 10 megabyte mail message
into memory. Large messages are saved in a temporary file, and are
filtered from the temporary file.
2000-10-09 18:29:05 -04:00
|
|
|
|
2006-11-03 08:50:54 -05:00
|
|
|
DISTNAME= maildrop-2.0.2
|
2006-11-16 16:48:21 -05:00
|
|
|
PKGNAME= ${DISTNAME}p1
|
2006-11-03 08:50:54 -05:00
|
|
|
CATEGORIES= mail
|
import maildrop-1.2
This one has been pending for around two months because
it installs root suid files. The port strips these out
by default, and pkg/SECURITY has details on if they need
to be reenabled. qmail at least doesnt need it, others can
probably be configured to not.
(naddy@ and avsm@ discussed this)
--
maildrop is a replacement for your local mail delivery agent. It
reads a mail message from standard input, then delivers the message
to your mailbox. maildrop knows how to deliver mail to mbox-style
mailboxes, and maildirs.
maildrop will optionally read instructions from a file, which
describes how to filter incoming mail. Instructions can be provided
having mail delivered to alternate mailboxes, or forwarded somewhere
else. Unlike procmail, maildrop uses a structured filtering language.
maildrop is written in C++, and is significantly larger than procmail
in compiled form. However, it uses resources much more efficiently.
Unlike procmail, maildrop will not read a 10 megabyte mail message
into memory. Large messages are saved in a temporary file, and are
filtered from the temporary file.
2000-10-09 18:29:05 -04:00
|
|
|
|
2006-11-03 08:50:54 -05:00
|
|
|
HOMEPAGE= http://www.courier-mta.org/maildrop/
|
|
|
|
MAINTAINER= Marc Balmer <mbalmer@openbsd.org>
|
import maildrop-1.2
This one has been pending for around two months because
it installs root suid files. The port strips these out
by default, and pkg/SECURITY has details on if they need
to be reenabled. qmail at least doesnt need it, others can
probably be configured to not.
(naddy@ and avsm@ discussed this)
--
maildrop is a replacement for your local mail delivery agent. It
reads a mail message from standard input, then delivers the message
to your mailbox. maildrop knows how to deliver mail to mbox-style
mailboxes, and maildirs.
maildrop will optionally read instructions from a file, which
describes how to filter incoming mail. Instructions can be provided
having mail delivered to alternate mailboxes, or forwarded somewhere
else. Unlike procmail, maildrop uses a structured filtering language.
maildrop is written in C++, and is significantly larger than procmail
in compiled form. However, it uses resources much more efficiently.
Unlike procmail, maildrop will not read a 10 megabyte mail message
into memory. Large messages are saved in a temporary file, and are
filtered from the temporary file.
2000-10-09 18:29:05 -04:00
|
|
|
|
2006-11-03 08:50:54 -05:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=courier/}
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2003-03-31 08:43:17 -05:00
|
|
|
|
2006-11-03 08:50:54 -05:00
|
|
|
FLAVORS= postfix
|
2004-12-06 18:06:01 -05:00
|
|
|
FLAVOR?=
|
|
|
|
|
2006-11-03 08:50:54 -05:00
|
|
|
MULTI_PACKAGES= -utils
|
2003-03-31 08:43:17 -05:00
|
|
|
SUBPACKAGE?=
|
|
|
|
|
2006-11-03 10:15:02 -05:00
|
|
|
FULLPKGNAME-utils= ${DISTNAME:S/maildrop/courier-utils/}p0
|
import maildrop-1.2
This one has been pending for around two months because
it installs root suid files. The port strips these out
by default, and pkg/SECURITY has details on if they need
to be reenabled. qmail at least doesnt need it, others can
probably be configured to not.
(naddy@ and avsm@ discussed this)
--
maildrop is a replacement for your local mail delivery agent. It
reads a mail message from standard input, then delivers the message
to your mailbox. maildrop knows how to deliver mail to mbox-style
mailboxes, and maildirs.
maildrop will optionally read instructions from a file, which
describes how to filter incoming mail. Instructions can be provided
having mail delivered to alternate mailboxes, or forwarded somewhere
else. Unlike procmail, maildrop uses a structured filtering language.
maildrop is written in C++, and is significantly larger than procmail
in compiled form. However, it uses resources much more efficiently.
Unlike procmail, maildrop will not read a 10 megabyte mail message
into memory. Large messages are saved in a temporary file, and are
filtered from the temporary file.
2000-10-09 18:29:05 -04:00
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
CONFIGURE_STYLE= gnu
|
2006-11-03 08:50:54 -05:00
|
|
|
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
CPPFLAGS="${CFLAGS:C/ *$//} -I${LOCALBASE}/include"
|
2003-03-31 08:43:17 -05:00
|
|
|
MAKE_ENV= INCLUDES="-I${LOCALBASE}/include"
|
2004-12-06 18:06:01 -05:00
|
|
|
|
2006-11-03 08:50:54 -05:00
|
|
|
SUBST_VARS= MAILDROPCONF
|
|
|
|
|
|
|
|
CONFIGURE_ARGS= --sysconfdir=${SYSCONFDIR}/courier \
|
|
|
|
--with-etcdir=${SYSCONFDIR}/courier \
|
|
|
|
--datadir=${PREFIX}/share/doc \
|
|
|
|
--enable-static \
|
|
|
|
--with-db=gdbm \
|
|
|
|
--enable-maildrop-gid=_courier \
|
|
|
|
--enable-maildrop-uid=_courier \
|
|
|
|
--enable-syslog=1 \
|
|
|
|
--enable-restrict-trusted=1 \
|
|
|
|
--enable-keep-fromline=1 \
|
|
|
|
--enable-use-flock=1 \
|
|
|
|
--enable-use-dotlock=1 \
|
|
|
|
--enable-authlib \
|
|
|
|
--with-dirsync \
|
|
|
|
--enable-maildirquota \
|
|
|
|
--with-default-maildrop="./Maildir"
|
|
|
|
|
|
|
|
DOCFILES= ${WRKSRC}/README \
|
|
|
|
${WRKSRC}/INSTALL \
|
|
|
|
${WRKSRC}/UPGRADE \
|
|
|
|
${WRKSRC}/README.postfix \
|
|
|
|
${WRKSRC}/maildroptips.txt \
|
|
|
|
${WRKSRC}/maildir/README.sharedfolders.txt \
|
|
|
|
${WRKSRC}/maildir/README.maildirquota.txt \
|
|
|
|
${WRKSRC}/maildir/quotawarnmsg
|
|
|
|
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mpostfix}
|
|
|
|
CONFIGURE_ARGS+= --enable-sendmail=/usr/local/sbin/sendmail
|
|
|
|
CONFIGURE_ARGS+= --enable-trusted-users="root _courier _postfix"
|
|
|
|
CONFIGURE_ARGS+= --enable-trusted-groups="wheel _courier _postdrop"
|
|
|
|
RUN_DEPENDS= ::mail/postfix/stable
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-sendmail=/usr/sbin/sendmail
|
|
|
|
CONFIGURE_ARGS+= --enable-trusted-users="root _courier"
|
|
|
|
CONFIGURE_ARGS+= --enable-trusted-groups="wheel _courier"
|
2005-01-02 05:44:03 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(PACKAGING) && $(SUBPACKAGE) == "-utils"
|
2006-11-03 08:50:54 -05:00
|
|
|
LIB_DEPENS=
|
2005-01-02 05:44:03 -05:00
|
|
|
WANTLIB+= c
|
|
|
|
.else
|
2006-11-03 08:50:54 -05:00
|
|
|
WANTLIB+= c gdbm m stdc++
|
|
|
|
LIB_DEPENDS+= gdbm.>=3::databases/gdbm \
|
|
|
|
pcre.>=1::devel/pcre \
|
|
|
|
courierauth::mail/courier-authlib
|
2004-12-06 18:06:01 -05:00
|
|
|
.endif
|
|
|
|
|
import maildrop-1.2
This one has been pending for around two months because
it installs root suid files. The port strips these out
by default, and pkg/SECURITY has details on if they need
to be reenabled. qmail at least doesnt need it, others can
probably be configured to not.
(naddy@ and avsm@ discussed this)
--
maildrop is a replacement for your local mail delivery agent. It
reads a mail message from standard input, then delivers the message
to your mailbox. maildrop knows how to deliver mail to mbox-style
mailboxes, and maildirs.
maildrop will optionally read instructions from a file, which
describes how to filter incoming mail. Instructions can be provided
having mail delivered to alternate mailboxes, or forwarded somewhere
else. Unlike procmail, maildrop uses a structured filtering language.
maildrop is written in C++, and is significantly larger than procmail
in compiled form. However, it uses resources much more efficiently.
Unlike procmail, maildrop will not read a 10 megabyte mail message
into memory. Large messages are saved in a temporary file, and are
filtered from the temporary file.
2000-10-09 18:29:05 -04:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/maildrop
|
2006-11-03 08:50:54 -05:00
|
|
|
@for i in ${DOCFILES}; do \
|
|
|
|
if [ -f $$i ]; then \
|
|
|
|
${INSTALL_DATA} $$i ${PREFIX}/share/doc/maildrop ;\
|
|
|
|
fi \
|
|
|
|
done
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/unicode/README \
|
|
|
|
${PREFIX}/share/doc/maildrop/README.unicode.txt
|
|
|
|
@sed -e s#!!PREFIX!!#${TRUEPREFIX}#g ${FILESDIR}/SECURITY > \
|
|
|
|
${WRKBUILD}/SECURITY
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/SECURITY \
|
|
|
|
${PREFIX}/share/doc/maildrop/
|
import maildrop-1.2
This one has been pending for around two months because
it installs root suid files. The port strips these out
by default, and pkg/SECURITY has details on if they need
to be reenabled. qmail at least doesnt need it, others can
probably be configured to not.
(naddy@ and avsm@ discussed this)
--
maildrop is a replacement for your local mail delivery agent. It
reads a mail message from standard input, then delivers the message
to your mailbox. maildrop knows how to deliver mail to mbox-style
mailboxes, and maildirs.
maildrop will optionally read instructions from a file, which
describes how to filter incoming mail. Instructions can be provided
having mail delivered to alternate mailboxes, or forwarded somewhere
else. Unlike procmail, maildrop uses a structured filtering language.
maildrop is written in C++, and is significantly larger than procmail
in compiled form. However, it uses resources much more efficiently.
Unlike procmail, maildrop will not read a 10 megabyte mail message
into memory. Large messages are saved in a temporary file, and are
filtered from the temporary file.
2000-10-09 18:29:05 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|