Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Dec 2003 18:54:10 +0100
From:      "David du SERRE-TELMON" <david@xinus.net>
To:        <lioux@FreeBSD.org>
Cc:        ports@FreeBSD.org
Subject:   FreeBSD Port: qmail-1.03
Message-ID:  <03f601c3cca2$6f1b6360$1e00a8c0@SHUTTLE>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=_NextPart_000_03F3_01C3CCAA.D019E350
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Modifications to qmail FreeBSD port for adding MFCHECK patch support.

With this patch, qmail-smtpd performs a DNS MX lookup for host/domain part
of the SENDER address of any incoming E-Mail (based on the addresses in the
E-Mail's envelope). Results:

- qmail-smtpd verifies the existence of the SENDER's domain.
- qmail-smtpd rejects E-Mails with bogus hostnames/domains in the envelope
SENDER.
- qmail-smtpd writes a log-entry for rejected E-Mails.

Modification to original Makefile :
- Add option WITH_MFCHECK_PATCH
- Add patch description
- Add post patch command :
    @${ECHO_MSG} "1" > /var/qmail/control/mfcheck

Modification to distinfo :
- MD5 (qmail-1.03-mfcheck.3.patch) = 687655312016115f994c58a7dc942f53

It's an anti-spam feature.

Regards.

------=_NextPart_000_03F3_01C3CCAA.D019E350
Content-Type: application/octet-stream;
	name="Makefile"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="Makefile"

# New ports collection makefile for:	qmail=0A=
# Date created:		25 May 1998=0A=
# Whom:			Mario S F Ferreira <lioux@linf.unb.br> et al.=0A=
#=0A=
# $FreeBSD: ports/mail/qmail/Makefile,v 1.49 2003/12/10 21:40:13 lioux =
Exp $=0A=
#=0A=
=0A=
PORTNAME=3D	qmail=0A=
PORTVERSION?=3D 	${QMAIL_VERSION}=0A=
PORTREVISION?=3D	3	=0A=
CATEGORIES=3D	mail=0A=
MASTER_SITES=3D	http://cr.yp.to/software/ \=0A=
		ftp://ftp.ntnu.no/pub/unix/mail/qmail/ \=0A=
		ftp://ftp.jp.qmail.org/qmail/ \=0A=
		ftp://ftp.net.ohio-state.edu/pub/networking/mail/qmail/ \=0A=
		${MASTER_SITE_QMAIL}=0A=
DISTNAME=3D	${PORTNAME}-${QMAIL_VERSION}=0A=
=0A=
# qmail-* skeleton ports including this port may not want=0A=
# its patches=0A=
.if !defined(MAIN_QMAIL_PORT_DNS_PATCH_BARRIER)=0A=
# Patch necessary to cope with non-RFC >512 dns entries=0A=
# Since AOL has been using those, the problem has skyrocketed from minor =
to=0A=
# groundzero. qmail being RFC compliant need to be "fixed" to work with =
those=0A=
PATCH_SITES+=3D	http://www.ckdhr.com/ckd/:dns=0A=
PATCHFILES+=3D	qmail-103.patch:dns=0A=
PATCH_DIST_STRIP+=3D	-p1=0A=
.endif # MAIN_QMAIL_PORT_DNS_PATCH_BARRIER=0A=
=0A=
.if !defined(MAIN_QMAIL_PORT_SENDMAIL_F_PATCH_BARRIER)=0A=
# David Phillips noticed that sendmail's -f option sets a default=0A=
# From: header, and so should qmail's emulation.=0A=
PATCH_SITES+=3D	http://david.acz.org/software/:sendmail_flagf=0A=
PATCHFILES+=3D	sendmail-flagf.patch:sendmail_flagf=0A=
.endif # MAIN_QMAIL_PORT_SENDMAIL_F_PATCH_BARRIER=0A=
=0A=
PATCH_SITES+=3D	${MASTER_SITE_LOCAL:S/$/:local,dns,ldap,mysql,tls/}=0A=
PATCH_SITE_SUBDIR+=3D	lioux/:local,dns,ldap,mysql,tls=0A=
=0A=
.if defined(WITH_MFCHECK_PATCH)=0A=
# This patch nable qmail-smtpd to perform DNS MX lookup for=0A=
# host/domain in order to rejects E-Mails with bogus hostnames/domains"=0A=
PATCH_SITES+=3D	${MASTER_SITE_QMAIL}/:mfcheck=0A=
PATCHFILES+=3D	qmail-1.03-mfcheck.3.patch:mfcheck=0A=
PATCH_DIST_STRIP+=3D	-p1=0A=
.endif=0A=
=0A=
MASTER_SITE_QMAIL+=3D \=0A=
	http://qmail.geto.net/%SUBDIR%/ \=0A=
	http://qmail.palomine.net/%SUBDIR%/ \=0A=
	http://qmail.mirrors.summersault.com/%SUBDIR%/ \=0A=
	http://qmail.cdsinet.net/%SUBDIR%/ \=0A=
	http://qmail.fidnet.com/%SUBDIR%/ \=0A=
	http://qmail.mscnetworks.com/%SUBDIR%/ \=0A=
	http://qmail.teleglobe.net/%SUBDIR%/ \=0A=
	http://qmail.homegrownhost.net/%SUBDIR%/ \=0A=
	http://qmail.webmast.com/%SUBDIR%/ \=0A=
	http://qmail.glasswings.com.au/%SUBDIR%/ \=0A=
	http://qmail.planetmirror.com/%SUBDIR%/ \=0A=
	http://qmail.404-not-found.net/%SUBDIR%/ \=0A=
	http://qmail.hostlink.com.hk/%SUBDIR%/ \=0A=
	http://qmail.cbn.net.id/%SUBDIR%/ \=0A=
	http://www9.jp.qmail.org/%SUBDIR%/ \=0A=
	http://qmailorg.data-hotel.net/%SUBDIR%/ \=0A=
	http://qmail.manic.co.kr/%SUBDIR%/ \=0A=
	http://qmail.psshee.com/%SUBDIR%/ \=0A=
	http://qmail.soa.co.nz/%SUBDIR%/ \=0A=
	http://d2.nctu.edu.tw/qmail/%SUBDIR%/ \=0A=
	http://mirrors.kangaroot.net/qmail/%SUBDIR%/ \=0A=
	http://qmail.ssi.bg/%SUBDIR%/ \=0A=
	http://mirrors.sunsite.dk/qmailwww/%SUBDIR%/ \=0A=
	http://qmail.xinus.net/%SUBDIR%/ \=0A=
	http://qmail.lightwerk.com/%SUBDIR%/ \=0A=
	http://qmail.mirrors.Space.Net/%SUBDIR%/ \=0A=
	http://qmail-mirror.hoermann-rawema.de/%SUBDIR%/ \=0A=
	http://www.ntua.gr/qmail/%SUBDIR%/ \=0A=
	http://www.agria.hu/qmail/%SUBDIR%/ \=0A=
	http://qmail-mirror.naplopok.hu/%SUBDIR%/ \=0A=
	http://qmail.hu/%SUBDIR%/ \=0A=
	http://qmail.rhnet.is/%SUBDIR%/ \=0A=
	http://qmail.netsoc.ucd.ie/%SUBDIR%/ \=0A=
	http://complanet.ath.cx/qmail/%SUBDIR%/ \=0A=
	http://mirrors.dataloss.nl/www.qmail.org/%SUBDIR%/ \=0A=
	http://qmail.basefreak.nl/%SUBDIR%/ \=0A=
	http://www.math.ntnu.no/mirror/www.qmail.org/%SUBDIR%/ \=0A=
	http://qmail.obeer.com/%SUBDIR%/ \=0A=
	http://qmail.konnekt.org/%SUBDIR%/ \=0A=
	http://qmail.smux.net/%SUBDIR%/ \=0A=
	http://qmail.netvisao.pt/%SUBDIR%/ \=0A=
	http://qmail.ssc.nsu.ru/%SUBDIR%/ \=0A=
	http://qmail.tps.sk/%SUBDIR%/ \=0A=
	http://qmail.ipg.sk/%SUBDIR%/ \=0A=
	http://qmail.imasd.elmundo.es/%SUBDIR%/ \=0A=
	http://qmail.x42.com/%SUBDIR%/ \=0A=
	http://qmail.netrogenic.com/%SUBDIR%/ \=0A=
	http://qmail.omnis.ch/%SUBDIR%/ \=0A=
	http://qmail.asylog.net/%SUBDIR%/ \=0A=
	http://qmail.humourengine.com/%SUBDIR%/ \=0A=
	http://qmail.softflare.com/%SUBDIR%/ \=0A=
	http://qmail.blueyonder.co.uk/%SUBDIR%/ \=0A=
	http://qmail.usp.br/%SUBDIR%/ \=0A=
	http://qmail.matrix.com.br/%SUBDIR%/ \=0A=
	http://madhaus.utcs.utoronto.ca/qmail/%SUBDIR%/ \=0A=
	http://qmail.freezer-burn.org/%SUBDIR%/ \=0A=
	http://qmail.unam.mx/%SUBDIR%/ \=0A=
	http://qmail.ru.ac.za/%SUBDIR%/ \=0A=
	http://www.qmail.org/%SUBDIR%/=0A=
=0A=
.if !defined(MAIN_QMAIL_PORT_DNS_PATCH_BARRIER) \=0A=
 	=
||(defined(WITH_QMAILQUEUE_PATCH)&&!defined(MAIN_QMAIL_PORT_WITH_QMAILQUE=
UE_PATCH_BARRIER)) \=0A=
	=
||(defined(WITH_BIG_TODO_PATCH)&&!defined(MAIN_QMAIL_PORT_WITH_BIG_TODO_P=
ATCH_BARRIER)) \=0A=
	=
||(defined(WITH_BIG_CONCURRENCY_PATCH)&&!defined(MAIN_QMAIL_PORT_WITH_BIG=
_CONCURRENCY_PATCH_BARRIER)) \=0A=
	=
||(defined(WITH_OUTGOINGIP_PATCH)&&!defined(MAIN_QMAIL_PORT_WITH_OUTGOING=
IP_PATCH_BARRIER))=0A=
PATCH_SITES+=3D	${MASTER_SITE_QMAIL}=0A=
.endif=0A=
=0A=
# qmail-* skeleton ports including this port may not want=0A=
# its patches=0A=
# MAIN_QMAIL_PORT_WITH_QMAILQUEUE_PATCH_BARRIER=0A=
# MAIN_QMAIL_PORT_WITH_BIG_TODO_PATCH_BARRIER=0A=
# MAIN_QMAIL_PORT_WITH_BIG_CONCURRENCY_PATCH_BARRIER=0A=
# MAIN_QMAIL_PORT_WITH_OUTGOINGIP_PATCH_BARRIER=0A=
#=0A=
.if =
defined(WITH_QMAILQUEUE_PATCH)&&!defined(MAIN_QMAIL_PORT_WITH_QMAILQUEUE_=
PATCH_BARRIER)=0A=
PATCHFILES+=3D 	qmailqueue-patch=0A=
.endif # WITH_QMAILQUEUE_PATCH && =
!MAIN_QMAIL_PORT_WITH_QMAILQUEUE_PATCH_BARRIER=0A=
.if =
defined(WITH_BIG_TODO_PATCH)&&!defined(MAIN_QMAIL_PORT_WITH_BIG_TODO_PATC=
H_BARRIER)=0A=
PATCHFILES+=3D	big-todo.103.patch=0A=
.endif # WITH_BIG_TODO_PATCH && =
!MAIN_QMAIL_PORT_WITH_BIG_TODO_PATCH_BARRIER=0A=
.if =
defined(WITH_BIG_CONCURRENCY_PATCH)&&!defined(MAIN_QMAIL_PORT_WITH_BIG_CO=
NCURRENCY_PATCH_BARRIER)=0A=
PATCHFILES+=3D	big-concurrency.patch=0A=
.endif # WITH_BIG_CONCURRENCY_PATCH && =
!MAIN_QMAIL_PORT_WITH_BIG_CONCURRENCY_PATCH_BARRIER=0A=
.if =
defined(WITH_OUTGOINGIP_PATCH)&&!defined(MAIN_QMAIL_PORT_WITH_OUTGOINGIP_=
PATCH_BARRIER)=0A=
PATCHFILES+=3D	outgoingip.patch=0A=
.endif # WITH_OUTGOINGIP_PATCH && =
!MAIN_QMAIL_PORT_WITH_OUTGOINGIP_PATCH_BARRIER=0A=
=0A=
# Add Spamcontrol patch to qmail =
(http://www.fehcom.de/qmail/spamcontrol.html)=0A=
.if defined(WITH_SPAMCONTROL_PATCH)=0A=
SPAMCONTROL_VERSION?=3D	225=0A=
PATCH_SITES+=3D   http://www.fehcom.de/qmail/spamcontrol/:spamcontrol=0A=
PATCHFILES+=3D    spamcontrol-${SPAMCONTROL_VERSION}_tgz.bin:spamcontrol=0A=
.endif=0A=
=0A=
MAINTAINER=3D	lioux@FreeBSD.org=0A=
COMMENT?=3D	A secure, reliable, efficient, simple, and fast MTA=0A=
=0A=
NO_PACKAGE=3D	djb\'s packaging license does not allow non-standard\=0A=
		qmail binary distributions=0A=
=0A=
# A normal qmail installation puts everything into /var/qmail/.=0A=
# If you want to install to /usr/local/, then "/usr/local/qmail" is=0A=
# suggested instead of "/usr/local", but both will work.=0A=
PREFIX?=3D		/var/qmail=0A=
QMAIL_VERSION?=3D		1.03=0A=
=0A=
# Some default values, these can be modified by make command line=0A=
.if =
defined(WITH_BIG_CONCURRENCY_PATCH)&&!defined(MAIN_QMAIL_PORT_WITH_BIG_CO=
NCURRENCY_PATCH_BARRIER)=0A=
WITH_BIG_CONCURRENCY_PATCH_CONCURRENCY_LIMIT?=3D	509=0A=
.endif # WITH_BIG_CONCURRENCY_PATCH && =
!MAIN_QMAIL_PORT_WITH_BIG_CONCURRENCY_PATCH_BARRIER=0A=
=0A=
# Some configuration files we use for installing the port=0A=
MAILER_CONF_FILE?=3D	/etc/mail/mailer.conf=0A=
MAKE_CONF_FILE?=3D	/etc/make.conf=0A=
RC_CONF_FILE?=3D	/etc/rc.conf=0A=
# Some programs we use when building/installing the port=0A=
FMT?=3D		/usr/bin/fmt=0A=
HEAD?=3D		/usr/bin/head=0A=
MAILQ?=3D		/usr/bin/mailq=0A=
NEWALIASES?=3D	/usr/bin/newaliases=0A=
SENDMAIL?=3D	/usr/sbin/sendmail=0A=
=0A=
ALL_TARGET=3D	default dot-qmail.5 qmail-control.5 qmail-getpw.8 \=0A=
		qmail-limits.7 qmail-newmrh.8 qmail-newu.8 qmail-pw2u.8 \=0A=
		qmail-send.8 qmail-start.8 qmail-users.5=0A=
=0A=
MAN1=3D	forward.1 condredirect.1 bouncesaying.1 except.1 maildirmake.1 \=0A=
	maildir2mbox.1 maildirwatch.1 mailsubj.1 qreceipt.1 qbiff.1 preline.1 \=0A=
	tcp-env.1=0A=
MAN5=3D	addresses.5 envelopes.5 maildir.5 mbox.5 dot-qmail.5 =
qmail-control.5 \=0A=
	qmail-header.5 qmail-log.5 qmail-users.5 tcp-environ.5=0A=
MAN7=3D	forgeries.7 qmail-limits.7 qmail.7=0A=
MAN8=3D	qmail-local.8 qmail-lspawn.8 qmail-getpw.8 qmail-remote.8 \=0A=
	qmail-rspawn.8 qmail-clean.8 qmail-send.8 qmail-start.8 splogger.8 \=0A=
	qmail-queue.8 qmail-inject.8 qmail-showctl.8 qmail-newmrh.8 \=0A=
	qmail-newu.8 qmail-pw2u.8 qmail-qread.8 qmail-qstat.8 qmail-tcpok.8 \=0A=
	qmail-tcpto.8 qmail-pop3d.8 qmail-popup.8 qmail-qmqpc.8 qmail-qmqpd.8 \=0A=
	qmail-qmtpd.8 qmail-smtpd.8 qmail-command.8=0A=
=0A=
PLIST_SUB=3D	DOCDIR=3D${DOCDIR}=0A=
=0A=
DOCFILES+=3D	${WRKSRC}/BLURB ${WRKSRC}/BLURB2 ${WRKSRC}/BLURB3 \=0A=
		${WRKSRC}/BLURB4 ${WRKSRC}/INTERNALS ${WRKSRC}/SECURITY \=0A=
		${WRKSRC}/THOUGHTS ${FILESDIR}/PORT_NOTES \=0A=
		${FILESDIR}/PORT_NOTES_FreeBSD_40-RELEASE \=0A=
		${WRKDIR}/mailer.conf.sample=0A=
=0A=
# The following docfiles are normally installed with qmail-hier=0A=
DOCFILES+=3D	${WRKSRC}/FAQ ${WRKSRC}/UPGRADE ${WRKSRC}/SENDMAIL \=0A=
		${WRKSRC}/INSTALL ${WRKSRC}/INSTALL.alias \=0A=
		${WRKSRC}/INSTALL.ctl ${WRKSRC}/INSTALL.ids \=0A=
		${WRKSRC}/INSTALL.maildir ${WRKSRC}/INSTALL.mbox \=0A=
		${WRKSRC}/INSTALL.vsm ${WRKSRC}/TEST.deliver \=0A=
		${WRKSRC}/TEST.receive ${WRKSRC}/REMOVE.sendmail \=0A=
		${WRKSRC}/REMOVE.binmail ${WRKSRC}/PIC.local2alias \=0A=
		${WRKSRC}/PIC.local2ext ${WRKSRC}/PIC.local2local \=0A=
		${WRKSRC}/PIC.local2rem ${WRKSRC}/PIC.local2virt \=0A=
		${WRKSRC}/PIC.nullclient ${WRKSRC}/PIC.relaybad \=0A=
		${WRKSRC}/PIC.relaygood ${WRKSRC}/PIC.rem2local=0A=
=0A=
# More files normally installed with from hier.c=0A=
BOOTFILES=3D	${WRKSRC}/home ${WRKSRC}/home+df ${WRKSRC}/proc \=0A=
		${WRKSRC}/proc+df ${WRKSRC}/binm1 ${WRKSRC}/binm1+df \=0A=
		${WRKSRC}/binm2 ${WRKSRC}/binm2+df ${WRKSRC}/binm3 \=0A=
		${WRKSRC}/binm3+df=0A=
=0A=
# Supplied by Stuart Henderson <stuart@internationalschool.co.uk>=0A=
BOOTFILES+=3D	${FILESDIR}/maildir=0A=
=0A=
CONFIGUREPROGS=3D	${WRKSRC}/install ${WRKSRC}/dnsfq ${WRKSRC}/hostname \=0A=
		${WRKSRC}/dnsip ${WRKSRC}/ipmeprint ${WRKSRC}/dnsptr=0A=
CONFIGUREFILES=3D	${WRKSRC}/config ${WRKSRC}/config-fast=0A=
=0A=
.if (${PREFIX} =3D=3D ${LOCALBASE})=0A=
DOCDIR=3D	share/doc/qmail=0A=
.else=0A=
DOCDIR=3D	doc=0A=
.endif=0A=
=0A=
NO_MTREE=3D	yes=0A=
USE_PERL5_BUILD=3Dyes=0A=
=0A=
.if !defined(_PREMKINCLUDED)=0A=
.include <bsd.port.pre.mk>=0A=
.endif=0A=
=0A=
pre-fetch: pre-pre-fetch slaveport-pre-fetch post-pre-fetch=0A=
=0A=
pre-pre-fetch:=0A=
.if !defined(MAIN_QMAIL_PORT_BUILD_WITH_OPTIONS_ADVERTISE_BARRIER)=0A=
	@${ECHO_MSG} ""=0A=
	@${ECHO_MSG} "You may use the following build options:"=0A=
	@${ECHO_MSG} ""=0A=
.if !defined(MAIN_QMAIL_PORT_WITH_QMAILQUEUE_PATCH_BARRIER)=0A=
	@${ECHO_MSG} "WITH_QMAILQUEUE_PATCH=3Dyes	enable patch to qmail to run =
a QMAILQUEUE"=0A=
	@${ECHO_MSG} "				program instead of bin/qmail-queue"=0A=
.endif # MAIN_QMAIL_PORT_WITH_QMAILQUEUE_PATCH_BARRIER=0A=
.if !defined(MAIN_QMAIL_PORT_WITH_BIG_TODO_PATCH_BARRIER)=0A=
	@${ECHO_MSG} "WITH_BIG_TODO_PATCH=3Dyes		enable big_todo qmail patch"=0A=
.endif # MAIN_QMAIL_PORT_WITH_BIG_TODO_PATCH_BARRIER=0A=
.if !defined(MAIN_QMAIL_PORT_WITH_BIG_CONCURRENCY_PATCH_BARRIER)=0A=
	@${ECHO_MSG} "WITH_BIG_CONCURRENCY_PATCH=3Dyes	enable patch to qmail to"=0A=
	@${ECHO_MSG} "				use a concurrency greater than 240"=0A=
	@${ECHO_MSG} "WITH_BIG_CONCURRENCY_PATCH_CONCURRENCY_LIMIT=3DNUMBER"=0A=
	@${ECHO_MSG} "				(default =
NUMBER=3D${WITH_BIG_CONCURRENCY_PATCH_CONCURRENCY_LIMIT})"=0A=
	@${ECHO_MSG} "				set this to a value reasonable for"=0A=
	@${ECHO_MSG} "				your system if you use the patch"=0A=
.endif # MAIN_QMAIL_PORT_WITH_BIG_CONCURRENCY_PATCH_BARRIER=0A=
.if !defined(MAIN_QMAIL_PORT_WITH_OUTGOINGIP_PATCH_BARRIER)=0A=
	@${ECHO_MSG} "WITH_OUTGOINGIP_PATCH=3Dyes	enable patch to qmail to"=0A=
	@${ECHO_MSG} "				allow setting the IP address"=0A=
	@${ECHO_MSG} "				used by qmail when sending"=0A=
	@${ECHO_MSG} "				outgoing messages"=0A=
.endif # MAIN_QMAIL_PORT_WITH_OUTGOINGIP_PATCH_BARRIER=0A=
	@${ECHO_MSG} "WITH_MFCHECK_PATCH=3Dyes          enable qmail-smtpd to =
perform"=0A=
	@${ECHO_MSG} "                                DNS MX lookup for =
host/domain"=0A=
	@${ECHO_MSG} "                                in order to rejects =
E-Mails"=0A=
	@${ECHO_MSG} "                                with bogus =
hostnames/domains"=0A=
	@${ECHO_MSG} "#"=0A=
.endif # MAIN_QMAIL_PORT_BUILD_WITH_OPTIONS_ADVERTISE_BARRIER=0A=
=0A=
# Yet anther ugly hack (used by qmail-* skeleton ports)=0A=
# Permits them to define local targets without braking everything=0A=
# The ugly target name hopefully will avoid name clashing=0A=
.if !target(slaveport-pre-fetch)=0A=
slaveport-pre-fetch:=0A=
.endif=0A=
=0A=
post-pre-fetch:=0A=
.if !defined(MAIN_QMAIL_PORT_BUILD_WITH_OPTIONS_ADVERTISE_BARRIER)=0A=
	@${ECHO_MSG} ""=0A=
.endif=0A=
=0A=
post-patch: thereal-post-patch slaveport-post-patch mfcheck-post-patch =
post-post-patch=0A=
=0A=
# Yet anther ugly hack (used by qmail-* skeleton ports)=0A=
# Permits them to define local targets without braking everything=0A=
# The ugly target name hopefully will avoid name clashing=0A=
.if !target(slaveport-post-patch)=0A=
slaveport-post-patch:=0A=
.endif=0A=
=0A=
mfcheck-post-patch:=0A=
.if defined(WITH_MFCHECK_PATCH)=0A=
	@${ECHO_MSG} "1" > /var/qmail/control/mfcheck=0A=
.endif=0A=
=0A=
post-post-patch:=0A=
	@${PERL} -pi -ne "s!/var/qmail!${PREFIX}!;s!/usr/local/!${LOCALBASE}/!" =
${WRKSRC}/Makefile=0A=
=0A=
# If you want to change the qmail users, they must be changed in both=0A=
# work/*/conf-users and pkg/INSTALL.=0A=
=0A=
do-configure:=0A=
	@# Create/Check the necessary groups/users=0A=
	@PKG_PREFIX=3D${PREFIX} ${PERL5} ${PKGINSTALL}=0A=
	@${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc=0A=
	@${ECHO_CMD} ${PREFIX} > ${WRKSRC}/conf-qmail=0A=
.if defined(WITH_BIG_CONCURRENCY_PATCH) \=0A=
	&& !defined(MAIN_QMAIL_PORT_WITH_BIG_CONCURRENCY_PATCH_BARRIER) \=0A=
	&& defined(WITH_BIG_CONCURRENCY_PATCH_CONCURRENCY_LIMIT)=0A=
	@if [ ${WITH_BIG_CONCURRENCY_PATCH_CONCURRENCY_LIMIT} -gt 0 ]; \=0A=
	then \=0A=
		${ECHO_CMD} "${WITH_BIG_CONCURRENCY_PATCH_CONCURRENCY_LIMIT}" \=0A=
			> ${WRKSRC}/conf-spawn ; \=0A=
	fi=0A=
.endif # MAIN_QMAIL_PORT_WITH_BIG_CONCURRENCY_PATCH_BARRIER=0A=
=0A=
do-install:=0A=
	@# Check again, just in case (ideally should error if not found)=0A=
	@PKG_PREFIX=3D${PREFIX} ${PERL5} ${PKGINSTALL}=0A=
	@${MKDIR} ${PREFIX}/${DOCDIR} ${PREFIX}/configure=0A=
	@cd ${WRKSRC} ; ./install=0A=
	${INSTALL_PROGRAM} ${CONFIGUREPROGS} ${PREFIX}/configure=0A=
	${INSTALL_SCRIPT} ${CONFIGUREFILES} ${PREFIX}/configure=0A=
.for i in ${BOOTFILES}=0A=
	${INSTALL_SCRIPT} ${WRKDIR}/${i:T} ${PREFIX}/boot=0A=
.endfor=0A=
.for i in 1 5 7 8=0A=
	@${MKDIR} ${PREFIX}/man/man$i=0A=
.for j in ${MAN${i}}=0A=
	${INSTALL_MAN} ${WRKSRC}/$j ${PREFIX}/man/man${i}=0A=
.endfor=0A=
.endfor=0A=
.if !defined(NOPORTDOCS)=0A=
	${INSTALL_DATA} ${DOCFILES} ${PREFIX}/${DOCDIR}=0A=
.endif=0A=
.if defined(PACKAGE_BUILDING)=0A=
	@${ECHO_CMD} "FreeBSD Binary package qmail installation" \=0A=
		> ${PREFIX}/${DOCDIR}/SYSDEPS=0A=
.else=0A=
	@cd ${WRKSRC} && ${CAT} `${CAT} SYSDEPS` \=0A=
		> ${PREFIX}/${DOCDIR}/SYSDEPS=0A=
.endif=0A=
.for i in root postmaster mailer-daemon=0A=
	@${TOUCH} ${PREFIX}/alias/.qmail-${i}=0A=
.endfor=0A=
	@# This is not part of qmail proper, hence the 2nd class citizenship=0A=
	${INSTALL_SCRIPT} ${FILESDIR}/mkaliasdir ${PREFIX}/${DOCDIR}=0A=
	@cd ${PREFIX}/configure ; ./config=0A=
	@${MKDIR} ${LOCALBASE}/etc/rc.d=0A=
	@${LN} -sf ${PREFIX}/rc ${LOCALBASE}/etc/rc.d/qmail.sh=0A=
	@${ECHO}=0A=
	@${SED} s!/var/qmail!${PREFIX}!g ${PKGMESSAGE} | ${FMT}=0A=
=0A=
# hack to allow slave ports to include bsd.port.pre.mk and then this file=0A=
.if defined(_PREMKINCLUDED)=0A=
.include <bsd.port.post.mk>=0A=
.else=0A=
.include <bsd.port.mk>=0A=
.endif=0A=
=0A=
# Ugh...  ;-)=0A=
thereal-post-patch:=0A=
.for i in ${BOOTFILES}=0A=
	@if  [ -f ${i}.sh ] ; \=0A=
	then \=0A=
		${PERL} -p -ne 's!QMAIL/!${PREFIX}/!;s!^(exec)!case "\$$1" =
in\nstart)\n\t\1!;s!(qmail)$$!\1\&\n\texit 0\n\t;;\nstop)\n\texec =
killall qmail-send\n\t;;\n*)\n\t${ECHO_CMD} "Usage: `basename \$$0` =
{start|stop}" >&2\n\texit 64\n\t;;\nesac!' $i.sh > ${WRKDIR}/${i:T} ; \=0A=
	elif [ -f ${i} ] ; \=0A=
	then \=0A=
		${PERL} -p -ne 's!QMAIL/!${PREFIX}/!;s!^(exec)!case "\$$1" =
