* qmail port

o bump PORTREVISION
o sanitize MASTER_SITES
o added several flags (defined checks) to enable
active slave port control on what they inherit
o add extra enhancement patches, these can be
inherited too:
	- WITH_QMAILQUEUE_PATCH: qmailqueue-patch
	- WITH_BIG_TODO_PATCH: big-todo.103.patch
	- WITH_BIG_CONCURRENCY_PATCH: big-concurrency.patch
		- WITH_BIG_CONCURRENCY_PATCH_CONCURRENCY_LIMIT
		default: 509
o add patches checksum to distinfo
o added MASTER_SITE_QMAIL for internal use
o additional copies of slave qmail patches are now housed
at MASTER_SITE_LOCAL, PATCH_SITE_SUBDIR=lioux because
these patches only have ONE PATCH_SITES source each
	- qmail-ldap-1.03-20010201.patch.gz (qmail-ldap)
	- qmail-mysql-1.1.1.patch (qmail-mysql)
	- tls.patch (qmail-tls)
o turn all absolute references to both binaries and
FreeBSD configuration files into VARs: better
maintability
o s/yetanotherone-/slaveport-/: that is the correct
nomenclature
o ${LN} should use -sf instead of plain -s
o typo fix: QMail -> qmail

* qmail-ldap port
o bump PORTREVISION in sync with master port bump
o minor changes to comply to recent changes to the master
port
o block the WITH_BIG_CONCURRENCY_PATCH, it does not like
the qmail-ldap patch
o enable SMTP TLS support with WITH_TLS
	- the PKGNAMESUFFIX changes to -ldap-with_tls
	- let it know the location of QMAIL_TLS_PORT
	- add certificate and certificate-req; in fact,
		we are inheriting qmail-tls targets
 o s/yetanotherone-/slaveport-/: that is the correct
nomenclature
o tabulate better the WITH_* advertisement messages
o add appropriate message to PKGMESSAGE about the
new certificate targets following the qmail-tls
port
o nomenclature fix: ^ldap- -> ^qmail-ldap-

* qmail-mysql port
o bump PORTREVISION in sync with master port bump
o block the WITH_QMAILQUEUE_PATCH, it does not like
the qmail-mysql patch
o s/yetanotherone-/slaveport-/: that is the correct
nomenclature

