aboutsummaryrefslogtreecommitdiff
path: root/mail/vpopmail
diff options
context:
space:
mode:
authorPeter Pentchev <roam@FreeBSD.org>2002-06-12 10:09:04 +0000
committerPeter Pentchev <roam@FreeBSD.org>2002-06-12 10:09:04 +0000
commitc3b475fe8aac9d58b345180a16a408fc36a5ce7e (patch)
treee038471e563fdb80d581cf729538228038e660a6 /mail/vpopmail
parent7cb16a9d07d9d5dc5bed7efc99978c49cbcea42d (diff)
downloadports-c3b475fe8aac9d58b345180a16a408fc36a5ce7e.tar.gz
ports-c3b475fe8aac9d58b345180a16a408fc36a5ce7e.zip
Update to the vpopmail-5.3.6 development version, which adds back APOP
support (spelled WITH_CLEARTEXT_PASSWD now), along with a couple of other tweakable knobs. There is UNTESTED support for Sybase and Oracle database backends; please report any successes or failures to me. APOP support discontinuation reported by: "A. Postle" <apostle@kolbas.it>
Notes
Notes: svn path=/head/; revision=61151
Diffstat (limited to 'mail/vpopmail')
-rw-r--r--mail/vpopmail/Makefile119
-rw-r--r--mail/vpopmail/distinfo2
-rw-r--r--mail/vpopmail/pkg-plist1
3 files changed, 112 insertions, 10 deletions
diff --git a/mail/vpopmail/Makefile b/mail/vpopmail/Makefile
index 95f71d8e9794..69c8278c34ac 100644
--- a/mail/vpopmail/Makefile
+++ b/mail/vpopmail/Makefile
@@ -6,9 +6,9 @@
#
PORTNAME= vpopmail
-PORTVERSION= 5.2.1
+PORTVERSION= 5.3.6
CATEGORIES= mail
-MASTER_SITES= http://www.inter7.com/vpopmail/
+MASTER_SITES= http://www.inter7.com/devel/
MAINTAINER= roam@FreeBSD.org
@@ -37,25 +37,35 @@ CONFIGURE_ARGS= --enable-qmaildir=${QMAIL_DIR} \
# WITH_MD5_PASSWORDS - store encrypted passwords in MD5 format
# WITH_MYSQL - allow authentitation via mysql
# WITH_MYSQL_LARGE_SITE - enables large site layout
+# WITH_MYSQL_REPLICATION - enables MySQL database replication
+# WITH_SYBASE - allow authentication via Sybase (NOT TESTED!)
+# WITH_ORACLE - allow authentication via Oracle (NOT TESTED!)
# WITH_CLEAR_PASSWD - store passwords in plaintext into the MySQL db
-# WITH_APOP - allow apop authentication
+# WITH_VALIAS - enable valias processing
# WITHOUT_ROAMING - disallow roaming users
# WITH_IP_ALIAS - enables IP aliasing
# WITH_DELIVER_FILTER - enables the experimental vdelivermail filter
# WITH_QMAIL_EXT - enables qmail-like user-* address extesions processing
+# WITHOUT_FILE_LOCKING - disable file locking
+# WITH_FILE_SYNC - enables immediate synching (may decrease performance)
#
# 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)
# DEFAULT_DOMAIN - default domain for non-vhost lookups
+# WITH_SINGLE_DOMAIN - optimize for a site with many users in a single domain
# LOGLEVEL - n - no logging, y - log all,
# e - log errors, p - log passwords in errors
-# APOPFILE - location of apop secrets file
+# WITHOUT_AUTH_LOG - disables authentication logging
+# WITH_MYSQL_LOG - enable logging to a MySQL database
# QMAIL_DIR - location of qmail directory
# PREFIX - installation area for vpopmail (see comment below)
# VCHKPW_GID - the group ID of the new vchkpw group (89)
# VPOPMAIL_UID - the user ID of the new vpopmail user (89)
+#
+# MySQL database configuration options
+#
# 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)
@@ -68,11 +78,35 @@ CONFIGURE_ARGS= --enable-qmaildir=${QMAIL_DIR} \
# WITH_MYSQL_UPDATE_SERVER, WITH_MYSQL_UPDATE_USER, WITH_MYSQL_UPDATE_PASSWD
# Those variables, if defined, override WITH_MYSQL_{SERVER,USER,PASSWD}
#
+# 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)
+#
HARDQUOTA?= 10000000
RELAYCLEAR?= 30
LOGLEVEL?= y
-APOPFILE?= /usr/local/vpopmail/etc/apop-secrets
.if exists(${LOCALBASE}/qmail/bin/qmail-send)
QMAIL_DIR?= ${LOCALBASE}/qmail
@@ -104,10 +138,11 @@ CONFIGURE_ARGS+= --enable-md5-passwords=y
.endif
.if defined(WITH_APOP)
-CONFIGURE_ARGS+= --enable-apop=y \
- --enable-apop-file=${APOPFILE}
-.else
-CONFIGURE_ARGS+= --enable-apop=n
+BROKEN= "The WITH_APOP option is deprecated; set WITH_CLEAR_PASSWD instead, APOP will just work"
+.endif
+
+.if defined(WITH_VALIAS)
+CONFIGURE_ARGS+= --enable-valias=y
.endif
.if defined(WITH_SQWEBMAIL)
@@ -131,6 +166,12 @@ CONFIGURE_ARGS+= --enable-mysql=y \
.if defined(WITH_MYSQL_LARGE_SITE)
CONFIGURE_ARGS+= --enable-large-site=y
.endif
+.if defined(WITH_MYSQL_REPLICATION)
+CONFIGURE_ARGS+= --enable-mysql-replication=y
+.endif
+.if defined(WITH_MYSQL_LOG)
+CONFIGURE_ARGS+= --enable-mysql-logging=y
+.endif
.if defined(WITH_MYSQL_SERVER)
WITH_MYSQL_READ_SERVER?= ${WITH_MYSQL_SERVER}
@@ -146,10 +187,23 @@ WITH_MYSQL_UPDATE_PASSWD?= ${WITH_MYSQL_PASSWD}
.endif
.endif
+.if defined(WITH_SYBASE)
+CONFIGURE_ARGS+= --enable-sybase=y
+.endif
+
+.if defined(WITH_ORACLE)
+WITH_ORACLE_PROC?= proc
+CONFIGURE_ARGS+= --enable-oracle=y
+.endif
+
.if defined(DEFAULT_DOMAIN)
CONFIGURE_ARGS+= --enable-default-domain=${DEFAULT_DOMAIN}
.endif
+.if defined(WITH_SINGLE_DOMAIN)
+CONFIGURE_ARGS+= --enable-many-domains=n
+.endif
+
.if defined(WITH_IP_ALIAS)
CONFIGURE_ARGS+= --enable-ip-alias-domains=y
.endif
@@ -162,6 +216,18 @@ CONFIGURE_ARGS+= --enable-deliver-filter=y
CONFIGURE_ARGS+= --enable-qmail-ext=y
.endif
+.if defined(WITHOUT_FILE_LOCKING)
+CONFIGURE_ARGS+= --enable-file-locking=n
+.endif
+
+.if defined(WITH_FILE_SYNC)
+CONFIGURE_ARGS+= --enable-file-sync=y
+.endif
+
+.if defined(WITHOUT_AUTH_LOG)
+CONFIGURE_ARGS+= --enable-auth-logging=n
+.endif
+
#
# 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
@@ -193,6 +259,41 @@ pre-configure:
${PERL} -pi -e "s/(#define MYSQL_DATABASE.*)vpopmail(.*)/\$$1${WITH_MYSQL_DB}\$$2/" ${WRKSRC}/vmysql.h
.endif
.endif
+.if defined(WITH_ORACLE)
+.if defined(WITH_ORACLE_SERVICE)
+ ${PERL} -pi -e "s/(#define ORACLE_SERVICE.*)jimmy(.*)/\$$1${WITH_ORACLE_SERVICE}\$$2/" ${WRKSRC}/voracle.h
+.endif
+.if defined(WITH_ORACLE_USER)
+ ${PERL} -pi -e "s/(#define ORACLE_USER.*)system(.*)/\$$1${WITH_ORACLE_USER}\$$2/" ${WRKSRC}/voracle.h
+.endif
+.if defined(WITH_ORACLE_PASSWD)
+ ${PERL} -pi -e "s/(#define ORACLE_PASSWD.*)manager(.*)/\$$1${WITH_ORACLE_PASSWD}\$$2/" ${WRKSRC}/voracle.h
+.endif
+.if defined(WITH_ORACLE_HOME)
+ ${PERL} -pi -e "s@(#define ORACLE_HOME.*)/export/home/oracle(.*)@\$$1${WITH_ORACLE_HOME}\$$2@" ${WRKSRC}/voracle.h
+.endif
+.if defined(WITH_ORACLE_DB)
+ ${PERL} -pi -e "s/(#define ORACLE_DATABASE.*)orcl1(.*)/\$$1${WITH_ORACLE_DB}\$$2/" ${WRKSRC}/voracle.h
+.endif
+ cd ${WRKSRC} && ${WITH_ORACLE_PROC} voracle.pc
+.endif
+.if defined(WITH_SYBASE)
+.if defined(WITH_SYBASE_SERVER)
+ ${PERL} -pi -e "s/(#define SYBASE_SERVER.*)\"\"(.*)/\$$1\"${WITH_SYBASE_SERVER}\"\$$2/" ${WRKSRC}/vsybase.h
+.endif
+.if defined(WITH_SYBASE_USER)
+ ${PERL} -pi -e "s/(#define SYBASE_USER.*)sa(.*)/\$$1${WITH_SYBASE_USER}\$$2/" ${WRKSRC}/vsybase.h
+.endif
+.if defined(WITH_SYBASE_PASSWD)
+ ${PERL} -pi -e "s/(#define SYBASE_PASSWD.*)\"\"(.*)/\$$1\"${WITH_SYBASE_PASSWD}\"\$$2/" ${WRKSRC}/vsybase.h
+.endif
+.if defined(WITH_SYBASE_APP)
+ ${PERL} -pi -e "s@(#define SYBASE_APP.*)vpopmail(.*)@\$$1${WITH_SYBASE_APP}\$$2@" ${WRKSRC}/vsybase.h
+.endif
+.if defined(WITH_SYBASE_DB)
+ ${PERL} -pi -e "s/(#define SYBASE_DATABASE.*)vpopmail(.*)/\$$1${WITH_SYBASE_DB}\$$2/" ${WRKSRC}/vsybase.h
+.endif
+.endif
${MKDIR} ${VCFGDIR}
post-install:
diff --git a/mail/vpopmail/distinfo b/mail/vpopmail/distinfo
index b7f9413cd519..43e2e617c5aa 100644
--- a/mail/vpopmail/distinfo
+++ b/mail/vpopmail/distinfo
@@ -1 +1 @@
-MD5 (vpopmail-5.2.1.tar.gz) = 1e299a467db955c95c2966c7aa0ef6e5
+MD5 (vpopmail-5.3.6.tar.gz) = 00afe01169a2ea4285548528dc7eb2bb
diff --git a/mail/vpopmail/pkg-plist b/mail/vpopmail/pkg-plist
index 8774c558ee9b..80a845baa619 100644
--- a/mail/vpopmail/pkg-plist
+++ b/mail/vpopmail/pkg-plist
@@ -11,6 +11,7 @@ vpopmail/bin/vdeloldusers
vpopmail/bin/vdeluser
vpopmail/bin/vdominfo
vpopmail/bin/vipmap
+vpopmail/bin/vkill
vpopmail/bin/vmkpasswd
vpopmail/bin/vmoduser
vpopmail/bin/vpasswd