in\nstart)\n\t\1!;s!(qmail)$$!\1\&\n\texit 0\n\t;;\nstop)\n\texec =
killall qmail-send\n\t;;\n*)\n\t${ECHO_CMD} "Usage: `basename \$$0` =
{start|stop}" >&2\n\texit 64\n\t;;\nesac!' $i > ${WRKDIR}/${i:T} ; \=0A=
	fi=0A=
.endfor=0A=
	@${SED} s!/var/qmail/!${PREFIX}/!g ${FILESDIR}/mailer.conf.sample > \=0A=
		${WRKDIR}/mailer.conf.sample=0A=
=0A=
# Double Ugh... ;-)=0A=
${WRKDIR}/.thereal_disable_sendmail_done:=0A=
	@if [ ! -d ${WRKDIR} ]; \=0A=
	then \=0A=
		${MKDIR} ${WRKDIR} ; \=0A=
	fi=0A=
=0A=
# I would like some input on the targets below. Only constructive ones=0A=
# please. :)=0A=
# based on shells/pdksh /etc/shells update PLIST.=0A=
thereal-disable-sendmail: ${WRKDIR}/.thereal_disable_sendmail_done =
${RC_CONF_FILE}=0A=
	@if [ -f ${RC_CONF_FILE} ]; \=0A=
	then \=0A=
		${CP} ${RC_CONF_FILE} ${RC_CONF_FILE}.bak && \=0A=
			${GREP} -v sendmail_enable ${RC_CONF_FILE}.bak > \=0A=
				${RC_CONF_FILE} && \=0A=
			${TOUCH} ${WRKDIR}/.thereal_disable_sendmail_done ; \=0A=
	else \=0A=
		${ECHO_MSG} "=3D=3D=3D> ERROR: YOU DO NOT HAVE A VALID =
