Date: Fri, 07 Jun 2002 15:21:07 -0400 From: Yarema <yds@CoolRat.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/39003: MAINTAINER-UPDATE: mail/courier version upgrade mega patch Message-ID: <courier.3D0107A3.00000617@CoolRat.org>
next in thread | raw e-mail | index | archive | help
>Number: 39003 >Category: ports >Synopsis: MAINTAINER-UPDATE: mail/courier version upgrade mega patch >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Fri Jun 07 12:30:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Yarema >Release: FreeBSD 4.6-RC i386 >Organization: Frozen Rodent >Environment: System: FreeBSD volyn.coolrat.org 4.6-RC FreeBSD 4.6-RC #0: Fri Jun 7 05:19:09 EDT 2002 root@volyn.coolrat.org:/usr/obj/usr/src/sys/TIGER100 i386 >Description: A much overdue version upgrade from 0.37.3 to 0.38.2 which supercedes ports/38470 and ports/38491 both of which can now be closed. Now to explain some of the non trivial changes in this patch. NO_PACKAGE= "Goes into an infinite loop during the build" is removed in the hopes that the new pkg-deinstall script takes care of that issue. "Goes into an infinite loop during the build" is not entirely accurate. It was the deinstall target which caused an infinite loop when stdout was redirected to a log file. To remedy the situation I moved the rmuser(8) routine from pkg-plist to pkg-deinstall where I properly check for PACKAGE_BUILDING being set. Who knew that PACKAGE_BUILDING needs to be checked durring interactive deinstall? In any case the commands listed in How-To-Repeat below do work which should satisfy package building on bento. The rest of the mega patch deals with adding supprt for the new faxmail gateway in courier and general code cleanup. scripts/configure.courier was largly rewritten to support various WITH_* variables being set when BATCH=yes. Now courier builds the same way wether BATCH=yes and WITH_* are used or interactively. New files: courier/pkg-deinstall courier/files/patch-courier::module.fax courier/files/patch-courier_perms.sh.in renamed to courier/files/patch-courier::perms.sh.in That's all folks. >How-To-Repeat: cd /usr/ports/mail/courier make clean BATCH=yes PACKAGE_BUILDING=yes make install package deinstall > /tmp/courier.log 2>&1 & >Fix: diff -ruN courier~/Makefile courier/Makefile --- courier~/Makefile Mon Mar 25 04:19:19 2002 +++ courier/Makefile Fri Jun 7 12:16:11 2002 @@ -6,7 +6,7 @@ # PORTNAME= courier -PORTVERSION= 0.37.3 +PORTVERSION= 0.38.2 CATEGORIES= mail ipv6 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= courier @@ -16,7 +16,9 @@ RUN_DEPENDS= ${LOCALBASE}/share/sysconftool/sysconftool:${PORTSDIR}/devel/sysconftool \ ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Net/CIDR.pm:${PORTSDIR}/net/p5-Net-CIDR -NO_PACKAGE= "Goes into an infinite loop during the build" +.if !defined(BATCH) && !defined(PACKAGE_BUILDING) +IS_INTERACTIVE= yes +.endif # # User-serviceable variables @@ -43,11 +45,7 @@ LOCALSTATEDIR= /var/spool/courier CACHEDIR= /var/spool/webmail CALENDIR= /var/spool/calendar -MIMETYPES= ${LOCALBASE}/etc/apache/mime.types - -.if !defined(BATCH) && !defined(PACKAGE_BUILDING) -IS_INTERACTIVE= yes -.endif +MIMETYPES= ${LOCALBASE}/etc/apache/mime.types:${LOCALBASE}/etc/apache2/mime.types USE_SUBMAKE= yes USE_PERL5= yes @@ -79,10 +77,11 @@ CONFIGURE_ENV= PATH="${PATH}:${SCRIPTDIR}" # Respect the make.conf(5) NOUUCP setting +WITH_TRANSPORT= local esmtp dsn .if defined(NOUUCP) -CONFIGURE_ARGS+=--with-transport='local esmtp dsn' PLIST_SUB+= SUB_UUCP="@comment " .else +WITH_TRANSPORT+=uucp PLIST_SUB+= SUB_UUCP="" .endif @@ -96,9 +95,25 @@ CACHEOWN="${CACHEOWN}" SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \ + WITH_EXPECT="${WITH_EXPECT:L}" \ + WITH_GNUPG="${WITH_GNUPG:L}" \ + WITH_ASPELL="${WITH_ASPELL:L}" \ + WITH_ISPELL="${WITH_ISPELL:L}" \ + WITH_LDAP1="${WITH_LDAP1:L}" \ + WITH_LDAP2="${WITH_LDAP2:L}" \ + WITH_MYSQL="${WITH_MYSQL:L}" \ + WITH_PGSQL="${WITH_PGSQL:L}" \ + WITH_VPOPMAIL="${WITH_VPOPMAIL:L}" \ + WITH_PROCMAIL="${WITH_PROCMAIL:L}" \ + WITH_SENDFAX="${WITH_SENDFAX:L}" \ + WITH_IPV6="${WITH_IPV6:L}" \ + WITH_TRANSPORT="${WITH_TRANSPORT}" \ TOUCH="${TOUCH}" \ MKDIR="${MKDIR}" +.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc) +.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc" +.endif .include "${.CURDIR}/Makefile.man" .include "${.CURDIR}/Makefile.doc" .include "${.CURDIR}/Makefile.own" @@ -106,10 +121,6 @@ pre-everything:: @${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.${PORTNAME} -.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc) -.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc" -.endif - post-patch: @${PERL} -pi -e 's:\@datadir\@:\@sysconfdir\@:g;' \ ${WRKSRC}/*/mk*cert.* \ @@ -184,7 +195,9 @@ @${CHOWN} -Rh ${MANOWN}:${MANGRP} ${MANPREFIX}/man/man[1-9ln] @${CHOWN} -Rh ${SHAREOWN}:${SHAREGRP} ${DATADIR} @${CHMOD} -R a-w ${DATADIR} + @${ECHO} "" @${CAT} ${PKGMESSAGE} + @${ECHO} "" post-clean: @${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc diff -ruN courier~/Makefile.man courier/Makefile.man --- courier~/Makefile.man Mon Jan 21 23:44:10 2002 +++ courier/Makefile.man Fri Jun 7 10:39:42 2002 @@ -74,3 +74,7 @@ MLINKS+=courieruucp.8 makeuucpneighbors.8 .endif +.if defined(WITH_FAX) && ${WITH_FAX} == yes +MAN8+= courierfax.8 +.endif + diff -ruN courier~/distinfo courier/distinfo --- courier~/distinfo Tue Feb 26 17:40:11 2002 +++ courier/distinfo Thu Jun 6 16:00:00 2002 @@ -1 +1 @@ -MD5 (courier-0.37.3.tar.gz) = c217c98b157c1ca77f17ce61b6135c37 +MD5 (courier-0.38.2.tar.gz) = fe8fd90858882f0c5d4bd871512f7cbb diff -ruN courier~/files/patch-courier::module.fax courier/files/patch-courier::module.fax --- courier~/files/patch-courier::module.fax Wed Dec 31 19:00:00 1969 +++ courier/files/patch-courier::module.fax Fri Jun 7 10:31:06 2002 @@ -0,0 +1,35 @@ +--- courier/module.fax/application-pdf.filter.in.orig Mon Mar 4 19:32:16 2002 ++++ courier/module.fax/application-pdf.filter.in Fri Jun 7 10:21:37 2002 +@@ -8,7 +8,4 @@ + . @filterbindir@/init + + cat >$OUTDIR/.pdf +-@PDFTOPS@ -q $OUTDIR/.pdf $OUTDIR/.ps +-rm -f $OUTDIR/.pdf +- +-$GS -sDEVICE=faxg3 $FAXRES -dBATCH -sOutputFile=$OUTDIR/f%04d -dNOPAUSE -q -dSAFER - <$OUTDIR/.ps ++exec $GS -sDEVICE=faxg3 $FAXRES -dBATCH -sOutputFile=$OUTDIR/f%04d -dNOPAUSE -q -dSAFER -c save pop -_ <$OUTDIR/.pdf +--- courier/module.fax/application-postscript.filter.in.orig Mon Mar 4 19:32:16 2002 ++++ courier/module.fax/application-postscript.filter.in Fri Jun 7 10:20:55 2002 +@@ -7,4 +7,4 @@ + + . @filterbindir@/init + +-$GS -sDEVICE=faxg3 $FAXRES -dBATCH -sOutputFile=$OUTDIR/f%04d -dNOPAUSE -q -dSAFER - ++exec $GS -sDEVICE=faxg3 $FAXRES -dBATCH -sOutputFile=$OUTDIR/f%04d -dNOPAUSE -q -dSAFER -_ +--- courier/module.fax/coverpage.in.orig Mon Mar 4 19:32:16 2002 ++++ courier/module.fax/coverpage.in Fri Jun 7 10:23:51 2002 +@@ -49,4 +49,4 @@ + rm -f $OUTDIR/.tbl + $DPOST <$OUTDIR/.troff >$OUTDIR/.dpost + rm -f $OUTDIR/.troff +-$GS -sDEVICE=faxg3 $FAXRES -dBATCH -sOutputFile=$OUTDIR/f%04d -dNOPAUSE -q -dSAFER - <$OUTDIR/.dpost ++exec $GS -sDEVICE=faxg3 $FAXRES -dBATCH -sOutputFile=$OUTDIR/f%04d -dNOPAUSE -q -dSAFER -_ <$OUTDIR/.dpost +--- courier/module.fax/text-plain.filter.in.orig Mon Mar 4 19:32:16 2002 ++++ courier/module.fax/text-plain.filter.in Fri Jun 7 10:24:54 2002 +@@ -27,4 +27,4 @@ + rm -f $OUTDIR/.troff + $DPOST <$OUTDIR/.dpost >$OUTDIR/.ps + rm -f $OUTDIR/.dpost +-$GS -sDEVICE=faxg3 $FAXRES -dBATCH -sOutputFile=$OUTDIR/f%04d -dNOPAUSE -q -dSAFER - <$OUTDIR/.ps ++exec $GS -sDEVICE=faxg3 $FAXRES -dBATCH -sOutputFile=$OUTDIR/f%04d -dNOPAUSE -q -dSAFER -_ <$OUTDIR/.ps diff -ruN courier~/files/patch-courier::perms.sh.in courier/files/patch-courier::perms.sh.in --- courier~/files/patch-courier::perms.sh.in Wed Dec 31 19:00:00 1969 +++ courier/files/patch-courier::perms.sh.in Tue Jan 29 22:56:09 2002 @@ -0,0 +1,36 @@ +--- courier/perms.sh.in.orig Fri Dec 7 08:37:35 2001 ++++ courier/perms.sh.in Sun Jan 27 23:12:48 2002 +@@ -10,9 +10,6 @@ + exec_prefix="@exec_prefix@" + + PERMS=" +-. 755 +- +-@localstatedir@ 755 x bin bin + @localstatedir@/tmp 770 + @localstatedir@/msgs 750 + @localstatedir@/msgq 750 +@@ -41,7 +38,6 @@ + @sysconfdir@/rfcerr2046.txt 444 config + @sysconfdir@/rfcerr2047.txt 444 config + +-@libexecdir@ 755 x bin bin + @libexecdir@/authlib 755 x bin bin + @libexecdir@/courier 755 x bin bin + @libexecdir@/courier/modules 755 x bin bin +@@ -61,7 +57,6 @@ + @libexecdir@/courier/webmail/webmail 4555 x root bin + @libexecdir@/courier/webmail/webadmin 4555 x root bin + +-@sbindir@ 755 x bin bin + @sbindir@/courier 555 + @sbindir@/showconfig 555 + @sbindir@/showmodules 550 +@@ -73,7 +68,6 @@ + @datadir@/imapd 555 x bin bin + @datadir@/imapd-ssl 555 x bin bin + +-@bindir@ 755 x bin bin + @bindir@/cancelmsg 6555 + @bindir@/courier-config 555 + @bindir@/mailq 2555 diff -ruN courier~/files/patch-courier_perms.sh.in courier/files/patch-courier_perms.sh.in --- courier~/files/patch-courier_perms.sh.in Tue Jan 29 22:56:09 2002 +++ courier/files/patch-courier_perms.sh.in Wed Dec 31 19:00:00 1969 @@ -1,36 +0,0 @@ ---- courier/perms.sh.in.orig Fri Dec 7 08:37:35 2001 -+++ courier/perms.sh.in Sun Jan 27 23:12:48 2002 -@@ -10,9 +10,6 @@ - exec_prefix="@exec_prefix@" - - PERMS=" --. 755 -- --@localstatedir@ 755 x bin bin - @localstatedir@/tmp 770 - @localstatedir@/msgs 750 - @localstatedir@/msgq 750 -@@ -41,7 +38,6 @@ - @sysconfdir@/rfcerr2046.txt 444 config - @sysconfdir@/rfcerr2047.txt 444 config - --@libexecdir@ 755 x bin bin - @libexecdir@/authlib 755 x bin bin - @libexecdir@/courier 755 x bin bin - @libexecdir@/courier/modules 755 x bin bin -@@ -61,7 +57,6 @@ - @libexecdir@/courier/webmail/webmail 4555 x root bin - @libexecdir@/courier/webmail/webadmin 4555 x root bin - --@sbindir@ 755 x bin bin - @sbindir@/courier 555 - @sbindir@/showconfig 555 - @sbindir@/showmodules 550 -@@ -73,7 +68,6 @@ - @datadir@/imapd 555 x bin bin - @datadir@/imapd-ssl 555 x bin bin - --@bindir@ 755 x bin bin - @bindir@/cancelmsg 6555 - @bindir@/courier-config 555 - @bindir@/mailq 2555 diff -ruN courier~/pkg-deinstall courier/pkg-deinstall --- courier~/pkg-deinstall Wed Dec 31 19:00:00 1969 +++ courier/pkg-deinstall Tue Jun 4 23:22:51 2002 @@ -0,0 +1,28 @@ +#!/bin/sh +# +# $FreeBSD: $ +# + +PKG_PREFIX=${PKG_PREFIX:=/usr/local} + +USER=courier +GROUP=courier + +if [ ":$2" = ":POST-DEINSTALL" -a -d /var/spool/courier ]; then + if [ -z "${PACKAGE_BUILDING}" ]; then + echo "" + echo "Warning: Removing user courier will also delete any" + echo " undelivered mail in the mail queue directories!!!" + echo " Do *not* do it if you're upgrading and would like" + echo " courier to continue trying to deliver this mail." + echo "" + else + AFFIRM='-y' + fi + if /usr/sbin/chown -Rh ${USER}:${GROUP} /var/spool/courier; then + /usr/sbin/rmuser ${AFFIRM} ${USER} 2> /dev/null + fi + if [ -d /var/spool/courier ]; then + /usr/sbin/chown root:wheel /var/spool/courier + fi +fi diff -ruN courier~/pkg-descr courier/pkg-descr --- courier~/pkg-descr Tue Jan 15 01:17:26 2002 +++ courier/pkg-descr Thu Jun 6 17:41:28 2002 @@ -1,8 +1,6 @@ Courier is a modular multiprotocol mail server that's designed to strike a balance between reasonable performance, flexibility and -features. - -A partial list of features: +features: * Can be configured to function as an intermediate mail relay, or as a mail server that receives mail for one or more domains, or @@ -16,6 +14,7 @@ certificate is signed by a trusted root CA (a default set of root CAs is provided). * Mailboxes can be accessed via POP3, IMAP, and HTTP. + * A faxmail gateway that forwards E-mail messages via fax. * Courier includes a mailing list manager. * PAM, LDAP, PostgreSQL, or MySQL authentication. * Authenticated SMTP. diff -ruN courier~/pkg-install courier/pkg-install --- courier~/pkg-install Tue Jan 29 22:56:07 2002 +++ courier/pkg-install Fri Jun 7 12:12:48 2002 @@ -5,6 +5,9 @@ PKG_PREFIX=${PKG_PREFIX:=/usr/local} +USER=courier; UID=62 +GROUP=courier; GID=62 + ask() { local question default answer @@ -13,7 +16,7 @@ if [ -z "${PACKAGE_BUILDING}" ]; then read -p "${question} [${default}]? " answer fi - if [ x${answer} = x ]; then + if [ -z "${answer}" ]; then answer=${default} fi echo ${answer} @@ -48,10 +51,7 @@ fi } -if [ x"$2" = xPRE-INSTALL ]; then - USER=courier; UID=62 - GROUP=courier; GID=62 - +if [ ":$2" = ":PRE-INSTALL" ]; then if /usr/sbin/pw groupshow "${GROUP}" 2>/dev/null; then echo "You already have a group \"${GROUP}\", so I will use it." else @@ -82,7 +82,7 @@ fi fi -if [ x"$2" = xPOST-INSTALL -a -z "${PACKAGE_BUILDING}" ]; then +if [ ":$2" = ":POST-INSTALL" ]; then if [ -x /sbin/sysctl ]; then OSVERSION=`/sbin/sysctl -n kern.osreldate` else diff -ruN courier~/pkg-message courier/pkg-message --- courier~/pkg-message Tue Jan 29 22:56:07 2002 +++ courier/pkg-message Fri Jun 7 12:15:22 2002 @@ -1,4 +1,3 @@ - RTFM before configuring and running Courier!!! Check and/or modify the following configuration files to @@ -12,6 +11,9 @@ %%PREFIX%%/etc/courier/esmtpd %%PREFIX%%/etc/courier/esmtpd-msa %%PREFIX%%/etc/courier/esmtpd-ssl + %%PREFIX%%/etc/courier/faxcoverpage.tr + %%PREFIX%%/etc/courier/faxnotifyrc + %%PREFIX%%/etc/courier/faxrc %%PREFIX%%/etc/courier/imapd %%PREFIX%%/etc/courier/imapd-ssl %%PREFIX%%/etc/courier/ldapaddressbook @@ -30,4 +32,3 @@ Documentation (if installed locally) is located in %%PREFIX%%/share/doc/courier/ otherwise see http://www.Courier-MTA.org/ - diff -ruN courier~/pkg-plist courier/pkg-plist --- courier~/pkg-plist Wed Feb 27 03:12:23 2002 +++ courier/pkg-plist Fri Jun 7 11:35:02 2002 @@ -18,6 +18,9 @@ @unexec cmp -s %D/etc/courier/esmtpd-msa %D/etc/courier/esmtpd-msa.dist && rm -f %D/etc/courier/esmtpd-msa 2>/dev/null || true @unexec cmp -s %D/etc/courier/esmtpd-ssl %D/etc/courier/esmtpd-ssl.dist && rm -f %D/etc/courier/esmtpd-ssl 2>/dev/null || true @unexec cmp -s %D/etc/courier/esmtpd %D/etc/courier/esmtpd.dist && rm -f %D/etc/courier/esmtpd 2>/dev/null || true +%%SUB_FAX%%@unexec cmp -s %D/etc/courier/faxcoverpage.tr %D/etc/courier/faxcoverpage.tr.dist && rm -f %D/etc/courier/faxcoverpage.tr 2>/dev/null || true +%%SUB_FAX%%@unexec cmp -s %D/etc/courier/faxnotifyrc %D/etc/courier/faxnotifyrc.dist && rm -f %D/etc/courier/faxnotifyrc 2>/dev/null || true +%%SUB_FAX%%@unexec cmp -s %D/etc/courier/faxrc %D/etc/courier/faxrc.dist && rm -f %D/etc/courier/faxrc 2>/dev/null || true @unexec cmp -s %D/etc/courier/imapd-ssl %D/etc/courier/imapd-ssl.dist && rm -f %D/etc/courier/imapd-ssl 2>/dev/null || true @unexec cmp -s %D/etc/courier/imapd %D/etc/courier/imapd.dist && rm -f %D/etc/courier/imapd 2>/dev/null || true @unexec cmp -s %D/etc/courier/ldapaddressbook %D/etc/courier/ldapaddressbook.dist && rm -f %D/etc/courier/ldapaddressbook 2>/dev/null || true @@ -68,6 +71,9 @@ etc/courier/esmtpd-ssl.dist etc/courier/esmtpd.cnf etc/courier/esmtpd.dist +%%SUB_FAX%%etc/courier/faxcoverpage.tr.dist +%%SUB_FAX%%etc/courier/faxnotifyrc.dist +%%SUB_FAX%%etc/courier/faxrc.dist etc/courier/imapd-ssl.dist etc/courier/imapd.authpam etc/courier/imapd.cnf @@ -79,6 +85,7 @@ etc/courier/maildropfilter etc/courier/module.dsn etc/courier/module.esmtp +%%SUB_FAX%%etc/courier/module.fax etc/courier/module.local %%SUB_UUCP%%etc/courier/module.uucp etc/courier/pop3d-ssl.dist @@ -101,6 +108,9 @@ @exec [ -f %D/etc/courier/esmtpd-msa.dist ] && %D/share/sysconftool/sysconftool %D/etc/courier/esmtpd-msa.dist @exec [ -f %D/etc/courier/esmtpd-ssl.dist ] && %D/share/sysconftool/sysconftool %D/etc/courier/esmtpd-ssl.dist @exec [ -f %D/etc/courier/esmtpd.dist ] && %D/share/sysconftool/sysconftool %D/etc/courier/esmtpd.dist +%%SUB_FAX%%@exec [ -f %D/etc/courier/faxcoverpage.tr.dist ] && %D/share/sysconftool/sysconftool %D/etc/courier/faxcoverpage.tr.dist +%%SUB_FAX%%@exec [ -f %D/etc/courier/faxnotifyrc.dist ] && %D/share/sysconftool/sysconftool %D/etc/courier/faxnotifyrc.dist +%%SUB_FAX%%@exec [ -f %D/etc/courier/faxrc.dist ] && %D/share/sysconftool/sysconftool %D/etc/courier/faxrc.dist @exec [ -f %D/etc/courier/imapd-ssl.dist ] && %D/share/sysconftool/sysconftool %D/etc/courier/imapd-ssl.dist @exec [ -f %D/etc/courier/imapd.dist ] && %D/share/sysconftool/sysconftool %D/etc/courier/imapd.dist @exec [ -f %D/etc/courier/ldapaddressbook.dist ] && %D/share/sysconftool/sysconftool %D/etc/courier/ldapaddressbook.dist @@ -142,6 +152,7 @@ libexec/courier/modules/esmtp/authstart libexec/courier/modules/esmtp/courieresmtp libexec/courier/modules/esmtp/courieresmtpd +%%SUB_FAX%%libexec/courier/modules/fax/courierfax libexec/courier/modules/local/courierdeliver libexec/courier/modules/local/courierlocal libexec/courier/modules/modules.ctl @@ -157,6 +168,7 @@ @dirrm libexec/authlib %%SUB_UUCP%%@dirrm libexec/courier/modules/uucp @dirrm libexec/courier/modules/local +%%SUB_FAX%%@dirrm libexec/courier/modules/fax @dirrm libexec/courier/modules/esmtp @dirrm libexec/courier/modules/dsn @dirrm libexec/courier/modules @@ -235,35 +247,39 @@ share/courier/courierwebadmin/admin-00machine.pl share/courier/courierwebadmin/admin-05local.html share/courier/courierwebadmin/admin-05local.pl -share/courier/courierwebadmin/admin-10password.html share/courier/courierwebadmin/admin-10password.pl -share/courier/courierwebadmin/admin-15ldap.pl -share/courier/courierwebadmin/admin-15ldapa.pl +share/courier/courierwebadmin/admin-10password.html share/courier/courierwebadmin/admin-15ldap.html +share/courier/courierwebadmin/admin-15ldap.pl share/courier/courierwebadmin/admin-15ldapa.html +share/courier/courierwebadmin/admin-15ldapa.pl share/courier/courierwebadmin/admin-15mysql.html share/courier/courierwebadmin/admin-15mysql.pl -share/courier/courierwebadmin/admin-15pgsql.pl share/courier/courierwebadmin/admin-15pgsql.html -share/courier/courierwebadmin/admin-20aliases.html +share/courier/courierwebadmin/admin-15pgsql.pl share/courier/courierwebadmin/admin-20aliases.pl +share/courier/courierwebadmin/admin-20aliases.html share/courier/courierwebadmin/admin-30esmtp.html share/courier/courierwebadmin/admin-30esmtp.pl -share/courier/courierwebadmin/admin-31esmtp.pl share/courier/courierwebadmin/admin-31esmtp.html -share/courier/courierwebadmin/admin-40imap.pl +share/courier/courierwebadmin/admin-31esmtp.pl +share/courier/courierwebadmin/admin-34fax.html +share/courier/courierwebadmin/admin-34fax.pl +share/courier/courierwebadmin/admin-35fax.html +share/courier/courierwebadmin/admin-35fax.pl share/courier/courierwebadmin/admin-40imap.html -share/courier/courierwebadmin/admin-45pop3.pl +share/courier/courierwebadmin/admin-40imap.pl share/courier/courierwebadmin/admin-45pop3.html -share/courier/courierwebadmin/admin-47webmail.html +share/courier/courierwebadmin/admin-45pop3.pl share/courier/courierwebadmin/admin-47webmail.pl +share/courier/courierwebadmin/admin-47webmail.html share/courier/courierwebadmin/admin-50bofh.html share/courier/courierwebadmin/admin-50bofh.pl share/courier/courierwebadmin/admin-cancel.pl share/courier/courierwebadmin/admin-main.html share/courier/courierwebadmin/admin-main.pl -share/courier/courierwebadmin/admin-save.pl share/courier/courierwebadmin/admin-save.html +share/courier/courierwebadmin/admin-save.pl share/courier/courierwebadmin/dumpenv.pl share/courier/courierwebadmin/login.html share/courier/courierwebadmin/notsupp.html @@ -273,6 +289,16 @@ @dirrm share/courier/courierwebadmin share/courier/esmtpd share/courier/esmtpd-ssl +%%SUB_FAX%%share/courier/faxmail/application-pdf.filter +%%SUB_FAX%%share/courier/faxmail/application-postscript.filter +%%SUB_FAX%%share/courier/faxmail/coverpage +%%SUB_FAX%%share/courier/faxmail/image-gif.filter +%%SUB_FAX%%share/courier/faxmail/image-jpeg.filter +%%SUB_FAX%%share/courier/faxmail/image-png.filter +%%SUB_FAX%%share/courier/faxmail/init +%%SUB_FAX%%share/courier/faxmail/new_fax +%%SUB_FAX%%share/courier/faxmail/text-plain.filter +%%SUB_FAX%%@dirrm share/courier/faxmail share/courier/filterctl share/courier/imapd share/courier/imapd-ssl @@ -294,59 +320,151 @@ share/courier/pop3d share/courier/pop3d-ssl share/courier/pw2userdb +share/courier/rootcerts/052e396b.0 share/courier/rootcerts/0bb21872.0 +share/courier/rootcerts/0c364b2d.0 share/courier/rootcerts/0e82f83a.0 share/courier/rootcerts/11f154d6.0 +share/courier/rootcerts/128b9c8d.0 +share/courier/rootcerts/19899da5.0 share/courier/rootcerts/1a147d5b.0 +share/courier/rootcerts/1bb6c7e0.0 share/courier/rootcerts/256fd83b.0 share/courier/rootcerts/2d047263.0 share/courier/rootcerts/2edf7016.0 +share/courier/rootcerts/31044350.0 +share/courier/rootcerts/3ad48a91.0 +share/courier/rootcerts/3c58f906.0 +share/courier/rootcerts/3e7271e8.0 share/courier/rootcerts/412bea73.0 +share/courier/rootcerts/418882ac.0 +share/courier/rootcerts/43d4bde2.0 +share/courier/rootcerts/4643210f.0 +share/courier/rootcerts/4d654d1d.0 +share/courier/rootcerts/5480ace1.0 share/courier/rootcerts/54edfa5d.0 +share/courier/rootcerts/56e607f4.0 +share/courier/rootcerts/594f1775.0 +share/courier/rootcerts/5ee07a24.0 share/courier/rootcerts/5f5e5caa.0 share/courier/rootcerts/6166cb50.0 share/courier/rootcerts/61f6c934.0 +share/courier/rootcerts/66eb5c17.0 share/courier/rootcerts/66ec64da.0 +share/courier/rootcerts/6981fb07.0 +share/courier/rootcerts/6a15001a.0 share/courier/rootcerts/6c55cf77.0 share/courier/rootcerts/6d6ec79c.0 +share/courier/rootcerts/700b8679.0 share/courier/rootcerts/709afd2b.0 share/courier/rootcerts/72fa7371.0 +share/courier/rootcerts/73451336.0 +share/courier/rootcerts/739b7930.0 +share/courier/rootcerts/74c26bd0.0 share/courier/rootcerts/7651b327.0 +share/courier/rootcerts/76d6205a.0 +share/courier/rootcerts/788c9bfc.0 +share/courier/rootcerts/7a9820c1.0 share/courier/rootcerts/7d3cd826.0 share/courier/rootcerts/7d453d8f.0 +share/courier/rootcerts/7e74191f.0 +share/courier/rootcerts/81447c6e.0 +share/courier/rootcerts/843b6c51.0 +share/courier/rootcerts/878cf4c6.0 +share/courier/rootcerts/8e6e2991.0 share/courier/rootcerts/8efac7d4.0 -share/courier/rootcerts/9d0c2a65.0 +share/courier/rootcerts/8f7b96c4.0 +share/courier/rootcerts/95750816.0 +share/courier/rootcerts/97b4211c.0 +share/courier/rootcerts/a15b3b6b.0 +share/courier/rootcerts/a2be0f54.0 +share/courier/rootcerts/a2df7ad7.0 +share/courier/rootcerts/a38484ce.0 +share/courier/rootcerts/a3c60019.0 +share/courier/rootcerts/aaa45464.0 +share/courier/rootcerts/aba-ecom-root-ca.pem +share/courier/rootcerts/addtrust-class-1-ca-root.pem +share/courier/rootcerts/addtrust-external-ca-root.pem +share/courier/rootcerts/addtrust-public-ca-root.pem +share/courier/rootcerts/addtrust-qualified-ca-root.pem +share/courier/rootcerts/american-express-certificate-authority.pem +share/courier/rootcerts/american-express-global-certificate.pem share/courier/rootcerts/b0f3e76e.0 share/courier/rootcerts/b5f329fa.0 +share/courier/rootcerts/ba386118.0 +share/courier/rootcerts/baltimore-cybertrust-code-signing.pem +share/courier/rootcerts/baltimore-cybertrust-mobile-root.pem +share/courier/rootcerts/baltimore-cybertrust-root.pem +share/courier/rootcerts/bankengine.pem +share/courier/rootcerts/bb0a889c.0 share/courier/rootcerts/bcdd5959.0 share/courier/rootcerts/belsign-object-publishing-ca.pem share/courier/rootcerts/belsign-secure-server-ca.pem +share/courier/rootcerts/betrusted-root-ca.pem share/courier/rootcerts/bffe8b5d.0 share/courier/rootcerts/c19d42c7.0 +share/courier/rootcerts/c215bc69.0 share/courier/rootcerts/c33a80d4.0 share/courier/rootcerts/c527e4ab.0 +share/courier/rootcerts/c9bc75ba.0 share/courier/rootcerts/ccf7ff0e.0 +share/courier/rootcerts/certengine.pem share/courier/rootcerts/class-1-public-primary-ocsp-responder.pem share/courier/rootcerts/class-2-public-primary-ocsp-responder.pem share/courier/rootcerts/class-3-public-primary-ocsp-responder.pem +share/courier/rootcerts/cybertrust-japan-root-ca.pem +share/courier/rootcerts/cybertrust-japan-secure-server.pem +share/courier/rootcerts/d2adc77d.0 +share/courier/rootcerts/d593166d.0 share/courier/rootcerts/d78a75c7.0 +share/courier/rootcerts/db65db21.0 share/courier/rootcerts/ddc328ff.0 +share/courier/rootcerts/deutsche-telekom-root-ca.pem share/courier/rootcerts/dfd0b044.0 +share/courier/rootcerts/digital-signature-trust-co-dstca-00.pem +share/courier/rootcerts/digital-signature-trust-co-dstca-01.pem +share/courier/rootcerts/dst-rootca-x1.pem +share/courier/rootcerts/dst-rootca-x2.pem +share/courier/rootcerts/e-certify-ca.pem +share/courier/rootcerts/e-certify-ra.pem +share/courier/rootcerts/e268a4c5.0 share/courier/rootcerts/e28f6bbc.0 +share/courier/rootcerts/e7b8d656.0 +share/courier/rootcerts/e9aaa9de.0 share/courier/rootcerts/ed049835.0 +share/courier/rootcerts/ed524cf5.0 share/courier/rootcerts/ed62f4e3.0 +share/courier/rootcerts/entrust-net-certification-authority.pem +share/courier/rootcerts/entrust-net-client-certification-00.pem +share/courier/rootcerts/entrust-net-client-certification-01.pem +share/courier/rootcerts/entrust-net-secure-server-certification-00.pem +share/courier/rootcerts/entrust-net-secure-server-certification-01.pem +share/courier/rootcerts/equifax-equifax-premium-certificate.pem +share/courier/rootcerts/equifax-equifax-secure-certificate.pem +share/courier/rootcerts/equifax-secure-ebusiness-ca-1.pem +share/courier/rootcerts/equifax-secure-equifax-secure-ebusiness.pem +share/courier/rootcerts/equifax-secure-global-ebusiness.pem share/courier/rootcerts/f10dd942.0 share/courier/rootcerts/f4996e82.0 share/courier/rootcerts/f73e89fd.0 +share/courier/rootcerts/fortengine.pem share/courier/rootcerts/globalsign-partners-ca.pem share/courier/rootcerts/globalsign-primary-class-1-ca.pem share/courier/rootcerts/globalsign-primary-class-2-ca.pem share/courier/rootcerts/globalsign-primary-class-3-ca.pem share/courier/rootcerts/globalsign-root-ca.pem +share/courier/rootcerts/gp-root-2.pem +share/courier/rootcerts/gp-root-3.pem +share/courier/rootcerts/gp-root-4.pem +share/courier/rootcerts/gp-root-5.pem +share/courier/rootcerts/gte-cybertrust-global-root.pem +share/courier/rootcerts/gte-cybertrust-root-5.pem +share/courier/rootcerts/gte-cybertrust-root.pem share/courier/rootcerts/http-www-valicert-com-00.pem share/courier/rootcerts/http-www-valicert-com-01.pem share/courier/rootcerts/http-www-valicert-com-02.pem share/courier/rootcerts/http-www-valicert-net.pem +share/courier/rootcerts/mailengine.pem share/courier/rootcerts/rsa-data-security-inc-secure-server.pem share/courier/rootcerts/secure-server-ocsp-responder.pem share/courier/rootcerts/tc-trustcenter-for-security-in-00.pem @@ -359,7 +477,11 @@ share/courier/rootcerts/thawte-personal-premium-ca.pem share/courier/rootcerts/thawte-premium-server-ca.pem share/courier/rootcerts/thawte-server-ca.pem +share/courier/rootcerts/thawte-timestamping-ca.pem share/courier/rootcerts/thawte-universal-ca-root.pem +share/courier/rootcerts/traderengine.pem +share/courier/rootcerts/usps-production-ca-1.pem +share/courier/rootcerts/usps-root-ca.pem share/courier/rootcerts/verisign-class-1-public-primary.pem share/courier/rootcerts/verisign-class-2-public-primary.pem share/courier/rootcerts/verisign-class-3-public-primary.pem @@ -367,11 +489,17 @@ share/courier/rootcerts/verisign-inc-class-1-public-primary.pem share/courier/rootcerts/verisign-inc-class-2-public-primary.pem share/courier/rootcerts/verisign-inc-class-3-public-primary.pem -share/courier/rootcerts/verisign-inc-class-4-public-primary.pem share/courier/rootcerts/verisign-inc-verisign-trust-network-00.pem share/courier/rootcerts/verisign-inc-verisign-trust-network-01.pem share/courier/rootcerts/verisign-inc-verisign-trust-network-02.pem share/courier/rootcerts/verisign-inc-verisign-trust-network-03.pem +share/courier/rootcerts/verisign-time-stamping-authority.pem +share/courier/rootcerts/visa-visa-international-service.pem +share/courier/rootcerts/xcert-ez-by-dst.pem +share/courier/rootcerts/xcert-international-inc-xcert-root-00.pem +share/courier/rootcerts/xcert-international-inc-xcert-root-01.pem +share/courier/rootcerts/xcert-international-inc-xcert-root-02.pem +share/courier/rootcerts/xcert-international-inc-xcert-root-03.pem @dirrm share/courier/rootcerts share/courier/sqwebmail/cleancache.pl share/courier/sqwebmail/html/en-us/CHARSET @@ -496,6 +624,7 @@ %%PORTDOCS%%share/doc/courier/html/courier.html %%PORTDOCS%%share/doc/courier/html/courierd.html %%PORTDOCS%%share/doc/courier/html/courierdsn.html +%%SUB_FAX%%%%PORTDOCS%%share/doc/courier/html/courierfax.html %%PORTDOCS%%share/doc/courier/html/courierfilter.html %%PORTDOCS%%share/doc/courier/html/courierldapaliasd.html %%PORTDOCS%%share/doc/courier/html/couriermlm.html @@ -582,10 +711,15 @@ @exec chown %%MAILOWN%%:%%MAILGRP%% %D/etc/courier/dsnsubjectnotice.txt @exec chown %%MAILOWN%%:%%MAILGRP%% %D/etc/courier/dsnsubjectwarn.txt @exec chown %%MAILOWN%%:%%MAILGRP%% %D/etc/courier/esmtpauthclient +%%SUB_FAX%%@exec chown %%MAILOWN%%:%%MAILGRP%% %D/etc/courier/faxcoverpage.tr.dist +%%SUB_FAX%%@exec chown %%MAILOWN%%:%%MAILGRP%% %D/etc/courier/faxnotifyrc.dist +%%SUB_FAX%%@exec chown %%MAILOWN%%:%%MAILGRP%% %D/etc/courier/faxrc.dist @exec chown %%MAILOWN%%:%%MAILGRP%% %D/etc/courier/module.dsn @exec chown %%MAILOWN%%:%%MAILGRP%% %D/etc/courier/module.esmtp +%%SUB_FAX%%@exec chown %%MAILOWN%%:%%MAILGRP%% %D/etc/courier/module.fax @exec chown %%MAILOWN%%:%%MAILGRP%% %D/etc/courier/module.local %%SUB_UUCP%%@exec chown %%MAILOWN%%:%%MAILGRP%% %D/etc/courier/module.uucp +@exec chown -Rh %%BINOWN%%:%%BINGRP%% %D/libexec/authlib @exec chown %%MAILOWN%%:%%MAILGRP%% %D/libexec/courier/aliascombine @exec chown %%MAILOWN%%:%%MAILGRP%% %D/libexec/courier/aliascreate @exec chown %%MAILOWN%%:%%MAILGRP%% %D/libexec/courier/aliasexp @@ -596,6 +730,7 @@ @exec chown %%BINOWN%%:%%MAILGRP%% %D/libexec/courier/modules/esmtp/authstart @exec chown %%MAILOWN%%:%%MAILGRP%% %D/libexec/courier/modules/esmtp/courieresmtp @exec chown %%MAILOWN%%:%%MAILGRP%% %D/libexec/courier/modules/esmtp/courieresmtpd +%%SUB_FAX%%@exec chown %%MAILOWN%%:%%MAILGRP%% %D/libexec/courier/modules/fax/courierfax %%SUB_UUCP%%@exec chown %%MAILOWN%%:%%MAILGRP%% %D/libexec/courier/modules/uucp/courieruucp @exec chown %%MAILOWN%%:%%MAILGRP%% %D/libexec/courier/submit @exec chown %%MAILOWN%%:%%MAILGRP%% %D/libexec/courier/submitmkdir @@ -607,6 +742,7 @@ @exec install -d -o %%BINOWN%% -g %%BINGRP%% -m 0755 /var/spool/courier @exec install -d -o %%MAILOWN%% -g %%MAILGRP%% -m 0750 /var/spool/courier/allfilters @exec install -d -o %%MAILOWN%% -g %%MAILGRP%% -m 0770 /var/spool/courier/authdaemon +%%SUB_FAX%%@exec install -d -o %%MAILOWN%% -g %%MAILGRP%% -m 0700 /var/spool/courier/faxtmp @exec install -d -o %%MAILOWN%% -g %%MAILGRP%% -m 0750 /var/spool/courier/filters @exec install -d -o %%MAILOWN%% -g %%MAILGRP%% -m 0750 /var/spool/courier/msgq @exec install -d -o %%MAILOWN%% -g %%MAILGRP%% -m 0750 /var/spool/courier/msgs @@ -614,16 +750,6 @@ @exec install -c -o %%MAILOWN%% -g %%MAILGRP%% -m 0400 /dev/null /var/spool/courier/.noident @exec install -d -o %%CACHEOWN%% -g mail -m 0700 /var/spool/webmail @exec crontab -u %%CACHEOWN%% %D/etc/courier/crontab 2>/dev/null || true -@unexec crontab -u %%CACHEOWN%% -l 2>/dev/null || true -@unexec crontab -u %%CACHEOWN%% -r || true -@unexec [ -d /var/spool/courier ] && chown -Rh %%MAILOWN%%:%%MAILGRP%% /var/spool/courier -@unexec echo "" -@unexec echo "Warning: Removing user courier will also delete any" -@unexec echo " undelivered mail in the mail queue directories!!!" -@unexec echo " Do not do it if you're upgrading and would like" -@unexec echo " courier to continue trying to deliver this mail." -@unexec echo "" -@unexec rmuser %%MAILOWN%% 2>/dev/null || true -@unexec [ -d /var/spool/courier ] && chown 0:0 /var/spool/courier 2>/dev/null || true +@unexec echo y | crontab -u %%CACHEOWN%% -r || true @unexec rm -rf /var/spool/calendar 2>/dev/null || true @unexec rm -rf /var/spool/webmail 2>/dev/null || true diff -ruN courier~/scripts/configure.courier courier/scripts/configure.courier --- courier~/scripts/configure.courier Mon Jan 21 23:44:18 2002 +++ courier/scripts/configure.courier Fri Jun 7 10:39:57 2002 @@ -13,86 +13,105 @@ PGSQLINCLUDES=${PGSQLBASE}/include/pgsql fi -if [ "${BATCH}" = "yes" ]; then - [ "x${ENABLE_EXPECT}" = "xYES" ] && OPTIONS="${OPTIONS} \"Expect\"" - [ "x${ENABLE_GNUPG}" = "xYES" ] && OPTIONS="${OPTIONS} \"GnuPG\"" - [ "x${ENABLE_ASPELL}" = "xYES" ] && OPTIONS="${OPTIONS} \"ASpell\"" - [ "x${ENABLE_ISPELL}" = "xYES" ] && OPTIONS="${OPTIONS} \"ISpell\"" - [ "x${ENABLE_LDAP1}" = "xYES" ] && OPTIONS="${OPTIONS} \"OpenLDAP1\"" - [ "x${ENABLE_LDAP2}" = "xYES" ] && OPTIONS="${OPTIONS} \"OpenLDAP2\"" - [ "x${ENABLE_MYSQL}" = "xYES" ] && OPTIONS="${OPTIONS} \"MySQL\"" - [ "x${ENABLE_PGSQL}" = "xYES" ] && OPTIONS="${OPTIONS} \"PostgreSQL\"" - [ "x${ENABLE_VPOPMAIL}" = "xYES" ] && OPTIONS="${OPTIONS} \"VPopMail\"" - [ "x${ENABLE_PROCMAIL}" = "xYES" ] && OPTIONS="${OPTIONS} \"Procmail\"" - [ "x${ENABLE_IPV6}" = "xYES" ] && OPTIONS="${OPTIONS} \"IPv6\"" +if [ ":${BATCH}" = ':yes' ]; then + [ ":${WITH_EXPECT}" = ':yes' ] && OPTIONS="${OPTIONS} \"Expect\"" + [ ":${WITH_GNUPG}" = ':yes' ] && OPTIONS="${OPTIONS} \"GnuPG\"" + [ ":${WITH_ASPELL}" = ':yes' ] && OPTIONS="${OPTIONS} \"ASpell\"" + [ ":${WITH_ISPELL}" = ':yes' ] && OPTIONS="${OPTIONS} \"ISpell\"" + [ ":${WITH_LDAP1}" = ':yes' ] && OPTIONS="${OPTIONS} \"OpenLDAP1\"" + [ ":${WITH_LDAP2}" = ':yes' ] && OPTIONS="${OPTIONS} \"OpenLDAP2\"" + [ ":${WITH_MYSQL}" = ':yes' ] && OPTIONS="${OPTIONS} \"MySQL\"" + [ ":${WITH_PGSQL}" = ':yes' ] && OPTIONS="${OPTIONS} \"PostgreSQL\"" + [ ":${WITH_VPOPMAIL}" = ':yes' ] && OPTIONS="${OPTIONS} \"VPopMail\"" + [ ":${WITH_PROCMAIL}" = ':yes' ] && OPTIONS="${OPTIONS} \"Procmail\"" + [ ":${WITH_SENDFAX}" = ':yes' ] && OPTIONS="${OPTIONS} \"SendFax\"" + [ ":${WITH_IPV6}" = ':yes' ] && OPTIONS="${OPTIONS} \"IPv6\"" [ -n "${OPTIONS}" ] && set ${OPTIONS} else - if [ "x${ENABLE_EXPECT}" = "xYES" \ + if [ ":${WITH_EXPECT}" = ':yes' \ -o -x ${LOCALBASE}/bin/expect ]; then SET_EXPECT="ON" else SET_EXPECT="OFF" fi - if [ "x${ENABLE_GNUPG}" = "xYES" \ + if [ ":${WITH_GNUPG}" = ':yes' \ -o -x ${LOCALBASE}/bin/gpg ]; then SET_GNUPG="ON" else SET_GNUPG="OFF" fi - if [ "x${ENABLE_ASPELL}" = "xYES" \ + if [ ":${WITH_ASPELL}" = ':yes' \ -o -x ${LOCALBASE}/bin/aspell ]; then SET_ASPELL="ON" + SET_ISPELL="OFF" else SET_ASPELL="OFF" fi - if [ "x${ENABLE_ISPELL}" = "xYES" \ + if [ ":${WITH_ISPELL}" = ':yes' \ -o -x ${LOCALBASE}/bin/ispell \ - -a "x${SET_ASPELL}" = "xOFF" ]; then + -a "${SET_ASPELL}" = "OFF" ]; then SET_ISPELL="ON" + SET_ASPELL="OFF" else SET_ISPELL="OFF" fi - if [ "x${ENABLE_LDAP1}" = "xYES" \ + if [ ":${WITH_LDAP1}" = ':yes' \ -o -f ${LOCALBASE}/lib/libldap.so.1 \ -a -f ${LOCALBASE}/lib/liblber.so.1 ]; then SET_LDAP1="ON" + SET_LDAP2="OFF" else SET_LDAP1="OFF" fi - if [ "x${ENABLE_LDAP2}" = "xYES" \ + if [ ":${WITH_LDAP2}" = ':yes' \ -o -f ${LOCALBASE}/lib/libldap.so.2 \ - -a -f ${LOCALBASE}/lib/liblber.so.2 \ - -a "x${SET_LDAP1}" = "xOFF" ]; then + -a -f ${LOCALBASE}/lib/liblber.so.2 ]; then + SET_LDAP1="OFF" SET_LDAP2="ON" else SET_LDAP2="OFF" fi - if [ "x${ENABLE_MYSQL}" = "xYES" \ + if [ ":${WITH_MYSQL}" = ':yes' \ -o -f ${LOCALBASE}/lib/mysql/libmysqlclient.so.10 ]; then SET_MYSQL="ON" else SET_MYSQL="OFF" fi - if [ "x${ENABLE_PGSQL}" = "xYES" \ + if [ ":${WITH_PGSQL}" = ':yes' \ -o -f ${PGSQLBASE}/lib/libpq.so.2 ]; then SET_PGSQL="ON" else SET_PGSQL="OFF" fi - if [ "x${ENABLE_VPOPMAIL}" = "xYES" \ + if [ ":${WITH_VPOPMAIL}" = ':yes' \ -o -f ${LOCALBASE}/vpopmail/lib/libvpopmail.a ]; then SET_VPOPMAIL="ON" # authvchkpw and authmysql SET_MYSQL="OFF" # are mutually exclusive else SET_VPOPMAIL="OFF" fi - if [ "x${ENABLE_PROCMAIL}" = "xYES" \ + if [ ":${WITH_PROCMAIL}" = ':yes' \ -o -x ${LOCALBASE}/bin/procmail ]; then SET_PROCMAIL="ON" else SET_PROCMAIL="OFF" fi - if [ "x${ENABLE_IPV6}" = "xYES" ]; then + if [ ":${WITH_SENDFAX}" = ':yes' \ + -o -x ${LOCALBASE}/bin/pnmscale \ + -a -x ${LOCALBASE}/bin/giftopnm \ + -a -x ${LOCALBASE}/bin/jpegtopnm \ + -a -x ${LOCALBASE}/bin/ppmtopgm \ + -a -x ${LOCALBASE}/bin/pgmtopbm \ + -a -x ${LOCALBASE}/bin/pbmtog3 \ + -a -x ${LOCALBASE}/bin/g3topbm \ + -a -x ${LOCALBASE}/bin/pngtopnm \ + -a -x ${LOCALBASE}/bin/pnmtopng \ + -a -x ${LOCALBASE}/bin/gs ]; then + SET_SENDFAX="ON" + else + SET_SENDFAX="OFF" + fi + if [ ":${WITH_IPV6}" = ':yes' ]; then SET_IPV6="ON" else SET_IPV6="OFF" @@ -111,22 +130,18 @@ PostgreSQL "PostgreSQL authentication support" ${SET_PGSQL} \ VPopMail "VPopMail authentication support" ${SET_VPOPMAIL} \ Procmail "Procmail local delivery support" ${SET_PROCMAIL} \ +SendFax "mgetty+sendfax support" ${SET_SENDFAX} \ IPv6 "IPv6 support (experimental)" ${SET_IPV6} \ -2> $tempfile +2> ${tempfile} retval=$? - if [ -s $tempfile ]; then - set `cat $tempfile` - fi - rm -f $tempfile + [ -s ${tempfile} ] && set `cat ${tempfile}` + rm -f ${tempfile} - case $retval in - 0) [ -z "$*" ] && echo "Nothing selected" - ;; - 1) echo "Cancel pressed." - exit 1 - ;; + case ${retval} in + 0) [ -z "$*" ] && echo "Nothing selected" ;; + 1) echo "Cancel pressed." && exit 1 ;; esac fi @@ -142,6 +157,7 @@ WITH_VCHKPW="--without-authvchkpw" WITH_IPV6="--without-ipv6" +SUB_FAX="@comment " SUB_LDAP="@comment " SUB_MYSQL="@comment " SUB_PGSQL="@comment " @@ -149,10 +165,10 @@ while [ "$1" ]; do case $1 in \"Expect\") - echo "BUILD_DEPENDS+= expect:${PORTSDIR}/lang/expect" + echo "BUILD_DEPENDS+= expect:\${PORTSDIR}/lang/expect" ;; \"GnuPG\") - echo "BUILD_DEPENDS+= gpg:${PORTSDIR}/security/gnupg" + echo "BUILD_DEPENDS+= gpg:\${PORTSDIR}/security/gnupg" ;; \"ASpell\") if [ "$ISPELL" ]; then @@ -160,8 +176,8 @@ rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc exit 1 fi - echo "BUILD_DEPENDS+= aspell:${PORTSDIR}/textproc/aspell" - WITH_ISPELL="--with-ispell=${LOCALBASE}/bin/aspell" + echo "BUILD_DEPENDS+= aspell:\${PORTSDIR}/textproc/aspell" + WITH_ISPELL="--with-ispell=\${LOCALBASE}/bin/aspell" ASPELL=1 ;; \"ISpell\") @@ -170,8 +186,8 @@ rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc exit 1 fi - echo "BUILD_DEPENDS+= ispell:${PORTSDIR}/textproc/ispell" - WITH_ISPELL="--with-ispell=${LOCALBASE}/bin/ispell" + echo "BUILD_DEPENDS+= ispell:\${PORTSDIR}/textproc/ispell" + WITH_ISPELL="--with-ispell=\${LOCALBASE}/bin/ispell" ISPELL=1 ;; \"OpenLDAP1\") @@ -181,8 +197,8 @@ exit 1 fi echo "LIB_DEPENDS+= ldap.1:\${PORTSDIR}/net/openldap" - CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" - LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" + CPPFLAGS="${CPPFLAGS} -I\${LOCALBASE}/include" + LDFLAGS="${LDFLAGS} -L\${LOCALBASE}/lib" WITH_LDAP="--with-authldap" PKGNAMESUFFIX="${PKGNAMESUFFIX}-ldap" SUB_LDAP="" @@ -195,8 +211,8 @@ exit 1 fi echo "LIB_DEPENDS+= ldap.2:\${PORTSDIR}/net/openldap2" - CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" - LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" + CPPFLAGS="${CPPFLAGS} -I\${LOCALBASE}/include" + LDFLAGS="${LDFLAGS} -L\${LOCALBASE}/lib" WITH_LDAP="--with-authldap" PKGNAMESUFFIX="${PKGNAMESUFFIX}-ldap" SUB_LDAP="" @@ -209,10 +225,10 @@ rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc exit 1 else - echo "LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client" + echo "LIB_DEPENDS+= mysqlclient.10:\${PORTSDIR}/databases/mysql323-client" WITH_MYSQL="--with-authmysql" - WITH_MYSQL="${WITH_MYSQL} --with-mysql-libs=${LOCALBASE}/lib/mysql" - WITH_MYSQL="${WITH_MYSQL} --with-mysql-includes=${LOCALBASE}/include/mysql" + WITH_MYSQL="${WITH_MYSQL} --with-mysql-libs=\${LOCALBASE}/lib/mysql" + WITH_MYSQL="${WITH_MYSQL} --with-mysql-includes=\${LOCALBASE}/include/mysql" PKGNAMESUFFIX="${PKGNAMESUFFIX}-mysql" SUB_MYSQL="" fi @@ -226,12 +242,37 @@ SUB_PGSQL="" ;; \"VPopMail\") - echo "BUILD_DEPENDS+= ${LOCALBASE}/vpopmail/lib/libvpopmail.a:${PORTSDIR}/mail/vpopmail" + echo "BUILD_DEPENDS+= \${LOCALBASE}/vpopmail/lib/libvpopmail.a:\${PORTSDIR}/mail/vpopmail" WITH_VCHKPW="--with-authvchkpw" PKGNAMESUFFIX="${PKGNAMESUFFIX}-vpopmail" ;; \"Procmail\") - echo "BUILD_DEPENDS+= procmail:${PORTSDIR}/mail/procmail" + echo "BUILD_DEPENDS+= procmail:\${PORTSDIR}/mail/procmail" + ;; + \"SendFax\") + echo "BUILD_DEPENDS+= gs:\${PORTSDIR}/print/ghostscript-gnu" + echo "BUILD_DEPENDS+= pnmscale:\${PORTSDIR}/graphics/netpbm" + echo "BUILD_DEPENDS+= giftopnm:\${PORTSDIR}/graphics/netpbm" + echo "BUILD_DEPENDS+= jpegtopnm:\${PORTSDIR}/graphics/netpbm" + echo "BUILD_DEPENDS+= ppmtopgm:\${PORTSDIR}/graphics/netpbm" + echo "BUILD_DEPENDS+= pgmtopbm:\${PORTSDIR}/graphics/netpbm" + echo "BUILD_DEPENDS+= pbmtog3:\${PORTSDIR}/graphics/netpbm" + echo "BUILD_DEPENDS+= g3topbm:\${PORTSDIR}/graphics/netpbm" + echo "BUILD_DEPENDS+= pngtopnm:\${PORTSDIR}/graphics/netpbm" + echo "BUILD_DEPENDS+= pnmtopng:\${PORTSDIR}/graphics/netpbm" + echo "RUN_DEPENDS+= gs:\${PORTSDIR}/print/ghostscript-gnu" + echo "RUN_DEPENDS+= pnmscale:\${PORTSDIR}/graphics/netpbm" + echo "RUN_DEPENDS+= giftopnm:\${PORTSDIR}/graphics/netpbm" + echo "RUN_DEPENDS+= jpegtopnm:\${PORTSDIR}/graphics/netpbm" + echo "RUN_DEPENDS+= ppmtopgm:\${PORTSDIR}/graphics/netpbm" + echo "RUN_DEPENDS+= pgmtopbm:\${PORTSDIR}/graphics/netpbm" + echo "RUN_DEPENDS+= pbmtog3:\${PORTSDIR}/graphics/netpbm" + echo "RUN_DEPENDS+= g3topbm:\${PORTSDIR}/graphics/netpbm" + echo "RUN_DEPENDS+= pngtopnm:\${PORTSDIR}/graphics/netpbm" + echo "RUN_DEPENDS+= pnmtopng:\${PORTSDIR}/graphics/netpbm" + echo "WITH_FAX= yes" + WITH_TRANSPORT="${WITH_TRANSPORT} fax" + SUB_FAX="" ;; \"IPv6\") WITH_IPV6="" @@ -254,7 +295,11 @@ echo "CONFIGURE_ARGS+= ${WITH_PGSQL}" echo "CONFIGURE_ARGS+= ${WITH_VCHKPW}" echo "CONFIGURE_ARGS+= ${WITH_IPV6}" -echo "PKGNAMESUFFIX= ${PKGNAMESUFFIX}" +echo "CONFIGURE_ARGS+= --with-transport='${WITH_TRANSPORT}'" +echo "PLIST_SUB+= SUB_FAX='${SUB_FAX}'" echo "PLIST_SUB+= SUB_LDAP='${SUB_LDAP}'" echo "PLIST_SUB+= SUB_MYSQL='${SUB_MYSQL}'" echo "PLIST_SUB+= SUB_PGSQL='${SUB_PGSQL}'" +[ -n "${PKGNAMESUFFIX}" ] && echo "PKGNAMESUFFIX= ${PKGNAMESUFFIX}" + +exit 0 >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?courier.3D0107A3.00000617>