2000-09-21 09:01:40 -04:00
|
|
|
# New ports collection makefile for: vpopmail
|
|
|
|
# Date created: 21 Sep 2000
|
2000-09-22 07:39:14 -04:00
|
|
|
# Whom: Neil Blakey-Milner
|
2000-09-21 09:01:40 -04:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= vpopmail
|
2001-01-29 07:01:31 -05:00
|
|
|
PORTVERSION= 4.9.8
|
2001-01-29 10:18:28 -05:00
|
|
|
PORTREVISION= 1
|
2000-09-21 09:01:40 -04:00
|
|
|
CATEGORIES= mail
|
|
|
|
MASTER_SITES= http://www.inter7.com/vpopmail/
|
|
|
|
|
|
|
|
MAINTAINER= nbm@FreeBSD.org
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ${QMAIL_DIR}/bin/qmail-send:${PORTSDIR}/mail/qmail \
|
|
|
|
${LOCALBASE}/bin/tcprules:${PORTSDIR}/sysutils/ucspi-tcp
|
|
|
|
RUN_DEPENDS= ${QMAIL_DIR}/bin/qmail-send:${PORTSDIR}/mail/qmail \
|
|
|
|
${LOCALBASE}/bin/tcprules:${PORTSDIR}/sysutils/ucspi-tcp
|
|
|
|
|
|
|
|
GNU_CONFIGURE= YES
|
|
|
|
USE_GMAKE= YES
|
|
|
|
|
|
|
|
CONFIGURE_ARGS= --enable-qmail-dir=${QMAIL_DIR} \
|
|
|
|
--enable-tcprules-bin=${LOCALBASE}/bin/tcprules \
|
2000-09-22 07:39:14 -04:00
|
|
|
--enable-tcpserver-file=${PREFIX}/vpopmail/etc/tcp.smtp
|
2000-09-21 09:01:40 -04:00
|
|
|
|
|
|
|
#
|
2000-10-13 21:29:49 -04:00
|
|
|
# User-configurable variables
|
2000-09-21 09:01:40 -04:00
|
|
|
#
|
2000-10-13 21:29:49 -04:00
|
|
|
# Define these to change from the default behaviour
|
|
|
|
#
|
|
|
|
# WITH_PASSWD - allow authentication off /etc/passwd
|
2001-01-29 10:18:28 -05:00
|
|
|
# WITH_MYSQL - allow authentitation via mysql
|
2000-10-13 21:29:49 -04:00
|
|
|
# WITH_APOP - allow apop authentication
|
|
|
|
# WITHOUT_ROAMING - disallow roaming users
|
|
|
|
#
|
|
|
|
# Set these to the values you'd prefer
|
|
|
|
#
|
|
|
|
# HARDQUOTA - size of hard quota, or 'n' for no hard quota
|
|
|
|
# RELAYCLEAR - time in minutes before clearing relay hole (requires roaming)
|
2001-01-29 10:18:28 -05:00
|
|
|
# DEFAULT_DOMAIN - default domain for non-vhost lookups
|
2000-10-13 21:29:49 -04:00
|
|
|
# LOGLEVEL - n - no logging, y - log all,
|
|
|
|
# e - log errors, p - log passwords in errors
|
|
|
|
# APOPFILE - location of apop secrets file
|
|
|
|
# QMAIL_DIR - location of qmail directory
|
|
|
|
# PREFIX - installation area for vpopmail (see comment below)
|
|
|
|
#
|
|
|
|
|
|
|
|
HARDQUOTA?= 10000000
|
|
|
|
RELAYCLEAR?= 30
|
|
|
|
LOGLEVEL?= y
|
2001-03-01 08:05:47 -05:00
|
|
|
APOPFILE?= /usr/local/vpopmail/etc/apop-secrets
|
2000-09-21 09:01:40 -04:00
|
|
|
|
|
|
|
.if exists(${LOCALBASE}/qmail/bin/qmail-send)
|
2001-01-16 12:33:20 -05:00
|
|
|
QMAIL_DIR?= ${LOCALBASE}/qmail
|
2000-09-21 09:01:40 -04:00
|
|
|
.else
|
2001-01-16 12:33:20 -05:00
|
|
|
QMAIL_DIR?= /var/qmail
|
2000-09-21 09:01:40 -04:00
|
|
|
.endif
|
|
|
|
|
2000-10-13 21:29:49 -04:00
|
|
|
# Uncomment this, or set PREFIX to /home if you have an existing
|
|
|
|
# vpopmail install with the vpopmail users' home directory set to
|
|
|
|
# /home/vpopmail - package rules dictate we default to /usr/local/vpopmail
|
|
|
|
#
|
|
|
|
#PREFIX?= /home
|
|
|
|
|
|
|
|
# End of user-configurable variables
|
|
|
|
|
|
|
|
#
|
|
|
|
# Some suggestions from Gabriel Ambuehl <gabriel_ambuehl@buz.ch>
|
|
|
|
#
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --enable-hardquota=${HARDQUOTA} \
|
|
|
|
--enable-logging=${LOGLEVEL}
|
|
|
|
|
|
|
|
.if !defined(WITH_PASSWD)
|
|
|
|
CONFIGURE_ARGS+= --enable-passwd=n
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_APOP)
|
|
|
|
CONFIGURE_ARGS+= --enable-apop=y \
|
|
|
|
--enable-apop-file=${APOPFILE}
|
2001-03-01 08:05:47 -05:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-apop=n
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITH_SQWEBMAIL)
|
|
|
|
CONFIGURE_ARGS+= --enable-sqwebmail-pass=n
|
2000-10-13 21:29:49 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_ROAMING)
|
|
|
|
CONFIGURE_ARGS+= --enable-roaming-users=y \
|
|
|
|
--enable-relay-clear-minutes=${RELAYCLEAR}
|
|
|
|
.endif
|
|
|
|
|
2001-01-29 10:18:28 -05:00
|
|
|
.if defined(WITH_MYSQL)
|
|
|
|
LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
|
2001-03-01 08:05:47 -05:00
|
|
|
CONFIGURE_ARGS+= --enable-mysql=y \
|
|
|
|
--enable-sqlincdir=${LOCALBASE}/include/mysql \
|
|
|
|
--enable-sqllibdir=${LOCALBASE}/lib/mysql
|
2001-01-29 10:18:28 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(DEFAULT_DOMAIN)
|
|
|
|
CONFIGURE_ARGS+= --enable-default-domain=${DEFAULT_DOMAIN}
|
|
|
|
.endif
|
|
|
|
|
2000-09-21 09:01:40 -04:00
|
|
|
#
|
|
|
|
# This port doesn't honour PREFIX, it honours vpopmail's home directory.
|
|
|
|
# Since we create vpopmail if it doesn't exist, we set it so that it
|
|
|
|
# does honour PREFIX. -- nbm
|
|
|
|
#
|
|
|
|
|
|
|
|
pre-configure:
|
2000-10-08 04:53:06 -04:00
|
|
|
@PKG_PREFIX=${PREFIX}/vpopmail ${PERL5} ${PKGINSTALL}
|
2000-09-21 09:01:40 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|