${RC_CONF_FILE}" ; \=0A=
		${ECHO_MSG} "=3D=3D=3D> FIX this and try again" ; \=0A=
		${FALSE} ; \=0A=
	fi=0A=
=0A=
disable-sendmail: thereal-disable-sendmail=0A=
	@${ECHO_MSG} "=3D=3D=3D> I hope you know what you are doing:"=0A=
	@${ECHO_MSG} "=3D=3D=3D> You just told your system to not"=0A=
	@${ECHO_MSG} "=3D=3D=3D> automaticaly start sendmail on your"=0A=
	@${ECHO_MSG} "=3D=3D=3D> next startup."=0A=
	@${ECHO_MSG} "=3D=3D=3D> (i.e., added sendmail_enable=3D\"NONE\" to =
rc.conf)"=0A=
	@if [ -f ${RC_CONF_FILE} ]; \=0A=
	then \=0A=
		${ECHO_CMD} sendmail_enable=3D\"NONE\" >> ${RC_CONF_FILE} ; \=0A=
	fi=0A=
=0A=
enable-sendmail: thereal-disable-sendmail=0A=
	@${ECHO_MSG} "=3D=3D=3D> I hope you know what you are doing:"=0A=
	@${ECHO_MSG} "=3D=3D=3D> You just told your system to"=0A=
	@${ECHO_MSG} "=3D=3D=3D> automaticaly start sendmail on your"=0A=
	@${ECHO_MSG} "=3D=3D=3D> next startup."=0A=
	@${ECHO_MSG} "=3D=3D=3D> (i.e., removed sendmail_enable=3D\"NONE\" from =