* qmail-tls port
o bump PORTREVISION in sync with master port bump
o minor changes to comply to recent changes to the master
port
o s/yetanotherone-/slaveport-/: that is the correct
nomenclature
o nomenclature fix: ^tls- -> ^qmail-tls-
This commit is contained in:
Mario Sergio Fujikawa Ferreira 2001-02-22 18:15:18 +00:00
parent 76ae6e1d12
commit 224a6052af
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=38616
8 changed files with 218 additions and 88 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= qmail
PORTVERSION= ${QMAIL_VERSION}.${LDAP_PATCH_DATE}
PORTREVISION= 1
CATEGORIES= mail
PKGNAMESUFFIX= -ldap
@ -20,8 +21,14 @@ MAINTAINER= lioux@FreeBSD.org
LIB_DEPENDS+= ldap.1:${PORTSDIR}/net/openldap
.if defined(WITH_TLS)
PKGNAMESUFFIX= -ldap-with_tls
USE_OPENSSL= yes
.endif # WITH_TLS
# Patches from the main qmail port are not wanted
MAIN_QMAIL_PORT_PATCH_BARRIER= yes
MAIN_QMAIL_PORT_DNS_PATCH_BARRIER= yes
MAIN_QMAIL_PORT_WITH_BIG_CONCURRENCY_PATCH_BARRIER= yes
LDAP_PATCH_DATE= 20010201
@ -35,6 +42,7 @@ PREFIX?= ${QMAIL_PORT_PREFIX}
#QMAIL_PORT= ${PORTSDIR}/mail/qmail
QMAIL_PORT= ${.CURDIR}/../qmail
QMAIL_TLS_PORT= ${.CURDIR}/../qmail-tls
QMAIL_PORT_PREFIX!= cd ${QMAIL_PORT} && ${MAKE} -V PREFIX
QMAIL_PORT_PATCHDIR!= cd ${QMAIL_PORT} && ${MAKE} -V PATCHDIR
@ -42,23 +50,23 @@ DOCFILES+= ${WRKSRC}/QLDAPINSTALL ${WRKSRC}/QLDAPNEWS \
${WRKSRC}/QLDAPTODO ${WRKSRC}/QLDAPPICTURE \
${WRKSRC}/ANTISPAM
yetanotherone-pre-fetch: ldap-pre-fetch
slaveport-pre-fetch: qmail-ldap-pre-fetch
ldap-pre-fetch:
@${ECHO_MSG} ""
@${ECHO_MSG} "You may use the following build options:"
@${ECHO_MSG} ""
@${ECHO_MSG} "WITH_LDAP_CLUSTER=yes enable cluster support"
qmail-ldap-pre-fetch:
@${ECHO_MSG} "WITH_TLS=yes enable SMTP TLS support"
@${ECHO_MSG} "WITH_LDAP_CLUSTER=yes enable cluster support"
@${ECHO_MSG} "WITH_AUTOMAILDIRMAKE=yes enable the auto-maildir-make feature"
@${ECHO_MSG} "WITH_AUTOHOMEDIRMAKE=yes enable the auto-homedir-make feature"
@${ECHO_MSG} "WITH_LDAP_DEBUG=yes enable the possibility to log and"
@${ECHO_MSG} "WITH_LDAP_DEBUG=yes enable the possibility to log and"
@${ECHO_MSG} " debug imap and pop"
@${ECHO_MSG} "WITH_CLEARTEXTPASSWD=yes use cleartext passwords"
@${ECHO_MSG} ""
yetanotherone-post-patch: ldap-post-patch
slaveport-post-patch: qmail-ldap-post-patch
ldap-post-patch:
qmail-ldap-post-patch:
.if defined(WITH_TLS)
@${PERL} -pi -ne "s|#TLSON=-DTLS|TLSON=-DTLS|;s|#TLSINCLUDES=-I/usr/local/include|TLSINCLUDES=-I${OPENSSLBASE}/include|;s|#TLSLIBS=-L/usr/local/lib|TLSLIBS=-L${OPENSSLBASE}/lib|" ${WRKSRC}/Makefile
.endif # WITH_TLS
.if defined(WITH_LDAP_CLUSTER)
@${PERL} -pi -ne "s|#LDAPFLAGS=-DQLDAP_CLUSTER|LDAPFLAGS\+=-DQLDAP_CLUSTER|" ${WRKSRC}/Makefile
.endif # WITH_LDAP_CLUSTER
@ -76,6 +84,12 @@ ldap-post-patch:
${WRKSRC}/Makefile
.endif # WITH_CLEARTEXTPASSWD
certificate:
@cd ${QMAIL_TLS_PORT} && ${MAKE} $@ clean
certificate-req:
@cd ${QMAIL_TLS_PORT} && ${MAKE} $@ clean
# Local overrides
MASTERDIR= ${QMAIL_PORT}
PATCHDIR= ${.CURDIR}/files

View File

@ -18,3 +18,16 @@ You can enable qmail as your default mailer:
# enable qmail as your default MTA
2) do "make enable-qmail"
=====><=====
If you've built this port with TLS support (WITH_TLS=yes)
==> You will need to provide a working certificate in /var/qmail/control/cert.pem :
# makes a self-signed certificate
3) do "make certificate"
# makes a certificate request
4) do "make certificate-req"

View File

@ -7,6 +7,7 @@
PORTNAME= qmail
PORTVERSION= ${QMAIL_VERSION}.${MYSQL_PATCH_VERSION}
PORTREVISION= 1
CATEGORIES= mail
PKGNAMESUFFIX= -mysql
@ -17,6 +18,9 @@ MAINTAINER= lioux@FreeBSD.org
LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
# patches from the master port that brake this one are now allowed
MAIN_QMAIL_PORT_WITH_QMAILQUEUE_PATCH_BARRIER= yes
MYSQL_PATCH_VERSION= 1.1.1
# Using default from master port, i.e., /var/qmail
@ -32,7 +36,7 @@ QMAIL_PORT= ${.CURDIR}/../qmail
QMAIL_PORT_PREFIX!= cd ${QMAIL_PORT} && ${MAKE} -V PREFIX
# Yet anther ugly hack (works due to code inside the main qmail port)
yetanotherone-post-patch: qmail-mysql-post-patch
slaveport-post-patch: qmail-mysql-post-patch
qmail-mysql-post-patch:
@${PERL} -pi -ne \

