[Midnightbsd-cvs] mports: mports/mail: We're forced to remove this due to it's odd

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Mon Oct 29 15:09:27 EDT 2007


Log Message:
-----------
We're forced to remove this due to it's odd license.  FreeBSD had a special exception that we do not have to distribute a modified distribution.  To the best ofmy knowledge, no one is using this anyway.

Requested by ctriv@

Modified Files:
--------------
    mports/mail:
        Makefile (r1.33 -> r1.34)

Removed Files:
-------------
    mports/mail/qmail:
        Makefile
        distinfo
        pkg-descr
        pkg-plist
    mports/mail/qmail/files:
        bootfiles.sed.in
        enable-qmail.in
        extra-patch-spamcontrol-qmail-smtpd.c
        maildir
        mailer.conf.sample.in
        mkaliasdir
        patch-install.c
        patch-qmail-local.c
        pkg-install.in
        pkg-message-ldap.in
        pkg-message-mysql.in
        pkg-message-tls.in
        pkg-message.in

-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/mail/Makefile,v
retrieving revision 1.33
retrieving revision 1.34
diff -Lmail/Makefile -Lmail/Makefile -u -r1.33 -r1.34
--- mail/Makefile
+++ mail/Makefile
@@ -37,7 +37,6 @@
     SUBDIR += pine4
     SUBDIR += popd
     SUBDIR += procmail
-    SUBDIR += qmail
     SUBDIR += razor-agents
     SUBDIR += sendmail
     SUBDIR += spamd