rc.conf)"=0A=
=0A=
enable-qmail: install disable-sendmail=0A=
	@if [ -f ${MAILER_CONF_FILE} ]; \=0A=
	then \=0A=
		${CP} ${MAILER_CONF_FILE} ${MAILER_CONF_FILE}.bak && \=0A=
		${CP} ${WRKDIR}/mailer.conf.sample ${MAILER_CONF_FILE} ; \=0A=
	else \=0A=
		${ECHO_MSG} "=3D=3D=3D> ERROR: YOU DO NOT HAVE A VALID =
${MAILER_CONF_FILE}" ; \=0A=
		${ECHO_MSG} "=3D=3D=3D> FIX this and try again" ; \=0A=
		${ECHO_MSG} "=3D=3D=3D> or, do \"make force_enable_qmail\" if you are =
sure" ; \=0A=
		${ECHO_MSG} "=3D=3D=3D> you want this port replacing some binaries" ; \=0A=
		${ECHO_MSG} "=3D=3D=3D> IF THIS FEELS UNEASY, read =
${PREFIX}/${DOCDIR}/REMOVE.sendmail and do it manually" ; \=0A=
		${ECHO_MSG} "" ; \=0A=
		${ECHO_MSG} "=3D=3D=3D=3D=3D=3D=3D> VERY IMPORTANT =