View File

@ -7,6 +7,7 @@
PORTNAME= qmail
PORTVERSION= ${QMAIL_VERSION}.${TLS_PATCH_DATE}
PORTREVISION= 1
CATEGORIES= mail
PKGNAMESUFFIX= -tls
@ -40,20 +41,16 @@ QMAIL_PORT_PREFIX!= cd ${QMAIL_PORT} && ${MAKE} -V PREFIX
DOCFILES+= ${WRKDIR}/TLS.readme
yetanotherone-pre-fetch: tls-pre-fetch
slaveport-pre-fetch: qmail-tls-pre-fetch
tls-pre-fetch:
@${ECHO_MSG} ""
@${ECHO_MSG} "You may use the following build options:"
@${ECHO_MSG} ""
@${ECHO_MSG} "WITH_TLS_DEBUG=yes enable additional debug information"
@${ECHO_MSG} ""
qmail-tls-pre-fetch:
@${ECHO_MSG} "WITH_TLS_DEBUG=yes enable additional debug information"
yetanotherone-post-patch: tls-post-patch
slaveport-post-patch: qmail-tls-post-patch
tls-post-patch:
qmail-tls-post-patch:
@${HEAD} -74 ${DISTDIR}/tls.patch > ${WRKDIR}/TLS.readme
@${PERL} -pi -ne "s|/var/qmail|${PREFIX}|;s|/usr/local/ssl|${OPENSSLBASE}|" ${WRKSRC}/Makefile
@${PERL} -pi -ne "s|/usr/local/ssl|${OPENSSLBASE}|" ${WRKSRC}/Makefile
# Primary Ugh... ;-)
# idea stolen from www/apache13-ssl, a target written by adam@algroup.co.uk

View File

@ -7,6 +7,7 @@
PORTNAME= qmail
PORTVERSION= ${QMAIL_VERSION}.${TLS_PATCH_DATE}
PORTREVISION= 1
CATEGORIES= mail
PKGNAMESUFFIX= -tls
@ -40,20 +41,16 @@ QMAIL_PORT_PREFIX!= cd ${QMAIL_PORT} && ${MAKE} -V PREFIX
DOCFILES+= ${WRKDIR}/TLS.readme
yetanotherone-pre-fetch: tls-pre-fetch
slaveport-pre-fetch: qmail-tls-pre-fetch
tls-pre-fetch:
@${ECHO_MSG} ""
@${ECHO_MSG} "You may use the following build options:"
@${ECHO_MSG} ""
@${ECHO_MSG} "WITH_TLS_DEBUG=yes enable additional debug information"
@${ECHO_MSG} ""
qmail-tls-pre-fetch:
@${ECHO_MSG} "WITH_TLS_DEBUG=yes enable additional debug information"
yetanotherone-post-patch: tls-post-patch
slaveport-post-patch: qmail-tls-post-patch
tls-post-patch:
qmail-tls-post-patch:
@${HEAD} -74 ${DISTDIR}/tls.patch > ${WRKDIR}/TLS.readme
@${PERL} -pi -ne "s|/var/qmail|${PREFIX}|;s|/usr/local/ssl|${OPENSSLBASE}|" ${WRKSRC}/Makefile
@${PERL} -pi -ne "s|/usr/local/ssl|${OPENSSLBASE}|" ${WRKSRC}/Makefile
# Primary Ugh... ;-)
# idea stolen from www/apache13-ssl, a target written by adam@algroup.co.uk

View File

