1998-12-24 08:27:15 +01:00
|
|
|
# New ports collection makefile for: maildrop
|
|
|
|
# Date created: 16 November 1998
|
|
|
|
# Whom: Tom Hukins <tom@eborcom.com>
|
|
|
|
#
|
1999-08-25 08:51:17 +02:00
|
|
|
# $FreeBSD$
|
1998-12-24 08:27:15 +01:00
|
|
|
#
|
|
|
|
|
2003-03-27 04:45:21 +01:00
|
|
|
# The following compile-time options are available:
|
|
|
|
# WITHOUT_GDBM=yes Disable building maildrop gdbm extensions.
|
|
|
|
# (default: enabled)
|
|
|
|
# WITH_MAILDIRQUOTA=yes Enable optional support for maildir quotas
|
|
|
|
# (default: disabled)
|
|
|
|
# MAILDROP_SUID=<uid>,
|
|
|
|
# MAILDROP_SGID=<gid> Maildrop will be installed with suid permissions for
|
|
|
|
# MAILDROP_SUID, and sgid permissions for MAILDROP_SGID.
|
|
|
|
# If undefined, these values default to "root" and "mail"
|
|
|
|
# respectively, which should be suitable for most
|
|
|
|
# systems.
|
|
|
|
|
2000-04-13 22:01:08 +02:00
|
|
|
PORTNAME= maildrop
|
2003-03-27 04:45:21 +01:00
|
|
|
PORTVERSION= 1.5.2
|
1998-12-24 08:27:15 +01:00
|
|
|
CATEGORIES= mail
|
2001-02-21 22:39:34 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2001-07-04 08:35:56 +02:00
|
|
|
MASTER_SITE_SUBDIR= courier
|
1998-12-24 08:27:15 +01:00
|
|
|
|
2001-08-23 01:07:23 +02:00
|
|
|
MAINTAINER= petef@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Replacement local mail delivery agent, similar to procmail
|
1998-12-24 08:27:15 +01:00
|
|
|
|
2001-07-04 08:35:56 +02:00
|
|
|
.if !defined(WITHOUT_GDBM)
|
2003-01-03 09:26:35 +01:00
|
|
|
LIB_DEPENDS= gdbm.3:${PORTSDIR}/databases/gdbm
|
2003-03-27 04:45:21 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-db
|
1999-03-15 02:32:32 +01:00
|
|
|
.endif
|
|
|
|
|
2003-03-27 04:45:21 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_PERL5_BUILD=yes
|
|
|
|
USE_PERL5_RUN= yes
|
1998-12-24 08:27:15 +01:00
|
|
|
|
2003-03-27 04:45:21 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${CPPFLAGS}" \
|
|
|
|
LIBS="-L${LOCALBASE}/lib"
|
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2001-07-04 08:35:56 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-syslog=1 \
|
2001-05-23 19:04:52 +02:00
|
|
|
--enable-use-flock \
|
1999-03-15 02:32:32 +01:00
|
|
|
--with-etcdir="${PREFIX}/etc" \
|
1998-12-24 08:27:15 +01:00
|
|
|
--enable-maildrop-uid="${MAILDROP_SUID}" \
|
|
|
|
--enable-maildrop-gid="${MAILDROP_SGID}"
|
2003-03-27 04:45:21 +01:00
|
|
|
|
|
|
|
.if defined(WITH_MAILDIRQUOTA)
|
|
|
|
CONFIGURE_ARGS+= --enable-maildirquota
|
|
|
|
PLIST_SUB+= MAILDIRQUOTA=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= MAILDIRQUOTA="@comment "
|
2002-07-06 08:55:00 +02:00
|
|
|
.endif
|
1998-12-24 08:27:15 +01:00
|
|
|
|
2003-03-27 04:45:21 +01:00
|
|
|
MAILDROP_SUID?= root
|
|
|
|
MAILDROP_SGID?= mail
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
INSTALL_TARGET= install-strip
|
|
|
|
.else
|
2001-05-23 19:04:52 +02:00
|
|
|
# Just install the binary and man pages, no extra documentation
|
2001-02-21 22:39:34 +01:00
|
|
|
INSTALL_TARGET= install-maildrop install-man
|
2001-05-23 19:04:52 +02:00
|
|
|
.endif
|
|
|
|
|
2002-11-13 20:47:02 +01:00
|
|
|
MAN1= lockmail.1 mailbot.1 maildirmake.1 maildrop.1 makemime.1 \
|
2001-05-23 19:04:52 +02:00
|
|
|
reformail.1 reformime.1
|
2003-03-27 04:45:21 +01:00
|
|
|
MAN5= maildir.5 maildropex.5 maildropfilter.5 maildropgdbm.5
|
2002-02-04 04:03:09 +01:00
|
|
|
MAN7= maildirquota.7
|
|
|
|
MAN8= deliverquota.8
|
2003-03-27 04:45:21 +01:00
|
|
|
INSTALL_DOCS= INSTALL INSTALL.html README README.html README.postfix \
|
|
|
|
UPGRADE UPGRADE.html maildroptips.txt \
|
|
|
|
maildir/README.*.html maildir/README.*.txt
|
1998-12-24 08:27:15 +01:00
|
|
|
|
2003-03-27 04:45:21 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
post-install:
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${INSTALL_DOCS} ${DOCSDIR}
|
1999-03-15 02:32:32 +01:00
|
|
|
.endif
|
1998-12-24 08:27:15 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|