<=3D=3D=3D=3D=3D=3D=3D" ; \=0A=
		${ECHO_MSG} "=3D=3D=3D> One side issue is that if you do replace =
them," ; \=0A=
		${ECHO_MSG} "=3D=3D=3D> you really should consider ADDING =
\"NO_SENDMAIL=3Dtrue\"" ; \=0A=
		${ECHO_MSG} "=3D=3D=3D> to your ${MAKE_CONF_FILE} if you do \"make =
world\"." ; \=0A=
		${ECHO_MSG} "=3D=3D=3D> Otherwise, \"make world\" will \"fix\" your =
sendmail" ; \=0A=
		${ECHO_MSG} "=3D=3D=3D> installation breaking your qmail one." ; \=0A=
		${ECHO_MSG} "=3D=3D=3D> Read the FreeBSD Handbook section on \"make =
world\"" ; \=0A=
		${ECHO_MSG} "=3D=3D=3D> if you do not know what I am talking about." ; =
\=0A=
		${ECHO_MSG} "=3D=3D=3D> Check http://www.FreeBSD.org/ for the most" ; \=0A=
		${ECHO_MSG} "=3D=3D=3D> updated copy of the Handbook." ; \=0A=
	fi=0A=
	@${ECHO_MSG} "=3D=3D=3D> Do not forget to choose an appropriate qmail =