@ -7,6 +7,7 @@
PORTNAME= qmail
PORTVERSION= ${QMAIL_VERSION}.${TLS_PATCH_DATE}
PORTREVISION= 1
CATEGORIES= mail
PKGNAMESUFFIX= -tls
@ -40,20 +41,16 @@ QMAIL_PORT_PREFIX!= cd ${QMAIL_PORT} && ${MAKE} -V PREFIX
DOCFILES+= ${WRKDIR}/TLS.readme
yetanotherone-pre-fetch: tls-pre-fetch
slaveport-pre-fetch: qmail-tls-pre-fetch
tls-pre-fetch:
@${ECHO_MSG} ""
@${ECHO_MSG} "You may use the following build options:"
@${ECHO_MSG} ""
@${ECHO_MSG} "WITH_TLS_DEBUG=yes enable additional debug information"
@${ECHO_MSG} ""
qmail-tls-pre-fetch:
@${ECHO_MSG} "WITH_TLS_DEBUG=yes enable additional debug information"
yetanotherone-post-patch: tls-post-patch
slaveport-post-patch: qmail-tls-post-patch
tls-post-patch:
qmail-tls-post-patch:
@${HEAD} -74 ${DISTDIR}/tls.patch > ${WRKDIR}/TLS.readme
@${PERL} -pi -ne "s|/var/qmail|${PREFIX}|;s|/usr/local/ssl|${OPENSSLBASE}|" ${WRKSRC}/Makefile
@${PERL} -pi -ne "s|/usr/local/ssl|${OPENSSLBASE}|" ${WRKSRC}/Makefile
# Primary Ugh... ;-)
# idea stolen from www/apache13-ssl, a target written by adam@algroup.co.uk

View File

