summaryrefslogtreecommitdiff
path: root/mail/dovecot-devel
diff options
context:
space:
mode:
Diffstat (limited to 'mail/dovecot-devel')
-rw-r--r--mail/dovecot-devel/Makefile149
-rw-r--r--mail/dovecot-devel/distinfo2
-rw-r--r--mail/dovecot-devel/files/dovecot.sh26
-rw-r--r--mail/dovecot-devel/files/patch-dovecot-example.conf172
-rw-r--r--mail/dovecot-devel/pkg-deinstall63
-rw-r--r--mail/dovecot-devel/pkg-descr7
-rw-r--r--mail/dovecot-devel/pkg-install91
-rw-r--r--mail/dovecot-devel/pkg-message18
-rw-r--r--mail/dovecot-devel/pkg-plist24
9 files changed, 0 insertions, 552 deletions
diff --git a/mail/dovecot-devel/Makefile b/mail/dovecot-devel/Makefile
deleted file mode 100644
index fd01ea7a865f..000000000000
--- a/mail/dovecot-devel/Makefile
+++ /dev/null
@@ -1,149 +0,0 @@
-# ex:ts=8
-# New ports collection makefile for: dovecot
-# Date created: 12/08/2002
-# Whom: Dominic Marks <dominic.marks@btinternet.com>
-#
-# $FreeBSD$
-#
-
-PORTNAME= dovecot
-DISTVERSION= 0.99.12.1
-CATEGORIES= mail ipv6
-MASTER_SITES= http://www.dovecot.org/releases/
-
-MAINTAINER= robin@isometry.net
-COMMENT= Secure and compact IMAP and POP3 servers
-
-WRKSRC= ${WRKDIR}/${PORTNAME}-0.99.12
-
-CONFLICTS= dovecot-1.*
-
-USE_ICONV= yes
-USE_RC_SUBR= yes
-
-GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
-CONFIGURE_ARGS= --without-shadow --with-pam --localstatedir=/var
-CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
- LDFLAGS="-L${LOCALBASE}/lib"
-
-PKGMESSAGE= ${WRKDIR}/pkg-message
-
-DOCS= auth.txt configuration.txt design.txt \
- index.txt mail-storages.txt mkcert.sh multiaccess.txt \
- nfs.txt securecoding.txt \
- dovecot-ldap.conf dovecot-pgsql.conf \
- dovecot-mysql.conf dovecot-openssl.cnf
-
-OPTIONS= GNUTLS "GNUTLS support" off \
- SASL2 "SASL2 support" off \
- VPOPMAIL "VPopMail support" off \
- LDAP "OpenLDAP support" off \
- PGSQL "PostgreSQL support" off \
- MYSQL "MySQL support" off
-
-.include <bsd.port.pre.mk>
-
-## GNUTLS support
-#
-# Use the GNU Transport Layer Security
-# rather than OpenSSL.
-.if defined(WITH_GNUTLS)
-IGNORE= Currently incompatible with security/gnutls
-LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls
-CONFIGURE_ARGS+= --with-ssl=gnutls
-.else
-CONFIGURE_ARGS+= --with-ssl=openssl
-.endif
-
-## SASL2 support
-#
-# SASL provides authentication support to
-# session-based protocols. This is can be
-# used by dovecot for authentication sources.
-#
-.if defined(WITH_SASL2)
-LIB_DEPENDS+= sasl2.2:${PORTSDIR}/security/cyrus-sasl2
-CONFIGURE_ARGS+= --with-cyrus-sasl2
-.endif
-
-## VPopMail Support
-#
-# vpopmail provides easy authentication and
-# multi-domain features. It was originally
-# created for use with Qmail.
-#
-.if defined(WITH_VPOPMAIL)
-VPOPMAIL= ${LOCALBASE}/vpopmail/bin/vchkpw
-BUILD_DEPENDS+= ${VPOPMAIL}:${PORTSDIR}/mail/vpopmail
-CONFIGURE_ARGS+= --with-vpopmail
-.else
-CONFIGURE_ARGS+= --without-vpopmail
-.endif
-
-## OpenLDAP Support
-#
-# LDAP is the light-weight directory access
-# protocol and can be used by Dovecot for its
-# user database.
-#
-.if defined(WITH_LDAP)
-USE_OPENLDAP= yes
-CONFIGURE_ARGS+= --with-ldap
-.endif
-
-## PostgreSQL Support
-#
-# PostgreSQL is a powerful SQL database that
-# can be used to store user tables.
-#
-.if defined(WITH_PGSQL)
-LIB_DEPENDS+= pq.3:${PORTSDIR}/databases/postgresql7
-CONFIGURE_ARGS+= --with-pgsql
-.endif
-
-## MySQL Support
-#
-# MySQL is another SQL database that can be
-# used to store user tables.
-#
-.if defined(WITH_MYSQL)
-USE_MYSQL= yes
-CONFIGURE_ARGS+= --with-mysql
-.endif
-
-post-build:
- @${SED} -e 's,%%PREFIX%%,${PREFIX},' \
- ${WRKSRC}/dovecot-example.conf >${WRKDIR}/dovecot.conf.sample
- @${SED} -e 's,%%PREFIX%%,${PREFIX},g' \
- -e 's,%%RC_SUBR%%,${RC_SUBR},g' \
- ${FILESDIR}/dovecot.sh >${WRKDIR}/dovecot.sh
-
-pre-install:
- @${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
-
-do-install:
- @${MKDIR} ${PREFIX}/libexec/dovecot
- ${INSTALL_PROGRAM} \
- ${WRKSRC}/src/imap/imap \
- ${WRKSRC}/src/pop3/pop3 \
- ${WRKSRC}/src/auth/dovecot-auth \
- ${WRKSRC}/src/imap-login/imap-login \
- ${WRKSRC}/src/pop3-login/pop3-login \
- ${PREFIX}/libexec/dovecot/
- ${INSTALL_PROGRAM} ${WRKSRC}/src/master/dovecot ${PREFIX}/sbin/
- ${INSTALL_DATA} ${WRKDIR}/dovecot.conf.sample ${PREFIX}/etc/
- ${INSTALL_SCRIPT} ${WRKDIR}/dovecot.sh ${PREFIX}/etc/rc.d/
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- cd ${WRKSRC}/doc && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
-.endif
-
-post-install:
- @${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
- @${SED} -e 's,%%PREFIX%%,${PREFIX},g' \
- -e 's,%%DOCSDIR%%,${DOCSDIR},g' \
- ${.CURDIR}/pkg-message >${PKGMESSAGE}
- @${CAT} ${PKGMESSAGE}
-
-.include <bsd.port.post.mk>
diff --git a/mail/dovecot-devel/distinfo b/mail/dovecot-devel/distinfo
deleted file mode 100644
index b0e008921dda..000000000000
--- a/mail/dovecot-devel/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 (dovecot-0.99.12.1.tar.gz) = 08c3952cf6cc0d87e0239cccd9faf4b5
-SIZE (dovecot-0.99.12.1.tar.gz) = 864722
diff --git a/mail/dovecot-devel/files/dovecot.sh b/mail/dovecot-devel/files/dovecot.sh
deleted file mode 100644
index f646cbce8ba3..000000000000
--- a/mail/dovecot-devel/files/dovecot.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-
-# PROVIDE: dovecot
-# REQUIRE: LOGIN
-# KEYWORD: FreeBSD shutdown
-
-#
-# Add the following lines to /etc/rc.conf to enable dovecot:
-#
-#dovecot_enable="YES"
-#
-dovecot_enable=${dovecot_enable-"NO"}
-
-. %%RC_SUBR%%
-
-name=dovecot
-rcvar=`set_rcvar`
-
-command=%%PREFIX%%/sbin/${name}
-required_files=%%PREFIX%%/etc/${name}.conf
-
-load_rc_config ${name}
-run_rc_command "$1"
diff --git a/mail/dovecot-devel/files/patch-dovecot-example.conf b/mail/dovecot-devel/files/patch-dovecot-example.conf
deleted file mode 100644
index 94d8c9b423c7..000000000000
--- a/mail/dovecot-devel/files/patch-dovecot-example.conf
+++ /dev/null
@@ -1,172 +0,0 @@
---- dovecot-example.conf.orig Fri Sep 10 17:27:41 2004
-+++ dovecot-example.conf Fri Sep 10 17:31:39 2004
-@@ -3,7 +3,7 @@
- # Default values are shown after each value, it's not required to uncomment
- # any of the lines. Exception to this are paths, they're just examples
- # with real defaults being based on configure options. The paths listed here
--# are for configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
-+# are for configure --prefix=%%PREFIX%% --sysconfdir=/etc --localstatedir=/var
- # --with-ssldir=/etc/ssl
-
- # Base directory where to store runtime data.
-@@ -11,7 +11,7 @@
-
- # Protocols we want to be serving:
- # imap imaps pop3 pop3s
--#protocols = imap imaps
-+protocols = imap pop3
-
- # IP or host address where to listen in for connections. It's not currently
- # possible to specify multiple addresses. "*" listens in all IPv4 interfaces.
-@@ -27,14 +27,14 @@
- #pop3s_listen =
-
- # Disable SSL/TLS support.
--#ssl_disable = no
-+ssl_disable = yes
-
- # PEM encoded X.509 SSL/TLS certificate and private key. They're opened before
- # dropping root privileges, so keep the key file unreadable by anyone but
- # root. Included doc/mkcert.sh can be used to easily generate self-signed
- # certificate, just make sure to update the domains in dovecot-openssl.cnf
--#ssl_cert_file = /etc/ssl/certs/dovecot.pem
--#ssl_key_file = /etc/ssl/private/dovecot.pem
-+#ssl_cert_file = /etc/ssl/certs/imapd.pem
-+#ssl_key_file = /etc/ssl/private/imapd.pem
-
- # SSL parameter file. Master process generates this file for login processes.
- # It contains Diffie Hellman and RSA parameters.
-@@ -84,12 +84,12 @@
- login = imap
-
- # Executable location.
--#login_executable = /usr/libexec/dovecot/imap-login
-+#login_executable = %%PREFIX%%/libexec/dovecot/imap-login
-
- # User to use for the login process. Create a completely new user for this,
- # and don't use it anywhere else. The user must also belong to a group where
- # only it has access, it's used to control access for authentication process.
--#login_user = dovecot
-+login_user = dovecot
-
- # Set max. process size in megabytes. If you don't use
- # login_process_per_connection you might need to grow this.
-@@ -129,7 +129,7 @@
- login = pop3
-
- # Exception to above rule being the executable location.
--#login_executable = /usr/libexec/dovecot/pop3-login
-+#login_executable = %%PREFIX%%/libexec/dovecot/pop3-login
-
- ##
- ## Mail processes
-@@ -142,7 +142,7 @@
- # Show more verbose process titles (in ps). Currently shows user name and
- # IP address. Useful for seeing who are actually using the IMAP processes
- # (eg. shared mailboxes or if same uid is used for multiple accounts).
--#verbose_proctitle = no
-+verbose_proctitle = yes
-
- # Show protocol level SSL errors.
- #verbose_ssl = no
-@@ -158,7 +158,7 @@
- # non-valid GID as primary group ID aren't allowed to log in. If user
- # belongs to supplementary groups with non-valid GIDs, those groups are
- # not set.
--#first_valid_gid = 1
-+first_valid_gid = 0
- #last_valid_gid = 0
-
- # Grant access to these extra groups for mail processes. Typical use would be
-@@ -171,7 +171,7 @@
- # WARNING: Never add directories here which local users can modify, that
- # may lead to root exploit. Usually this should be done only if you don't
- # allow shell access for users. See doc/configuration.txt for more information.
--#valid_chroot_dirs =
-+valid_chroot_dirs = /var/mail
-
- # Default chroot directory for mail processes. This can be overridden by
- # giving /./ in user's home directory (eg. /home/./user chroots into /home).
-@@ -194,7 +194,7 @@
- # default_mail_env = mbox:~/mail/:INBOX=/var/mail/%u
- # default_mail_env = mbox:/var/mail/%d/%n/:INDEX=/var/indexes/%d/%n
- #
--#default_mail_env =
-+default_mail_env = mbox:/var/mail/%u
-
- # Space-separated list of fields to cache for all mails. Currently these
- # fields are allowed followed by a list of commands they speed up:
-@@ -242,7 +242,7 @@
- # outlook-pop3-no-nuls:
- # Outlook and Outlook Express hang if mails contain NUL characters.
- # This setting replaces them with 0x80 character.
--#client_workarounds =
-+client_workarounds = oe6-fetch-no-newmail outlook-idle outlook-pop3-no-nuls
-
- # Dovecot can notify client of new mail in selected mailbox soon after it's
- # received. This setting specifies the minimum interval in seconds between
-@@ -286,7 +286,7 @@
- # know any MUA which would modify mail files directly. IMAP protocol also
- # requires that the mails don't change, so it would be problematic in any case.
- # If you care about performance, enable it.
--#maildir_copy_with_hardlinks = no
-+maildir_copy_with_hardlinks = yes
-
- # Check if mails' content has been changed by external programs. This slows
- # down things as extra stat() needs to be called for each file. If changes are
-@@ -335,7 +335,7 @@
- ##
-
- # Executable location
--#imap_executable = /usr/libexec/dovecot/imap
-+#imap_executable = %%PREFIX%%/libexec/dovecot/imap
-
- # Set max. process size in megabytes. Most of the memory goes to mmap()ing
- # files, so it shouldn't harm much even if this limit is set pretty high.
-@@ -343,14 +343,14 @@
-
- # Support for dynamically loadable modules.
- #imap_use_modules = no
--#imap_modules = /usr/lib/dovecot/imap
-+#imap_modules = %%PREFIX%%/lib/dovecot/imap
-
- ##
- ## POP3 process
- ##
-
- # Executable location
--#pop3_executable = /usr/libexec/dovecot/pop3
-+#pop3_executable = %%PREFIX%%/libexec/dovecot/pop3
-
- # Set max. process size in megabytes. Most of the memory goes to mmap()ing
- # files, so it shouldn't harm much even if this limit is set pretty high.
-@@ -358,7 +358,7 @@
-
- # Support for dynamically loadable modules.
- #pop3_use_modules = no
--#pop3_modules = /usr/lib/dovecot/pop3
-+#pop3_modules = %%PREFIX%%/lib/dovecot/pop3
-
- ##
- ## Authentication processes
-@@ -431,9 +431,9 @@
- # vpopmail: vpopmail authentication
- # ldap <config path>: LDAP, see doc/dovecot-ldap.conf
- # pgsql <config path>: a PostgreSQL database, see doc/dovecot-pgsql.conf
--auth_passdb = pgsql /usr/local/etc/dovecot-pgsql.conf
-+auth_passdb = passwd
-
--#auth_executable = /usr/libexec/dovecot/dovecot-auth
-+#auth_executable = %%PREFIX%%/libexec/dovecot/dovecot-auth
-
- # Set max. process size in megabytes.
- #auth_process_size = 256
-@@ -464,7 +464,7 @@
-
- # More verbose logging. Useful for figuring out why authentication isn't
- # working.
--#auth_verbose = no
-+auth_verbose = yes
-
- # Even more verbose logging for debugging purposes. Shows for example SQL
- # queries.
diff --git a/mail/dovecot-devel/pkg-deinstall b/mail/dovecot-devel/pkg-deinstall
deleted file mode 100644
index 21c58498bdbe..000000000000
--- a/mail/dovecot-devel/pkg-deinstall
+++ /dev/null
@@ -1,63 +0,0 @@
-#! /bin/sh
-#
-# ex:ts=4
-
-ask() {
- local question default answer
-
- question=$1
- default=$2
- if [ -z "${PACKAGE_BUILDING}" -a -z "${BATCH}" ]; then
- read -p "${question} [${default}]? " answer
- fi
- echo ${answer:-${default}}
-}
-
-yesno() {
- local question default answer
-
- question=$1
- default=$2
- while :; do
- answer=$(ask "${question}" "${default}")
- case "${answer}" in
- [Yy]*) return 0;;
- [Nn]*) return 1;;
- esac
- echo "Please answer yes or no."
- done
-}
-
-delete_account() {
- local u
-
- u=$1
- if yesno "Do you want me to remove user \"${u}\"" n; then
- pw userdel -n ${u}
- echo "Done."
- fi
-}
-
-case $2 in
-
-DEINSTALL)
- if ps -axc | grep -qw dovecot; then
- if yesno "Dovecot is still running. Shall I stop it?" y; then
- killall dovecot
- sleep 2
- else
- echo "OK ... I hope you know what you are doing."
- fi
- fi
-
- delete_account dovecot
-
- base=/var/run/dovecot
- DIRLIST="${base}/login ${base}"
- echo "Cleaning up \"${base}\"."
- for directory in ${DIRLIST}; do
- rmdir ${directory} 2>/dev/null || :
- done
- ;;
-
-esac
diff --git a/mail/dovecot-devel/pkg-descr b/mail/dovecot-devel/pkg-descr
deleted file mode 100644
index d5a19d0d489c..000000000000
--- a/mail/dovecot-devel/pkg-descr
+++ /dev/null
@@ -1,7 +0,0 @@
-Dovecot is a secure and compact IMAP server which is in the early stages
-of developement. It supports Maildirs and mbox formats and much of the
-IMAP v4 protocol including SSL/TLS. IPv6 support is also included.
-Dovecot supports authentication with OpenLDAP, PostgreSQL, MySQL, vpopmail
-and PAM.
-
-WWW: http://www.dovecot.org/
diff --git a/mail/dovecot-devel/pkg-install b/mail/dovecot-devel/pkg-install
deleted file mode 100644
index 05686ba48d5f..000000000000
--- a/mail/dovecot-devel/pkg-install
+++ /dev/null
@@ -1,91 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-# ex:ts=4
-
-ask() {
- local question default answer
-
- question=$1
- default=$2
- if [ -z "${PACKAGE_BUILDING}" -a -z "${BATCH}" ]; then
- read -p "${question} [${default}]? " answer
- fi
- echo ${answer:-${default}}
-}
-
-yesno() {
- local question default answer
-
- question=$1
- default=$2
- while :; do
- answer=$(ask "${question}" "${default}")
- case "${answer}" in
- [Yy]*) return 0;;
- [Nn]*) return 1;;
- esac
- echo "Please answer yes or no."
- done
-}
-
-make_account() {
- local u g gcos
-
- u=$1
- g=$2
- gcos=$3
-
- if pw group show "${g}" >/dev/null 2>&1; then
- echo "You already have a group \"${g}\", so I will use it."
- else
- echo "You need a group \"${g}\"."
- if which -s pw && yesno "Would you like me to create it" y
- then
- pw groupadd ${g} || exit
- echo "Done."
- else
- echo "Please create it, and try again."
- exit 1
- fi
- fi
-
- if pw user show "${u}" >/dev/null 2>&1; then
- echo "You already have a user \"${u}\", so I will use it."
- else
- echo "You need a user \"${u}\"."
- if which -s pw && yesno "Would you like me to create it" y
- then
- pw useradd ${u} -g ${g} -h - -s /sbin/nologin -c "${gcos}" || exit
- echo "Done."
- else
- echo "Please create it, and try again."
- exit 1
- fi
- fi
-}
-
-case $2 in
-
-PRE-INSTALL)
- make_account dovecot dovecot "Dovecot"
- ;;
-
-POST-INSTALL)
- base=/var/run/dovecot
- DIRLIST="${base} ${base}/login"
- echo "Fixing ownerships and modes in \"${base}\"."
- for directory in ${DIRLIST}; do
- if [ ! -d "${directory}" ]; then
- mkdir -p ${directory}
- echo "Created directory: ${directory}"
- fi
- done
- chown -R root:wheel ${base}
- chmod -R 0700 ${base}
- chown -R root:dovecot ${base}/login
- chmod -R 0750 ${base}/login
- ;;
-
-esac
diff --git a/mail/dovecot-devel/pkg-message b/mail/dovecot-devel/pkg-message
deleted file mode 100644
index 7169bd0bfa6f..000000000000
--- a/mail/dovecot-devel/pkg-message
+++ /dev/null
@@ -1,18 +0,0 @@
----------------------------------------------------------------------
-
- You can get default configured IMAP and POP3 services running by
- copying the sample configuration file to the given location and then
- enabling dovecot in /etc/rc.conf.
- In this simple configuration Dovecot will authenticate users against
- the systems passwd file and use the default /var/mail/$USER mbox
- files.
-
- cd %%PREFIX%%/etc; cp dovecot-example.conf dovecot.conf
-
- echo dovecot_enable="YES" >> /etc/rc.conf
-
- Further information on configuration can be found in:
-
- %%DOCSDIR%%
-
----------------------------------------------------------------------
diff --git a/mail/dovecot-devel/pkg-plist b/mail/dovecot-devel/pkg-plist
deleted file mode 100644
index e616165c95e3..000000000000
--- a/mail/dovecot-devel/pkg-plist
+++ /dev/null
@@ -1,24 +0,0 @@
-@comment $FreeBSD$
-etc/dovecot.conf.sample
-etc/rc.d/dovecot.sh
-libexec/dovecot/dovecot-auth
-libexec/dovecot/imap
-libexec/dovecot/imap-login
-libexec/dovecot/pop3
-libexec/dovecot/pop3-login
-@dirrm libexec/dovecot
-sbin/dovecot
-%%PORTDOCS%%%%DOCSDIR%%/auth.txt
-%%PORTDOCS%%%%DOCSDIR%%/configuration.txt
-%%PORTDOCS%%%%DOCSDIR%%/design.txt
-%%PORTDOCS%%%%DOCSDIR%%/index.txt
-%%PORTDOCS%%%%DOCSDIR%%/mail-storages.txt
-%%PORTDOCS%%%%DOCSDIR%%/mkcert.sh
-%%PORTDOCS%%%%DOCSDIR%%/multiaccess.txt
-%%PORTDOCS%%%%DOCSDIR%%/nfs.txt
-%%PORTDOCS%%%%DOCSDIR%%/securecoding.txt
-%%PORTDOCS%%%%DOCSDIR%%/dovecot-ldap.conf
-%%PORTDOCS%%%%DOCSDIR%%/dovecot-openssl.cnf
-%%PORTDOCS%%%%DOCSDIR%%/dovecot-pgsql.conf
-%%PORTDOCS%%%%DOCSDIR%%/dovecot-mysql.conf
-%%PORTDOCS%%@dirrm %%DOCSDIR%%