startup"=0A=
	@${ECHO_MSG} "=3D=3D=3D> script. Go through ${PREFIX}/boot, choose one"=0A=
	@${ECHO_MSG} "=3D=3D=3D> and copy the chosen script as ${PREFIX}/rc"=0A=
	@${ECHO_MSG} "=3D=3D=3D> For example, \"cp ${PREFIX}/boot/proc+df =
${PREFIX}/rc\""=0A=
=0A=
# taken from mail/postfix idea=0A=
force-enable-qmail: install disable-sendmail=0A=
	@${ECHO_MSG} "=3D=3D=3D> Replacing sendmail"=0A=
	@if [ -e ${SENDMAIL} ]; then \=0A=
		${MV} -f ${SENDMAIL} ${SENDMAIL}.OFF && \=0A=
		${CHMOD} 0 ${SENDMAIL}.OFF; \=0A=
	fi=0A=
	@if [ -e ${PREFIX}/bin/sendmail ]; then \=0A=
		${LN} -sf ${PREFIX}/bin/sendmail ${SENDMAIL}; \=0A=
	fi=0A=
	@${ECHO_MSG} "=3D=3D=3D> Replacing mailq"=0A=
	@if [ -e ${MAILQ} ]; then \=0A=
		${MV} -f ${MAILQ} ${MAILQ}.OFF && \=0A=
		${CHMOD} 0 ${MAILQ}.OFF; \=0A=
	fi=0A=
	@if [ -e ${PREFIX}/bin/qmail-qread ]; then \=0A=
		${LN} -sf ${PREFIX}/bin/qmail-qread ${MAILQ}; \=0A=
	fi=0A=
	@${ECHO_MSG} "=3D=3D=3D> Replacing newaliases"=0A=
	@if [ -e ${NEWALIASES} ]; then \=0A=
		${MV} -f ${NEWALIASES} ${NEWALIASES}.OFF && \=0A=
		${CHMOD} 0 ${NEWALIASES}.OFF; \=0A=
	fi=0A=
	@if [ -e ${PREFIX}/bin/newaliases ]; then \=0A=
		${LN} -sf ${PREFIX}/bin/newaliases ${NEWALIASES}; \=0A=
	fi=0A=