@ -7,28 +7,80 @@
PORTNAME= qmail
PORTVERSION?= ${QMAIL_VERSION}
PORTREVISION?= 1
CATEGORIES= mail
MASTER_SITES= http://cr.yp.to/software/ \
ftp://ftp.ntnu.no/pub/unix/mail/qmail/ \
ftp://ftp.jp.qmail.org/qmail/ \
ftp://ftp.rifkin.technion.ac.il/pub/qmail/ \
ftp://ftp.net.ohio-state.edu/pub/networking/mail/qmail/ \
ftp://ftp.id.wustl.edu/pub/qmail/
ftp://mirror.pipex.net/pub/qmail/ \
ftp://ftp.mira.net.au/unix/mail/qmail/
DISTNAME= ${PORTNAME}-${QMAIL_VERSION}
# qmail-* skeleton ports including this port may not want
# its patches
.if !defined (MAIN_QMAIL_PORT_PATCH_BARRIER)
.if !defined(MAIN_QMAIL_PORT_DNS_PATCH_BARRIER)
# 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/ \
${MASTER_SITE_LOCAL}
PATCH_SITE_SUBDIR+= lioux
PATCH_SITES+= http://www.ckdhr.com/ckd/
PATCHFILES+= qmail-103.patch
PATCH_DIST_STRIP+= -p1
.endif # MAIN_QMAIL_PORT_DNS_PATCH_BARRIER
MASTER_SITE_QMAIL+= \
http://www.qmail.org/ \
http://qmail.powerenterprises.net/ \
http://qmail.area.com/ \
http://qmail.valueclick.com/qmail/ \
http://itcentrx.com/mirrors/qmail/ \
http://qmail.geto.net/ \
http://qmail.advansys.net/ \
http://qmail.nac.net/ \
http://qmail.presys.com/ \
http://qmail.sgi.net/qmail/ \
http://qmail.goof.com/ \
http://www.cgiscripts.net/mirrors/qmail/ \
http://qmail.maximumbsd.com/ \
http://www.glasswings.com.au/qmail/ \
http://www.sczg.com/qmail/ \
http://infobase.ibase.com.hk/qmail/ \
http://www9.jp.qmail.org/ \
http://qmail.manic.co.kr/ \
http://qmail.sga.net.th/ \
http://gd.tuwien.ac.at/infosys/mail/qmail/www.qmail.org/ \
http://qmail.lightwerk.com/ \
http://qmail.imd.it/ \
http://qmail.sst.com.br/ \
http://madhaus.utcs.utoronto.ca/qmail/ \
http://qmail.ElectroCity.com/
.if !defined(MAIN_QMAIL_PORT_DNS_PATCH_BARRIER) \
||(defined(WITH_QMAILQUEUE_PATCH)&&!defined(MAIN_QMAIL_PORT_WITH_QMAILQUEUE_PATCH_BARRIER)) \
||(defined(WITH_BIG_TODO_PATCH)&&!defined(MAIN_QMAIL_PORT_WITH_BIG_TODO_PATCH_BARRIER)) \
||(defined(WITH_BIG_CONCURRENCY_PATCH)&&!defined(MAIN_QMAIL_PORT_WITH_BIG_CONCURRENCY_PATCH_BARRIER))
PATCH_SITES+= ${MASTER_SITE_QMAIL} \
${MASTER_SITE_LOCAL}
PATCH_SITE_SUBDIR+= lioux
.endif
# qmail-* skeleton ports including this port may not want
# its patches
# MAIN_QMAIL_PORT_WITH_QMAILQUEUE_PATCH_BARRIER
# MAIN_QMAIL_PORT_WITH_BIG_TODO_PATCH_BARRIER
# MAIN_QMAIL_PORT_WITH_BIG_CONCURRENCY_PATCH_BARRIER
#
.if defined(WITH_QMAILQUEUE_PATCH)&&!defined(MAIN_QMAIL_PORT_WITH_QMAILQUEUE_PATCH_BARRIER)
PATCHFILES+= qmailqueue-patch
.endif # WITH_QMAILQUEUE_PATCH && !MAIN_QMAIL_PORT_WITH_QMAILQUEUE_PATCH_BARRIER
.if defined(WITH_BIG_TODO_PATCH)&&!defined(MAIN_QMAIL_PORT_WITH_BIG_TODO_PATCH_BARRIER)
PATCHFILES+= big-todo.103.patch
.endif # WITH_BIG_TODO_PATCH && !MAIN_QMAIL_PORT_WITH_BIG_TODO_PATCH_BARRIER
.if defined(WITH_BIG_CONCURRENCY_PATCH)&&!defined(MAIN_QMAIL_PORT_WITH_BIG_CONCURRENCY_PATCH_BARRIER)
PATCHFILES+= big-concurrency.patch
.endif # WITH_BIG_CONCURRENCY_PATCH && !MAIN_QMAIL_PORT_WITH_BIG_CONCURRENCY_PATCH_BARRIER
MAINTAINER= lioux@FreeBSD.org
NO_PACKAGE= djb\'s packaging license does not allow non-standard\
@ -40,8 +92,21 @@ NO_PACKAGE= djb\'s packaging license does not allow non-standard\
PREFIX?= /var/qmail
QMAIL_VERSION?= 1.03
# Some default values, these can be modified by make command line
.if defined(WITH_BIG_CONCURRENCY_PATCH)&&!defined(MAIN_QMAIL_PORT_WITH_BIG_CONCURRENCY_PATCH_BARRIER)
WITH_BIG_CONCURRENCY_PATCH_CONCURRENCY_LIMIT?= 509
.endif # WITH_BIG_CONCURRENCY_PATCH && !MAIN_QMAIL_PORT_WITH_BIG_CONCURRENCY_PATCH_BARRIER
# Some configuration files we use for installing the port
MAILER_CONF_FILE?= /etc/mail/mailer.conf
MAKE_CONF_FILE?= /etc/make.conf
RC_CONF_FILE?= /etc/rc.conf
# Some programs we use when building/installing the port
HEAD?= /usr/bin/head
FMT?= /usr/bin/fmt
HEAD?= /usr/bin/head
MAILQ?= /usr/bin/mailq
NEWALIASES?= /usr/bin/newaliases
SENDMAIL?= /usr/sbin/sendmail
ALL_TARGET= default dot-qmail.5 qmail-control.5 qmail-getpw.8 \
qmail-limits.7 qmail-newmrh.8 qmail-newu.8 qmail-pw2u.8 \
@ -106,15 +171,55 @@ NO_MTREE= yes
.include <bsd.port.pre.mk>
.endif
pre-fetch: yetanotherone-pre-fetch
pre-fetch: pre-pre-fetch slaveport-pre-fetch post-pre-fetch
pre-pre-fetch:
.if !defined(MAIN_QMAIL_PORT_BUILD_WITH_OPTIONS_ADVERTISE_BARRIER)
@${ECHO_MSG} ""
@${ECHO_MSG} "You may use the following build options:"
@${ECHO_MSG} ""
.if !defined(MAIN_QMAIL_PORT_WITH_QMAILQUEUE_PATCH_BARRIER)
@${ECHO_MSG} "WITH_QMAILQUEUE_PATCH=yes enable patch to qmail to run a QMAILQUEUE"
@${ECHO_MSG} " program instead of bin/qmail-sent"
.endif # MAIN_QMAIL_PORT_WITH_QMAILQUEUE_PATCH_BARRIER
.if !defined(MAIN_QMAIL_PORT_WITH_BIG_TODO_PATCH_BARRIER)
@${ECHO_MSG} "WITH_BIG_TODO_PATCH=yes enable big_todo qmail patch"
.endif # MAIN_QMAIL_PORT_WITH_BIG_TODO_PATCH_BARRIER
.if !defined(MAIN_QMAIL_PORT_WITH_BIG_CONCURRENCY_PATCH_BARRIER)
@${ECHO_MSG} "WITH_BIG_CONCURRENCY_PATCH=yes enable patch to qmail to"
@${ECHO_MSG} " use a concurrency greater than 240"
@${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"
.endif # MAIN_QMAIL_PORT_WITH_BIG_CONCURRENCY_PATCH_BARRIER
@${ECHO_MSG} "#"
.endif # MAIN_QMAIL_PORT_BUILD_WITH_OPTIONS_ADVERTISE_BARRIER
# Yet anther ugly hack (used by qmail-* skeleton ports)
# Permits them to define local targets without braking everything
# The ugly target name hopefully will avoid name clashing
.if !target(yetanotherone-pre-fetch)
yetanotherone-pre-fetch:
.if !target(slaveport-pre-fetch)
slaveport-pre-fetch:
.endif
post-pre-fetch:
.if !defined(MAIN_QMAIL_PORT_BUILD_WITH_OPTIONS_ADVERTISE_BARRIER)
@${ECHO_MSG} ""
.endif
post-patch: thereal-post-patch slaveport-post-patch post-post-patch
# Yet anther ugly hack (used by qmail-* skeleton ports)
# Permits them to define local targets without braking everything
# The ugly target name hopefully will avoid name clashing
.if !target(slaveport-post-patch)
slaveport-post-patch:
.endif
post-post-patch:
@${PERL} -pi -ne "s!/var/qmail!${PREFIX}!;s!/usr/local/!${LOCALBASE}/!" ${WRKSRC}/Makefile
# If you want to change the qmail users, they must be changed in both
# work/*/conf-users and pkg/INSTALL.
@ -123,15 +228,15 @@ do-configure:
@PKG_PREFIX=${PREFIX} ${PERL5} ${PKGINSTALL}
@${ECHO} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
@${ECHO} ${PREFIX} > ${WRKSRC}/conf-qmail
post-patch: thereal-post-patch yetanotherone-post-patch
# Yet anther ugly hack (used by qmail-* skeleton ports)
# Permits them to define local targets without braking everything
# The ugly target name hopefully will avoid name clashing
.if !target(yetanotherone-post-patch)
yetanotherone-post-patch:
.endif
.if defined(WITH_BIG_CONCURRENCY_PATCH) \
&& !defined(MAIN_QMAIL_PORT_WITH_BIG_CONCURRENCY_PATCH_BARRIER) \
&& defined(WITH_BIG_CONCURRENCY_PATCH_CONCURRENCY_LIMIT)
@if [ ${WITH_BIG_CONCURRENCY_PATCH_CONCURRENCY_LIMIT} -gt 0 ]; \
then \
${ECHO} "${WITH_BIG_CONCURRENCY_PATCH_CONCURRENCY_LIMIT}" \
> ${WRKSRC}/conf-spawn ; \
fi
.endif # MAIN_QMAIL_PORT_WITH_BIG_CONCURRENCY_PATCH_BARRIER
do-install:
@# Check again, just in case (ideally should error if not found)
@ -151,7 +256,7 @@ do-install:
${INSTALL_DATA} ${DOCFILES} ${PREFIX}/${DOCDIR}
.endif
.if defined(PACKAGE_BUILDING)
@${ECHO} "FreeBSD Binary package QMail installation" \
@${ECHO} "FreeBSD Binary package qmail installation" \
> ${PREFIX}/${DOCDIR}/SYSDEPS
.else
@cd ${WRKSRC} && ${CAT} `${CAT} SYSDEPS` \
@ -166,7 +271,7 @@ do-install:
@${MKDIR} ${LOCALBASE}/etc/rc.d
@${LN} -sf ${PREFIX}/rc ${LOCALBASE}/etc/rc.d/qmail.sh
@${ECHO}
@${SED} s!/var/qmail!${PREFIX}!g ${PKGMESSAGE} | /usr/bin/fmt
@${SED} s!/var/qmail!${PREFIX}!g ${PKGMESSAGE} | ${FMT}
# hack to allow slave ports to include bsd.port.pre.mk and then this file
.if defined(_PREMKINCLUDED)
@ -199,16 +304,16 @@ ${WRKDIR}/.thereal_disable_sendmail_done:
# I would like some input on the targets below. Only constructive ones
# please. :)
# based on shells/pdksh /etc/shells update PLIST.
thereal-disable-sendmail: ${WRKDIR}/.thereal_disable_sendmail_done /etc/rc.conf
@if [ -f /etc/rc.conf ]; \
thereal-disable-sendmail: ${WRKDIR}/.thereal_disable_sendmail_done ${RC_CONF_FILE}
@if [ -f ${RC_CONF_FILE} ]; \
then \
${CP} /etc/rc.conf /etc/rc.conf.bak && \
${GREP} -v sendmail_enable /etc/rc.conf.bak > \
/etc/rc.conf && \
${CP} ${RC_CONF_FILE} ${RC_CONF_FILE}.bak && \
${GREP} -v sendmail_enable ${RC_CONF_FILE}.bak > \
${RC_CONF_FILE} && \
${TOUCH} ${WRKDIR}/.thereal_disable_sendmail_done ; \
else \
${ECHO_MSG} ¨===> ERROR: YOU DO NOT HAVE A VALID /etc/rc.conf¨ ; \
${ECHO_MSG} ¨===> FIX this and try again¨ ; \
${ECHO_MSG} "===> ERROR: YOU DO NOT HAVE A VALID ${RC_CONF_FILE}" ; \
${ECHO_MSG} "===> FIX this and try again" ; \
${FALSE} ; \
fi
@ -218,9 +323,9 @@ disable-sendmail: thereal-disable-sendmail
@${ECHO_MSG} "===> automaticaly start sendmail on your"
@${ECHO_MSG} "===> next startup."
@${ECHO_MSG} "===> (i.e., added sendmail_enable=\¨NO\¨ to rc.conf)"
@if [ -f /etc/rc.conf ]; \
@if [ -f ${RC_CONF_FILE} ]; \
then \
${ECHO} sendmail_enable=\"NO\" >> /etc/rc.conf ; \
${ECHO} sendmail_enable=\"NO\" >> ${RC_CONF_FILE} ; \
fi
enable-sendmail: thereal-disable-sendmail
@ -231,12 +336,12 @@ enable-sendmail: thereal-disable-sendmail
@${ECHO_MSG} "===> (i.e., removed sendmail_enable=\¨NO\¨ from rc.conf)"
enable-qmail: install disable-sendmail
@if [ -f /etc/mail/mailer.conf ]; \
@if [ -f ${MAILER_CONF_FILE} ]; \
then \
${CP} /etc/mail/mailer.conf /etc/mail/mailer.conf.bak && \
${CP} ${WRKDIR}/mailer.conf.sample /etc/mail/mailer.conf ; \
${CP} ${MAILER_CONF_FILE} ${MAILER_CONF_FILE}.bak && \
${CP} ${WRKDIR}/mailer.conf.sample ${MAILER_CONF_FILE} ; \
else \
${ECHO_MSG} "===> ERROR: YOU DO NOT HAVE A VALID /etc/mail/mailer.conf" ; \
${ECHO_MSG} "===> ERROR: YOU DO NOT HAVE A VALID ${MAILER_CONF_FILE}" ; \
${ECHO_MSG} "===> FIX this and try again" ; \
${ECHO_MSG} "===> or, do \¨make force_enable_qmail\¨ if you are sure" ; \
${ECHO_MSG} "===> you want this port replacing some binaries" ; \
@ -245,7 +350,7 @@ enable-qmail: install disable-sendmail
${ECHO_MSG} "=======> VERY IMPORTANT <=======" ; \
${ECHO_MSG} "===> One side issue is that if you do replace them," ; \
${ECHO_MSG} "===> you really should consider ADDING \"NO_SENDMAIL=true\"" ; \
${ECHO_MSG} "===> to your /etc/make.conf if you do \"make world\"." ; \
${ECHO_MSG} "===> to your ${MAKE_CONF_FILE} if you do \"make world\"." ; \
${ECHO_MSG} "===> Otherwise, \"make world\" will \"fix\" your sendmail" ; \
${ECHO_MSG} "===> installation breaking your qmail one." ; \
${ECHO_MSG} "===> Read the FreeBSD Handbook section on \"make world\"" ; \
@ -261,28 +366,28 @@ enable-qmail: install disable-sendmail
# taken from mail/postfix idea
force-enable-qmail: install disable-sendmail
@${ECHO_MSG} "===> Replacing sendmail"
@if [ -e /usr/sbin/sendmail ]; then \
${MV} -f /usr/sbin/sendmail /usr/sbin/sendmail.OFF && \
${CHMOD} 0 /usr/sbin/sendmail.OFF; \
@if [ -e ${SENDMAIL} ]; then \
${MV} -f ${SENDMAIL} ${SENDMAIL}.OFF && \
${CHMOD} 0 ${SENDMAIL}.OFF; \
fi
@if [ -e ${PREFIX}/bin/sendmail ]; then \
${LN} -s ${PREFIX}/bin/sendmail /usr/sbin/sendmail; \
${LN} -sf ${PREFIX}/bin/sendmail ${SENDMAIL}; \
fi
@${ECHO_MSG} "===> Replacing mailq"
@if [ -e /usr/bin/mailq ]; then \
${MV} -f /usr/bin/mailq /usr/bin/mailq.OFF && \
${CHMOD} 0 /usr/bin/mailq.OFF; \
@if [ -e ${MAILQ} ]; then \
${MV} -f ${MAILQ} ${MAILQ}.OFF && \
${CHMOD} 0 ${MAILQ}.OFF; \
fi
@if [ -e ${PREFIX}/bin/qmail-qread ]; then \
${LN} -s ${PREFIX}/bin/qmail-qread /usr/bin/mailq; \
${LN} -sf ${PREFIX}/bin/qmail-qread ${MAILQ}; \
fi
@${ECHO_MSG} "===> Replacing newaliases"
@if [ -e /usr/bin/newaliases ]; then \
${MV} -f /usr/bin/newaliases /usr/bin/newaliases.OFF && \
${CHMOD} 0 /usr/bin/newaliases.OFF; \
@if [ -e ${NEWALIASES} ]; then \
${MV} -f ${NEWALIASES} ${NEWALIASES}.OFF && \
${CHMOD} 0 ${NEWALIASES}.OFF; \
fi
@if [ -e ${PREFIX}/bin/newaliases ]; then \
${LN} -s ${PREFIX}/bin/newaliases /usr/bin/newaliases; \
${LN} -sf ${PREFIX}/bin/newaliases ${NEWALIASES}; \
fi
# The users are instructed (in PORT_NOTES) to install ${QUEUE_DIR}/rc

View File

@ -3,3 +3,6 @@ MD5 (qmail-103.patch) = 9140ad2b03017145cd7963c84bb24f16
MD5 (qmail-ldap-1.03-20010201.patch.gz) = b5616fa91819359846fc00f883631a7a
MD5 (qmail-mysql-1.1.1.patch) = 6bea6192bc39194bc4dda73def0d20df
MD5 (tls.patch) = 6cd2d06a4688aa4262e30088bc0ed6e9
MD5 (qmailqueue-patch) = fed4b56ffd1a5badebacc0ae4b9586ca
MD5 (big-todo.103.patch) = 39b6f70f65056472ff97ab40c1dba7b4
MD5 (big-concurrency.patch) = 2ff58c3570870a8ff9a1d9eb9aec05a6