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:
|
2003-12-23 17:33:36 +01:00
|
|
|
# WITH_GDBM=yes Enable database extensions using GDBM (default: off)
|
|
|
|
# WITH_USERDB=yes Enable optional userdb authentication
|
2003-03-27 04:45:21 +01:00
|
|
|
# WITH_MAILDIRQUOTA=yes Enable optional support for maildir quotas
|
|
|
|
# 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"
|
2003-12-23 17:33:36 +01:00
|
|
|
# respectively, which should be suitable for most systems.
|
|
|
|
# NO_MAILWRAPPER=yes If defined, let configure guess which sendmail binary
|
2003-04-06 17:31:07 +02:00
|
|
|
# to use
|
2003-12-23 17:33:36 +01:00
|
|
|
# WITH_LDAP=yes Enable experimental virtual user LDAP support
|
|
|
|
# WITH_MYSQL=yes Enable experimental virtual user MySQL support
|
2003-03-27 04:45:21 +01:00
|
|
|
|
2000-04-13 22:01:08 +02:00
|
|
|
PORTNAME= maildrop
|
2003-12-23 17:33:36 +01:00
|
|
|
PORTVERSION= 1.6.3
|
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
|
|
|
|
2003-12-21 21:37:54 +01:00
|
|
|
MAINTAINER= sergei@FreeBSD.org
|
2003-12-23 17:33:36 +01:00
|
|
|
COMMENT= Mail delivery agent (MDA) with filtering abilities
|
1998-12-24 08:27:15 +01:00
|
|
|
|
2003-03-27 04:45:21 +01:00
|
|
|
USE_BZIP2= yes
|
2003-12-23 17:33:36 +01:00
|
|
|
USE_PERL5= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
|
|
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-12-23 17:33:36 +01:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2003-03-27 04:45:21 +01:00
|
|
|
|
2003-12-23 17:33:36 +01:00
|
|
|
.if defined(WITH_GDBM)
|
|
|
|
LIB_DEPENDS+= gdbm.3:${PORTSDIR}/databases/gdb
|
|
|
|
CONFIGURE_ARGS+= --with-db=gdbm
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-db
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_USERDB)
|
|
|
|
CONFIGURE_ARGS+= --enable-userdb
|
|
|
|
MAN1= makedat.1
|
|
|
|
MAN8= makeuserdb.8 userdb.8 userdbpw.8
|
|
|
|
MLINKS+= makeuserdb.8 pw2userdb.8 \
|
|
|
|
makeuserdb.8 vchkpw2userdb.8
|
|
|
|
EXTRA_TARGET+= install-userdb install-makedat
|
|
|
|
PLIST_SUB+= USERDB=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= USERDB="@comment "
|
2003-04-06 17:31:07 +02:00
|
|
|
.endif
|
|
|
|
|
2003-03-27 04:45:21 +01:00
|
|
|
.if defined(WITH_MAILDIRQUOTA)
|
|
|
|
CONFIGURE_ARGS+= --enable-maildirquota
|
2003-12-23 17:33:36 +01:00
|
|
|
EXTRA_TARGET+= install-deliverquota
|
2003-03-27 04:45:21 +01:00
|
|
|
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-12-23 17:33:36 +01:00
|
|
|
.if !defined(NO_MAILWRAPPER)
|
|
|
|
CONFIGURE_ARGS+= --enable-sendmail=/usr/sbin/sendmail
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if exists(${LOCALBASE}/lib/libfam.so.0)
|
|
|
|
LIB_DEPENDS+= fam.0:${PORTSDIR}/devel/fam
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_LDAP)
|
|
|
|
USE_OPENLDAP= yes
|
|
|
|
CONFIGURE_ARGS+= --enable-maildropldap \
|
|
|
|
--with-ldapconfig=${PREFIX}/etc/maildropldap.config
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_MYSQL)
|
|
|
|
USE_MYSQL= yes
|
|
|
|
CONFIGURE_ARGS+= --enable-maildropmysql \
|
|
|
|
--with-mysqlconfig=${PREFIX}/etc/maildropmysql.config
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib/mysql
|
|
|
|
.endif
|
|
|
|
|
2003-03-27 04:45:21 +01:00
|
|
|
MAILDROP_SUID?= root
|
|
|
|
MAILDROP_SGID?= mail
|
|
|
|
|
2003-12-23 17:33:36 +01:00
|
|
|
.if defined(NOPORTDOCS)
|
2001-05-23 19:04:52 +02:00
|
|
|
# Just install the binary and man pages, no extra documentation
|
2003-12-23 17:33:36 +01:00
|
|
|
INSTALL_TARGET= install-maildrop install-man ${EXTRA_TARGET}
|
|
|
|
.else
|
|
|
|
INSTALL_TARGET= install-strip
|
2001-05-23 19:04:52 +02:00
|
|
|
.endif
|
|
|
|
|
2003-12-23 17:33:36 +01:00
|
|
|
MAN1+= lockmail.1 mailbot.1 maildirmake.1 maildrop.1 makemime.1 \
|
|
|
|
reformail.1 reformime.1
|
|
|
|
MAN5= maildir.5 maildropex.5 maildropfilter.5 maildropgdbm.5
|
|
|
|
MAN7= maildirquota.7
|
|
|
|
MAN8+= deliverquota.8
|
|
|
|
DOCS= AUTHORS INSTALL INSTALL.html README README.html README.postfix \
|
|
|
|
UPGRADE UPGRADE.html maildroptips.txt maildir/README.*
|
1998-12-24 08:27:15 +01:00
|
|
|
|
2003-03-27 04:45:21 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
post-install:
|
2003-12-21 21:37:54 +01:00
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
|
1999-03-15 02:32:32 +01:00
|
|
|
.endif
|
1998-12-24 08:27:15 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|