=0A=
# The users are instructed (in PORT_NOTES) to install ${QUEUE_DIR}/rc=0A=
# themselves.  Each /var/qmail/ should have its own rc.  On many =
machines,=0A=
# /usr/local/ is nfs mounted and /var/qmail/ is local.  An individual=0A=
# machine may want/not-want qmail.  Pity we can't add a dir to =
local_startup=0A=
# from here.=0A=
=0A=
# Wouldn't hurt to provide an "enable_qmail" and "disable_sendmail" =
target=0A=
# that do 1) and 2) above and disable the existing sendmail, =
respectively.=0A=

------=_NextPart_000_03F3_01C3CCAA.D019E350
Content-Type: application/octet-stream;
	name="distinfo"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="distinfo"

MD5 (qmail-1.03.tar.gz) =3D 622f65f982e380dbe86e6574f3abcb7c=0A=
MD5 (qmail-103.patch) =3D 9140ad2b03017145cd7963c84bb24f16=0A=
MD5 (qmail-ldap-1.03-20020901.patch.gz) =3D =
48d2761e9ae44bb4d2812a19634f1a5b=0A=
MD5 (qmail-mysql-1.1.8.patch) =3D 0860a5b5cd5b6f99bf005e845b2e0764=0A=
MD5 (tls.patch) =3D 57447ec135ddb32ada13a56b70ccf6d4=0A=
MD5 (qmailqueue-patch) =3D 5a8d7a5863b0c56236af945dedd45754=0A=
MD5 (big-todo.103.patch) =3D 39b6f70f65056472ff97ab40c1dba7b4=0A=
MD5 (big-concurrency.patch) =3D 2ff58c3570870a8ff9a1d9eb9aec05a6=0A=
MD5 (outgoingip.patch) =3D 27e07ea6328cd763481c6d8887b20fe2=0A=
MD5 (sendmail-flagf.patch) =3D 4e1f2d8315e7e2a5482798c9d19fac4d=0A=
MD5 (qmail-1.03-mfcheck.3.patch) =3D 687655312016115f994c58a7dc942f53=0A=

------=_NextPart_000_03F3_01C3CCAA.D019E350--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?03f601c3cca2$6f1b6360$1e00a8c0>