diff --git a/mail/qmail/Makefile b/mail/qmail/Makefile index 89b22785dfb1..8d9ca67172f2 100644 --- a/mail/qmail/Makefile +++ b/mail/qmail/Makefile @@ -1,160 +1,169 @@ # New ports collection makefile for: qmail # Date created: 25 May 1998 # Whom: Mario S F Ferreira et al. # # $FreeBSD$ # PORTNAME= qmail PORTVERSION= 1.03 CATEGORIES= mail MASTER_SITES= http://cr.yp.to/software/ \ ftp://ftp.ntnu.no/pub/unix/mail/qmail/ \ ftp://ftp.pipex.net/mirrors/qmail/ \ ftp://ftp.jp.qmail.org/qmail/ \ ftp://ftp.rifkin.technion.ac.il/pub/qmail/ \ ftp://ftp.mira.net.au/unix/mail/qmail/ \ ftp://ftp.net.ohio-state.edu/pub/networking/mail/qmail/ \ ftp://ftp.id.wustl.edu/pub/qmail/ \ ftp://koobera.math.uic.edu/www/ # 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/ -PATCHFILES= qmail-103.patch +PATCH_SITES?= http://www.ckdhr.com/ckd/ +PATCHFILES?= qmail-103.patch PATCH_DIST_STRIP+= -p1 MAINTAINER= lioux@linf.unb.br # A normal qmail installation puts everything into /var/qmail/. # If you want to install to /usr/local/, then "/usr/local/qmail" is # suggested instead of "/usr/local", but both will work. PREFIX= /var/qmail 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 PLIST_SUB= DOCDIR=${DOCDIR} -DOCFILES= ${WRKSRC}/BLURB ${WRKSRC}/BLURB2 ${WRKSRC}/BLURB3 \ +DOCFILES+= ${WRKSRC}/BLURB ${WRKSRC}/BLURB2 ${WRKSRC}/BLURB3 \ ${WRKSRC}/BLURB4 ${WRKSRC}/INTERNALS ${WRKSRC}/SECURITY \ ${WRKSRC}/THOUGHTS ${FILESDIR}/PORT_NOTES \ ${FILESDIR}/PORT_NOTES_FreeBSD_40-RELEASE # The following docfiles are normally installed with qmail-hier DOCFILES+= ${WRKSRC}/FAQ ${WRKSRC}/UPGRADE ${WRKSRC}/SENDMAIL \ ${WRKSRC}/INSTALL ${WRKSRC}/INSTALL.alias \ ${WRKSRC}/INSTALL.ctl ${WRKSRC}/INSTALL.ids \ ${WRKSRC}/INSTALL.maildir ${WRKSRC}/INSTALL.mbox \ ${WRKSRC}/INSTALL.vsm ${WRKSRC}/TEST.deliver \ ${WRKSRC}/TEST.receive ${WRKSRC}/REMOVE.sendmail \ ${WRKSRC}/REMOVE.binmail ${WRKSRC}/PIC.local2alias \ ${WRKSRC}/PIC.local2ext ${WRKSRC}/PIC.local2local \ ${WRKSRC}/PIC.local2rem ${WRKSRC}/PIC.local2virt \ ${WRKSRC}/PIC.nullclient ${WRKSRC}/PIC.relaybad \ ${WRKSRC}/PIC.relaygood ${WRKSRC}/PIC.rem2local # More files normally installed with from hier.c BOOTFILES= ${WRKSRC}/home ${WRKSRC}/home+df ${WRKSRC}/proc \ ${WRKSRC}/proc+df ${WRKSRC}/binm1 ${WRKSRC}/binm1+df \ ${WRKSRC}/binm2 ${WRKSRC}/binm2+df ${WRKSRC}/binm3 \ ${WRKSRC}/binm3+df # Supplied by Stuart Henderson BOOTFILES+= ${FILESDIR}/maildir CONFIGUREPROGS= ${WRKSRC}/install ${WRKSRC}/dnsfq ${WRKSRC}/hostname \ ${WRKSRC}/dnsip ${WRKSRC}/ipmeprint ${WRKSRC}/dnsptr CONFIGUREFILES= ${WRKSRC}/config ${WRKSRC}/config-fast -.if (${PREFIX} == "/usr/local") +.if (${PREFIX} == ${LOCALBASE}) DOCDIR= share/doc/qmail .else DOCDIR= doc .endif NO_MTREE= yes +.if !defined(_PREMKINCLUDED) +.include +.endif + # If you want to change the qmail users, they must be changed in both # work/*/conf-users and pkg/INSTALL. do-configure: @# Create/Check the necessary groups/users @PKG_PREFIX=${PREFIX} ${PERL5} ${PKGDIR}/INSTALL @${ECHO} ${CC} ${CFLAGS} > ${WRKSRC}/conf-cc @${ECHO} ${PREFIX} > ${WRKSRC}/conf-qmail post-patch: thereal-post-patch do-install: @# Check again, just in case (ideally should error if not found) @PKG_PREFIX=${PREFIX} ${PERL5} ${PKGDIR}/INSTALL @${MKDIR} ${PREFIX}/${DOCDIR} ${PREFIX}/configure @cd ${WRKSRC} ; ./install ${INSTALL_PROGRAM} ${CONFIGUREPROGS} ${PREFIX}/configure ${INSTALL_SCRIPT} ${CONFIGUREFILES} ${PREFIX}/configure ${INSTALL_SCRIPT} ${BOOTFILES} ${PREFIX}/boot .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) ${INSTALL_DATA} ${DOCFILES} ${PREFIX}/${DOCDIR} .endif .if defined(PACKAGE_BUILDING) @${ECHO} "FreeBSD Binary package QMail installation" \ > ${PREFIX}/${DOCDIR}/SYSDEPS .else @cd ${WRKSRC} && ${CAT} `${CAT} SYSDEPS` \ > ${PREFIX}/${DOCDIR}/SYSDEPS .endif .for i in root postmaster mailer-daemon @${TOUCH} ${PREFIX}/alias/.qmail-${i} .endfor @# This is not part of qmail proper, hence the 2nd class citizenship ${INSTALL_SCRIPT} ${FILESDIR}/mkaliasdir ${PREFIX}/${DOCDIR} @cd ${PREFIX}/configure ; ./config @${MKDIR} /usr/local/etc/rc.d @${LN} -sf ${PREFIX}/rc /usr/local/etc/rc.d/qmail.sh @${ECHO} @${SED} s!/usr/local/!${PREFIX}/!g ${PKGDIR}/MESSAGE | /usr/bin/fmt +# hack to allow slave ports to include bsd.port.pre.mk and then this file +.if defined(_PREMKINCLUDED) +.include +.else .include +.endif # Ugh... ;-) thereal-post-patch: .for i in ${BOOTFILES} if [ `dirname $i` != ${FILESDIR} ] ; \ then \ ${CP} $i.sh $i.sh.orig; \ (head -c `${EXPR} \`ls -l $i.sh.orig \ | ${AWK} '{print $$5}'\` - 1` $i.sh.orig ; ${ECHO} '&') \ > $i.sh ; \ fi .endfor # The users are instructed (in PORT_NOTES) to install ${QUEUE_DIR}/rc # themselves. Each /var/qmail/ should have its own rc. On many machines, # /usr/local/ is nfs mounted and /var/qmail/ is local. An individual # machine may want/not-want qmail. Pity we can't add a dir to local_startup # from here. # Wouldn't hurt to provide an "enable_qmail" and "disable_sendmail" target # that do 1) and 2) above and disable the existing sendmail, respectively. diff --git a/mail/qmail/distinfo b/mail/qmail/distinfo index 58c19c20dd05..7945db8fc902 100644 --- a/mail/qmail/distinfo +++ b/mail/qmail/distinfo @@ -1,2 +1,3 @@ MD5 (qmail-1.03.tar.gz) = 622f65f982e380dbe86e6574f3abcb7c MD5 (qmail-103.patch) = 9140ad2b03017145cd7963c84bb24f16 +MD5 (qmail-ldap-1.03-20000501.patch.gz) = 3bac26caf4fbbf9a9af1919c60dd9f94 diff --git a/mail/qmail/pkg-plist b/mail/qmail/pkg-plist index b6e05e93959d..a92bd910698a 100644 --- a/mail/qmail/pkg-plist +++ b/mail/qmail/pkg-plist @@ -1,156 +1,158 @@ %%DOCDIR%%/FAQ %%DOCDIR%%/UPGRADE %%DOCDIR%%/SENDMAIL %%DOCDIR%%/INSTALL %%DOCDIR%%/INSTALL.alias %%DOCDIR%%/INSTALL.ctl %%DOCDIR%%/INSTALL.ids %%DOCDIR%%/INSTALL.maildir %%DOCDIR%%/INSTALL.mbox %%DOCDIR%%/INSTALL.vsm %%DOCDIR%%/TEST.deliver %%DOCDIR%%/TEST.receive %%DOCDIR%%/REMOVE.sendmail %%DOCDIR%%/REMOVE.binmail %%DOCDIR%%/PIC.local2alias %%DOCDIR%%/PIC.local2ext %%DOCDIR%%/PIC.local2local %%DOCDIR%%/PIC.local2rem %%DOCDIR%%/PIC.local2virt %%DOCDIR%%/PIC.nullclient %%DOCDIR%%/PIC.relaybad %%DOCDIR%%/PIC.relaygood %%DOCDIR%%/PIC.rem2local boot/home boot/home+df boot/proc boot/proc+df boot/binm1 boot/binm1+df boot/binm2 boot/binm2+df boot/binm3 boot/binm3+df @group qmail @mode 04711 @comment *** NOTE different owner @owner qmailq bin/qmail-queue @owner @mode 0700 bin/qmail-lspawn @mode 0700 bin/qmail-start @mode 0711 bin/qmail-getpw @mode 0711 bin/qmail-local @mode 0711 bin/qmail-remote @mode 0711 bin/qmail-rspawn @mode 0711 bin/qmail-clean @mode 0711 bin/qmail-send @mode 0711 bin/splogger @mode 0700 bin/qmail-newu @mode 0700 bin/qmail-newmrh @mode 0711 bin/qmail-pw2u @mode 0755 bin/qmail-inject @mode 0755 bin/predate @mode 0755 bin/datemail @mode 0755 bin/mailsubj @mode 0755 bin/qmail-showctl @mode 0755 bin/qmail-qread @mode 0755 bin/qmail-qstat @mode 0755 bin/qmail-tcpto @mode 0755 bin/qmail-tcpok @mode 0755 bin/qmail-pop3d @mode 0711 bin/qmail-popup @mode 0755 bin/qmail-qmqpc @mode 0755 bin/qmail-qmqpd @mode 0755 bin/qmail-qmtpd @mode 0755 bin/qmail-smtpd @mode 0755 bin/sendmail @mode 0755 bin/tcp-env @mode 0755 bin/qreceipt @mode 0755 bin/qsmhook @mode 0755 bin/qbiff @mode 0755 bin/forward @mode 0755 bin/preline @mode 0755 bin/condredirect @mode 0755 bin/bouncesaying @mode 0755 bin/except @mode 0755 bin/maildirmake @mode 0755 bin/maildir2mbox @mode 0755 bin/maildirwatch @mode 0755 bin/qail @mode 0755 bin/elq @mode 0755 bin/pinq @group @owner @mode @comment This port installs the following manually (ie. not through qmail-hier) configure/install configure/config +configure/config-fast configure/dnsfq configure/hostname configure/dnsip configure/ipmeprint configure/dnsptr %%DOCDIR%%/BLURB %%DOCDIR%%/BLURB2 %%DOCDIR%%/BLURB3 %%DOCDIR%%/BLURB4 %%DOCDIR%%/INTERNALS %%DOCDIR%%/SECURITY %%DOCDIR%%/THOUGHTS %%DOCDIR%%/PORT_NOTES +%%DOCDIR%%/PORT_NOTES_FreeBSD_40-RELEASE %%DOCDIR%%/SYSDEPS %%DOCDIR%%/mkaliasdir boot/maildir @dirrm %%DOCDIR%% @dirrm configure @dirrm boot @dirrm bin @unexec echo "If you are permanently removing qmail, you should also ``rm -Rf ${PKG_PREFIX}/alias ${PKG_PREFIX}/control ${PKG_PREFIX}/queue ${PKG_PREFIX}/users'' and remove the qmail users/groups." | /usr/bin/fmt