--- mail/qmail/pkg-descr
+++ /dev/null
@@ -1,23 +0,0 @@
-The qmail program is a secure, reliable, efficient simple message
-transfer agent.  It is meant to be a replacement for the entire
-sendmail-binmail system that most UNIX hosts use.
-
-Although qmail holds security and reliability as its top two
-priorities, it is also fast.  On a Pentium under BSD/OS, qmail can
-easily handle 200000 separate messages per day that are injected
-and must then be delivered to local mailboxes!
-
-Security and reliability are qmail's two strengths, however.  The
-qmail package ensures a message, once accepted, will never be lost.
-An optional new mailbox format, maildir, even lets users safely
-read their mail over NFS, while still accepting new mail deliveries.
-
-The following features are supported: host and user masquerading,
-full host hiding, virtual domains, null clients, list-owner rewriting,
-relay control, double-bounce recording, arbitrary RFC 822 address
-lists, cross-host mailing-list loop detection, per-recipient
-checkpointing, downed host backoffs, independent message retry
-schedules, a drop-in sendmail replacement, and more!
-
-http://pobox.com/~djb/qmail.html
-WWW: http://www.qmail.org/
--- mail/qmail/pkg-plist
+++ /dev/null
@@ -1,150 +0,0 @@
- at comment $FreeBSD: ports/mail/qmail/pkg-plist,v 1.14 2006/07/27 19:20:22 garga Exp $
-%%RCDLINK%%@unexec rm -f %%LOCALBASE%%/etc/rc.d/qmail.sh
-%%LDAP%%bin/auth_imap
-%%LDAP%%bin/auth_pop
-%%LDAP%%bin/auth_smtp
-bin/bouncesaying
-bin/condredirect
-%%LDAP%%bin/condwrite
-bin/datemail
-%%LDAP%%bin/digest
-bin/elq
-bin/except
-bin/forward
-bin/maildir2mbox
-bin/maildirmake
-bin/maildirwatch
-bin/mailsubj
-%%LDAP%%bin/pbsadd
-%%LDAP%%bin/pbscheck
-%%LDAP%%bin/pbsdbd
-bin/pinq
-bin/predate
-bin/preline
-bin/qail
-bin/qbiff
-%%SPAMCONTROL%%bin/qmail-badloadertypes
-%%SPAMCONTROL%%bin/qmail-badmimetypes
-%%LDAP%%bin/qmail-cdb
-bin/qmail-clean
-%%LDAP%%bin/qmail-forward
-bin/qmail-getpw
-%%LDAP%%bin/qmail-group
-bin/qmail-inject
-%%LDAP%%bin/qmail-ldaplookup
-bin/qmail-local
-bin/qmail-lspawn
-%%SPAMCONTROL%%bin/qmail-mfrules
-bin/qmail-newmrh
-bin/qmail-newu
-bin/qmail-pop3d
-bin/qmail-popup
-bin/qmail-pw2u
-bin/qmail-qmqpc
-bin/qmail-qmqpd
-bin/qmail-qmtpd
-bin/qmail-qread
-bin/qmail-qstat
-bin/qmail-queue
-%%LDAP%%bin/qmail-quotawarn
-%%SPAMCONTROL%%bin/qmail-recipients
-bin/qmail-remote
-%%LDAP%%bin/qmail-reply
-bin/qmail-rspawn
-%%LDAP%%bin/qmail-secretary
-bin/qmail-send
-bin/qmail-showctl
-bin/qmail-smtpd
-bin/qmail-start
-bin/qmail-tcpok
-bin/qmail-tcpto
-%%EXTTODO%%bin/qmail-todo
-%%LDAP%%%%EXTERNAL_TODO%%bin/qmail-todo
-%%LDAP%%bin/qmail-verify
-bin/qreceipt
-bin/qsmhook
-bin/sendmail
-bin/splogger
-bin/tcp-env
-%%NOT_LDAP%%boot/binm1
-%%NOT_LDAP%%boot/binm1+df
-%%NOT_LDAP%%boot/binm2
-%%NOT_LDAP%%boot/binm2+df
-%%NOT_LDAP%%boot/binm3
-%%NOT_LDAP%%boot/binm3+df
-%%NOT_LDAP%%boot/home
-%%NOT_LDAP%%boot/home+df
-%%NOT_LDAP%%boot/maildir
-%%NOT_LDAP%%boot/proc
-%%NOT_LDAP%%boot/proc+df
-%%LDAP%%boot/qmail/log/run
-%%LDAP%%boot/qmail/run
-%%LDAP%%boot/qmail-smtpd/log/run
-%%LDAP%%boot/qmail-smtpd/run
-%%LDAP%%boot/qmail-qmqpd/log/run
-%%LDAP%%boot/qmail-qmqpd/run
-%%LDAP%%boot/qmail-pop3d/log/run
-%%LDAP%%boot/qmail-pop3d/run
-%%LDAP%%boot/qmail-imapd/log/run
-%%LDAP%%boot/qmail-imapd/run
-%%LDAP%%boot/qmail-pop3d-ssl/log/run
-%%LDAP%%boot/qmail-pop3d-ssl/run
-%%LDAP%%boot/qmail-imapd-ssl/log/run
-%%LDAP%%boot/qmail-imapd-ssl/run
-%%LDAP%%boot/qmail-pbsdbd/log/run
-%%LDAP%%boot/qmail-pbsdbd/run
- at comment This port installs the following manually (ie. not through qmail-hier)
-configure/config
-configure/config-fast
-configure/dnsfq
-configure/dnsip
-configure/dnsptr
-configure/hostname
-configure/install
-configure/ipmeprint
-scripts/enable-qmail
-scripts/mkaliasdir
-%%SPAMCONTROL%%scripts/qmail-alias2recipients
-%%SPAMCONTROL%%scripts/qmail-pwd2recipients
-%%SPAMCONTROL%%scripts/qmail-users2recipients
-%%SPAMCONTROL%%scripts/qmail-vpopmail2recipients
- at dirrm bin
-%%LDAP%%@dirrm boot/qmail/env
-%%LDAP%%@dirrm boot/qmail/log
-%%LDAP%%@dirrm boot/qmail-smtpd/env
-%%LDAP%%@dirrm boot/qmail-smtpd/log
-%%LDAP%%@dirrm boot/qmail-smtpd
-%%LDAP%%@dirrm boot/qmail-qmqpd/env
-%%LDAP%%@dirrm boot/qmail-qmqpd/log
-%%LDAP%%@dirrm boot/qmail-qmqpd
-%%LDAP%%@dirrm boot/qmail-pop3d/env
-%%LDAP%%@dirrm boot/qmail-pop3d/log
-%%LDAP%%@dirrm boot/qmail-pop3d
-%%LDAP%%@dirrm boot/qmail-imapd/env
-%%LDAP%%@dirrm boot/qmail-imapd/log
-%%LDAP%%@dirrm boot/qmail-imapd
-%%LDAP%%@dirrm boot/qmail-pop3d-ssl/env
-%%LDAP%%@dirrm boot/qmail-pop3d-ssl/log
-%%LDAP%%@dirrm boot/qmail-pop3d-ssl
-%%LDAP%%@dirrm boot/qmail-imapd-ssl/env
-%%LDAP%%@dirrm boot/qmail-imapd-ssl/log
-%%LDAP%%@dirrm boot/qmail-imapd-ssl
-%%LDAP%%@dirrm boot/qmail-pbsdbd/env
-%%LDAP%%@dirrm boot/qmail-pbsdbd/log
-%%LDAP%%@dirrm boot/qmail-pbsdbd
-%%LDAP%%@dirrm boot/qmail
-%%LDAP%%@dirrm log/qmail
-%%LDAP%%@dirrm log/qmail-smtpd
-%%LDAP%%@dirrm log/qmail-qmqpd
-%%LDAP%%@dirrm log/qmail-pop3d
-%%LDAP%%@dirrm log/qmail-imapd
-%%LDAP%%@dirrm log/qmail-pop3d-ssl
-%%LDAP%%@dirrm log/qmail-imapd-ssl
-%%LDAP%%@dirrm log/qmail-pbsdbd
-%%LDAP%%@dirrm log
- at dirrm boot
- at dirrm configure
- at dirrm scripts
- at unexec echo "1) If you are permanently removing qmail, you should also 'rm -rf ${PKG_PREFIX}' and remove the qmail users/groups." | /usr/bin/fmt
- at unexec echo "2) Do not forget to reconfigure your /etc/mail/mailer.conf to use your older MTA, or reconfigure your old MTA binaries if you decided to replace them." | /usr/bin/fmt
- at unexec echo "3) Do not forget to enable sendmail as your default MTA if you have to. You can do it just executing 'echo sendmail_enable=\"YES\"' >> /etc/rc.conf" | /usr/bin/fmt
--- mail/qmail/Makefile
+++ /dev/null
@@ -1,742 +0,0 @@
-# New ports collection makefile for:	qmail
-# Date created:		25 May 1998
-# Whom:			Mario S F Ferreira <lioux at linf.unb.br> et al.
-#
-# $FreeBSD: ports/mail/qmail/Makefile,v 1.118 2007/02/05 23:32:02 garga Exp $
-# $MidnightBSD: mports/mail/qmail/Makefile,v 1.3 2007/09/14 01:20:03 ctriv Exp $
-#
-
-DEPRECATED=		DJB's packaging license requires files to be installed in /var
-EXPIRATION_DATE=	2007-10-13
-
-IGNORE=${DEPRECATED}
-
-
-PORTNAME=	qmail
-PORTVERSION?=	${QMAIL_VERSION}
-PORTREVISION?=	5
-CATEGORIES=	mail
-MASTER_SITES+=	${MASTER_SITE_QMAIL}
-DISTNAME=	${PORTNAME}-${QMAIL_VERSION}
-DISTFILES?=	${DISTNAME}${EXTRACT_SUFX}
-EXTRACT_ONLY?=	${DISTNAME}${EXTRACT_SUFX}
-
-MAINTAINER?=	ports at MidnightBSD.org
-COMMENT?=	A secure, reliable, efficient, simple, and fast MTA
-
-DIST_SUBDIR=	qmail
-
-CONFLICTS?=	qmail-ldap-[0-9]* qmail-mysql-[0-9]* qmail-spamcontrol-[0-9]* qmail-tls-[0-9]*
-CONFLICTS+=	qmail-vida-[0-9]*
-
-.if defined(SLAVE_LDAP) || \
-    defined(SLAVE_MYSQL)
-BARRIER_MAILDIRQUOTA_PATCH=	yes
-BARRIER_SPF_PATCH=		yes
-.endif
-
-.if defined(SLAVE_LDAP) || \
-    defined(SLAVE_SPAMCONTROL) || \
-    defined(SLAVE_MYSQL)
-BARRIER_BLOCKEXEC_PATCH=	yes
-BARRIER_QMAILQUEUE_PATCH=	yes
-BARRIER_SMTP_AUTH_PATCH=	yes
-.endif
-
-.if defined(SLAVE_LDAP)
-BARRIER_BIG_CONCURRENCY_PATCH=	yes
-BARRIER_DNS_PATCH=		yes
-BARRIER_EXTTODO_PATCH=		yes
-BARRIER_OUTGOINGIP_PATCH=	yes
-.endif
-
-.if defined(SLAVE_LDAP) || \
-    defined(SLAVE_SPAMCONTROL)
-BARRIER_QMTPC_PATCH=		yes
-BARRIER_DISCBOUNCES_PATCH=	yes
-BARRIER_SENDMAIL_F_PATCH=	yes
-BARRIER_BIG_TODO_PATCH=		yes
-.endif
-
-.if defined(SLAVE_LDAP) || \
-    defined(SLAVE_SPAMCONTROL) || \
-    defined(SLAVE_TLS)
-BARRIER_RFC2821_PATCH=		yes
-BARRIER_TARPIT_PATCH=		yes
-.endif
-
-PATCH_DIST_STRIP+=	-p1
-
-.if !defined(BARRIER_DNS_PATCH)
-# Patch necessary to cope with non-RFC >512 dns entries
-# Since AOL has been using those, the problem has skyrocketed from minor to
-# groundzero. qmail being RFC compliant need to be "fixed" to work with those
-PATCH_SITES+=	http://www.ckdhr.com/ckd/:dns
-PATCHFILES+=	qmail-103.patch:dns
-.endif
-
-.if !defined(BARRIER_SENDMAIL_F_PATCH)
-# David Phillips noticed that sendmail's -f option sets a default
-# From: header, and so should qmail's emulation.
-PATCH_SITES+=	http://david.acz.org/software/:sendmail_flagf
-PATCHFILES+=	sendmail-flagf.patch:sendmail_flagf
-.endif
-
-.if !defined(BARRIER_RFC2821_PATCH)
-# This patch changes qmail-remote to skip over MX servers that greet with
-# codes 400 to 499 and to bounce mail when any MX server that qmail tries
-# greets with a code 500 to 599.
-# Created by Matthias Andree
-PATCH_SITES+=	http://www-dt.e-technik.uni-dortmund.de/~ma/qmail/:rfc2821
-PATCHFILES+=	patch-qmail-1.03-rfc2821.diff:rfc2821
-.endif
-
-.if defined(SLAVE_LDAP)
-PATCH_SITES+=	http://www.nrg4u.com/qmail/:ldap
-PATCHFILES+=	qmail-ldap-1.03-${LDAP_PATCH_DATE}.patch.gz:ldap
-.elif defined(SLAVE_MYSQL)
-PATCH_SITES+=	http://iain.cx/unix/qmail/download/:mysql
-PATCHFILES+=	qmail-mysql-${MYSQL_PATCH_VERSION}.patch:mysql
-.elif defined(SLAVE_TLS)
-PATCH_SITES+=	http://inoa.net/qmail-tls/:tls
-PATCHFILES+=	qmail-1.03-tls-${TLS_PATCH_DATE}-renato.patch:tls
-.endif
-
-PATCH_SITES+=	${MASTER_SITE_LOCAL:S/$/:dns,sendmail_flagf,rfc2821,ldap,mysql,tls,quota,blockexec,doublebounce,spf,localtime,qmtpc_outgoingip/}
-PATCH_SITE_SUBDIR+=	garga/qmail/:dns,sendmail_flagf,rfc2821,ldap,mysql,tls,quota,blockexec,doublebounce,spf,localtime,qmtpc_outgoingip
-
-RESTRICTED=	djb's packaging license does not allow non-standard qmail binary distributions
-
-PREFIX?=		${QMAIL_PREFIX}
-QMAIL_VERSION?=		1.03
-
-.if !defined(BARRIER_SMTP_AUTH_PATCH)
-SMTP_AUTH_VERSION=	0.31
-SMTP_AUTH_DIR=		${WRKDIR}/${PORTNAME}-smtpd-auth-${SMTP_AUTH_VERSION}
-
-OPTIONS+=	SMTP_AUTH_PATCH "Provide SMTP Authentication" off
-.endif
-.if !defined(BARRIER_QMAILQUEUE_PATCH)
-OPTIONS+=	QMAILQUEUE_PATCH "run a QMAILQUEUE program" off
-.endif
-.if !defined(BARRIER_BIG_TODO_PATCH)
-OPTIONS+=	BIG_TODO_PATCH "enable big_todo qmail patch" off
-.endif
-.if !defined(BARRIER_BIG_CONCURRENCY_PATCH)
-OPTIONS+=	BIG_CONCURRENCY_PATCH "use a concurrency greater than 240" off
-.endif
-.if !defined(BARRIER_OUTGOINGIP_PATCH)
-OPTIONS+=	OUTGOINGIP_PATCH "set the IP address to send messages" off
-.endif
-.if !defined(BARRIER_LOCALTIME_PATCH)
-OPTIONS+=	LOCALTIME_PATCH "emit dates in the local timezone" off
-.endif
-.if !defined(BARRIER_QMTPC_PATCH)
-OPTIONS+=	QMTPC_PATCH "send email using qmtp protocol" off
-.endif
-.if !defined(BARRIER_MAILDIRQUOTA_PATCH)
-OPTIONS+=	MAILDIRQUOTA_PATCH "Maildir++ support" off
-.endif
-.if !defined(BARRIER_BLOCKEXEC_PATCH)
-OPTIONS+=	BLOCKEXEC_PATCH "block many windows viruses/worms" off
-.endif
-.if !defined(BARRIER_DISCBOUNCES_PATCH)
-OPTIONS+=	DISCBOUNCES_PATCH "discard double-bounces" off
-.endif
-.if !defined(BARRIER_SPF_PATCH)
-OPTIONS+=	SPF_PATCH "Implement SPF checker" off
-.endif
-.if !defined(BARRIER_TARPIT_PATCH)
-OPTIONS+=	TARPIT_PATCH "Implement TARPIT functions" off
-.endif
-.if !defined(BARRIER_EXTTODO_PATCH)
-OPTIONS+=	EXTTODO_PATCH "extern high-perform. todo processing" off
-.endif
-.if defined(SLAVE_TLS)
-OPTIONS+=	TLS_DEBUG "enable additional debug information" off
-.elif defined(SLAVE_LDAP)
-OPTIONS+=	TLS "SMTP TLS support" on \
-		ALTQUEUE "run a QMAILQUEUE external queue" off \
-		BIGBROTHER "use the control/bigbrother program" off \
-		BIGTODO "use big_todo qmail patch" off \
-		BIND_8_COMPAT "Needed if compile fails building dns.c" off \
-		CLEARTEXTPASSWD "use cleartext passwords (Dangerous!)" off \
-		DASH_EXT "dash_ext extended mail addresses add" on \
-		DATA_COMPRESS "smtp on the fly DATA compression" on \
-		EXTERNAL_TODO "external high-performance todo processing" on \
-		IGNOREVERISIGN "disallow dns wildchar matches on gtlds" off \
-		QLDAP_CLUSTER "cluster support" on \
-		QMQP_COMPRESS "QMQP on the fly compression" on \
-		QUOTATRASH "include the Trash in the quota" off \
-		SMTPEXECCHECK "smtp DOS/Windows executable detection" on \
-		AUTOMAILDIRMAKE "the auto-maildir-make feature" on \
-		AUTOHOMEDIRMAKE "auto-homedir-make feature" on \
-		LDAP_DEBUG "possibility to log and debug imap/pop" off
-
-LDAP_PARAMS=	ALTQUEUE BIGBROTHER BIGTODO BIND_8_COMPAT\
-		CLEARTEXTPASSWD DASH_EXT DATA_COMPRESS\
-		EXTERNAL_TODO IGNOREVERISIGN QLDAP_CLUSTER\
-		QMQP_COMPRESS QUOTATRASH SMTPEXECCHECK
-
-.elif defined(SLAVE_SPAMCONTROL)
-OPTIONS+=	RELAYMAILFROM	"Open relay based on mailfrom" off \
-		REQBRACKETS	"Require brackets in <addresses>" on \
-		VERP		"VERP addresses for recipients" on \
-		MOREIPME	"Add control files (more|not)ipme" off \
-		BIGTODO		"Bruce Guenter's BigToDo patch" off \
-		SMTPEXTFORK		"Allow qmail-smtpd fork external progs" off
-.endif
-.if !defined(SLAVE_LDAP)
-OPTIONS+=	RCDLINK "create rc.d/qmail.sh" on
-.endif
-
-ALL_TARGET+=	default dot-qmail.5 qmail-control.5 qmail-getpw.8 \
-		qmail-limits.7 qmail-newmrh.8 qmail-newu.8 qmail-pw2u.8 \
-		qmail-send.8 qmail-start.8 qmail-users.5
-
-MAN1+=	forward.1 condredirect.1 bouncesaying.1 except.1 maildirmake.1 \
-	maildir2mbox.1 maildirwatch.1 mailsubj.1 qreceipt.1 qbiff.1 preline.1 \
-	tcp-env.1
-MAN5+=	addresses.5 envelopes.5 maildir.5 mbox.5 dot-qmail.5 qmail-control.5 \
-	qmail-header.5 qmail-log.5 qmail-users.5 tcp-environ.5
-MAN7+=	forgeries.7 qmail-limits.7 qmail.7
-MAN8+=	qmail-local.8 qmail-lspawn.8 qmail-getpw.8 qmail-remote.8 \
-	qmail-rspawn.8 qmail-clean.8 qmail-send.8 qmail-start.8 splogger.8 \
-	qmail-queue.8 qmail-inject.8 qmail-showctl.8 qmail-newmrh.8 \
-	qmail-newu.8 qmail-pw2u.8 qmail-qread.8 qmail-qstat.8 qmail-tcpok.8 \
-	qmail-tcpto.8 qmail-pop3d.8 qmail-popup.8 qmail-qmqpc.8 qmail-qmqpd.8 \
-	qmail-qmtpd.8 qmail-smtpd.8 qmail-command.8
-
-.if defined(SLAVE_MYSQL)
-PKGMESSAGE_SUFFIX=	mysql
-.endif
-
-.if defined(SLAVE_SPAMCONTROL)
-EXTRA_MAN8=	qmail-badloadertypes.8 qmail-badmimetypes.8 qmail-mfrules.8 qmail-recipients.8
-ALL_TARGET+=	${EXTRA_MAN8}
-MAN8+=		${EXTRA_MAN8}
-.endif
-
-.if defined(SLAVE_LDAP)
-PKGMESSAGE_SUFFIX=	ldap
-PLIST_SUB+=	LDAP="" NOT_LDAP="@comment "
-.else
-PLIST_SUB+=	LDAP="@comment " NOT_LDAP=""
-.endif
-
-.if defined(SLAVE_SPAMCONTROL)
-PLIST_SUB+=	SPAMCONTROL=""
-.else
-PLIST_SUB+=	SPAMCONTROL="@comment "
-.endif
-
-.if defined(SLAVE_TLS)
-PKGMESSAGE_SUFFIX=	tls
-.endif
-
-.if defined(PKGMESSAGE_SUFFIX)
-SLAVEPORT_LINE=	${PKGMESSAGE_SUFFIX}
-.elif defined(SLAVE_SPAMCONTROL)
-SLAVEPORT_LINE=	spamcontrol
-.endif
-
-SUB_FILES+=	mailer.conf.sample bootfiles.sed enable-qmail
-SUB_LIST+=	ECHO_CMD=${ECHO_CMD}
-# pkg-install could not be added to SUB_FILES because it's executed on do-configure:
-PKGINSTALL?=	${WRKDIR}/pkg-install
-
-.if defined(PKGMESSAGE_SUFFIX)
-SUB_FILES+=	pkg-message-${PKGMESSAGE_SUFFIX}
-PKGMESSAGE?=	${WRKDIR}/pkg-message-${PKGMESSAGE_SUFFIX}
-.else
-SUB_FILES+=	pkg-message
-.endif
-
-CSH?=		/bin/csh
-WRKDIR_doc=	${WRKDIR}/doc
-
-PORTDOCS=	*
-
-DOCFILES_WRKSRC+=	BLURB BLURB2 BLURB3 BLURB4 INTERNALS SECURITY \
-			THOUGHTS FAQ UPGRADE SENDMAIL INSTALL INSTALL.alias \
-			INSTALL.ctl INSTALL.ids INSTALL.maildir INSTALL.mbox \
-			INSTALL.vsm TEST.deliver TEST.receive REMOVE.sendmail \
-			REMOVE.binmail PIC.local2alias PIC.local2ext \
-			PIC.local2local PIC.local2rem PIC.local2virt \
-			PIC.nullclient PIC.relaybad PIC.relaygood PIC.rem2local
-DOCFILES_WRKDIR+=	mailer.conf.sample
-
-.if defined(SLAVE_LDAP)
-DOCFILES_WRKSRC+=	QLDAPINSTALL QLDAPNEWS POPBEFORESMTP QLDAPTODO \
-			QLDAPPICTURE QLDAPGROUP EXTTODO qmail.schema
-.elif defined(SLAVE_TLS)
-DOCFILES_WRKDIR+=	TLS.readme
-.elif defined(SLAVE_SPAMCONTROL)
-DOCFILES_WRKDIR_doc+=	FILES.spamcontrol HISTORY.spamcontrol \
-			INSTALL.spamcontrol LICENSE.spamcontrol \
-			LOGGING.spamcontrol Makefile.djbdns README.bigtodo \
-			README.bouncemaxbytes README.clamav README.djbdns \
-			README.doublebouncetrim README.mav README.moreipme \
-			README.qmailqueue README.recipients \
-			README.wildmat README_spamcontrol.html \
-			RELEASE_22.spamcontrol RELEASE_23.spamcontrol \
-			SMTPREPLY.spamcontrol TODO.spamcontrol badloadertypes \
-			badmailfrom badmimetypes badrcptto tarpitcount
-SCRIPTS+=	qmail-alias2recipients qmail-pwd2recipients \
-		qmail-users2recipients qmail-vpopmail2recipients
-.endif
-
-.if !defined(SLAVE_LDAP)
-BOOTFILES=	home home+df proc proc+df binm1 binm1+df \
-		binm2 binm2+df binm3 binm3+df maildir
-.endif
-
-CONFIGUREPROGRAMS=	install dnsfq hostname dnsip ipmeprint dnsptr
-CONFIGURESCRIPTS=	config config-fast
-
-.include "${.CURDIR}/../../Mk/bsd.mail.mk"
-
-.if (${PREFIX} != ${LOCALBASE})
-DOCSDIR=	${PREFIX}/doc
-.endif
-
-NO_MTREE=	yes
-
-.include <bsd.port.pre.mk>
-
-.if defined(SLAVE_TLS)
-CFLAGS+=	-I${OPENSSLBASE}/include -L${OPENSSLBASE}/lib -DTLS
-. if defined(WITH_TLS_DEBUG)
-CFLAGS+=	-DDEBUG
-. endif
-.endif
-
-.if defined(SLAVE_LDAP)
-
-. if !defined(WITHOUT_TLS)
-# we can't use USE_OPENSSL=yes after including bsd.port.pre.mk
-.include "${PORTSDIR}/Mk/bsd.openssl.mk"
-. endif
-
-. for param in ${LDAP_PARAMS}
-.  if defined(WITH_${param}) && !defined(WITHOUT_${param})
-LDAPFLAGS+=	-D${param}
-.  endif
-. endfor
-
-. if defined(WITH_EXTERNAL_TODO)
-PLIST_SUB+=	EXTERNAL_TODO=""
-. else
-PLIST_SUB+=	EXTERNAL_TODO="@comment "
-. endif
-
-.endif
-
-.if defined(WITH_SMTP_AUTH_PATCH) && !defined(BARRIER_SMTP_AUTH_PATCH)
-MASTER_SITES+=	http://members.elysium.pl/brush/qmail-smtpd-auth/dist/:smtp_auth \
-		${MASTER_SITE_LOCAL:S/$/:smtp_auth/}
-MASTER_SITE_SUBDIR+=	garga/qmail/:smtp_auth
-DISTFILES+=	qmail-smtpd-auth-${SMTP_AUTH_VERSION}.tar.gz:smtp_auth
-EXTRACT_ONLY+=	qmail-smtpd-auth-${SMTP_AUTH_VERSION}.tar.gz
-MASTER_SITES+=	http://tomclegg.net/qmail/:close3
-DISTFILES+=	qmail-smtpd-auth-close3.patch:close3
-. if defined(SLAVE_TLS)
-AUTH_PATCH=	auth.patch.diff-tls
-. elif defined(WITH_SPF_PATCH) && !defined(BARRIER_SPF_PATCH)
-AUTH_PATCH=	auth.patch.diff
-. endif
-
-. if defined(AUTH_PATCH)
-DISTFILES+=	${AUTH_PATCH}:smtp_auth
-. endif
-.endif
-
-.if defined(WITH_MAILDIRQUOTA_PATCH) && !defined(BARRIER_MAILDIRQUOTA_PATCH)
-PATCH_SITES+=	http://www.alexdupre.com/qmail/:quota
-PATCHFILES+=	qmail-maildir++.patch:quota
-.endif
-
-.if defined(WITH_BLOCKEXEC_PATCH) && !defined(BARRIER_BLOCKEXEC_PATCH)
-PATCH_SITES+=	http://www.alexdupre.com/qmail/:blockexec
-PATCHFILES+=	qmail-block-executables.patch:blockexec
-.endif
-
-.if defined(WITH_DISCBOUNCES_PATCH) && !defined(BARRIER_DISCBOUNCES_PATCH)
-PATCH_SITES+=	http://www.alexdupre.com/qmail/:doublebounce
-PATCHFILES+=	qmail-discard-double-bounces.patch:doublebounce
-.endif
-
-.if defined(WITH_SPF_PATCH) && !defined(BARRIER_SPF_PATCH)
-. if defined(SLAVE_TLS) || defined(SLAVE_SPAMCONTROL)
-.  if defined(SLAVE_SPAMCONTROL)
-SPF_SPAMCONTROL_PATCH=	qmail-spf-rc5.patch-spamcontrol
-MASTER_SITES+=		${MASTER_SITE_LOCAL:S/$/:spf_spamcontrol/}
-MASTER_SITE_SUBDIR+=	garga/qmail/:spf_spamcontrol
-DISTFILES+=		${SPF_SPAMCONTROL_PATCH}:spf_spamcontrol
-.  elif defined(WITH_SMTP_AUTH_PATCH)
-SPF_TLS_PATCH=	qmail-spf-rc5.patch-auth-tls
-MASTER_SITES+=	http://manuel.mausz.at/programming/patches/qmail/:spf_tls
-DISTFILES+=	${SPF_TLS_PATCH}:spf_tls
-.  else
-SPF_TLS_PATCH=	qmail-spf-rc5.patch-tls
-MASTER_SITES+=	http://manuel.mausz.at/programming/patches/qmail/:spf_tls
-DISTFILES+=	${SPF_TLS_PATCH}:spf_tls
-.  endif
-. else
-PATCH_SITES+=	http://www.saout.de/misc/spf/:spf
-PATCHFILES+=	qmail-spf-rc5.patch:spf
-. endif
-.endif
-
-.if defined(WITH_EXTTODO_PATCH) && !defined(BARRIER_EXTTODO_PATCH)
-PLIST_SUB+=		EXTTODO=""
-DOCFILES_WRKSRC+=	EXTTODO
-
-. if (defined(WITH_BIG_TODO_PATCH) && !defined(BARRIER_BIG_TODO_PATCH)) || \
-     (defined(SLAVE_SPAMCONTROL) && defined(WITH_BIGTODO))
-MASTER_SITES+=	${MASTER_SITE_LOCAL:S/$/:ext_big_todo/}
-MASTER_SITE_SUBDIR+=	garga/qmail/:ext_big_todo
-EXT_BIG_TODO_PATCH=	ext_todo-20030105+big-todo.103.patch
-DISTFILES+=	${EXT_BIG_TODO_PATCH}:ext_big_todo
-. endif
-
-. if defined(WITH_SPF_PATCH) && !defined(BARRIER_SPF_PATCH)
-.  if defined(SLAVE_TLS) || defined(SLAVE_SPAMCONTROL)
-MASTER_SITES+=	${MASTER_SITE_LOCAL:S/$/:exttodo/}
-MASTER_SITE_SUBDIR+=	garga/qmail/:exttodo
-EXTTODO_PATCH=	ext_todo-20030105_spf.patch
-DISTFILES+=	${EXTTODO_PATCH}:exttodo
-.  else
-PATCH_SITES+=	${MASTER_SITE_LOCAL:S/$/:exttodo/}
-PATCHFILES+=	ext_todo-20030105_spf.patch:exttodo
-PATCH_SITE_SUBDIR+=	garga/qmail/:exttodo
-.  endif
-. elif defined(SLAVE_MYSQL)
-PATCH_SITES+=	${MASTER_SITE_LOCAL:S/$/:exttodo/}
-PATCHFILES+=	ext_todo-20030105_mysql.patch:exttodo
-PATCH_SITE_SUBDIR+=	garga/qmail/:exttodo
-. else
-PATCH_SITES+=	http://www.nrg4u.com/qmail/:exttodo
-PATCHFILES+=	ext_todo-20030105.patch:exttodo
-. endif
-.else
-PLIST_SUB+=	EXTTODO="@comment "
-.endif
-
-.if !defined(BARRIER_DNS_PATCH) \
- 	||(defined(WITH_QMAILQUEUE_PATCH)     && !defined(BARRIER_QMAILQUEUE_PATCH)) \
-	||(defined(WITH_BIG_TODO_PATCH)       && !defined(BARRIER_BIG_TODO_PATCH)) \
-	||(defined(WITH_BIG_CONCURRENCY_PATCH)&& !defined(BARRIER_BIG_CONCURRENCY_PATCH)) \
-	||(defined(WITH_OUTGOINGIP_PATCH)     && !defined(BARRIER_OUTGOINGIP_PATCH)) \
-	||(defined(WITH_QMTPC_PATCH)          && !defined(BARRIER_QMTPC_PATCH))
-PATCH_SITES+=	${MASTER_SITE_QMAIL}
-.endif
-
-.if defined(WITH_QMAILQUEUE_PATCH) && !defined(BARRIER_QMAILQUEUE_PATCH)
-PATCHFILES+=	qmailqueue-patch
-.endif
-.if defined(WITH_BIG_TODO_PATCH) && !defined(BARRIER_BIG_TODO_PATCH)
-PATCHFILES+=	big-todo.103.patch
-.endif
-.if defined(WITH_BIG_CONCURRENCY_PATCH) && !defined(BARRIER_BIG_CONCURRENCY_PATCH)
-PATCHFILES+=	big-concurrency.patch
-.endif
-.if defined(WITH_OUTGOINGIP_PATCH) && !defined(BARRIER_OUTGOINGIP_PATCH) && \
-    defined(WITH_QMTPC_PATCH) && !defined(BARRIER_QMTPC_PATCH)
-PATCHFILES+=	qmail-1.03-qmtpc_outgoingip.patch:qmtpc_outgoingip
-.elif defined(WITH_OUTGOINGIP_PATCH) && !defined(BARRIER_OUTGOINGIP_PATCH) && defined(SLAVE_SPAMCONTROL)
-MASTER_SITES+=	${MASTER_SITE_LOCAL:S/$/:outgoingip_spamcontrol/}
-MASTER_SITE_SUBDIR+=	garga/qmail/:outgoingip_spamcontrol
-DISTFILES+=	outgoingip.patch-spamcontrol:outgoingip_spamcontrol
-.elif defined(WITH_OUTGOINGIP_PATCH) && !defined(BARRIER_OUTGOINGIP_PATCH)
-PATCHFILES+=	outgoingip.patch
-.elif defined(WITH_QMTPC_PATCH) && !defined(BARRIER_QMTPC_PATCH)
-PATCHFILES+=	qmail-1.03-qmtpc.patch
-.endif
-
-.if defined(WITH_LOCALTIME_PATCH) && !defined(BARRIER_LOCALTIME_PATCH)
-PATCH_SITES+=	http://www.alib.jp/files/:localtime
-PATCHFILES+=	qmail-date-localtime.patch:localtime
-.endif
-
-.if defined(WITH_TARPIT_PATCH) && !defined(BARRIER_TARPIT_PATCH)
-PATCH_SITES+=	http://www.palomine.net/qmail/:tarpit
-PATCHFILES+=	tarpit.patch:tarpit
-.endif
-
-.if defined(WITH_SMTPEXTFORK) && defined(SLAVE_SPAMCONTROL)
-MASTER_SITES+=	${MASTER_SITE_LOCAL:S/$/:extfork/}
-MASTER_SITE_SUBDIR+=	garga/qmail/:extfork
-DISTFILES+=	smtpextfork-spamcontrol-${SPAMCONTROL_VERSION}.patch:extfork \
-		README.smtpextfork:extfork
-.endif
-
-# Some default values, these can be modified by make command line
-.if defined(WITH_BIG_CONCURRENCY_PATCH) && !defined(BARRIER_BIG_CONCURRENCY_PATCH)
-WITH_BIG_CONCURRENCY_PATCH_CONCURRENCY_LIMIT?=	509
-.endif
-
-.if !defined(WITHOUT_RCDLINK) && !defined(SLAVE_LDAP)
-PLIST_SUB+=	RCDLINK=""
-RCDLINK=
-.else
-PLIST_SUB+=	RCDLINK="@comment "
-RCDLINK=	\#
-.endif
-
-# Fill SELECTED_OPTIONS with options to write conf-spamcontrol
-.if defined(SLAVE_SPAMCONTROL)
-. if defined(WITH_RELAYMAILFROM)
-SELECTED_OPTIONS+=	relaymailfrom=yes
-. else
-SELECTED_OPTIONS+=	relaymailfrom=no
-. endif
-
-. if !defined(WITHOUT_REQBRACKETS)
-SELECTED_OPTIONS+=	reqbrackets=yes
-. else
-SELECTED_OPTIONS+=	reqbrackets=no
-. endif
-
-. if !defined(WITHOUT_VERP)
-SELECTED_OPTIONS+=	verp=yes
-. else
-SELECTED_OPTIONS+=	verp=no
-. endif
-
-. if defined(WITH_MOREIPME)
-SELECTED_OPTIONS+=	moreipme=yes
-. else
-SELECTED_OPTIONS+=	moreipme=no
-. endif
-
-. if defined(WITH_BIGTODO)
-SELECTED_OPTIONS+=	bigtodo=yes
-. else
-SELECTED_OPTIONS+=	bigtodo=no
-. endif
-
-.endif
-
-pre-everything::
-.if !defined(BARRIER_BIG_CONCURRENCY_PATCH)
-	@${ECHO_MSG} ""
-	@${ECHO_MSG} "You may use the following build options:"
-	@${ECHO_MSG} ""
-	@${ECHO_MSG} "WITH_BIG_CONCURRENCY_PATCH_CONCURRENCY_LIMIT=NUMBER"
-	@${ECHO_MSG} "				(default NUMBER=${WITH_BIG_CONCURRENCY_PATCH_CONCURRENCY_LIMIT})"
-	@${ECHO_MSG} "				set this to a value reasonable for"
-	@${ECHO_MSG} "				your system if you use the patch"
-	@${ECHO_MSG} ""
-.endif
-
-.if !defined(QMAIL_PREFIX)
-	@${ECHO_MSG} "QMAIL_PREFIX=PREFIX_PATH"
-	@${ECHO_MSG} "		(default PREFIX_PATH=${PREFIX})"
-	@${ECHO_MSG} "		A normal qmail installation puts"
-	@${ECHO_MSG} "		everything into /var/qmail/."
-	@${ECHO_MSG} "		If you want to install to ${LOCALBASE},"
-	@${ECHO_MSG} "		then \"${LOCALBASE}/qmail\" is suggested"
-	@${ECHO_MSG} "		instead of \"${LOCALBASE}\", but both will"
-	@${ECHO_MSG} "		work."
- 	@${ECHO_MSG} ""
-.endif
-
-post-extract:
-.if defined(SLAVE_SPAMCONTROL)
-	@cd ${WRKSRC} && ${TAR} -xzf ${DISTDIR}/${DIST_SUBDIR}/${SPAMCONTROL_DIST}
-.endif
-
-post-patch:
-.if defined(WITH_SMTP_AUTH_PATCH) && !defined(BARRIER_SMTP_AUTH_PATCH)
-	@${CP} ${SMTP_AUTH_DIR}/base64.[ch] ${WRKSRC}
-. if defined(AUTH_PATCH)
-	@${PATCH} -d ${SMTP_AUTH_DIR} < ${DISTDIR}/${DIST_SUBDIR}/${AUTH_PATCH}
-. endif
-	@${PATCH} -d ${WRKSRC} < ${SMTP_AUTH_DIR}/auth.patch
-. if defined(SLAVE_TLS) && defined(WITH_SPF_PATCH) && defined(SPF_TLS_PATCH)
-	@${PATCH} -d ${WRKSRC} < ${DISTDIR}/${DIST_SUBDIR}/${SPF_TLS_PATCH}
-.  if defined(WITH_EXTTODO_PATCH) && defined(EXTTODO_PATCH)
-	@${PATCH} -p1 -d ${WRKSRC} < ${DISTDIR}/${DIST_SUBDIR}/${EXTTODO_PATCH}
-.  endif
-. endif
-	@${PATCH} -d ${WRKSRC} < ${DISTDIR}/${DIST_SUBDIR}/qmail-smtpd-auth-close3.patch
-.elif defined(SLAVE_TLS) && defined(WITH_SPF_PATCH) && defined(SPF_TLS_PATCH)
-	@${PATCH} -d ${WRKSRC} < ${DISTDIR}/${DIST_SUBDIR}/${SPF_TLS_PATCH}
-. if defined(WITH_EXTTODO_PATCH) && defined(EXTTODO_PATCH)
-	@${PATCH} -p1 -d ${WRKSRC} < ${DISTDIR}/${DIST_SUBDIR}/${EXTTODO_PATCH}
-. endif
-.endif
-.if defined(SLAVE_MYSQL)
-	@${REINPLACE_CMD} 's|/opt/mysql|${LOCALBASE}|' \
-		${WRKSRC}/Makefile
-.elif defined(SLAVE_SPAMCONTROL)
-	@${ECHO_CMD} ${WRKDIR} > ${WRKSRC}/conf-qmail
-	@${ECHO_CMD} "# Generated by qmail-spamcontrol FreeBSD port" \
-		> ${WRKSRC}/conf-spamcontrol
-. for option in ${SELECTED_OPTIONS}
-	@${ECHO_CMD} ${option} >> ${WRKSRC}/conf-spamcontrol
-. endfor
-	@cd ${WRKSRC} && ./install_spamcontrol.sh
-	@${PATCH} -d ${WRKSRC} < ${FILESDIR}/extra-patch-spamcontrol-qmail-smtpd.c
-. if defined(WITH_SPF_PATCH) && defined(SPF_SPAMCONTROL_PATCH)
-	@${PATCH} -d ${WRKSRC} < ${DISTDIR}/${DIST_SUBDIR}/${SPF_SPAMCONTROL_PATCH}
-.  if defined(WITH_EXTTODO_PATCH) && defined(EXTTODO_PATCH)
-	@${PATCH} -p1 -d ${WRKSRC} < ${DISTDIR}/${DIST_SUBDIR}/${EXTTODO_PATCH}
-.  endif
-. endif
-. if defined(WITH_OUTGOINGIP_PATCH) && !defined(BARRIER_OUTGOINGIP_PATCH)
-	@${PATCH} -d ${WRKSRC} < ${DISTDIR}/${DIST_SUBDIR}/outgoingip.patch-spamcontrol
-. endif
-. if defined(WITH_SMTPEXTFORK)
-	@${PATCH} -d ${WRKSRC} < ${DISTDIR}/${DIST_SUBDIR}/smtpextfork-spamcontrol-${SPAMCONTROL_VERSION}.patch
-. endif
-.elif defined(SLAVE_TLS)
-	@${HEAD} -105 ${DISTDIR}/${DIST_SUBDIR}/qmail-1.03-tls-${TLS_PATCH_DATE}-renato.patch > \
-		${WRKDIR}/TLS.readme
-	@${REINPLACE_CMD} "s|/usr/local/ssl|${OPENSSLBASE}|" \
-		${WRKSRC}/Makefile
-.elif defined(SLAVE_LDAP)
-	@${REINPLACE_CMD} "s|^LDAPLIBS=-L/usr/local/lib|LDAPLIBS=-L${LOCALBASE}/lib|; \
-			   s|^LDAPINCLUDES=-I/usr/local/include|LDAPINCLUDES=-I${LOCALBASE}/include|" \
-		${WRKSRC}/Makefile
-	@${REINPLACE_CMD} "s|^#SHADOWLIBS=-lcrypt$$|SHADOWLIBS=-lcrypt|" \
-		${WRKSRC}/Makefile
-. if !defined(WITHOUT_TLS)
-	@${REINPLACE_CMD} "s|^#TLS=|TLS=|; \
-			   s|^#TLSINCLUDES=-I/usr/local/include|TLSINCLUDES=-I${OPENSSLBASE}/include|; \
-			   s|^#TLSLIBS=-L/usr/local/lib|TLSLIBS=-L${OPENSSLBASE}/lib|; \
-			   s|^#OPENSSLBIN=/usr/local/bin/openssl|OPENSSLBIN=${OPENSSLBASE}/bin/openssl|" \
-		${WRKSRC}/Makefile
-. endif
-. if defined(WITH_DATA_COMPRESS) || defined (WITH_QMQP_COMPRESS)
-	@${REINPLACE_CMD} "s|^#ZLIB=-lz$$|ZLIB=-lz|" \
-		${WRKSRC}/Makefile
-. endif
-. if !defined(WITHOUT_AUTOMAILDIRMAKE)
-	@${REINPLACE_CMD} "s|^#MDIRMAKE=|MDIRMAKE=|" ${WRKSRC}/Makefile
-. endif
-. if !defined(WITHOUT_AUTOHOMEDIRMAKE)
-	@${REINPLACE_CMD} "s|^#HDIRMAKE=|HDIRMAKE=|" ${WRKSRC}/Makefile
-. endif
-. if defined(WITH_LDAP_DEBUG)
-	@${REINPLACE_CMD} "s|^#DEBUG=|DEBUG=|" ${WRKSRC}/Makefile
-. endif
-. if defined(LDAPFLAGS)
-	@${REINPLACE_CMD} "s|^#LDAPFLAGS=.*$$|LDAPFLAGS=${LDAPFLAGS}|" \
-		${WRKSRC}/Makefile
-. endif
-.endif
-.if defined(EXT_BIG_TODO_PATCH)
-	@${PATCH} -d ${WRKSRC} < ${DISTDIR}/${DIST_SUBDIR}/${EXT_BIG_TODO_PATCH}
-.endif
-	@${REINPLACE_CMD} 's!/var/qmail!${PREFIX}!; \
-			   s!/usr/local/!${LOCALBASE}/!' \
-		${WRKSRC}/Makefile
-	@${REINPLACE_CMD} 's!nofiles!qnofiles!g' \
-		${WRKSRC}/conf-groups
-	@${REINPLACE_CMD} '/"man"/d; /man\/man/d; /man\/cat/d; \
-			   /"doc"/d; /"boot","/d' \
-		${WRKSRC}/hier.c
-
-do-configure:
-	${SED} -e 's,%%RCDLINK%%,${RCDLINK},g; s,%%LOCALBASE%%,${LOCALBASE},g' \
-		${FILESDIR}/pkg-install.in > ${WRKDIR}/pkg-install
-	#${SETENV} PKG_PREFIX="${PREFIX}" ${CSH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
-	${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
-	@${ECHO_CMD} ${PREFIX} > ${WRKSRC}/conf-qmail
-.if defined(WITH_BIG_CONCURRENCY_PATCH) \
-	&& !defined(BARRIER_BIG_CONCURRENCY_PATCH) \
-	&& defined(WITH_BIG_CONCURRENCY_PATCH_CONCURRENCY_LIMIT)
-	@if [ ${WITH_BIG_CONCURRENCY_PATCH_CONCURRENCY_LIMIT} -gt 0 ]; then \
-		${ECHO_CMD} "${WITH_BIG_CONCURRENCY_PATCH_CONCURRENCY_LIMIT}" \
-			> ${WRKSRC}/conf-spawn ; \
-	fi
-.endif
-
-do-install:
-.for i in ${BOOTFILES}
-	@if  [ -f ${WRKSRC}/${i}.sh ] ; then \
-		${SED} -f ${WRKDIR}/bootfiles.sed ${WRKSRC}/$i.sh > ${WRKDIR}/${i} ; \
-	elif [ -f ${FILESDIR}/${i} ] ; then \
-		${SED} -f ${WRKDIR}/bootfiles.sed ${FILESDIR}/$i > ${WRKDIR}/${i} ; \
-	fi
-.endfor
-	@${MKDIR} ${PREFIX}/configure
-	@cd ${WRKSRC} ; ./install
-.for f in ${CONFIGUREPROGRAMS}
-	${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/configure
-.endfor
-.for f in ${CONFIGURESCRIPTS}
-	${INSTALL_SCRIPT} ${WRKSRC}/${f} ${PREFIX}/configure
-.endfor
-.for i in ${BOOTFILES}
-	${INSTALL_SCRIPT} ${WRKDIR}/${i:T} ${PREFIX}/boot
-.endfor
-.for i in 1 5 7 8
-	@${MKDIR} ${PREFIX}/man/man$i
-. for j in ${MAN${i}}
-	${INSTALL_MAN} ${WRKSRC}/$j ${PREFIX}/man/man${i}
-. endfor
-.endfor
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-. for sub in WRKSRC WRKDIR WRKDIR_doc
-.  for doc in ${DOCFILES_${sub}}
-	${INSTALL_DATA} ${${sub}}/${doc} ${DOCSDIR}
-.  endfor
-. endfor
-. if defined(SLAVE_SPAMCONTROL) && defined(WITH_SMTPEXTFORK)
-	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/README.smtpextfork ${DOCSDIR}
-. endif
-. if defined(PACKAGE_BUILDING)
-	@${ECHO_CMD} "FreeBSD Binary package qmail installation" \
-		> ${DOCSDIR}/SYSDEPS
-. else
-	@cd ${WRKSRC} && ${CAT} `${CAT} SYSDEPS` \
-		> ${DOCSDIR}/SYSDEPS
-. endif
-.endif
-	@${MKDIR} ${PREFIX}/scripts
-	${INSTALL_SCRIPT} ${FILESDIR}/mkaliasdir ${PREFIX}/scripts
-	${INSTALL_SCRIPT} ${WRKDIR}/enable-qmail ${PREFIX}/scripts
-.for script in ${SCRIPTS}
-	${INSTALL_SCRIPT} ${WRKDIR}/scripts/${script} ${PREFIX}/scripts
-.endfor
-
-certificate:
-.if defined(SLAVE_TLS) || defined(SLAVE_LDAP)
-	@if [ -f ${OPENSSLDIR}/openssl.cnf ]; then \
-		if [ ! -d ${WRKDIR} ]; then \
-			${MKDIR} ${WRKDIR} ; \
-		fi ; \
-		${OPENSSLBASE}/bin/openssl req -new -x509 -nodes \
-			-out ${WRKDIR}/servercert.pem -days 366 \
-			-keyout ${WRKDIR}/servercert.pem ; \
-		${INSTALL} -o qmaild -g qmail -m 0640 ${WRKDIR}/servercert.pem ${PREFIX}/control/servercert.pem ; \
-		${ECHO_MSG} "===> Do not forget to do 'make clean' to clean up temporary files" ; \
-	else \
-		${ECHO_MSG} "===> You must create the file ${OPENSSLDIR}/openssl.cnf first." ; \
-	fi
-.endif
-
-certificate-req:
-.if defined(SLAVE_TLS) || defined(SLAVE_LDAP)
-	@if [ -f ${OPENSSLDIR}/openssl.cnf ]; then \
-		if [ ! -d ${WRKDIR} ]; then \
-			${MKDIR} ${WRKDIR} ; \
-		fi ; \
-		${OPENSSLBASE}/bin/openssl req -new -nodes \
-			-out ${WRKDIR}/req.pem \
-			-keyout ${WRKDIR}/servercert.pem ; \
-		${INSTALL} -o qmaild -g qmail -m 0640 ${WRKDIR}/servercert.pem ${PREFIX}/control/servercert.pem ; \
-		${ECHO_MSG} ; \
-		${ECHO_MSG} "===> Do not forget to do 'make clean' to clean up temporary files" ; \
-		${ECHO_MSG} "===> Send ${WRKDIR}/req.pem to your CA to obtain signed_req.pem, and do:" ; \
-		${ECHO_MSG} "===> cat signed_req.pem >> ${PREFIX}/control/servercert.pem" ; \
-	else \
-		${ECHO_MSG} "===> You must create the file ${OPENSSLDIR}/openssl.cnf first." ; \
-	fi
-.endif
-
-.include <bsd.port.post.mk>
--- mail/qmail/distinfo
+++ /dev/null
@@ -1,102 +0,0 @@
-MD5 (qmail/qmail-1.03.tar.gz) = 622f65f982e380dbe86e6574f3abcb7c
-SHA256 (qmail/qmail-1.03.tar.gz) = 21ed6c562cbb55092a66197c35c8222b84115d1acab0854fdb1ad1f301626f88
-SIZE (qmail/qmail-1.03.tar.gz) = 220668
-MD5 (qmail/qmail-103.patch) = 9140ad2b03017145cd7963c84bb24f16
-SHA256 (qmail/qmail-103.patch) = 4cad53c7a6628a600c74c36bfee327db5052ca24c222d4013e4dfcd7f427653d
-SIZE (qmail/qmail-103.patch) = 2104
-MD5 (qmail/qmailqueue-patch) = 5a8d7a5863b0c56236af945dedd45754
-SHA256 (qmail/qmailqueue-patch) = 52e82aaa34e9f1308b063cc986a701f67e161662e9f789bb12af03a381530f94
-SIZE (qmail/qmailqueue-patch) = 2510
-MD5 (qmail/big-todo.103.patch) = 39b6f70f65056472ff97ab40c1dba7b4
-SHA256 (qmail/big-todo.103.patch) = afa0a249e3271badd442f0bdae39997d9fe536157d8a0d62b6706f3dfcd11a72
-SIZE (qmail/big-todo.103.patch) = 5546
-MD5 (qmail/big-concurrency.patch) = 2ff58c3570870a8ff9a1d9eb9aec05a6
-SHA256 (qmail/big-concurrency.patch) = 0322991955878e86af495f7317c3a4bd2e60640f9a6dd70ad501fff27242ac2f
-SIZE (qmail/big-concurrency.patch) = 9331
-MD5 (qmail/sendmail-flagf.patch) = 4e1f2d8315e7e2a5482798c9d19fac4d
-SHA256 (qmail/sendmail-flagf.patch) = 9b3951c22b98c0e5a6ebfa793f052d91dfe01d68a0ad8dc83b8e0bd60c01802e
-SIZE (qmail/sendmail-flagf.patch) = 863
-MD5 (qmail/patch-qmail-1.03-rfc2821.diff) = 1b85f233ab5b9d7ec1a8da1188bf10ef
-SHA256 (qmail/patch-qmail-1.03-rfc2821.diff) = c34b331e27882f0596529df14f0e9f24c4dff9f941d04e5df17cc158dddac426
-SIZE (qmail/patch-qmail-1.03-rfc2821.diff) = 2564
-MD5 (qmail/qmail-date-localtime.patch) = d566e8bd99b33efee0194e855b8d6995
-SHA256 (qmail/qmail-date-localtime.patch) = 852aee7577edf8814c2429f82740da2a7e0b0b23516e10c4f3f7e845a47be2d5
-SIZE (qmail/qmail-date-localtime.patch) = 2603
-MD5 (qmail/qmail-1.03-qmtpc.patch) = 122664c38338e5ec35fcac43f33d6927
-SHA256 (qmail/qmail-1.03-qmtpc.patch) = f704b6c0ca3515a4bb488d14f7c94910aba4daa87420db6cd5b7ea19f17f7449
-SIZE (qmail/qmail-1.03-qmtpc.patch) = 6197
-MD5 (qmail/outgoingip.patch) = 3c9277dcf5f9b4b6d3a270fb3abf7994
-SHA256 (qmail/outgoingip.patch) = c117f5c41033f062cdc782a16403fc19725e98d92e73ab193dfd24f48c0ca5ac
-SIZE (qmail/outgoingip.patch) = 6839
-MD5 (qmail/outgoingip.patch-spamcontrol) = ed3ca1e309116647e9adb0a49194e2e5
-SHA256 (qmail/outgoingip.patch-spamcontrol) = 721f5a1199867a26e69773608b07ec54fce1444cfa0679906592b60b7dd68abe
-SIZE (qmail/outgoingip.patch-spamcontrol) = 6769
-MD5 (qmail/qmail-1.03-qmtpc_outgoingip.patch) = 4b2623cbd9e9a4f137f7b16f78a43975
-SHA256 (qmail/qmail-1.03-qmtpc_outgoingip.patch) = d8dc66a5057b5ffbab4a9e0a27a6392b1f29d3c6aadea1f13f2290918846e89c
-SIZE (qmail/qmail-1.03-qmtpc_outgoingip.patch) = 10357
-MD5 (qmail/qmail-maildir++.patch) = fd92b624ac1129a656eb1e567d1f0409
-SHA256 (qmail/qmail-maildir++.patch) = 79e3f1f8f95b58b6d17e5469f125d873fe212d0a5a6d19b538ad57176fbafb52
-SIZE (qmail/qmail-maildir++.patch) = 38088
-MD5 (qmail/qmail-block-executables.patch) = e425b420e5251b4882fc699f7822f7a0
-SHA256 (qmail/qmail-block-executables.patch) = 97512624eb02db51e10ab6d0dd834a8797a238d0e006bd1c6c94a183d291b456
-SIZE (qmail/qmail-block-executables.patch) = 5070
-MD5 (qmail/qmail-discard-double-bounces.patch) = 55d45bb8d2c3822a0e3544058aa5a3a3
-SHA256 (qmail/qmail-discard-double-bounces.patch) = 14489eefd9908f60af13fadd574d0e9bb936e5d1b706690ce52efef68529a8d8
-SIZE (qmail/qmail-discard-double-bounces.patch) = 1305
-MD5 (qmail/qmail-spf-rc5.patch) = 434bd84b87e2027cfa643673c498bd6f
-SHA256 (qmail/qmail-spf-rc5.patch) = 8ad251d779125e11422ae9bcbf619b0ba002c0893dd8c8fe55a34a8b5fc42640
-SIZE (qmail/qmail-spf-rc5.patch) = 63582
-MD5 (qmail/qmail-spf-rc5.patch-tls) = db126b4ac29ad83c1c219e5323cef452
-SHA256 (qmail/qmail-spf-rc5.patch-tls) = c884665ff0bc5a5272efe3e09aed71e648a79d0279bc708d5a9df25c5758804f
-SIZE (qmail/qmail-spf-rc5.patch-tls) = 63617
-MD5 (qmail/qmail-spf-rc5.patch-auth-tls) = 262e381adc967df0a8ab4f15f2f6fe8f
-SHA256 (qmail/qmail-spf-rc5.patch-auth-tls) = 16fe99894938c30ed1928a61dabf0a598ef7e08a766a76cf084fe658d6d50092
-SIZE (qmail/qmail-spf-rc5.patch-auth-tls) = 63752
-MD5 (qmail/qmail-ldap-1.03-20060201.patch.gz) = 55fa135415ee011f3f4234d7d52a3565
-SHA256 (qmail/qmail-ldap-1.03-20060201.patch.gz) = 92ba895df1957109ad856cc1d1554ece4d25d59017e77127dd52d76afd05525a
-SIZE (qmail/qmail-ldap-1.03-20060201.patch.gz) = 270788
-MD5 (qmail/qmail-mysql-1.1.15.patch) = c0298550475f928e82881e574e905313
-SHA256 (qmail/qmail-mysql-1.1.15.patch) = 3d2b6a08fb149d6c9fe6c8250e87edd6c4d4b2b0417f03adf5cf4202bbadc53f
-SIZE (qmail/qmail-mysql-1.1.15.patch) = 67602
-MD5 (qmail/spamcontrol-2417_tgz.bin) = fabf359926197ccc0e18498ba3a7b6e2
-SHA256 (qmail/spamcontrol-2417_tgz.bin) = f7aa89a505366f01f2b5849b02f081aad322d88df5b6aeb6f6f524e9f0555a8c
-SIZE (qmail/spamcontrol-2417_tgz.bin) = 123857
-MD5 (qmail/qmail-1.03-tls-20021228-renato.patch) = be15cd5eaff7aa3cd88aee962febadc6
-SHA256 (qmail/qmail-1.03-tls-20021228-renato.patch) = ab0de8f744241dcb7f5ee207fc7eab4f067bf42812deb85f9eb0050ac49e6e23
-SIZE (qmail/qmail-1.03-tls-20021228-renato.patch) = 42095
-MD5 (qmail/qmail-smtpd-auth-0.31.tar.gz) = 6b202f71a99fb41e9e32906017270ba0
-SHA256 (qmail/qmail-smtpd-auth-0.31.tar.gz) = 1b439fa7e128de13fa80b86883f61a39d17b87b7e8916b6a0eab065bbe49b938
-SIZE (qmail/qmail-smtpd-auth-0.31.tar.gz) = 8798
-MD5 (qmail/qmail-smtpd-auth-close3.patch) = 0ba66d73dcba1c68ed714b07e47abd3e
-SHA256 (qmail/qmail-smtpd-auth-close3.patch) = d933e871261d6740cebe5c21cad81146525cfe06a464e277979f61c1242b5ad4
-SIZE (qmail/qmail-smtpd-auth-close3.patch) = 520
-MD5 (qmail/tarpit.patch) = 49a2c0a445981deb09f3af73041d75f5
-SHA256 (qmail/tarpit.patch) = de94abbb71ef5d25e168725e435edd96ce3b14b7347440e0805dcb919b9d9604
-SIZE (qmail/tarpit.patch) = 3089
-MD5 (qmail/ext_todo-20030105.patch) = 99070bb55cac5ad61f8fb203422e651e
-SHA256 (qmail/ext_todo-20030105.patch) = d46d0225360c0477f93e2990637ebf912b2a86e494f424ef2952ee11ab533ac7
-SIZE (qmail/ext_todo-20030105.patch) = 33763
-MD5 (qmail/ext_todo-20030105_spf.patch) = 4d760732c92c01bd14d9957257ca4c1a
-SHA256 (qmail/ext_todo-20030105_spf.patch) = 544629c0003d01d27a5a45508e84332f247ed54ece57ff22c0c7c3a56ba086d6
-SIZE (qmail/ext_todo-20030105_spf.patch) = 33781
-MD5 (qmail/ext_todo-20030105_mysql.patch) = ecddff9ba6d725ec3be61843bc8007a7
-SHA256 (qmail/ext_todo-20030105_mysql.patch) = 3fc65b91faaaae147dbf6264f9381664819ef2f236532764309d174f29919ff1
-SIZE (qmail/ext_todo-20030105_mysql.patch) = 33797
-MD5 (qmail/qmail-spf-rc5.patch-spamcontrol) = c7da17aa55896eae8c525d05c65387fd
-SHA256 (qmail/qmail-spf-rc5.patch-spamcontrol) = 52a3e4a6c8ae0124be280b6c0d183d81f4a6bd10c23fc735d99f4f731d4f5c6d
-SIZE (qmail/qmail-spf-rc5.patch-spamcontrol) = 64214
-MD5 (qmail/auth.patch.diff) = 23e0509061cd5dda4a1abf9a7cb7596d
-SHA256 (qmail/auth.patch.diff) = 1d0f8e0ce139cd00b86f056bc31c1422d30b88cb8b125023d534cc3664f827b8
-SIZE (qmail/auth.patch.diff) = 4412
-MD5 (qmail/auth.patch.diff-tls) = 7e706dd124deb9a25cecd91fe652a90b
-SHA256 (qmail/auth.patch.diff-tls) = 467c5f68d5d332d2400f937c76311e5358b613923d64e68ae98d51d178c7de5e
-SIZE (qmail/auth.patch.diff-tls) = 2993
-MD5 (qmail/ext_todo-20030105+big-todo.103.patch) = 5878870ef85d6a83ba9465ce94d9cd42
-SHA256 (qmail/ext_todo-20030105+big-todo.103.patch) = 4e44ad403b21f5910b6af11295b82296bc8c0f18bc40dcfecfb95c11e5a296f7
-SIZE (qmail/ext_todo-20030105+big-todo.103.patch) = 2523
-MD5 (qmail/smtpextfork-spamcontrol-2417.patch) = 54e4d8686a621166b006765c83c14cb0
-SHA256 (qmail/smtpextfork-spamcontrol-2417.patch) = 422b8b37c6e447f1a9ae1ffec8d00aee98bceafa963927c6331480ad90e99563
-SIZE (qmail/smtpextfork-spamcontrol-2417.patch) = 6865
-MD5 (qmail/README.smtpextfork) = e783965f5a7510c38b30f0ba3cda1e11
-SHA256 (qmail/README.smtpextfork) = c43122d27d4e20dd955c30ca402903d2e9a6a1820c3cf11902e2477316abdcbb
-SIZE (qmail/README.smtpextfork) = 7618
--- mail/qmail/files/pkg-message-ldap.in
+++ /dev/null
@@ -1,35 +0,0 @@
-	ATTENTION:
-
-Please make sure that you read %%PREFIX%%/doc/PORT_NOTES.
-It contains important information about testing and configuring
-qmail, and finally replacing sendmail with qmail.
-
-You should also add %%PREFIX%%/man to your MANPATH (see manpath(1)
-or login.conf(5)).
-
-Do not forget to read %%PREFIX%%/doc/QLDAPINSTALL. After all,
-this is NOT our old stock qmail. And, %%PREFIX%%/doc/ANTISPAM
-for some antispam control measures.
-
-The qmail.schema file was copied to %%DOCSDIR%%. Remember
-to copy it to ldap's schema directory
-
-You can enable qmail as your default mailer executing:
-> %%PREFIX%%/scripts/enable-qmail
-
-=====><=====
-
-If you've built this port with TLS support (WITH_TLS=yes)
-
-==> You will need to provide a working certificate in %%PREFIX%%/control/cert.pem :
-
-# makes a self-signed certificate
-3) do "make certificate"
-
-# makes a certificate request
-4) do "make certificate-req"
-
-=====><=====
-
-Now, you need to use it. Check a little FreeBSD specific how-to at
-http://freebsd.cg.nu/postfixqmail-ldap.html
--- mail/qmail/files/bootfiles.sed.in
+++ /dev/null
@@ -1,15 +0,0 @@
-s!QMAIL/!%%PREFIX%%/!
-s!^\(exec\)!case "\$1" in\
-start)\
-\	\1!
-s!\(qmail\)$!\1\&\
-\	exit 0\
-\	;;\
-stop)\
-\	exec killall qmail-send\
-\	;;\
-*)\
-\	%%ECHO_CMD%% "Usage: `basename \$0` {start|stop}" >\&2\
-\	exit 64\
-\	;;\
-esac!
--- mail/qmail/files/pkg-message-tls.in
+++ /dev/null
@@ -1,22 +0,0 @@
-	ATTENTION:
-
-Please make sure that you read %%PREFIX%%/doc/PORT_NOTES.
-It contains important information about testing and configuring
-qmail, and finally replacing sendmail with qmail.
-
-You should also add %%PREFIX%%/man to your MANPATH (see manpath(1)
-or login.conf(5)).
-
-Do not forget to read %%PREFIX%%/doc/TLS.readme. After all,
-this is NOT our old stock qmail.
-
-You can enable qmail as your default mailer executing:
-> %%PREFIX%%/scripts/enable-qmail
-
-==> As you need to provide a working certificate in %%PREFIX%%/control/cert.pem :
-
-# makes a self-signed certificate
-3) do "make certificate"
-
-# makes a certificate request
-4) do "make certificate-req"
--- mail/qmail/files/mailer.conf.sample.in
+++ /dev/null
@@ -1,10 +0,0 @@
-# Configuration for mailwrapper is kept in /etc/mail/mailer.conf.
-# Replace that file with this one to enable qmail under a sendmail
-# disguise. Very useful.
-
-sendmail	%%PREFIX%%/bin/sendmail
-send-mail	%%PREFIX%%/bin/sendmail
-mailq		%%PREFIX%%/bin/qmail-qread
-newaliases	%%PREFIX%%/bin/newaliases
-hoststat	%%PREFIX%%/bin/qmail-tcpto
-purgestat	%%PREFIX%%/bin/qmail-tcpok
--- mail/qmail/files/patch-qmail-local.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- qmail-local.c.orig	Sun Nov 23 18:30:43 2003
-+++ qmail-local.c	Sun Nov 23 18:31:31 2003
-@@ -645,7 +645,7 @@
-     {
-      cmds.s[j] = 0;
-      k = j;
--     while ((k > i) && (cmds.s[k - 1] == ' ') || (cmds.s[k - 1] == '\t'))
-+     while ((k > i) && ((cmds.s[k - 1] == ' ') || (cmds.s[k - 1] == '\t')))
-        cmds.s[--k] = 0;
-      switch(cmds.s[i])
-       {
--- mail/qmail/files/patch-install.c
+++ /dev/null
@@ -1,37 +0,0 @@
---- install.c.orig	Mon Jun 15 07:53:16 1998
-+++ install.c	Fri May  6 09:30:15 2005
-@@ -10,6 +10,7 @@
- #define FATAL "install: fatal: "
- 
- int fdsourcedir = -1;
-+noc;  /* hack for bin package install -- see port pkg/INSTALL */
- 
- void h(home,uid,gid,mode)
- char *home;
-@@ -75,6 +76,7 @@
- int gid;
- int mode;
- {
-+ if (!noc) {
-   int fdin;
-   int fdout;
- 
-@@ -115,6 +117,7 @@
-     strerr_die6sys(111,FATAL,"unable to chown .../",subdir,"/",file,": ");
-   if (chmod(file,mode) == -1)
-     strerr_die6sys(111,FATAL,"unable to chmod .../",subdir,"/",file,": ");
-+ }
- }
- 
- void z(home,file,len,uid,gid,mode)
-@@ -152,8 +155,9 @@
-     strerr_die6sys(111,FATAL,"unable to chmod ",home,"/",file,": ");
- }
- 
--void main()
-+int main(argc, argv)
- {
-+  noc=--argc;
-   fdsourcedir = open_read(".");
-   if (fdsourcedir == -1)
-     strerr_die2sys(111,FATAL,"unable to open current directory: ");
--- mail/qmail/files/pkg-install.in
+++ /dev/null
@@ -1,114 +0,0 @@
-#!/bin/csh -f
-#
-# $FreeBSD: ports/mail/qmail/files/pkg-install.in,v 1.4 2006/01/30 16:25:14 garga Exp $
-#
-
-# Author : Marcos Tischer Vallim
-# E-Mail : tischer at gmail.com
-# Date   : Tue Mar 22 00:40:45 BRT 2005
-
-set path = ( /bin /sbin /usr/bin /usr/sbin )
-
-if ($uid != 0) then
-	echo "It is necessary to add missing qmail users/groups at";
-	echo "this stage.  Please either add them manually or retry";
-	echo "as root.";
-	exit 1;
-endif
-
-if (! -x `which pw`) then
-	echo "This system looks like a pre-2.2 version of FreeBSD.  We see that it";
-	echo "is missing the "pw" utility.  We need this utility.  Please get and";
-	echo "install it, and try again.  You can get the source from:";
-	echo "";
-	echo "  ftp://ftp.freebsd.org/pub/FreeBSD/FreeBSD-current/src/usr.sbin/pw.tar.gz";
-	echo "";
-	echo "No pw";
-	exit 1;
-endif
-
-switch ($argv[2])
-
-case "PRE-INSTALL":
-	set groups  = (qmail qnofiles);
-	set gids    = (82 81);
-	set users   = (alias qmaild qmaill qmailp qmailq qmailr qmails);
-	set users_g = (qnofiles qnofiles qnofiles qnofiles qmail qmail qmail);
-	set uids    = (81 82 83 84 85 86 87);
-
-
-	set k = 1;
-	foreach group ($groups)
-		pw groupshow $group >& /dev/null;
-	
-		if ($status) then
-			pw groupadd $group -g $gids[$k];
-	
-			if ($status) then
-				echo "Failed to add group '$group' as gid '$gids[$k]'";
-				exit 1;
-			endif
-		endif
-	
-		set chkgid = (`pw groupshow $group | sed -e "s,:, ,g"`); 
-		if ($chkgid[3] != $gids[$k]) then
-			echo "Group '$group' should have gid '$gids[$k]'";
-			exit 1;
-		endif
-	
-		@ k++;
-	end
-	
-	set k = 1;
-	foreach user ($users)
-		pw usershow $user >& /dev/null;
-	
-		if ($status) then
-			if ($user == "alias") then
-				set home = ${PKG_PREFIX}/alias;
-			else
-				set home = ${PKG_PREFIX};
-			endif
-	
-			pw useradd $user -g $users_g[$k] -d $home -s /nonexistent -u $uids[$k];
-	
-			if ($status) then
-				echo "Failed to add user '$user' as uid '$uids[$k]'";
-				exit 1;
-			endif
-		endif
-	
-		set chkuid = (`pw usershow $user | sed -e "s,:, ,g"`); 
-		if ($chkuid[3] != $uids[$k]) then
-			echo "User '$user' should have uid '$uids[$k]'";
-			exit 1;
-		endif
-	
-		@ k++;
-	end
-
-	breaksw;
-
-case "POST-INSTALL":
-	${PKG_PREFIX}/configure/install x;
-
-	if ( ! `filetest -e ${PKG_PREFIX}/control/me` ) then
-		cd ${PKG_PREFIX}/configure && ./config;
-	endif
-
-	%%RCDLINK%%ln -s ${PKG_PREFIX}/rc %%LOCALBASE%%/etc/rc.d/qmail.sh;
-
-	touch ${PKG_PREFIX}/alias/.qmail-{postmaster,root,mailer-daemon};
-
-	if ($status) then
-		echo "Failed to create files :";
-		echo "  ${PKG_PREFIX}/alias/.qmail-postmaster";
-		echo "  ${PKG_PREFIX}/alias/.qmail-root";
-		echo "  ${PKG_PREFIX}/alias/.qmail-mailer-daemon";
-		exit 1;
-	endif
-
-	breaksw;
-endsw
-
-exit 0;
--- mail/qmail/files/extra-patch-spamcontrol-qmail-smtpd.c
+++ /dev/null
@@ -1,60 +0,0 @@
---- qmail-smtpd.c.orig	Wed Jan 31 13:03:47 2007
-+++ qmail-smtpd.c	Wed Jan 31 13:22:36 2007
-@@ -129,6 +129,27 @@
-   logs(s1,s2,s3,s4,s5,s6,s7);
-   return;
-   }
-+void err_rbl(s1,s2,s3,s4,s5,s6,s7) char *s1, *s2, *s3, *s4, *s5, *s6, *s7; {
-+  char *rblmatch;
-+  stralloc rblmessage = {0};
-+  stralloc new_s1 = {0};
-+
-+  rblmatch = env_get("RBLMATCH");
-+
-+  if (!stralloc_copys(&rblmessage,"553 sorry, your IP is listed on a RBL list ")) die_nomem(); 
-+  if (!stralloc_cats(&rblmessage,rblmatch)) die_nomem(); 
-+  if (!stralloc_cats(&rblmessage," (#5.7.1)\r\n")) die_nomem(); 
-+  if (!stralloc_0(&rblmessage)) die_nomem(); 
-+
-+  if (!stralloc_copys(&new_s1, s1)) die_nomem();
-+  if (!stralloc_cats(&new_s1, " ")) die_nomem();
-+  if (!stralloc_cats(&new_s1, rblmatch)) die_nomem();
-+  if (!stralloc_0(&new_s1)) die_nomem(); 
-+
-+  out(rblmessage.s); 
-+  logs(new_s1.s,s2,s3,s4,s5,s6,s7);
-+  return;
-+  }
- void err_brcptto(s1,s2,s3,s4,s5,s6,s7) char *s1, *s2, *s3, *s4, *s5, *s6, *s7; {
-   out("550 sorry, your envelope recipient is in my badrcptto list (#5.7.1)\r\n");
-   logs(s1,s2,s3,s4,s5,s6,s7);
-@@ -270,6 +291,8 @@
- 
- char *auth;
- char *reqauth;
-+char *rbl2smtpd;
-+char *rblmatch;
- int smtpauth = 0;
- int seenauth = 0;
- 
-@@ -388,6 +411,9 @@
-   if(env_get("UCSPITLS")) starttls = 1;
-   if(starttls) reqttls = env_get("REQUIRETLS");
- 
-+  rbl2smtpd = env_get("RBL2SMTPD");
-+  rblmatch = env_get("RBLMATCH");
-+
- #ifdef RELAYMAILFROM
-   if (!relayclient) {
-     relaymailfromok = control_readfile(&relaymailfrom,"control/relaymailfrom",0);
-@@ -876,6 +902,10 @@
-       flagerrcpts++;
-       return; 
-     } 
-+    if (!seenauth && rbl2smtpd && rblmatch && str_len(rblmatch) != 0) {
-+      err_rbl("Reject::RBL::RBL_Listed:",protocol.s,remoteip,remotehost,helohost.s,mailfrom.s,addr.s);
-+      return;
-+    }
-     if (tarpitcount && flagerrcpts >= tarpitcount) { 	/* Tarpitting et al. */
-       err_rcpts("Reject::RCPT::Toomany_Rcptto:",protocol.s,remoteip,remotehost,helohost.s,mailfrom.s,addr.s); 
-       return; 
--- mail/qmail/files/maildir
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-
-# Using splogger to send the log through syslog.
-# Using qmail-local to deliver messages to Maildir format by default
-
-exec env - PATH="QMAIL/bin:$PATH" \
-qmail-start ./Maildir/ \
-splogger qmail
--- mail/qmail/files/pkg-message.in
+++ /dev/null
@@ -1,11 +0,0 @@
-	ATTENTION:
-
-Please make sure that you read %%PREFIX%%/doc/PORT_NOTES.
-It contains important information about testing and configuring
-qmail, and finally replacing sendmail with qmail.
-
-You should also add %%PREFIX%%/man to your MANPATH (see manpath(1)
-or login.conf(5)).
-
-You can enable qmail as your default mailer executing:
-> %%PREFIX%%/scripts/enable-qmail
--- mail/qmail/files/pkg-message-mysql.in
+++ /dev/null
@@ -1,14 +0,0 @@
-	ATTENTION:
-
-Please make sure that you read %%PREFIX%%/doc/PORT_NOTES.
-It contains important information about testing and configuring
-qmail, and finally replacing sendmail with qmail.
-
-You should also add %%PREFIX%%/man to your MANPATH (see manpath(1)
-or login.conf(5)).
-
-Do not forget to read http://iain.cx/unix/qmail/mysql.php. After all,
-this is NOT our old stock qmail.
-
-You can enable qmail as your default mailer executing:
-> %%PREFIX%%/scripts/enable-qmail
--- mail/qmail/files/enable-qmail.in
+++ /dev/null
@@ -1,86 +0,0 @@
-#!/bin/sh
-
-disable_sendmail() {
-	echo "===> I hope you know what you are doing:"
-	echo "===> You just told your system to not"
-	echo "===> automaticaly start sendmail on your"
-	echo "===> next startup."
-	echo "===> (i.e., added sendmail_enable=\"NONE\" to rc.conf)"
-
-	if [ -f ${RC_CONF_FILE} ]; then
-		echo sendmail_enable=\"NONE\" >> ${RC_CONF_FILE}
-	fi
-}
-
-enable_qmail() {
-	if [ -f ${MAILER_CONF_FILE} ]; then
-		cp ${MAILER_CONF_FILE} ${MAILER_CONF_FILE}.bak && \
-		cp %%DOCSDIR%%/mailer.conf.sample ${MAILER_CONF_FILE}
-	else
-		echo "===> ERROR: YOU DO NOT HAVE A VALID ${MAILER_CONF_FILE}"
-		echo "===> FIX this and try again"
-		echo "===> or, run \"$0 --force\" if you are sure"
-		echo "===> you want this port replacing some binaries"
-		echo "===> IF THIS FEELS UNEASY, read %%DOCSDIR%%/REMOVE.sendmail and do it manually"
-		echo ""
-		echo "=======> VERY IMPORTANT <======="
-		echo "===> One side issue is that if you do replace them,"
-		echo "===> you really should consider ADDING \"NO_SENDMAIL=true\""
-		echo "===> to your /etc/make.conf if you do \"make world\"."
-		echo "===> Otherwise, \"make world\" will \"fix\" your sendmail"
-		echo "===> installation breaking your qmail one."
-		echo "===> Read the FreeBSD Handbook section on \"make world\""
-		echo "===> if you do not know what I am talking about."
-		echo "===> Check http://www.FreeBSD.org/ for the most"
-		echo "===> updated copy of the Handbook."
-	fi
-	echo "===> Do not forget to choose an appropriate qmail startup"
-	echo "===> script. Go through %%PREFIX%%/boot, choose one"
-	echo "===> and copy the chosen script as %%PREFIX%%/rc"
-	echo "===> For example, \"cp %%PREFIX%%/boot/proc+df %%PREFIX%%/rc\""
-}
-
-# taken from mail/postfix idea
-force_enable_qmail() {
-	echo "===> Replacing sendmail"
-	if [ -e ${SENDMAIL} ]; then
-		mv -f ${SENDMAIL} ${SENDMAIL}.OFF && \
-		chmod 0 ${SENDMAIL}.OFF
-	fi
-	if [ -e %%PREFIX%%/bin/sendmail ]; then
-		ln -sf %%PREFIX%%/bin/sendmail ${SENDMAIL}
-	fi
-
-	echo "===> Replacing mailq"
-	if [ -e ${MAILQ} ]; then
-		mv -f ${MAILQ} ${MAILQ}.OFF && \
-		chmod 0 ${MAILQ}.OFF
-	fi
-	if [ -e %%PREFIX%%/bin/qmail-qread ]; then
-		ln -sf %%PREFIX%%/bin/qmail-qread ${MAILQ}
-	fi
-
-	echo "===> Replacing newaliases"
-	if [ -e ${NEWALIASES} ]; then
-		mv -f ${NEWALIASES} ${NEWALIASES}.OFF && \
-		chmod 0 ${NEWALIASES}.OFF
-	fi
-	if [ -e %%PREFIX%%/bin/newaliases ]; then
-		ln -sf %%PREFIX%%/bin/newaliases ${NEWALIASES}
-	fi
-}
-
-# main
-RC_CONF_FILE=/etc/rc.conf
-MAILER_CONF_FILE=/etc/mail/mailer.conf
-SENDMAIL=/usr/sbin/sendmail
-MAILQ=/usr/bin/mailq
-NEWALIASES=/usr/bin/newaliases
-
-disable_sendmail
-
-if [ "$1" = "--force" ]; then
-  force_enable_qmail
-else
-  enable_qmail
-fi
--- mail/qmail/files/mkaliasdir
+++ /dev/null
@@ -1,109 +0,0 @@
-#!/usr/bin/perl
-#
-#  Script to populate a Qmail ~alias directory with entries from
-#  an [SZ]mail{er} or sendmail-like aliases file
-#
-# $FreeBSD: ports/mail/qmail/files/mkaliasdir,v 1.3 2006/01/30 16:25:14 garga Exp $
-#
-#  Dan Cross <tenser at spitfire.ecsel.psu.edu>
-#
-
-require 'getopts.pl';
-
-$ALIASES = "/etc/aliases";
-
-die "$0 must be run as root!\n" if ($< != 0);
-
-do Getopts('vf:');
-
-$verbose = 0 unless ($verbose = $opt_v);
-$aliases = $ALIASES unless ($aliases = $opt_f);
-
-if (($aliasdir = (getpwnam("alias"))[7]) eq "")
-{
-	die "User alias does not exist, bailing!\n";
-}
-
-if (($qmaildir = (getpwnam("qmaild"))[7]) eq "")
-{
-	die "User qmaild does not exist, bailing!\n";
-}
-
-$ME = "$qmaildir/control/me";
-
-die "Error opening $ME: $!\n" unless open(ME, "$ME");
-chop($me = <ME>);
-close (ME);
-
-die "Error opening $aliases: $!\n" unless open(ALIASES, "$aliases");
-
-while (<ALIASES>)
-{
-	chop;
-
-	$mode = ">";
-
-	s/#.*$//;
-
-	($target, $data) = split(/:/, $_, 2);
-
-	$data =~ s/^\s+//;
-	$data =~ s/\s+$//;
-
-	next if (/^$/);
-
-	if ($data =~ /^$/)
-	{
-		while (chop($data = <ALIASES>))
-		{
-			$data =~ s/^\s+//;
-			$data =~ s/\s+$//;
-
-			last if ($data !~ /^$/);
-		}
-	}
-
-	$f = "$aliasdir/.qmail-$target";
-
-	@data = split(/\,/, $data);
-	$datum = $data[0];
-
-	if ($datum =~ /^:include:/i)
-	{
-		$datum =~ s/^:include://i;
-		$verbose && print "Symlinking $f to $datum...\n";
-		symlink($datum, $f);
-		shift(@data);
-		$f = $datum;
-		$mode = ">>";
-	}
-
-	open(ALIAS, "$mode$f") || die "Error creating $f: $!\n";
-
-	$verbose && print "Creating $f...\n";
-
-	foreach $datum (@data)
-	{
-		$datum =~ s/"$// if ($datum =~ s/^"// ||
-					$datum =~ s/^\|[ \t]*"/|/);
-
-		if ($datum =~ /^[|\/]/)
-		{
-			print ALIAS $datum, "\n";
-		}
-		else
-		{
-			$datum = "&" . $datum;
-			$datum .= "\@$me" unless ($datum =~ /\@/);
-			print ALIAS "$datum\n";
-		}
-
-		$verbose && print "\tPopulating $f with $datum...\n";
-	}
-
-	close(ALIAS);
-}
-
-close(ALIASES);
-
-exit 0;


More information about the Midnightbsd-cvs mailing list