2000-09-21 15:01:40 +02:00
|
|
|
# New ports collection makefile for: vpopmail
|
|
|
|
# Date created: 21 Sep 2000
|
2000-09-22 13:39:14 +02:00
|
|
|
# Whom: Neil Blakey-Milner
|
2000-09-21 15:01:40 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= vpopmail
|
2006-10-05 13:49:17 +02:00
|
|
|
PORTVERSION= 5.4.17
|
2000-09-21 15:01:40 +02:00
|
|
|
CATEGORIES= mail
|
2003-09-10 11:41:33 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2000-09-21 15:01:40 +02:00
|
|
|
|
2001-11-02 14:49:45 +01:00
|
|
|
MAINTAINER= roam@FreeBSD.org
|
2003-09-10 11:41:33 +02:00
|
|
|
COMMENT= Easy virtual domain and authentication package for use with qmail
|
2000-09-21 15:01:40 +02:00
|
|
|
|
- Fix 'all-depends-list' target in cases if dependencies list is
very long and if some dependencies can't be added into the list.
[1]
- Fix FAM support. Make gamin the default FAM system. [2]
- Introduce new 'quicksearch' target to show only port, path and
info section of the matching ports. [3]
- Introduce new category - rubygems. [4]
- Fix stale dependencies while installing qmail slaveport and
another port that depends on qmail. [5]
- Add commentary for describes target in bsd.port.mk. [6]
- Fix warning issued during make index on archs !368. [7]
- Add USE_DOS2UNIX variable. If set to "YES", remove the ^M from
all files under ${WRKSRC}. If set to a string, remove in all files
under ${WRKSRC} with one of these names the ^Ms. [8]
- Add new variables PERL_RUN_DEPENDS and PERL_BUILD_DEPENDS by
checking the existance of the Perl modules with the "perl -e 'use
module;'" command. [9]
- Fix bsd.port.mk variable quoting issues. No quoting is necessary
anymore either in the Makefile or on the command line. Affected
variables include:
BROKEN
FORBIDDEN
IGNORE
MANUAL_PACKAGE_BUILD
NO_CDROM
NO_PACKAGE
RESTRICTED
[10]
- Add NOFETCHFILES variable. If set, don't download these files
from the ${MASTER_SITES} or ${MASTER_SITE_BACKUP} (but do from
${MASTER_SITE_OVERRIDE}). [11]
- Improve 'search' target output. [12]
- Add a new virtual category for Amateur Radio - hamradio. [13]
- Cleanup some old/unused pathes in bsd.port.mk. [14]
- Add @dirrmtry for plists which does the same as:
"@unexec rmdir %D/foo 2>/dev/null || true" [15]
- Remove virtual category - offix. [16]
- Use portsnap instead of cvsup or cvs on "make update" in
/usr/ports. [17]
- Move location of bsd.autotools.mk within bsd.port.mk [18]
- Add bsd.linux-rpm.mk, fix INSTALLS_SHLIB for Linux ports [19]
- Use new USE_RC_SUBR format for FreeBSD version >= 700007 [20]
- Replace the string "FreeBSD" by "The FreeBSD Project" in the
security warning [21]
- Add bsd.local.mk for local modification to ports framework. [22]
- Replace rcNG spelling by rc.d [23]
- Remove superfluous USE_REINPLACE. [24]
Special thanks to: linimon for spending hours with all these patches
clement for fixes
kris for help with pointyhat
PR: ports/86310 [1], ports/89498 [2], ports/83530 [3],
ports/83789 [4], ports/84053 [5], ports/86281 [6],
ports/87214 [7], ports/87234 [8], ports/87318 [9],
ports/87396 [10], ports/87605 [11], ports/87840 [12],
ports/88230 [13], ports/88493 [14], ports/88711 [15],
ports/88751 [16], ports/89281 [17], ports/89999 [18],
ports/90031 [19], ports/90150 [20], ports/90668 [21],
ports/91433 [23], ports/88754 [24]
Submitted by: mi [1], marcus [2], Lars Engels <lars.engels@0x20.net> [3],
pav [4, 16, 20, 24], garga [5], cperciva [6], vd [7],
edwin [8, 9, 11, 15, 21],
fenner [10], Arseny Nasokin <tarc.po.cs.msu.su@tarc.po.cs.msu.su> [12],
Carl Makin <carl@stagecraft.cx> [13], arved [14],
NIIMI Satoshi <sa2c@sa2c.net> [17], thierry [18],
jylefort [19], linimon [22], dougb [23]
2006-01-21 18:37:14 +01:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/tcprules:${PORTSDIR}/sysutils/ucspi-tcp
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/tcprules:${PORTSDIR}/sysutils/ucspi-tcp
|
2006-07-14 14:13:50 +02:00
|
|
|
|
- Fix 'all-depends-list' target in cases if dependencies list is
very long and if some dependencies can't be added into the list.
[1]
- Fix FAM support. Make gamin the default FAM system. [2]
- Introduce new 'quicksearch' target to show only port, path and
info section of the matching ports. [3]
- Introduce new category - rubygems. [4]
- Fix stale dependencies while installing qmail slaveport and
another port that depends on qmail. [5]
- Add commentary for describes target in bsd.port.mk. [6]
- Fix warning issued during make index on archs !368. [7]
- Add USE_DOS2UNIX variable. If set to "YES", remove the ^M from
all files under ${WRKSRC}. If set to a string, remove in all files
under ${WRKSRC} with one of these names the ^Ms. [8]
- Add new variables PERL_RUN_DEPENDS and PERL_BUILD_DEPENDS by
checking the existance of the Perl modules with the "perl -e 'use
module;'" command. [9]
- Fix bsd.port.mk variable quoting issues. No quoting is necessary
anymore either in the Makefile or on the command line. Affected
variables include:
BROKEN
FORBIDDEN
IGNORE
MANUAL_PACKAGE_BUILD
NO_CDROM
NO_PACKAGE
RESTRICTED
[10]
- Add NOFETCHFILES variable. If set, don't download these files
from the ${MASTER_SITES} or ${MASTER_SITE_BACKUP} (but do from
${MASTER_SITE_OVERRIDE}). [11]
- Improve 'search' target output. [12]
- Add a new virtual category for Amateur Radio - hamradio. [13]
- Cleanup some old/unused pathes in bsd.port.mk. [14]
- Add @dirrmtry for plists which does the same as:
"@unexec rmdir %D/foo 2>/dev/null || true" [15]
- Remove virtual category - offix. [16]
- Use portsnap instead of cvsup or cvs on "make update" in
/usr/ports. [17]
- Move location of bsd.autotools.mk within bsd.port.mk [18]
- Add bsd.linux-rpm.mk, fix INSTALLS_SHLIB for Linux ports [19]
- Use new USE_RC_SUBR format for FreeBSD version >= 700007 [20]
- Replace the string "FreeBSD" by "The FreeBSD Project" in the
security warning [21]
- Add bsd.local.mk for local modification to ports framework. [22]
- Replace rcNG spelling by rc.d [23]
- Remove superfluous USE_REINPLACE. [24]
Special thanks to: linimon for spending hours with all these patches
clement for fixes
kris for help with pointyhat
PR: ports/86310 [1], ports/89498 [2], ports/83530 [3],
ports/83789 [4], ports/84053 [5], ports/86281 [6],
ports/87214 [7], ports/87234 [8], ports/87318 [9],
ports/87396 [10], ports/87605 [11], ports/87840 [12],
ports/88230 [13], ports/88493 [14], ports/88711 [15],
ports/88751 [16], ports/89281 [17], ports/89999 [18],
ports/90031 [19], ports/90150 [20], ports/90668 [21],
ports/91433 [23], ports/88754 [24]
Submitted by: mi [1], marcus [2], Lars Engels <lars.engels@0x20.net> [3],
pav [4, 16, 20, 24], garga [5], cperciva [6], vd [7],
edwin [8, 9, 11, 15, 21],
fenner [10], Arseny Nasokin <tarc.po.cs.msu.su@tarc.po.cs.msu.su> [12],
Carl Makin <carl@stagecraft.cx> [13], arved [14],
NIIMI Satoshi <sa2c@sa2c.net> [17], thierry [18],
jylefort [19], linimon [22], dougb [23]
2006-01-21 18:37:14 +01:00
|
|
|
USE_QMAIL= yes
|
2000-09-21 15:01:40 +02:00
|
|
|
|
2004-02-26 15:34:32 +01:00
|
|
|
CONFLICTS= vpopmail-devel-5.*
|
|
|
|
|
2000-09-21 15:01:40 +02:00
|
|
|
GNU_CONFIGURE= YES
|
|
|
|
USE_GMAKE= YES
|
2005-05-30 13:26:21 +02:00
|
|
|
USE_PERL5= YES
|
2000-09-21 15:01:40 +02:00
|
|
|
|
2001-11-04 13:05:05 +01:00
|
|
|
VCFGDIR?= ${WRKDIR}/vcfg
|
|
|
|
VCFGFILES?= inc_deps lib_deps tcp.smtp
|
|
|
|
|
|
|
|
CONFIGURE_ENV+= VCFGDIR="${VCFGDIR}"
|
- Fix 'all-depends-list' target in cases if dependencies list is
very long and if some dependencies can't be added into the list.
[1]
- Fix FAM support. Make gamin the default FAM system. [2]
- Introduce new 'quicksearch' target to show only port, path and
info section of the matching ports. [3]
- Introduce new category - rubygems. [4]
- Fix stale dependencies while installing qmail slaveport and
another port that depends on qmail. [5]
- Add commentary for describes target in bsd.port.mk. [6]
- Fix warning issued during make index on archs !368. [7]
- Add USE_DOS2UNIX variable. If set to "YES", remove the ^M from
all files under ${WRKSRC}. If set to a string, remove in all files
under ${WRKSRC} with one of these names the ^Ms. [8]
- Add new variables PERL_RUN_DEPENDS and PERL_BUILD_DEPENDS by
checking the existance of the Perl modules with the "perl -e 'use
module;'" command. [9]
- Fix bsd.port.mk variable quoting issues. No quoting is necessary
anymore either in the Makefile or on the command line. Affected
variables include:
BROKEN
FORBIDDEN
IGNORE
MANUAL_PACKAGE_BUILD
NO_CDROM
NO_PACKAGE
RESTRICTED
[10]
- Add NOFETCHFILES variable. If set, don't download these files
from the ${MASTER_SITES} or ${MASTER_SITE_BACKUP} (but do from
${MASTER_SITE_OVERRIDE}). [11]
- Improve 'search' target output. [12]
- Add a new virtual category for Amateur Radio - hamradio. [13]
- Cleanup some old/unused pathes in bsd.port.mk. [14]
- Add @dirrmtry for plists which does the same as:
"@unexec rmdir %D/foo 2>/dev/null || true" [15]
- Remove virtual category - offix. [16]
- Use portsnap instead of cvsup or cvs on "make update" in
/usr/ports. [17]
- Move location of bsd.autotools.mk within bsd.port.mk [18]
- Add bsd.linux-rpm.mk, fix INSTALLS_SHLIB for Linux ports [19]
- Use new USE_RC_SUBR format for FreeBSD version >= 700007 [20]
- Replace the string "FreeBSD" by "The FreeBSD Project" in the
security warning [21]
- Add bsd.local.mk for local modification to ports framework. [22]
- Replace rcNG spelling by rc.d [23]
- Remove superfluous USE_REINPLACE. [24]
Special thanks to: linimon for spending hours with all these patches
clement for fixes
kris for help with pointyhat
PR: ports/86310 [1], ports/89498 [2], ports/83530 [3],
ports/83789 [4], ports/84053 [5], ports/86281 [6],
ports/87214 [7], ports/87234 [8], ports/87318 [9],
ports/87396 [10], ports/87605 [11], ports/87840 [12],
ports/88230 [13], ports/88493 [14], ports/88711 [15],
ports/88751 [16], ports/89281 [17], ports/89999 [18],
ports/90031 [19], ports/90150 [20], ports/90668 [21],
ports/91433 [23], ports/88754 [24]
Submitted by: mi [1], marcus [2], Lars Engels <lars.engels@0x20.net> [3],
pav [4, 16, 20, 24], garga [5], cperciva [6], vd [7],
edwin [8, 9, 11, 15, 21],
fenner [10], Arseny Nasokin <tarc.po.cs.msu.su@tarc.po.cs.msu.su> [12],
Carl Makin <carl@stagecraft.cx> [13], arved [14],
NIIMI Satoshi <sa2c@sa2c.net> [17], thierry [18],
jylefort [19], linimon [22], dougb [23]
2006-01-21 18:37:14 +01:00
|
|
|
CONFIGURE_ARGS= --enable-qmaildir=${QMAIL_PREFIX} \
|
2002-11-02 22:33:09 +01:00
|
|
|
--enable-tcprules-prog=${LOCALBASE}/bin/tcprules \
|
2000-09-22 13:39:14 +02:00
|
|
|
--enable-tcpserver-file=${PREFIX}/vpopmail/etc/tcp.smtp
|
2005-05-11 15:32:29 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2000-09-21 15:01:40 +02:00
|
|
|
|
|
|
|
#
|
2000-10-14 03:29:49 +02:00
|
|
|
# User-configurable variables
|
2000-09-21 15:01:40 +02:00
|
|
|
#
|
2000-10-14 03:29:49 +02:00
|
|
|
# Define these to change from the default behaviour
|
|
|
|
#
|
|
|
|
# WITH_PASSWD - allow authentication off /etc/passwd
|
2002-09-05 15:42:30 +02:00
|
|
|
# WITHOUT_MD5_PASSWORDS - store encrypted passwords in MD5 format
|
2003-09-10 11:41:33 +02:00
|
|
|
# WITH_CLEAR_PASSWD - store passwords in plaintext
|
|
|
|
# WITH_LEARN_PASSWORDS - enable learning passwords during pop auth
|
2001-01-29 16:18:28 +01:00
|
|
|
# WITH_MYSQL - allow authentitation via mysql
|
2002-06-12 12:09:04 +02:00
|
|
|
# WITH_MYSQL_REPLICATION - enables MySQL database replication
|
2003-02-17 13:21:10 +01:00
|
|
|
# WITH_MYSQL_LIMITS - enables the MySQL mailbox limit code
|
2004-01-30 19:03:31 +01:00
|
|
|
# WITH_PGSQL - allow authentication via PostgreSQL
|
2002-06-12 12:09:04 +02:00
|
|
|
# WITH_SYBASE - allow authentication via Sybase (NOT TESTED!)
|
|
|
|
# WITH_ORACLE - allow authentication via Oracle (NOT TESTED!)
|
2005-05-11 15:32:29 +02:00
|
|
|
# WITH_LDAP - allow authentication via LDAP
|
2002-06-12 12:09:04 +02:00
|
|
|
# WITH_VALIAS - enable valias processing
|
2000-10-14 03:29:49 +02:00
|
|
|
# WITHOUT_ROAMING - disallow roaming users
|
2001-11-04 13:05:05 +01:00
|
|
|
# WITH_IP_ALIAS - enables IP aliasing
|
2001-12-17 19:52:19 +01:00
|
|
|
# WITH_QMAIL_EXT - enables qmail-like user-* address extesions processing
|
2002-06-12 12:09:04 +02:00
|
|
|
# WITHOUT_FILE_LOCKING - disable file locking
|
|
|
|
# WITH_FILE_SYNC - enables immediate synching (may decrease performance)
|
2002-09-05 16:30:21 +02:00
|
|
|
# WITHOUT_USERS_BIG_DIR - disables using big directories for users
|
|
|
|
# WITHOUT_SEEKABLE - disables vdelivermail's attempt to make its input seekable
|
2003-10-31 18:24:01 +01:00
|
|
|
# WITH_SPAMASSASSIN - enable SpamAssassin checks before Maildir delivery
|
2005-09-05 23:27:03 +02:00
|
|
|
# WITH_SUID_VCHKPW - set the setuid bit on the vchkpw program
|
2005-09-16 09:34:01 +02:00
|
|
|
# WITH_SMTP_AUTH_PATCH - apply an SMTP authentcation fix
|
2005-11-17 23:54:30 +01:00
|
|
|
# WITHOUT_FPIC - do not add -fPIC to the C compiler flags
|
2000-10-14 03:29:49 +02:00
|
|
|
#
|
|
|
|
# Set these to the values you'd prefer
|
|
|
|
#
|
|
|
|
# RELAYCLEAR - time in minutes before clearing relay hole (requires roaming)
|
2003-11-03 14:42:16 +01:00
|
|
|
# SPAM_THRESHOLD - minimum score required to delete spam messages (requires spamassassin)
|
2001-01-29 16:18:28 +01:00
|
|
|
# DEFAULT_DOMAIN - default domain for non-vhost lookups
|
2002-06-12 12:09:04 +02:00
|
|
|
# WITH_SINGLE_DOMAIN - optimize for a site with many users in a single domain
|
2000-10-14 03:29:49 +02:00
|
|
|
# LOGLEVEL - n - no logging, y - log all,
|
2003-09-10 11:41:33 +02:00
|
|
|
# e - log errors, p - log passwords in errors,
|
|
|
|
# v - verbose success and errors with passwords
|
2002-06-12 12:09:04 +02:00
|
|
|
# WITHOUT_AUTH_LOG - disables authentication logging
|
2005-06-07 10:51:34 +02:00
|
|
|
# WITH_MYSQL_LOG - enable auth logging to a MySQL database [deprecateed]
|
|
|
|
# WITH_PGSQL_LOG - enable auth logging to a PostgreSQL database [deprecated]
|
|
|
|
# WITH_SQL_LOG - enable auth logging to the selected SQL database
|
2006-10-05 13:49:17 +02:00
|
|
|
# WITH_SQL_LOG_REMOVE_DELETED - remove log entries for deleted users/domains
|
- Fix 'all-depends-list' target in cases if dependencies list is
very long and if some dependencies can't be added into the list.
[1]
- Fix FAM support. Make gamin the default FAM system. [2]
- Introduce new 'quicksearch' target to show only port, path and
info section of the matching ports. [3]
- Introduce new category - rubygems. [4]
- Fix stale dependencies while installing qmail slaveport and
another port that depends on qmail. [5]
- Add commentary for describes target in bsd.port.mk. [6]
- Fix warning issued during make index on archs !368. [7]
- Add USE_DOS2UNIX variable. If set to "YES", remove the ^M from
all files under ${WRKSRC}. If set to a string, remove in all files
under ${WRKSRC} with one of these names the ^Ms. [8]
- Add new variables PERL_RUN_DEPENDS and PERL_BUILD_DEPENDS by
checking the existance of the Perl modules with the "perl -e 'use
module;'" command. [9]
- Fix bsd.port.mk variable quoting issues. No quoting is necessary
anymore either in the Makefile or on the command line. Affected
variables include:
BROKEN
FORBIDDEN
IGNORE
MANUAL_PACKAGE_BUILD
NO_CDROM
NO_PACKAGE
RESTRICTED
[10]
- Add NOFETCHFILES variable. If set, don't download these files
from the ${MASTER_SITES} or ${MASTER_SITE_BACKUP} (but do from
${MASTER_SITE_OVERRIDE}). [11]
- Improve 'search' target output. [12]
- Add a new virtual category for Amateur Radio - hamradio. [13]
- Cleanup some old/unused pathes in bsd.port.mk. [14]
- Add @dirrmtry for plists which does the same as:
"@unexec rmdir %D/foo 2>/dev/null || true" [15]
- Remove virtual category - offix. [16]
- Use portsnap instead of cvsup or cvs on "make update" in
/usr/ports. [17]
- Move location of bsd.autotools.mk within bsd.port.mk [18]
- Add bsd.linux-rpm.mk, fix INSTALLS_SHLIB for Linux ports [19]
- Use new USE_RC_SUBR format for FreeBSD version >= 700007 [20]
- Replace the string "FreeBSD" by "The FreeBSD Project" in the
security warning [21]
- Add bsd.local.mk for local modification to ports framework. [22]
- Replace rcNG spelling by rc.d [23]
- Remove superfluous USE_REINPLACE. [24]
Special thanks to: linimon for spending hours with all these patches
clement for fixes
kris for help with pointyhat
PR: ports/86310 [1], ports/89498 [2], ports/83530 [3],
ports/83789 [4], ports/84053 [5], ports/86281 [6],
ports/87214 [7], ports/87234 [8], ports/87318 [9],
ports/87396 [10], ports/87605 [11], ports/87840 [12],
ports/88230 [13], ports/88493 [14], ports/88711 [15],
ports/88751 [16], ports/89281 [17], ports/89999 [18],
ports/90031 [19], ports/90150 [20], ports/90668 [21],
ports/91433 [23], ports/88754 [24]
Submitted by: mi [1], marcus [2], Lars Engels <lars.engels@0x20.net> [3],
pav [4, 16, 20, 24], garga [5], cperciva [6], vd [7],
edwin [8, 9, 11, 15, 21],
fenner [10], Arseny Nasokin <tarc.po.cs.msu.su@tarc.po.cs.msu.su> [12],
Carl Makin <carl@stagecraft.cx> [13], arved [14],
NIIMI Satoshi <sa2c@sa2c.net> [17], thierry [18],
jylefort [19], linimon [22], dougb [23]
2006-01-21 18:37:14 +01:00
|
|
|
# QMAIL_PREFIX - location of qmail directory
|
2000-10-14 03:29:49 +02:00
|
|
|
# PREFIX - installation area for vpopmail (see comment below)
|
2001-07-04 17:34:50 +02:00
|
|
|
# VCHKPW_GID - the group ID of the new vchkpw group (89)
|
|
|
|
# VPOPMAIL_UID - the user ID of the new vpopmail user (89)
|
2002-06-12 12:09:04 +02:00
|
|
|
#
|
|
|
|
# MySQL database configuration options
|
|
|
|
#
|
2001-11-20 19:11:26 +01:00
|
|
|
# WITH_MYSQL_SERVER - the hostname of the MySQL server (localhost)
|
|
|
|
# WITH_MYSQL_USER - the username for connecting to the MySQL server (root)
|
|
|
|
# WITH_MYSQL_PASSWD - the password for connecting to the MySQL server (secret)
|
|
|
|
# WITH_MYSQL_DB - the name of the MySQL database to use (vpopmail)
|
|
|
|
# The server, user and password variables may be defined separately
|
|
|
|
# for read and update access, allowing you to set up a less-priviledged
|
|
|
|
# MySQL connection account with read-only access, and another one which
|
|
|
|
# is used for administrative purposes:
|
|
|
|
# WITH_MYSQL_READ_SERVER, WITH_MYSQL_READ_USER, WITH_MYSQL_READ_PASSWD
|
|
|
|
# WITH_MYSQL_UPDATE_SERVER, WITH_MYSQL_UPDATE_USER, WITH_MYSQL_UPDATE_PASSWD
|
|
|
|
# Those variables, if defined, override WITH_MYSQL_{SERVER,USER,PASSWD}
|
2000-10-14 03:29:49 +02:00
|
|
|
#
|
2004-01-30 19:03:31 +01:00
|
|
|
# PostgreSQL database configuration options
|
|
|
|
#
|
|
|
|
# WITH_PGSQL_USER - the username for connecting to the PostgreSQL server (postgres)
|
|
|
|
# WITH_PGSQL_DB - the name of the PostgreSQL database to use (vpopmail)
|
|
|
|
#
|
2002-06-12 12:09:04 +02:00
|
|
|
# Oracle database configuration options
|
|
|
|
#
|
|
|
|
# WARNING: This is NOT TESTED, not in the least.
|
|
|
|
# Please report any success or failure to the port maintainer,
|
|
|
|
# Peter Pentchev <roam@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# WITH_ORACLE_PROC - the name of the Oracle Pro-C precompiler, default 'proc'
|
|
|
|
# WITH_ORACLE_SERVICE - the Oracle service name (jimmy)
|
|
|
|
# WITH_ORACLE_USER - the username for connecting to the Oracle server (system)
|
|
|
|
# WITH_ORACLE_PASSWD - the password for connecting to the Oracle server (manager)
|
|
|
|
# WITH_ORACLE_DB - the name of the Oracle database to connect to (orcl1)
|
|
|
|
# WITH_ORACLE_HOME - the Oracle installation directory (/export/home/oracle)
|
|
|
|
#
|
|
|
|
# Sybase database configuration options
|
|
|
|
#
|
|
|
|
# WARNING: This is NOT TESTED, not in the least.
|
|
|
|
# Please report any success or failure to the port maintainer,
|
|
|
|
# Peter Pentchev <roam@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# WITH_SYBASE_SERVER - the Sybase server name (empty)
|
|
|
|
# WITH_SYBASE_USER - the username for connecting to the Sybase server (sa)
|
|
|
|
# WITH_SYBASE_PASSWD - the password for connecting to the Sybase server (empty)
|
|
|
|
# WITH_SYBASE_APP - the app for connecting to the Sybase server (vpopmail)
|
|
|
|
# WITH_SYBASE_DB - the name of the Sybase database to connect to (vpopmail)
|
|
|
|
#
|
2000-10-14 03:29:49 +02:00
|
|
|
|
|
|
|
RELAYCLEAR?= 30
|
2003-11-03 14:42:16 +01:00
|
|
|
SPAM_THRESHOLD?=15
|
2000-10-14 03:29:49 +02:00
|
|
|
LOGLEVEL?= y
|
2000-09-21 15:01:40 +02:00
|
|
|
|
2005-05-11 15:32:29 +02:00
|
|
|
.if defined(WITH_LDAP)
|
|
|
|
USE_OPENLDAP= yes
|
|
|
|
.if defined(WITH_LDAP_SASL)
|
|
|
|
WANT_OPENLDAP_SASL= yes
|
|
|
|
.endif
|
|
|
|
CONFIGURE_ARGS+= --enable-auth-module=ldap
|
|
|
|
LDAP_FILES= ${WRKSRC}/README.ldap \
|
|
|
|
${WRKSRC}/ldap/qmailUser.schema \
|
|
|
|
${WRKSRC}/ldap/slapd.conf \
|
|
|
|
${WRKSRC}/ldap/vpopmail.ldif
|
|
|
|
PLIST_SUB+= LDAP=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= LDAP="@comment "
|
|
|
|
.endif
|
|
|
|
|
2003-10-31 18:24:01 +01:00
|
|
|
.if defined(WITH_MYSQL)
|
|
|
|
USE_MYSQL= yes
|
2004-02-05 23:10:00 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-auth-module=mysql \
|
2003-10-31 18:24:01 +01:00
|
|
|
--enable-incdir=${LOCALBASE}/include/mysql \
|
|
|
|
--enable-libdir=${LOCALBASE}/lib/mysql
|
|
|
|
.if defined(WITH_MYSQL_REPLICATION)
|
2004-02-05 23:10:00 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-mysql-replication
|
2003-10-31 18:24:01 +01:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_MYSQL_LOG)
|
2005-06-07 10:51:34 +02:00
|
|
|
WITH_SQL_LOG= yes
|
2003-10-31 18:24:01 +01:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_MYSQL_LIMITS)
|
2004-02-05 23:10:00 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-mysql-limits
|
2003-10-31 18:24:01 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
WITH_MYSQL_SERVER?= localhost
|
|
|
|
WITH_MYSQL_READ_SERVER?= ${WITH_MYSQL_SERVER}
|
|
|
|
WITH_MYSQL_UPDATE_SERVER?= ${WITH_MYSQL_SERVER}
|
|
|
|
WITH_MYSQL_USER?= vpopmail
|
|
|
|
WITH_MYSQL_READ_USER?= ${WITH_MYSQL_USER}
|
|
|
|
WITH_MYSQL_UPDATE_USER?= ${WITH_MYSQL_USER}
|
|
|
|
WITH_MYSQL_PASSWD?= secret
|
|
|
|
WITH_MYSQL_READ_PASSWD?= ${WITH_MYSQL_PASSWD}
|
|
|
|
WITH_MYSQL_UPDATE_PASSWD?= ${WITH_MYSQL_PASSWD}
|
|
|
|
WITH_MYSQL_DB?= vpopmail
|
|
|
|
.endif
|
|
|
|
|
2004-01-30 19:03:31 +01:00
|
|
|
.if defined(WITH_POSTGRESQL)
|
|
|
|
WITH_PGSQL= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_PGSQL)
|
2005-01-31 01:35:55 +01:00
|
|
|
USE_PGSQL= yes
|
2004-02-05 23:10:00 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-auth-module=pgsql
|
2004-01-30 19:03:31 +01:00
|
|
|
|
|
|
|
.if defined(WITH_PGSQL_LOG)
|
2005-06-07 10:51:34 +02:00
|
|
|
WITH_SQL_LOG= yes
|
2004-01-30 19:03:31 +01:00
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2005-06-07 10:51:34 +02:00
|
|
|
.if defined(WITH_SQL_LOG)
|
|
|
|
CONFIGURE_ARGS+= --enable-sql-logging
|
2006-10-05 13:49:17 +02:00
|
|
|
.if defined(WITH_SQL_LOG_REMOVE_DELETED)
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/sql-remove-deleted.patch
|
|
|
|
.endif
|
2005-06-07 10:51:34 +02:00
|
|
|
.endif
|
|
|
|
|
2005-09-16 09:34:01 +02:00
|
|
|
.if defined(WITH_SMTP_AUTH_PATCH)
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/vchkpw-smtp-auth.patch
|
|
|
|
.endif
|
|
|
|
|
2006-10-05 13:49:17 +02:00
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/Makefile.in-noportdocs.patch
|
|
|
|
.endif
|
|
|
|
|
2003-09-10 11:41:33 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-11-24 17:04:38 +01:00
|
|
|
.if !defined(WITHOUT_FPIC) && ${ARCH} == "amd64"
|
|
|
|
CFLAGS+= -fPIC
|
|
|
|
.endif
|
|
|
|
|
2000-10-14 03:29:49 +02: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>
|
|
|
|
#
|
|
|
|
|
2004-02-05 23:10:00 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-logging=${LOGLEVEL}
|
2000-10-14 03:29:49 +02:00
|
|
|
|
2001-11-20 19:11:26 +01:00
|
|
|
.if defined(WITH_PASSWD)
|
2004-02-05 23:10:00 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-passwd
|
2000-10-14 03:29:49 +02:00
|
|
|
.endif
|
|
|
|
|
2002-09-05 15:42:30 +02:00
|
|
|
.if defined(WITHOUT_MD5_PASSWORDS)
|
2004-02-05 23:10:00 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-md5-passwords
|
2002-02-26 15:54:19 +01:00
|
|
|
.endif
|
|
|
|
|
2000-10-14 03:29:49 +02:00
|
|
|
.if defined(WITH_APOP)
|
2006-07-14 14:13:50 +02:00
|
|
|
BROKEN= The WITH_APOP option is deprecated; set WITH_CLEAR_PASSWD instead, APOP will just work
|
2002-06-12 12:09:04 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_VALIAS)
|
2004-02-05 23:10:00 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-valias
|
2001-03-01 14:05:47 +01:00
|
|
|
.endif
|
|
|
|
|
2000-10-14 03:29:49 +02:00
|
|
|
.if !defined(WITHOUT_ROAMING)
|
2004-02-05 23:10:00 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-roaming-users \
|
2000-10-14 03:29:49 +02:00
|
|
|
--enable-relay-clear-minutes=${RELAYCLEAR}
|
|
|
|
.endif
|
|
|
|
|
2002-02-26 15:54:19 +01:00
|
|
|
.if !defined(WITH_CLEAR_PASSWD)
|
2004-02-05 23:10:00 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-clear-passwd
|
2002-02-26 15:54:19 +01:00
|
|
|
.endif
|
|
|
|
|
2003-09-10 11:41:33 +02:00
|
|
|
.if defined(WITH_LEARN_PASSWORDS)
|
2004-02-05 23:10:00 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-learn-passwords
|
2003-09-10 11:41:33 +02:00
|
|
|
.endif
|
|
|
|
|
2002-06-12 12:09:04 +02:00
|
|
|
.if defined(WITH_SYBASE)
|
2004-02-05 23:10:00 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-auth-module=sybase
|
2002-06-12 12:09:04 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_ORACLE)
|
|
|
|
WITH_ORACLE_PROC?= proc
|
2004-02-05 23:10:00 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-auth-module=oracle
|
2002-06-12 12:09:04 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_SINGLE_DOMAIN)
|
2004-02-05 23:10:00 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-many-domains
|
2002-06-12 12:09:04 +02:00
|
|
|
.endif
|
|
|
|
|
2001-11-04 13:05:05 +01:00
|
|
|
.if defined(WITH_IP_ALIAS)
|
2004-02-05 23:10:00 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-ip-alias-domains
|
2001-11-04 13:05:05 +01:00
|
|
|
.endif
|
|
|
|
|
2001-12-17 19:52:19 +01:00
|
|
|
.if defined(WITH_QMAIL_EXT)
|
2004-02-05 23:10:00 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-qmail-ext
|
2001-12-17 19:52:19 +01:00
|
|
|
.endif
|
|
|
|
|
2002-06-12 12:09:04 +02:00
|
|
|
.if defined(WITHOUT_FILE_LOCKING)
|
2004-02-05 23:10:00 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-file-locking
|
2002-06-12 12:09:04 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_FILE_SYNC)
|
2004-02-05 23:10:00 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-file-sync
|
2002-06-12 12:09:04 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITHOUT_AUTH_LOG)
|
2004-02-05 23:10:00 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-auth-logging
|
2002-06-12 12:09:04 +02:00
|
|
|
.endif
|
|
|
|
|
2002-09-05 16:30:21 +02:00
|
|
|
.if defined(WITHOUT_USERS_BIG_DIR)
|
2004-02-05 23:10:00 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-users-big-dir
|
2002-09-05 16:30:21 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITHOUT_SEEKABLE)
|
2004-02-05 23:10:00 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-make-seekable
|
2002-09-05 16:30:21 +02:00
|
|
|
.endif
|
|
|
|
|
2003-10-31 18:24:01 +01:00
|
|
|
.if defined(WITH_SPAMASSASSIN)
|
2006-07-17 07:51:33 +02:00
|
|
|
BUILD_DEPENDS+= spamc:${PORTSDIR}/mail/p5-Mail-SpamAssassin
|
|
|
|
CONFIGURE_ARGS+= --enable-spamassassin=${LOCALBASE}/bin/spamc \
|
|
|
|
--enable-spam-threshold=${SPAM_THRESHOLD}
|
2003-10-31 18:24:01 +01:00
|
|
|
.endif
|
|
|
|
|
2006-10-05 13:49:17 +02:00
|
|
|
DOCS= README README.filelocking \
|
|
|
|
README.ipaliasdomains README.ldap README.mysql \
|
|
|
|
README.oracle README.pgsql README.quotas \
|
|
|
|
README.roamingusers README.sybase README.vlimits \
|
|
|
|
README.vpopmaild README.vpopmaild README.vqmaillocal
|
|
|
|
|
2000-09-21 15:01:40 +02: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:
|
2006-09-23 14:38:02 +02:00
|
|
|
@PKG_PREFIX=${PREFIX} ${PERL5} ${PKGINSTALL}
|
2004-01-30 19:03:31 +01:00
|
|
|
.if defined(WITH_PGSQL)
|
|
|
|
.if defined(WITH_PGSQL_DB)
|
|
|
|
${REINPLACE_CMD} -E -e "s/(#define DB.*)vpopmail(.*)/\1${WITH_PGSQL_DB}\2/" ${WRKSRC}/vpgsql.h
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_PGSQL_USER)
|
|
|
|
${REINPLACE_CMD} -E -e "s/(#define PG_CONNECT.*)postgres(.*)/\1${WITH_PGSQL_USER}\2/" ${WRKSRC}/vpgsql.h
|
|
|
|
.endif
|
|
|
|
.endif
|
2002-06-12 12:09:04 +02:00
|
|
|
.if defined(WITH_ORACLE)
|
|
|
|
.if defined(WITH_ORACLE_SERVICE)
|
2003-02-09 14:15:11 +01:00
|
|
|
${REINPLACE_CMD} -E -e "s/(#define ORACLE_SERVICE.*)jimmy(.*)/\1${WITH_ORACLE_SERVICE}\2/" ${WRKSRC}/voracle.h
|
2002-06-12 12:09:04 +02:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_ORACLE_USER)
|
2003-02-09 14:15:11 +01:00
|
|
|
${REINPLACE_CMD} -E -e "s/(#define ORACLE_USER.*)system(.*)/\1${WITH_ORACLE_USER}\2/" ${WRKSRC}/voracle.h
|
2002-06-12 12:09:04 +02:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_ORACLE_PASSWD)
|
2003-02-09 14:15:11 +01:00
|
|
|
${REINPLACE_CMD} -E -e "s/(#define ORACLE_PASSWD.*)manager(.*)/\1${WITH_ORACLE_PASSWD}\2/" ${WRKSRC}/voracle.h
|
2002-06-12 12:09:04 +02:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_ORACLE_HOME)
|
2003-02-09 14:15:11 +01:00
|
|
|
${REINPLACE_CMD} -E -e "s@(#define ORACLE_HOME.*)/export/home/oracle(.*)@\1${WITH_ORACLE_HOME}\2@" ${WRKSRC}/voracle.h
|
2002-06-12 12:09:04 +02:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_ORACLE_DB)
|
2003-02-09 14:15:11 +01:00
|
|
|
${REINPLACE_CMD} -E -e "s/(#define ORACLE_DATABASE.*)orcl1(.*)/\1${WITH_ORACLE_DB}\2/" ${WRKSRC}/voracle.h
|
2002-06-12 12:09:04 +02:00
|
|
|
.endif
|
|
|
|
cd ${WRKSRC} && ${WITH_ORACLE_PROC} voracle.pc
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_SYBASE)
|
|
|
|
.if defined(WITH_SYBASE_SERVER)
|
2003-02-09 14:15:11 +01:00
|
|
|
${REINPLACE_CMD} -E -e "s/(#define SYBASE_SERVER.*)\"\"(.*)/\1\"${WITH_SYBASE_SERVER}\"\2/" ${WRKSRC}/vsybase.h
|
2002-06-12 12:09:04 +02:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_SYBASE_USER)
|
2003-02-09 14:15:11 +01:00
|
|
|
${REINPLACE_CMD} -E -e "s/(#define SYBASE_USER.*)sa(.*)/\1${WITH_SYBASE_USER}\2/" ${WRKSRC}/vsybase.h
|
2002-06-12 12:09:04 +02:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_SYBASE_PASSWD)
|
2003-02-09 14:15:11 +01:00
|
|
|
${REINPLACE_CMD} -E -e "s/(#define SYBASE_PASSWD.*)\"\"(.*)/\1\"${WITH_SYBASE_PASSWD}\"\2/" ${WRKSRC}/vsybase.h
|
2002-06-12 12:09:04 +02:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_SYBASE_APP)
|
2003-02-09 14:15:11 +01:00
|
|
|
${REINPLACE_CMD} -E -e "s@(#define SYBASE_APP.*)vpopmail(.*)@\1${WITH_SYBASE_APP}\2@" ${WRKSRC}/vsybase.h
|
2002-06-12 12:09:04 +02:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_SYBASE_DB)
|
2003-02-09 14:15:11 +01:00
|
|
|
${REINPLACE_CMD} -E -e "s/(#define SYBASE_DATABASE.*)vpopmail(.*)/\1${WITH_SYBASE_DB}\2/" ${WRKSRC}/vsybase.h
|
2002-06-12 12:09:04 +02:00
|
|
|
.endif
|
2001-07-04 17:34:50 +02:00
|
|
|
.endif
|
2001-11-04 13:05:05 +01:00
|
|
|
${MKDIR} ${VCFGDIR}
|
2000-09-21 15:01:40 +02:00
|
|
|
|
2001-09-08 12:48:49 +02:00
|
|
|
post-install:
|
2001-11-04 13:05:05 +01:00
|
|
|
${MKDIR} ${PREFIX}/vpopmail/etc
|
2005-09-05 23:27:03 +02:00
|
|
|
if [ -e "${VCFGDIR}/tcp.smtp" ]; then \
|
|
|
|
${INSTALL_DATA} ${VCFGDIR}/tcp.smtp ${PREFIX}/vpopmail/etc/tcp.smtp-dist; \
|
|
|
|
else \
|
|
|
|
${TOUCH} ${PREFIX}/vpopmail/etc/tcp.smtp-dist; \
|
|
|
|
fi;
|
2003-09-10 11:41:33 +02:00
|
|
|
.if defined(DEFAULT_DOMAIN)
|
|
|
|
${ECHO_CMD} ${DEFAULT_DOMAIN} > ${PREFIX}/vpopmail/etc/defaultdomain
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_MYSQL)
|
|
|
|
${ECHO_CMD} "${WITH_MYSQL_READ_SERVER}|0|${WITH_MYSQL_READ_USER}|${WITH_MYSQL_READ_PASSWD}|${WITH_MYSQL_DB}" \
|
2003-11-27 22:59:00 +01:00
|
|
|
>> ${PREFIX}/vpopmail/etc/vpopmail.mysql
|
2003-09-10 11:41:33 +02:00
|
|
|
${ECHO_CMD} "${WITH_MYSQL_UPDATE_SERVER}|0|${WITH_MYSQL_UPDATE_USER}|${WITH_MYSQL_UPDATE_PASSWD}|${WITH_MYSQL_DB}" \
|
|
|
|
>> ${PREFIX}/vpopmail/etc/vpopmail.mysql
|
|
|
|
.endif
|
2003-10-08 14:32:49 +02:00
|
|
|
${CHOWN} -R vpopmail:vchkpw ${PREFIX}/vpopmail/bin/ ${PREFIX}/vpopmail/etc/
|
2003-10-31 18:24:01 +01:00
|
|
|
.if defined(WITH_SPAMASSASSIN)
|
|
|
|
${ECHO_CMD} "***********************************************************************"
|
|
|
|
${ECHO_CMD} "Now you should add the following options to your spamd.sh startup file:"
|
|
|
|
${ECHO_CMD} "-v -u vpopmail"
|
|
|
|
${ECHO_CMD} "***********************************************************************"
|
|
|
|
.endif
|
2005-05-11 15:32:29 +02:00
|
|
|
.if defined(WITH_LDAP)
|
|
|
|
${MKDIR} ${PREFIX}/vpopmail/ldap
|
|
|
|
${INSTALL_DATA} ${LDAP_FILES} ${PREFIX}/vpopmail/ldap
|
|
|
|
.endif
|
2005-09-05 23:27:03 +02:00
|
|
|
.if defined(WITH_SUID_VCHKPW)
|
2006-01-27 14:47:16 +01:00
|
|
|
${CHMOD} ug+s ${PREFIX}/vpopmail/bin/vchkpw
|
2005-09-05 23:27:03 +02:00
|
|
|
.endif
|
2006-07-14 14:13:50 +02:00
|
|
|
@${TOUCH} ${QMAIL_PREFIX}/control/locals
|
2006-10-05 13:49:17 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${PREFIX}/vpopmail/doc/
|
|
|
|
.endif
|
2001-09-08 12:48:49 +02:00
|
|
|
|
2003-09-10 11:41:33 +02:00
|
|
|
.include <bsd.port.post.mk>
|