From martin@hyperion.ath.cx  Sat Sep 24 02:12:40 2005
Return-Path: <martin@hyperion.ath.cx>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 397EC16A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 24 Sep 2005 02:12:40 +0000 (GMT)
	(envelope-from martin@hyperion.ath.cx)
Received: from hyperion.ath.cx (ip204.133.1511H-CUD12K-02.ish.de [62.143.133.204])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 0C26F43D4C
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 24 Sep 2005 02:12:37 +0000 (GMT)
	(envelope-from martin@hyperion.ath.cx)
Received: by hyperion.ath.cx (Postfix, from userid 1001)
	id 16315207C; Sat, 24 Sep 2005 04:12:38 +0200 (CEST)
Message-Id: <20050924015920.898A2207E@themis.titans.local>
Date: Sat, 24 Sep 2005 03:59:20 +0200 (CEST)
From: Martin Piayda <martin.piayda@udo.edu>
Reply-To: Martin Piayda <martin.piayda@udo.edu>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Port Update of Courier 0.52.0
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         86517
>Category:       ports
>Synopsis:       mail/courier: Port Update of Courier 0.52.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pav
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 24 02:20:18 GMT 2005
>Closed-Date:    Tue Oct 11 09:05:31 GMT 2005
>Last-Modified:  Thu Oct 13 10:20:27 GMT 2005
>Originator:     Martin Piayda
>Release:        FreeBSD 5.4-RELEASE-p5 i386
>Organization:
>Environment:
System: FreeBSD themis 5.4-RELEASE-p5 FreeBSD 5.4-RELEASE-p5 #10: Mon Jul 25 18:06:20 CEST 2005 martin@themis:/usr/obj/usr/src/sys/Themis i386


>Description:
I have modified the current Makefile of courier 
to install courier 0.52.0 and to reflect a  
possible prefixed installation. The current ebuild
does not install prefixed and fails when compiling
the imap-functions using the courier-auth headers.

I have tested my Makefile with and without an explicit
PREFIX tag, so I can say it works.

>How-To-Repeat:
	always
>Fix:


--- courierport begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	courier
#	courier/files
#	courier/files/courier.sh.in
#	courier/files/patch-courier::configure
#	courier/files/patch-courier::doc::Makefile.in
#	courier/files/patch-courier::module.fax
#	courier/files/patch-courier::perms.sh.in
#	courier/files/crontab.in
#	courier/files/patch-courier::submit.C
#	courier/files/patch-liblock::locktest.c
#	courier/files/pkg-install.in
#	courier/files/pkg-message.in
#	courier/scripts
#	courier/scripts/c_rehash
#	courier/Makefile
#	courier/Makefile.doc
#	courier/Makefile.man
#	courier/Makefile.own
#	courier/problem
#	courier/problem/repo
#	courier/distinfo
#	courier/pkg-descr
#	courier/pkg-plist
#
echo c - courier
mkdir -p courier > /dev/null 2>&1
echo c - courier/files
mkdir -p courier/files > /dev/null 2>&1
echo x - courier/files/courier.sh.in
sed 's/^X//' >courier/files/courier.sh.in << 'END-of-courier/files/courier.sh.in'
X#!/bin/sh
X#
X# $FreeBSD: ports/mail/courier/files/courier.sh.in,v 1.1 2005/07/16 22:52:35 pav Exp $
X#
X# Adapted for FreeBSD from courier.sysvinit
X#
X# NOTE: The 'restart' here does a "hard" stop, and a start.  Be gentle, use
X# "courierd restart" for a kindler, gentler, restart.
X#
X# PROVIDE: mail
X# REQUIRE: LOGIN courier_authdaemond
X# BEFORE:  securelevel
X# KEYWORD: FreeBSD shutdown
X#
X# NOTE for FreeBSD 5.0+:
X# If you want this script to start with the base rc scripts
X# move courier.sh to /etc/rc.d/courier
X
Xprefix="%%PREFIX%%"
Xexec_prefix="${prefix}"
Xsysconfdir="${prefix}/etc/courier"
Xsbindir="${exec_prefix}/sbin"
Xbindir="${exec_prefix}/bin"
Xlibexecdir="${prefix}/libexec"
Xdatadir="${prefix}/share/courier"
X
X# Define these courier_* variables in one of these files:
X#	/etc/rc.conf
X#	/etc/rc.conf.local
X#	/etc/rc.conf.d/courier
X#
X# DO NOT CHANGE THESE DEFAULT VALUES HERE
X#
Xcourier_enable=${courier_enable:-"NO"}	# Run Courier-MTA (YES/NO).
X
X. %%RC_SUBR%%
X
Xname="courier"
Xrcvar=`set_rcvar`
X
Xstart_precmd="${name}_prestart"
Xstart_cmd="${name}_start"
Xstop_cmd="${name}_stop"
Xextra_commands="restart"
X
Xcourier_prestart()
X{	# Ensure runtime directories exist with correct permissions
X	/usr/bin/install -o %%BINOWN%% -g %%BINGRP%% -m 0755 -d %%LOCALSTATEDIR%%
X	/usr/bin/install -o %%MAILOWN%% -g %%MAILGRP%% -m 0750 -d %%LOCALSTATEDIR%%/allfilters
X	/usr/bin/install -o %%MAILOWN%% -g %%MAILGRP%% -m 0700 -d %%LOCALSTATEDIR%%/faxtmp
X	/usr/bin/install -o %%MAILOWN%% -g %%MAILGRP%% -m 0750 -d %%LOCALSTATEDIR%%/filters
X	/usr/bin/install -o %%MAILOWN%% -g %%MAILGRP%% -m 0750 -d %%LOCALSTATEDIR%%/msgq
X	/usr/bin/install -o %%MAILOWN%% -g %%MAILGRP%% -m 0750 -d %%LOCALSTATEDIR%%/msgs
X	/usr/bin/install -o %%MAILOWN%% -g %%MAILGRP%% -m 0770 -d %%LOCALSTATEDIR%%/tmp
X	/usr/bin/install -o %%MAILOWN%% -g %%MAILGRP%% -m 0755 -d %%LOCALSTATEDIR%%/track
X	/usr/bin/install -o %%MAILOWN%% -g %%MAILGRP%% -m 0400 -c /dev/null %%LOCALSTATEDIR%%/.noident
X
X	/usr/bin/install -o %%BINOWN%% -g %%BINGRP%% -m 0755 -d %%CALENDIR%%
X	/usr/bin/install -o %%CACHEOWN%% -g %%MAILGRP%% -m 0700 -d %%CALENDIR%%/localcache
X	/usr/bin/install -o %%CACHEOWN%% -g %%MAILGRP%% -m 0750 -d %%CALENDIR%%/private
X	/usr/bin/install -o %%CACHEOWN%% -g %%MAILGRP%% -m 0755 -d %%CALENDIR%%/public
X
X	/usr/bin/install -o %%CACHEOWN%% -g mail -m 0700 -d %%CACHEDIR%%
X}
X
Xcourier_start()
X{	# First time after install create aliases.dat and makesmtpaccess.dat
X	echo -n "Starting"
X
X	if [ -f ${sysconfdir}/crontab ]; then
X		/usr/bin/crontab -u %%CACHEOWN%% ${sysconfdir}/crontab
X	fi
X
X	if [ ! -f ${sysconfdir}/aliases.dat \
X	  -a -x ${sbindir}/makealiases ]; then
X		${sbindir}/makealiases
X	fi
X
X	esmtpdcert=0
X
X	ESMTPDSTART=""
X	if [ -f ${sysconfdir}/esmtpd ]; then
X		. ${sysconfdir}/esmtpd
X		case "$ESMTPDSTART" in
X		[Yy]*)
X			esmtpdcert=1
X			;;
X		esac
X		if [ ! -f ${sysconfdir}/esmtpacceptmailfor.dat \
X		  -a -x ${sbindir}/makeacceptmailfor ]; then
X			${sbindir}/makeacceptmailfor
X		fi
X		if [ ! -f ${sysconfdir}/${ACCESSFILE}.dat \
X		  -a -x ${sbindir}/makesmtpaccess ]; then
X			${sbindir}/makesmtpaccess
X		fi
X	fi
X
X	ESMTPDSTART=""
X	if [ -f ${sysconfdir}/esmtpd-msa ]; then
X		. ${sysconfdir}/esmtpd-msa
X		case "$ESMTPDSTART" in
X		[Yy]*)
X			esmtpdcert=1
X			;;
X		esac
X		if [ ! -f ${sysconfdir}/${ACCESSFILE}.dat \
X		  -a -x ${sbindir}/makesmtpaccess-msa ]; then
X			${sbindir}/makesmtpaccess-msa
X		fi
X	fi
X
X	if [ -x ${sbindir}/courierfilter ]; then
X		echo -n " courierfilter"
X		${sbindir}/courierfilter start
X	fi
X
X	if [ -x ${sbindir}/courierldapaliasd ]; then
X		echo -n " courierldapaliasd"
X		${sbindir}/courierldapaliasd start
X	fi
X
X	if [ -x ${libexecdir}/courier/sqwebmaild \
X	  -a -x ${sbindir}/webmaild ]; then
X		echo -n " webmail"
X		${sbindir}/webmaild start
X	fi
X
X	if [ -x ${sbindir}/courier ]; then
X		echo -n " courierd"
X		${sbindir}/courier start
X	fi
X
X	if [ "$esmtpdcert" = 1 ]; then
X		# If we do not have a certificate, make one up.
X		if [ ! -f ${sysconfdir}/esmtpd.pem \
X		  -a -x "$COURIERTLS" \
X		  -a -x ${sbindir}/mkesmtpdcert ]; then
X			echo -n " generating-ESMTP-SSL-certificate..."
X			${sbindir}/mkesmtpdcert >/dev/null 2>&1
X		fi
X	fi
X
X	ESMTPDSTART=""
X	if [ -f ${sysconfdir}/esmtpd ]; then
X		. ${sysconfdir}/esmtpd
X		case "$ESMTPDSTART" in
X		[Yy]*)
X			if [ -x ${sbindir}/esmtpd ]; then
X				echo -n " esmtpd"
X				${sbindir}/esmtpd start
X			fi
X			;;
X		esac
X	fi
X
X	ESMTPDSTART=""
X	if [ -f ${sysconfdir}/esmtpd-msa ]; then
X		. ${sysconfdir}/esmtpd-msa
X		case "$ESMTPDSTART" in
X		[Yy]*)
X			if [ -x ${sbindir}/esmtpd-msa ]; then
X				echo -n " esmtpd-msa"
X				${sbindir}/esmtpd-msa start
X			fi
X			;;
X		esac
X	fi
X
X	ESMTPDSSLSTART=""
X	if [ -f ${sysconfdir}/esmtpd-ssl ]; then
X		. ${sysconfdir}/esmtpd-ssl
X		case "$ESMTPDSSLSTART" in
X		[Yy]*)
X			if [ -x "$COURIERTLS" \
X			  -a -x ${sbindir}/esmtpd-ssl ]; then
X				echo -n " esmtpd-ssl"
X				${sbindir}/esmtpd-ssl start
X			fi
X			;;
X		esac
X	fi
X
X	IMAPDSTART=""
X	if [ -f ${sysconfdir}/imapd ]; then
X		. ${sysconfdir}/imapd
X		case "$IMAPDSTART" in
X		[Yy]*)
X			if [ -x ${sbindir}/imapd ]; then
X				echo -n " imapd"
X				${sbindir}/imapd start
X			fi
X			;;
X		esac
X	fi
X
X	IMAPDSSLSTART=""
X	if [ -f ${sysconfdir}/imapd-ssl ]; then
X		. ${sysconfdir}/imapd-ssl
X		case "$IMAPDSSLSTART" in
X		[Yy]*)	# If we do not have a certificate, make one up.
X			if [ -x "$COURIERTLS" ]; then
X				if [ ! -f ${sysconfdir}/imapd.pem \
X				  -a -x ${sbindir}/mkimapdcert ]; then
X					echo -n " generating-IMAP-SSL-certificate..."
X					${sbindir}/mkimapdcert >/dev/null 2>&1
X				fi
X				if [ -x ${sbindir}/imapd-ssl ]; then
X					echo -n " imapd-ssl"
X					${sbindir}/imapd-ssl start
X				fi
X			fi
X			;;
X		esac
X	fi
X
X	POP3DSTART=""
X	if [ -f ${sysconfdir}/pop3d ]; then 
X		. ${sysconfdir}/pop3d
X		case "$POP3DSTART" in
X		[Yy]*)
X			if [ -x ${sbindir}/pop3d ]; then
X				echo -n " pop3d"
X				${sbindir}/pop3d start
X			fi
X			;;
X		esac
X	fi
X
X	POP3DSSLSTART=""
X	if [ -f ${sysconfdir}/pop3d-ssl ]; then
X		. ${sysconfdir}/pop3d-ssl
X		case "$POP3DSSLSTART" in
X		[Yy]*)	# If we do not have a certificate, make one up.
X			if [ -x "$COURIERTLS" ]; then
X				if [ ! -f ${sysconfdir}/pop3d.pem \
X				  -a -x ${sbindir}/mkpop3dcert ]; then 
X					echo -n " generating-POP3-SSL-certificate..."
X					${sbindir}/mkpop3dcert >/dev/null 2>&1
X				fi
X				if [ -x ${sbindir}/pop3d-ssl ]; then
X					echo -n " pop3d-ssl"
X					${sbindir}/pop3d-ssl start
X				fi
X			fi
X			;;
X		esac
X	fi
X	echo "."
X}
X
Xcourier_stop()
X{	# kill courier services in the reverse order of starting them
X	echo -n "Stopping"
X
X	if [ -x ${sbindir}/pop3d-ssl ]; then
X		echo -n " pop3d-ssl"
X		${sbindir}/pop3d-ssl stop
X	fi
X
X	if [ -x ${sbindir}/pop3d ]; then
X		echo -n " pop3d"
X		${sbindir}/pop3d stop
X	fi
X
X	if [ -x ${sbindir}/imapd-ssl ]; then
X		echo -n " imapd-ssl"
X		${sbindir}/imapd-ssl stop
X	fi
X
X	if [ -x ${sbindir}/imapd ]; then
X		echo -n " imapd"
X		${sbindir}/imapd stop
X	fi
X
X	if [ -x ${sbindir}/esmtpd-ssl ]; then
X		echo -n " esmtpd-ssl"
X		${sbindir}/esmtpd-ssl stop
X	fi
X
X	if [ -x ${sbindir}/esmtpd-msa ]; then
X		echo -n " esmtpd-msa"
X		${sbindir}/esmtpd-msa stop
X	fi
X
X	if [ -x ${sbindir}/esmtpd ]; then
X		echo -n " esmtpd"
X		${sbindir}/esmtpd stop
X	fi
X
X	if [ -x ${sbindir}/courier ]; then
X		echo -n " courierd"
X		${sbindir}/courier stop
X	fi
X
X	if [ -x ${sbindir}/webmaild ]; then
X		echo -n " webmail"
X		${sbindir}/webmaild stop
X	fi
X
X	if [ -x ${sbindir}/courierldapaliasd ]; then
X		echo -n " courierldapaliasd"
X		${sbindir}/courierldapaliasd stop
X	fi
X
X	if [ -x ${sbindir}/courierfilter ]; then
X		echo -n " courierfilter"
X		${sbindir}/courierfilter stop
X	fi
X
X	echo y | /usr/bin/crontab -u %%CACHEOWN%% -r || true
X	echo "."
X}
X
Xload_rc_config $name
Xrun_rc_command "$1"
END-of-courier/files/courier.sh.in
echo x - courier/files/patch-courier::configure
sed 's/^X//' >courier/files/patch-courier::configure << 'END-of-courier/files/patch-courier::configure'
X--- courier/configure.orig	Sun Jul  3 00:06:22 2005
X+++ courier/configure	Sun Jul  3 00:06:22 2005
X@@ -22109,9 +22109,9 @@
X 
X if test "$testmode" = "0"
X then
X-	INSTALL_PROGRAM='${INSTALL} -m 700'
X-	INSTALL_SCRIPT='${INSTALL} -m 700'
X-	INSTALL_DATA='${INSTALL} -m 600'
X+	INSTALL_PROGRAM='${BSD_INSTALL_PROGRAM}'
X+	INSTALL_SCRIPT='${BSD_INSTALL_SCRIPT}'
X+	INSTALL_DATA='${BSD_INSTALL_DATA}'
X fi
X 
X ac_ext=cc
END-of-courier/files/patch-courier::configure
echo x - courier/files/patch-courier::doc::Makefile.in
sed 's/^X//' >courier/files/patch-courier::doc::Makefile.in << 'END-of-courier/files/patch-courier::doc::Makefile.in'
X--- courier/doc/Makefile.in.orig	Sun Jul  3 00:15:30 2005
X+++ courier/doc/Makefile.in	Sun Jul  3 00:15:30 2005
X@@ -1136,18 +1136,18 @@
X 	$(MAKE) do-man-install
X 
X do-man-install:
X-	for f in $(mandir) $(man1dir) $(man7dir) $(man8dir) ; do test -d $(DESTDIR)$$f && chmod 755 $(DESTDIR)$$f ; done ; exit 0
X+#	for f in $(mandir) $(man1dir) $(man7dir) $(man8dir) ; do test -d $(DESTDIR)$$f && chmod 755 $(DESTDIR)$$f ; done ; exit 0
X 	for f in $(man1) ; do test -f $(DESTDIR)$(man1dir)/$$f && chmod 644 $(DESTDIR)$(man1dir)/$$f ; done ; exit 0
X 	for f in $(man5) ; do test -f $(DESTDIR)$(man5dir)/$$f && chmod 644 $(DESTDIR)$(man5dir)/$$f ; done ; exit 0
X 	for f in $(man7) ; do test -f $(DESTDIR)$(man7dir)/$$f && chmod 644 $(DESTDIR)$(man7dir)/$$f ; done ; exit 0
X 	for f in $(man8) ; do test -f $(DESTDIR)$(man8dir)/$$f && chmod 644 $(DESTDIR)$(man8dir)/$$f ; done ; exit 0
X-	test -w /etc || exit 0 ; for f in $(mandir) $(man1dir) $(man5dir) $(man7dir) $(man8dir) ; do test -d $(DESTDIR)$$f && chown bin $(DESTDIR)$$f && chgrp bin $(DESTDIR)$$f ; done ; exit 0
X-	test -w /etc || exit 0 ; for f in $(man1) ; do test -f $(DESTDIR)$(man1dir)/$$f && chown bin $(DESTDIR)$(man1dir)/$$f && chgrp bin $(DESTDIR)$(man1dir)/$$f ; done ; exit 0
X-	test -w /etc || exit 0 ; for f in $(man5) ; do test -f $(DESTDIR)$(man5dir)/$$f && chown bin $(DESTDIR)$(man5dir)/$$f && chgrp bin $(DESTDIR)$(man5dir)/$$f ; done ; exit 0
X-	test -w /etc || exit 0 ; for f in $(man7) ; do test -f $(DESTDIR)$(man7dir)/$$f && chown bin $(DESTDIR)$(man7dir)/$$f && chgrp bin $(DESTDIR)$(man7dir)/$$f ; done ; exit 0
X-	test -w /etc || exit 0 ; for f in $(man8) ; do test -f $(DESTDIR)$(man8dir)/$$f && chown bin $(DESTDIR)$(man8dir)/$$f && chgrp bin $(DESTDIR)$(man8dir)/$$f ; done ; exit 0
X+#	test -w /etc || exit 0 ; for f in $(mandir) $(man1dir) $(man5dir) $(man7dir) $(man8dir) ; do test -d $(DESTDIR)$$f && chown bin $(DESTDIR)$$f && chgrp bin $(DESTDIR)$$f ; done ; exit 0
X+#	test -w /etc || exit 0 ; for f in $(man1) ; do test -f $(DESTDIR)$(man1dir)/$$f && chown bin $(DESTDIR)$(man1dir)/$$f && chgrp bin $(DESTDIR)$(man1dir)/$$f ; done ; exit 0
X+#	test -w /etc || exit 0 ; for f in $(man5) ; do test -f $(DESTDIR)$(man5dir)/$$f && chown bin $(DESTDIR)$(man5dir)/$$f && chgrp bin $(DESTDIR)$(man5dir)/$$f ; done ; exit 0
X+#	test -w /etc || exit 0 ; for f in $(man7) ; do test -f $(DESTDIR)$(man7dir)/$$f && chown bin $(DESTDIR)$(man7dir)/$$f && chgrp bin $(DESTDIR)$(man7dir)/$$f ; done ; exit 0
X+#	test -w /etc || exit 0 ; for f in $(man8) ; do test -f $(DESTDIR)$(man8dir)/$$f && chown bin $(DESTDIR)$(man8dir)/$$f && chgrp bin $(DESTDIR)$(man8dir)/$$f ; done ; exit 0
X 	for f in $(htmldoc_DATA) ; do chmod 444 $(DESTDIR)$(htmldocdir)/$$f ; done
X-	test -w /etc || exit 0; for f in $(htmldoc_DATA) ; do chown bin $(DESTDIR)$(htmldocdir)/$$f ; chgrp bin $(DESTDIR)$(htmldocdir)/$$f ; done
X+#	test -w /etc || exit 0; for f in $(htmldoc_DATA) ; do chown bin $(DESTDIR)$(htmldocdir)/$$f ; chgrp bin $(DESTDIR)$(htmldocdir)/$$f ; done
X 
X status.html: config.status
X 
X@@ -1160,24 +1160,24 @@
X 	@SUBDIRS="$(SUBDIRS)" ; for f in $$SUBDIRS ; do ( cd $$f && $(MAKE) $(AM_MAKEFLAGS) install-perms ) ; cat /dev/null >>$$f/permissions.dat ; cat $$f/permissions.dat >>permissions.dat ; done
X 
X install-perms-local:
X-	@echo @mandir@ 755 bin bin >>permissions.dat
X-	@echo $(man1dir) 755 bin bin >>permissions.dat
X-	@echo $(man5dir) 755 bin bin >>permissions.dat
X-	@echo $(man7dir) 755 bin bin >>permissions.dat
X-	@echo $(man8dir) 755 bin bin >>permissions.dat
X-	@for f in $(man1) ; do	\
X-	echo $(man1dir)/$$f 644 bin bin man >>permissions.dat ; done
X-	@for f in $(man5) ; do	\
X-	echo $(man5dir)/$$f 644 bin bin man >>permissions.dat ; done
X-	@for f in $(man7) ; do	\
X-	echo $(man7dir)/$$f 644 bin bin man >>permissions.dat ; done
X-	@for f in $(man8) ; do	\
X-	echo $(man8dir)/$$f 644 bin bin man >>permissions.dat ; done
X-	@for f in $(man_LINKS) ; do	\
X-	echo $$f 644 bin bin man >>permissions.dat ; done
X-	@echo $(htmldocdir) 755 bin bin >>permissions.dat
X-	@for f in $(htmldoc_DATA) ; do \
X-	echo $(htmldocdir)/$$f 444 bin bin doc >>permissions.dat ; done
X+#	@echo @mandir@ 755 bin bin >>permissions.dat
X+#	@echo $(man1dir) 755 bin bin >>permissions.dat
X+#	@echo $(man5dir) 755 bin bin >>permissions.dat
X+#	@echo $(man7dir) 755 bin bin >>permissions.dat
X+#	@echo $(man8dir) 755 bin bin >>permissions.dat
X+#	@for f in $(man1) ; do	\
X+#	echo $(man1dir)/$$f 644 bin bin man >>permissions.dat ; done
X+#	@for f in $(man5) ; do	\
X+#	echo $(man5dir)/$$f 644 bin bin man >>permissions.dat ; done
X+#	@for f in $(man7) ; do	\
X+#	echo $(man7dir)/$$f 644 bin bin man >>permissions.dat ; done
X+#	@for f in $(man8) ; do	\
X+#	echo $(man8dir)/$$f 644 bin bin man >>permissions.dat ; done
X+#	@for f in $(man_LINKS) ; do	\
X+#	echo $$f 644 bin bin man >>permissions.dat ; done
X+#	@echo $(htmldocdir) 755 bin bin >>permissions.dat
X+#	@for f in $(htmldoc_DATA) ; do \
X+#	echo $(htmldocdir)/$$f 444 bin bin doc >>permissions.dat ; done
X 
X htmldoc: $(htmldocfiles)
X 	echo '/icon\.gif/a'"\\" >htmldoc.sed
END-of-courier/files/patch-courier::doc::Makefile.in
echo x - courier/files/patch-courier::module.fax
sed 's/^X//' >courier/files/patch-courier::module.fax << 'END-of-courier/files/patch-courier::module.fax'
X--- courier/module.fax/application-pdf.filter.in.orig	Mon Mar  4 19:32:16 2002
X+++ courier/module.fax/application-pdf.filter.in	Fri Jun  7 10:21:37 2002
X@@ -8,7 +8,4 @@
X . @filterbindir@/init
X 
X cat >$OUTDIR/.pdf
X-@PDFTOPS@ -q $OUTDIR/.pdf $OUTDIR/.ps
X-rm -f $OUTDIR/.pdf
X-
X-$GS -sDEVICE=faxg3 $FAXRES -dBATCH -sOutputFile=$OUTDIR/f%04d -dNOPAUSE -q -dSAFER - <$OUTDIR/.ps
X+exec $GS -sDEVICE=faxg3 $FAXRES -dBATCH -sOutputFile=$OUTDIR/f%04d -dNOPAUSE -q -dSAFER -c save pop -_ <$OUTDIR/.pdf
X--- courier/module.fax/application-postscript.filter.in.orig	Mon Mar  4 19:32:16 2002
X+++ courier/module.fax/application-postscript.filter.in	Fri Jun  7 10:20:55 2002
X@@ -7,4 +7,4 @@
X 
X . @filterbindir@/init
X 
X-$GS -sDEVICE=faxg3 $FAXRES -dBATCH -sOutputFile=$OUTDIR/f%04d -dNOPAUSE -q -dSAFER -
X+exec $GS -sDEVICE=faxg3 $FAXRES -dBATCH -sOutputFile=$OUTDIR/f%04d -dNOPAUSE -q -dSAFER -_
X--- courier/module.fax/coverpage.in.orig	Mon Mar  4 19:32:16 2002
X+++ courier/module.fax/coverpage.in	Fri Jun  7 10:23:51 2002
X@@ -49,4 +49,4 @@
X rm -f $OUTDIR/.tbl
X $DPOST <$OUTDIR/.troff >$OUTDIR/.dpost
X rm -f $OUTDIR/.troff
X-$GS -sDEVICE=faxg3 $FAXRES -dBATCH -sOutputFile=$OUTDIR/f%04d -dNOPAUSE -q -dSAFER - <$OUTDIR/.dpost
X+exec $GS -sDEVICE=faxg3 $FAXRES -dBATCH -sOutputFile=$OUTDIR/f%04d -dNOPAUSE -q -dSAFER -_ <$OUTDIR/.dpost
X--- courier/module.fax/text-plain.filter.in.orig	Mon Mar  4 19:32:16 2002
X+++ courier/module.fax/text-plain.filter.in	Fri Jun  7 10:24:54 2002
X@@ -27,4 +27,4 @@
X rm -f $OUTDIR/.troff
X $DPOST <$OUTDIR/.dpost >$OUTDIR/.ps
X rm -f $OUTDIR/.dpost
X-$GS -sDEVICE=faxg3 $FAXRES -dBATCH -sOutputFile=$OUTDIR/f%04d -dNOPAUSE -q -dSAFER - <$OUTDIR/.ps
X+exec $GS -sDEVICE=faxg3 $FAXRES -dBATCH -sOutputFile=$OUTDIR/f%04d -dNOPAUSE -q -dSAFER -_ <$OUTDIR/.ps
END-of-courier/files/patch-courier::module.fax
echo x - courier/files/patch-courier::perms.sh.in
sed 's/^X//' >courier/files/patch-courier::perms.sh.in << 'END-of-courier/files/patch-courier::perms.sh.in'
X--- courier/perms.sh.in.orig	Thu Jan 27 21:53:58 2005
X+++ courier/perms.sh.in	Thu Jan 27 21:53:58 2005
X@@ -10,9 +10,6 @@
X exec_prefix="@exec_prefix@"
X 
X PERMS="
X-.			755
X-
X-@localstatedir@		755	x	bin	bin
X @localstatedir@/tmp	770
X @localstatedir@/msgs	750
X @localstatedir@/msgq	750
X@@ -45,7 +42,6 @@
X @sysconfdir@/rfcerr2046.txt	444	config
X @sysconfdir@/rfcerr2047.txt	444	config
X 
X-@libexecdir@		755	x	bin	bin
X @libexecdir@/courier	755	x	bin	bin
X @libexecdir@/courier/modules	755	x	bin	bin
X @libexecdir@/courier/submitmkdir	4550
X@@ -59,13 +55,12 @@
X @libexecdir@/courier/makedatprog	555
X @libexecdir@/courier/imaplogin		555	x	bin	bin
X @libexecdir@/courier/pcpd		555	x	bin	bin
X-@libexecdir@/courier/webmail		700	x	root	bin
X+@libexecdir@/courier/webmail		500	x	root	bin
X @libexecdir@/courier/webmail/webmail	555	x	root	bin
X @libexecdir@/courier/sqwebmaild		555
X-@libexecdir@/courier/sqwebpasswd	2755
X-@libexecdir@/courier/webmail/webadmin	4555	x	root	bin
X+@libexecdir@/courier/sqwebpasswd	2555
X+@libexecdir@/courier/webmail/webadmin	4511	x	root	bin
X 
X-@sbindir@			755	x	bin	bin
X @sbindir@/courier		555
X @sbindir@/showconfig		555
X @sbindir@/showmodules		550
X@@ -78,7 +73,6 @@
X @datadir@/imapd			555	x	bin	bin
X @datadir@/imapd-ssl		555	x	bin	bin
X 
X-@bindir@			755	x	bin	bin
X @bindir@/cancelmsg		6555
X @bindir@/courier-config		555
X @bindir@/mailq			2555
X@@ -105,10 +99,10 @@
X @sbindir@/makealiases		550
X @datadir@/makehosteddomains	555
X @sbindir@/makehosteddomains	555
X-@datadir@/pop3d			755
X-@sbindir@/pop3d			755
X-@datadir@/pop3d-ssl		755
X-@sbindir@/pop3d-ssl		755
X+@datadir@/pop3d			555
X+@sbindir@/pop3d			555
X+@datadir@/pop3d-ssl		555
X+@sbindir@/pop3d-ssl		555
X @sbindir@/webgpg		555
X 
X @datadir@			755	x	bin	bin
X@@ -202,7 +196,7 @@
X if test "@HAVE_LDAP@" != 0
X then
X 	echo @sysconfdir@/ldapaliasrc.dist 640 @mailuser@ @mailgroup@ config
X-	echo @sbindir@/courierldapaliasd 700 @mailuser@ @mailgroup@
X+	echo @sbindir@/courierldapaliasd 500 @mailuser@ @mailgroup@
X fi
X 
X echo @datadir@/sqwebmail/images 755 @mailuser@ @mailgroup@
END-of-courier/files/patch-courier::perms.sh.in
echo x - courier/files/crontab.in
sed 's/^X//' >courier/files/crontab.in << 'END-of-courier/files/crontab.in'
X# $FreeBSD: ports/mail/courier/files/crontab.in,v 1.1 2005/07/16 22:52:35 pav Exp $
X#minute	hour	mday	month	wday	command
X25	*	*	*	*	%%PREFIX%%/share/courier/sqwebmail/cleancache.pl
END-of-courier/files/crontab.in
echo x - courier/files/patch-courier::submit.C
sed 's/^X//' >courier/files/patch-courier::submit.C << 'END-of-courier/files/patch-courier::submit.C'
X--- courier/submit.C.orig	Fri Apr 22 21:38:00 2005
X+++ courier/submit.C	Fri Apr 22 21:38:00 2005
X@@ -531,6 +531,7 @@
X 	(*hdrOut) += str;
X 	(*hdrOut) += " (";
X 	(*hdrOut) += errmsg_buf;
X+/*
X 	(*hdrOut) += ")\n  SPF=";
X 	(*hdrOut) += checkname;
X 	(*hdrOut) += ";\n";
X@@ -550,6 +551,43 @@
X 		(*hdrOut) += v ? v:strerror(errno);
X 		(*hdrOut) += ";\n";
X 	}
X+*/
X+	(*hdrOut) += ")\n  ";
X+	(*hdrOut) += checkname;
X+	{
X+		char *v=strdup(values[0] ? values[0] : "");
X+
X+		for (q=v; q && *q; q++)
X+			if (*q < ' ' || *q >= 127)
X+				*q='?';
X+			else if (*q == ';')
X+				*q=' ';
X+		(*hdrOut) += " ";
X+		(*hdrOut) += v ? v:strerror(errno);
X+	}
X+	{
X+		char *v=strdup(values[2] ? values[2] : "");
X+
X+		for (q=v; q && *q; q++)
X+			if (*q < ' ' || *q >= 127)
X+				*q='?';
X+			else if (*q == ';')
X+				*q=' ';
X+		(*hdrOut) += " (";
X+		(*hdrOut) += v ? v:strerror(errno);
X+	}
X+	{
X+		char *v=strdup(values[1] ? values[1] : "");
X+
X+		for (q=v; q && *q; q++)
X+			if (*q < ' ' || *q >= 127)
X+				*q='?';
X+			else if (*q == ';')
X+				*q=' ';
X+		(*hdrOut) += " [";
X+		(*hdrOut) += v ? v:strerror(errno);
X+	}
X+	(*hdrOut) += "]);\n";
X 	return str;
X }
X 
END-of-courier/files/patch-courier::submit.C
echo x - courier/files/patch-liblock::locktest.c
sed 's/^X//' >courier/files/patch-liblock::locktest.c << 'END-of-courier/files/patch-liblock::locktest.c'
X--- liblock/locktest.c.orig	Mon Dec  6 08:18:55 1999
X+++ liblock/locktest.c	Mon Dec  6 08:18:55 1999
X@@ -5,6 +5,7 @@
X 
X /* $Id */
X 
X+#include	<paths.h>
X #include	"liblock.h"
X #if	USE_FCNTL
X #include	"lockfcntl.c"
X@@ -20,11 +21,23 @@
X 
X int main()
X {
X+#define FILENAME	"courier-authlib.locktest.XXXXX"
X int	fd[2];
X pid_t	p;
X int	s;
X int	f;
X 
X+	char *name;
X+	const char *tmpdir;
X+	if ((tmpdir = (char *)getenv("TMPDIR")) == NULL)
X+		tmpdir = _PATH_TMP;
X+	(void)asprintf(&name, "%s%s%s", tmpdir,
X+		(tmpdir[strlen(tmpdir) - 1] == '/') ? "" : "/", FILENAME);
X+	if (name == NULL) {
X+		perror("get filename");
X+		exit(1);
X+	}
X+
X 	signal(SIGCHLD, SIG_DFL);
X 	if (pipe(fd))
X 	{
X@@ -32,6 +45,12 @@
X 		return (1);
X 	}
X 
X+	if ((f=mkstemp(name)) < 0)
X+	{
X+		perror("open");
X+		exit(1);
X+	}
X+
X 	if ((p=fork()) == (pid_t)-1)
X 	{
X 		perror("fork");
X@@ -46,7 +65,7 @@
X 		read(fd[0], &c, 1);
X 		close(fd[0]);
X 
X-		if ((f=open("conftest.lock", O_RDWR|O_CREAT, 0644)) < 0)
X+		if ((f=open(name, O_RDWR)) < 0)
X 		{
X 			perror("open");
X 			exit(1);
X@@ -56,22 +75,18 @@
X 		if (ll_lockfd(f, ll_writelock, 0, 0))
X 		{
X 			close(f);
X+			unlink(name);
X 			exit(0);
X 		}
X 		close(f);
X 		exit(1);
X 	}
X-	
X-	if ((f=open("conftest.lock", O_RDWR|O_CREAT, 0644)) < 0)
X-	{
X-		perror("open");
X-		exit(1);
X-	}
X 
X 	if (ll_lockfd(f, ll_writelock, 0, 0))
X 	{
X 		perror("lock");
X 		close(f);
X+		unlink(name);
X 		exit(1);
X 	}
X 	close(fd[1]);
END-of-courier/files/patch-liblock::locktest.c
echo x - courier/files/pkg-install.in
sed 's/^X//' >courier/files/pkg-install.in << 'END-of-courier/files/pkg-install.in'
X#!/bin/sh
X#
X# $FreeBSD: ports/mail/courier/files/pkg-install.in,v 1.1 2005/07/16 22:52:35 pav Exp $
X#
X
XPKG_PREFIX=${PKG_PREFIX:=/usr/local}
X
XUSER=%%MAILOWN%%;	UID=%%MAILUID%%
XGROUP=%%MAILGRP%%;	GID=%%MAILGID%%
X
Xask() {
X    local question default answer
X
X    question=$1
X    default=$2
X    if [ -z "${PACKAGE_BUILDING}" ]; then
X        read -p "${question} [${default}]? " answer
X    fi
X    if [ -z "${answer}" ]; then
X        answer=${default}
X    fi
X    echo ${answer}
X}
X
Xyesno() {
X    local question default answer
X
X    question=$1
X    default=$2
X    while :; do
X        answer=$(ask "${question}" "${default}")
X        case "${answer}" in
X        [Yy]*)	return 0;;
X        [Nn]*)	return 1;;
X        esac
X        echo "Please answer yes or no."
X    done
X}
X
Xreplace() {
X    local orig repl
X    
X    orig=$1
X    repl=$2
X    if [ -e ${orig} ]; then
X        mv -f ${orig} ${orig}.OFF
X        chmod 0 ${orig}.OFF
X    fi
X    if [ -e ${repl} ]; then
X        ln -s ${repl} ${orig}
X    fi
X}
X
Xif [ ":$2" = ":POST-INSTALL" ]; then
X    if [ -x /sbin/sysctl ]; then
X        OSVERSION=`/sbin/sysctl -n kern.osreldate`
X    else
X        OSVERSION=`/usr/sbin/sysctl -n kern.osreldate`
X    fi
X    if [ ${OSVERSION} -ge 400014 ]; then
X        if yesno "Would you like to activate Courier in /etc/mail/mailer.conf" n; then
X            mv -f /etc/mail/mailer.conf /etc/mail/mailer.conf.old
X            echo "#"						>  /etc/mail/mailer.conf
X            echo -n "# Execute the Courier sendmail program"	>> /etc/mail/mailer.conf
X            echo ", named ${PKG_PREFIX}/bin/sendmail"		>> /etc/mail/mailer.conf
X            echo "#"						>> /etc/mail/mailer.conf
X            echo "sendmail	${PKG_PREFIX}/bin/sendmail"	>> /etc/mail/mailer.conf
X            echo "send-mail	${PKG_PREFIX}/bin/sendmail"	>> /etc/mail/mailer.conf
X            echo "mailq		${PKG_PREFIX}/bin/mailq"	>> /etc/mail/mailer.conf
X            echo "newaliases	${PKG_PREFIX}/sbin/makealiases"	>> /etc/mail/mailer.conf
X            echo "Done."
X        fi
X    else
X        if yesno "Would you like to replace {sendmail,mailq,newaliases} with Courier versions" n; then
X            replace /usr/sbin/sendmail	${PKG_PREFIX}/bin/sendmail
X            replace /usr/bin/mailq	${PKG_PREFIX}/bin/mailq
X            replace /usr/bin/newaliases	${PKG_PREFIX}/sbin/makealiases
X            echo "Done."
X        fi
X    fi
Xfi
END-of-courier/files/pkg-install.in
echo x - courier/files/pkg-message.in
sed 's/^X//' >courier/files/pkg-message.in << 'END-of-courier/files/pkg-message.in'
X		RTFM before configuring and running Courier!!!
X
X	Check and/or modify the following configuration files to
X	suit your needs:
X
X		%%PREFIX%%/etc/courier/courierd
X		%%PREFIX%%/etc/courier/esmtpd
X		%%PREFIX%%/etc/courier/esmtpd-msa
X		%%PREFIX%%/etc/courier/esmtpd-ssl
X%%WITHFAX%%		%%PREFIX%%/etc/courier/faxcoverpage.tr
X%%WITHFAX%%		%%PREFIX%%/etc/courier/faxnotifyrc
X%%WITHFAX%%		%%PREFIX%%/etc/courier/faxrc
X		%%PREFIX%%/etc/courier/imapd
X		%%PREFIX%%/etc/courier/imapd-ssl
X		%%PREFIX%%/etc/courier/ldapaddressbook
X%%WITHLDAP%%		%%PREFIX%%/etc/courier/ldapaliasrc
X		%%PREFIX%%/etc/courier/pop3d
X		%%PREFIX%%/etc/courier/pop3d-ssl
X
X	Do not forget to update /etc/pam.d/ or /etc/pam.conf with
X	the contents of %%PREFIX%%/etc/courier/*.authpam.
X
X	To enable Courier-MTA to start at boot time,
X	set these variables in your /etc/rc.conf file:
X
X		courier_enable="YES"                                
X		sendmail_enable="NONE"                                
X
X	Also, you will want to disable some Sendmail 
X	specific daily maintenance routines in your
X	/etc/periodic.conf file:
X
X		daily_clean_hoststat_enable="NO"
X		daily_status_mail_rejects_enable="NO"                                      
X		daily_status_include_submit_mailq="NO"
X		daily_submit_queuerun="NO"
X
X	Documentation (if installed locally) is located in
X	%%DOCSDIR%%/ otherwise see
X	http://www.Courier-MTA.org/
END-of-courier/files/pkg-message.in
echo c - courier/scripts
mkdir -p courier/scripts > /dev/null 2>&1
echo x - courier/scripts/c_rehash
sed 's/^X//' >courier/scripts/c_rehash << 'END-of-courier/scripts/c_rehash'
X#!/usr/bin/perl
X
X
X# Perl c_rehash script, scan all files in a directory
X# and add symbolic links to their hash values.
X
Xmy $openssl;
X
Xmy $dir = "/usr/local/ssl";
X
Xif(defined $ENV{OPENSSL}) {
X	$openssl = $ENV{OPENSSL};
X} else {
X	$openssl = "openssl";
X	$ENV{OPENSSL} = $openssl;
X}
X
X$ENV{PATH} .= ":$dir/bin";
X
Xif(! -x $openssl) {
X	my $found = 0;
X	foreach (split /:/, $ENV{PATH}) {
X		if(-x "$_/$openssl") {
X			$found = 1;
X			last;
X		}	
X	}
X	if($found == 0) {
X		print STDERR "c_rehash: rehashing skipped ('openssl' program not available)\n";
X		exit 0;
X	}
X}
X
Xif(@ARGV) {
X	@dirlist = @ARGV;
X} elsif($ENV{SSL_CERT_DIR}) {
X	@dirlist = split /:/, $ENV{SSL_CERT_DIR};
X} else {
X	$dirlist[0] = "$dir/certs";
X}
X
X
Xforeach (@dirlist) {
X	if(-d $_ and -w $_) {
X		hash_dir($_);
X	}
X}
X
Xsub hash_dir {
X	my %hashlist;
X	print "Doing $_[0]\n";
X	chdir $_[0];
X	opendir(DIR, ".");
X	my @flist = readdir(DIR);
X	# Delete any existing symbolic links
X	foreach (grep {/^[\da-f]+\.r{0,1}\d+$/} @flist) {
X		if(-l $_) {
X			unlink $_;
X		}
X	}
X	closedir DIR;
X	FILE: foreach $fname (grep {/\.pem$/} @flist) {
X		# Check to see if certificates and/or CRLs present.
X		my ($cert, $crl) = check_file($fname);
X		if(!$cert && !$crl) {
X			print STDERR "WARNING: $fname does not contain a certificate or CRL: skipping\n";
X			next;
X		}
X		link_hash_cert($fname) if($cert);
X		link_hash_crl($fname) if($crl);
X	}
X}
X
Xsub check_file {
X	my ($is_cert, $is_crl) = (0,0);
X	my $fname = $_[0];
X	open IN, $fname;
X	while(<IN>) {
X		if(/^-----BEGIN (.*)-----/) {
X			my $hdr = $1;
X			if($hdr =~ /^(X509 |TRUSTED |)CERTIFICATE$/) {
X				$is_cert = 1;
X				last if($is_crl);
X			} elsif($hdr eq "X509 CRL") {
X				$is_crl = 1;
X				last if($is_cert);
X			}
X		}
X	}
X	close IN;
X	return ($is_cert, $is_crl);
X}
X
X
X# Link a certificate to its subject name hash value, each hash is of
X# the form <hash>.<n> where n is an integer. If the hash value already exists
X# then we need to up the value of n, unless its a duplicate in which
X# case we skip the link. We check for duplicates by comparing the
X# certificate fingerprints
X
Xsub link_hash_cert {
X		my $fname = $_[0];
X		$fname =~ s/'/'\\''/g;
X		my ($hash, $fprint) = `"$openssl" x509 -hash -fingerprint -noout -in '$fname'`;
X		chomp $hash;
X		chomp $fprint;
X		$fprint =~ s/^.*=//;
X		$fprint =~ tr/://d;
X		my $suffix = 0;
X		# Search for an unused hash filename
X		while(exists $hashlist{"$hash.$suffix"}) {
X			# Hash matches: if fingerprint matches its a duplicate cert
X			if($hashlist{"$hash.$suffix"} eq $fprint) {
X				print STDERR "WARNING: Skipping duplicate certificate $fname\n";
X				return;
X			}
X			$suffix++;
X		}
X		$hash .= ".$suffix";
X		print "$fname => $hash\n";
X		$symlink_exists=eval {symlink("",""); 1};
X		if ($symlink_exists) {
X			symlink $fname, $hash;
X		} else {
X			system ("cp", $fname, $hash);
X		}
X		$hashlist{$hash} = $fprint;
X}
X
X# Same as above except for a CRL. CRL links are of the form <hash>.r<n>
X
Xsub link_hash_crl {
X		my $fname = $_[0];
X		$fname =~ s/'/'\\''/g;
X		my ($hash, $fprint) = `"$openssl" crl -hash -fingerprint -noout -in '$fname'`;
X		chomp $hash;
X		chomp $fprint;
X		$fprint =~ s/^.*=//;
X		$fprint =~ tr/://d;
X		my $suffix = 0;
X		# Search for an unused hash filename
X		while(exists $hashlist{"$hash.r$suffix"}) {
X			# Hash matches: if fingerprint matches its a duplicate cert
X			if($hashlist{"$hash.r$suffix"} eq $fprint) {
X				print STDERR "WARNING: Skipping duplicate CRL $fname\n";
X				return;
X			}
X			$suffix++;
X		}
X		$hash .= ".r$suffix";
X		print "$fname => $hash\n";
X		$symlink_exists=eval {symlink("",""); 1};
X		if ($symlink_exists) {
X			symlink $fname, $hash;
X		} else {
X			system ("cp", $fname, $hash);
X		}
X		$hashlist{$hash} = $fprint;
X}
X
END-of-courier/scripts/c_rehash
echo x - courier/Makefile
sed 's/^X//' >courier/Makefile << 'END-of-courier/Makefile'
X# New ports collection makefile for: Courier MTA
X# Date created:		17 Oct 2001
X# Whom:			Yarema <yds@CoolRat.org>
X#
X# $FreeBSD: ports/mail/courier/Makefile,v 1.34 2005/07/16 22:52:34 pav Exp $
X#
X
XPORTNAME=	courier
XPORTVERSION=	0.52.0
XCATEGORIES=	mail ipv6
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	courier
X
XMAINTAINER=	yds@CoolRat.org
XCOMMENT=	Courier SMTP IMAP POP3 HTTP mail server suite
X
XBUILD_DEPENDS=	courierauthconfig:${PORTSDIR}/security/courier-authlib-base
XLIB_DEPENDS=	fam.0:${PORTSDIR}/devel/fam
XRUN_DEPENDS=	courierauthconfig:${PORTSDIR}/security/courier-authlib-base \
X		${LOCALBASE}/share/sysconftool/sysconftool:${PORTSDIR}/devel/sysconftool \
X		${LOCALBASE}/etc/mime.types:${PORTSDIR}/misc/mime-support \
X		${SITE_PERL}/Net/CIDR.pm:${PORTSDIR}/net-mgmt/p5-Net-CIDR
X
XCONFLICTS=	exim-4.* courier-imap-2.* maildrop-1.* \
X		postfix-1.* postfix-2.* \
X		qmail-1.* qmail-*-1.* \
X		sendmail-8.* sendmail-*-8.* \
X		smail-3.* sqwebmail-3.* zmailer-2.*
X
X.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
XIS_INTERACTIVE=	yes
X.endif
X
X#
X# User-serviceable variables
X#
X# [ There's no need to add trailing ``/''s ]
X#
X# set IMAGEURL to where on the web server URL the images are found
X# set CACHEOWN to who you'd like to own the cache files
X# set MAILDROPDEFAULT to what you'd like the $DEFAULT in maildrop to be
X#     recomended values are: /var/mail, ./Mailbox or ./Maildir
X#
XIMAGEURL?=	/webmail
XCACHEOWN?=	pop
XMAILDROPDEFAULT?=./Maildir
X# End of user-serviceable variables
XMAILOWN=	courier
XMAILGRP=	courier
XMAILUID=	465
XMAILGID=	465
XETCDIR=		${PREFIX}/etc
XSYSCONFDIR=	${ETCDIR}/courier
XUSERDB?=	${ETCDIR}/userdb
XLIBEXECDIR=	${PREFIX}/libexec
XLOCALSTATEDIR=	/var/spool/courier
XCACHEDIR=	/var/spool/webmail
XCALENDIR=	/var/spool/calendar
XMIMETYPES=	${LOCALBASE}/etc/mime.types
XWITH_TRANSPORT=	local esmtp dsn
X
XUSE_BZIP2=	yes
XUSE_SUBMAKE=	yes
XUSE_PERL5=	yes
XUSE_GMAKE=	yes
XUSE_OPENSSL=	yes
XUSE_REINPLACE=	yes
XUSE_LIBTOOL_VER=15
X
X.if defined(WITH_RCORDER)
XUSE_RCORDER=	courier.sh
X.else
XUSE_RC_SUBR=	courier.sh
X.endif
X
XCPPFLAGS+=	-I${LOCALBASE}/include -I${PREFIX}/include
XLDFLAGS+=	-L${LOCALBASE}/lib -L${PREFIX}/include
XCONFIGURE_ENV=	REHASH=${SCRIPTDIR}/c_rehash \
X		CPPFLAGS='${CPPFLAGS}' \
X		LDFLAGS='${LDFLAGS}'
XMAKE_ENV:=	${CONFIGURE_ENV}
X
XCONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
XCONFIGURE_ARGS=	--disable-root-check --with-db=db \
X		--enable-syslog=1 --enable-use-flock \
X		--program-transform-name=s,^,, \
X		--enable-utf7-folder-encoding \
X		--enable-unicode \
X		--with-mailuser=${MAILOWN} \
X		--with-mailgroup=${MAILGRP} \
X		--with-mailuid=${MAILUID} \
X		--with-mailgid=${MAILGID} \
X		--with-etcdir=${ETCDIR} \
X		--sysconfdir=${SYSCONFDIR} \
X		--with-userdb=${USERDB} \
X		--datadir=${DATADIR} \
X		--libexecdir=${LIBEXECDIR} \
X		--localstatedir=${LOCALSTATEDIR} \
X		--enable-mimetypes=${MIMETYPES} \
X		--enable-imageurl=${IMAGEURL} \
X		--with-cachedir=${CACHEDIR} \
X		--with-cacheowner=${CACHEOWN} \
X		--with-calendardir=${CALENDIR} \
X		--with-transport='${WITH_TRANSPORT}' \
X		--with-default-maildrop=${MAILDROPDEFAULT} \
X		--with-paranoid-smtpext \
X		--enable-workarounds-for-imap-client-bugs \
X		--cache-file=${WRKDIR}/courier.cache
X
XINSTALL_TARGET=	install-strip install-perms
X
XPLIST_SUB+=	BINOWN="${BINOWN}" BINGRP="${BINGRP}" \
X		MAILOWN="${MAILOWN}" MAILGRP="${MAILGRP}" \
X		MAILUID="${MAILUID}" MAILGID="${MAILGID}" \
X		CACHEOWN="${CACHEOWN}" CACHEDIR="${CACHEDIR}" \
X		CALENDIR="${CALENDIR}" LOCALSTATEDIR="${LOCALSTATEDIR}"
XSUB_LIST:=	${PLIST_SUB}
XSUB_FILES+=	pkg-install pkg-message crontab
X
XOPTIONS+=LDAP "LDAP-based mail aliasing support"
X.if (exists(${LOCALBASE}/lib/libldap.a) && exists(${LOCALBASE}/lib/liblber.a)) || defined(WITH_LDAP)
XOPTIONS+=on
X.else
XOPTIONS+=off
X.endif
X
X.if exists(${.CURDIR}/../../security/courier-authlib/Makefile.opt)
X.include "${.CURDIR}/../../security/courier-authlib/Makefile.opt"
X.endif
X
XOPTIONS+=GNUPG "GNU Privacy Guard support for WebMail"
X.if exists(${LOCALBASE}/bin/gpg) || defined(WITH_GNUPG)
XOPTIONS+=on
X.else
XOPTIONS+=off
X.endif
X
XOPTIONS+=ASPELL "ASpell support for WebMail  / mutually"
X.if exists(${LOCALBASE}/bin/aspell) || defined(WITH_ASPELL)
XOPTIONS+=on
X.else
XOPTIONS+=off
X.endif
X
XOPTIONS+=ISPELL "ISpell support for WebMail  \ exclusive"
X.if exists(${LOCALBASE}/bin/ispell) || defined(WITH_ISPELL)
XOPTIONS+=on
X.else
XOPTIONS+=off
X.endif
X
XOPTIONS+=PROCMAIL "Procmail local delivery support"
X.if exists(${LOCALBASE}/bin/procmail) || defined(WITH_PROCMAIL)
XOPTIONS+=on
X.else
XOPTIONS+=off
X.endif
X
XOPTIONS+=SENDFAX "mgetty+sendfax support"
X.if exists(${LOCALBASE}/sbin/sendfax) && exists(${LOCALBASE}/bin/pnmscale) && exists(${LOCALBASE}/bin/gs) || defined(WITH_SENDFAX)
XOPTIONS+=on
X.else
XOPTIONS+=off
X.endif
X
XOPTIONS+=UUCP "UUCP support"
X.if exists(/usr/bin/uux) || exists(${LOCALBASE}/bin/uux) || defined(WITH_UUCP)
XOPTIONS+=on
X.else
XOPTIONS+=off
X.endif
X
XOPTIONS+=IPV6 "IPv6 support"
X.if defined(WITH_IPV6)
XOPTIONS+=on
X.else
XOPTIONS+=off
X.endif
X
X.include <bsd.port.pre.mk>
X.include "${.CURDIR}/Makefile.doc"
X.include "${.CURDIR}/Makefile.man"
X.include "${.CURDIR}/Makefile.own"
X
X.if defined(WITH_LDAP) && !defined(WITHOUT_LDAP)
XUSE_OPENLDAP=	yes
XWITH_AUTH_LDAP=	yes
XRUN_DEPENDS+=	${LOCALBASE}/lib/courier-authlib/libauthldap.so:${PORTSDIR}/net/courier-authlib-ldap
XCONFIGURE_ARGS+=--with-ldapaliasd
XPLIST_SUB+=	WITHLDAP=""
XSUB_LIST+=	WITHLDAP=""
X.else
XCONFIGURE_ARGS+=--without-ldapaliasd
XPLIST_SUB+=	WITHLDAP="@comment "
XSUB_LIST+=	WITHLDAP="@comment "
X.endif
X
X.if exists(${.CURDIR}/../../security/courier-authlib/Makefile.dep)
X.include "${.CURDIR}/../../security/courier-authlib/Makefile.dep"
X.endif
X
X.if defined(WITH_GNUPG) && !defined(WITHOUT_GNUPG)
XBUILD_DEPENDS+=	gpg:${PORTSDIR}/security/gnupg
XRUN_DEPENDS+=	gpg:${PORTSDIR}/security/gnupg
X.endif
X
X.if defined(WITH_ASPELL) && !defined(WITHOUT_ASPELL) && !defined(WITH_ISPELL)
XBUILD_DEPENDS+=	aspell:${PORTSDIR}/textproc/aspell
XRUN_DEPENDS+=	aspell:${PORTSDIR}/textproc/aspell
XCONFIGURE_ARGS+=--with-ispell=${LOCALBASE}/bin/aspell
X.endif
X
X.if defined(WITH_ISPELL) && !defined(WITHOUT_ISPELL) && !defined(WITH_ASPELL)
XBUILD_DEPENDS+=	ispell:${PORTSDIR}/textproc/ispell
XRUN_DEPENDS+=	ispell:${PORTSDIR}/textproc/ispell
XCONFIGURE_ARGS+=--with-ispell=${LOCALBASE}/bin/ispell
X.endif
X
X.if defined(WITH_ASPELL) && defined(WITH_ISPELL)
XBROKEN=	"ASpell and ISpell are mutually exclusive. Run 'make config' to (re)configure ${PKGNAME}"
X.endif
X
X.if !defined(WITH_ASPELL) && !defined(WITH_ISPELL)
XCONFIGURE_ARGS+=--without-ispell
X.endif
X
X.if defined(WITH_PROCMAIL) && !defined(WITHOUT_PROCMAIL)
XBUILD_DEPENDS+=	procmail:${PORTSDIR}/mail/procmail
XRUN_DEPENDS+=	procmail:${PORTSDIR}/mail/procmail
X.endif
X
X.if defined(WITH_SENDFAX) && !defined(WITHOUT_SENDFAX)
XUSE_GHOSTSCRIPT=yes
XSENDFAX_DEPENDS=sendfax:${PORTSDIR}/comms/mgetty+sendfax \
X		pnmscale:${PORTSDIR}/graphics/netpbm
XBUILD_DEPENDS+=	${SENDFAX_DEPENDS}
XRUN_DEPENDS+=	${SENDFAX_DEPENDS}
XWITH_TRANSPORT+=fax
XPLIST_SUB+=	WITHFAX=""
XSUB_LIST+=	WITHFAX=""
X.else
XPLIST_SUB+=	WITHFAX="@comment "
XSUB_LIST+=	WITHFAX="@comment "
X.endif
X
X.if defined(WITH_UUCP) && !defined(WITHOUT_UUCP)
X.if !exists(/usr/bin/uux)
XBUILD_DEPENDS+=	uux:${PORTSDIR}/net/freebsd-uucp
XRUN_DEPENDS+=	uux:${PORTSDIR}/net/freebsd-uucp
X.endif
XWITH_TRANSPORT+=uucp
XPLIST_SUB+=	WITHUUCP=""
X.else
XPLIST_SUB+=	WITHUUCP="@comment "
X.endif
X
X.if defined(WITH_IPV6) || !defined(WITHOUT_IPV6)
XCONFIGURE_ARGS+=--with-ipv6
X.else
XCONFIGURE_ARGS+=--without-ipv6
X.endif
X
Xpre-everything::
X	@${ECHO_MSG} "===> --------------------------------------------------------"
X	@${ECHO_MSG} "===>	Run 'make config' to (re)configure ${PKGNAME}"
X	@${ECHO_MSG} "===> --------------------------------------------------------"
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|@datadir@|@sysconfdir@|g' \
X		${WRKSRC}/*/mk*cert.* \
X		${WRKSRC}/*/*/mk*cert.*
X	@${REINPLACE_CMD} -e 's|^\(TLS_CERTFILE=\)@datadir@|\1@sysconfdir@|g' \
X		${WRKSRC}/*/*.dist.in \
X		${WRKSRC}/*/*/*.dist.in
X	@${REINPLACE_CMD} -e 's|^\(RANDFILE = \)@datadir@[^[:space:]]*|\1@sysconfdir@/random.tmp|g' \
X		${WRKSRC}/*/*.cnf.in \
X		${WRKSRC}/*/*/*.cnf.in
X	@${REINPLACE_CMD} -e 's|$$(INSTALL_DATA) \(.$$$$file.\)|${INSTALL_MAN} \1|' \
X		${WRKSRC}/Makefile.in \
X		${WRKSRC}/*/Makefile.in \
X		${WRKSRC}/*/*/Makefile.in \
X		${WRKSRC}/*/*/*/Makefile.in
X	@${REINPLACE_CMD} -e 's|^\(INSTALL_STRIP_PROGRAM=\).*$$|\1"${INSTALL_PROGRAM} -s"|' \
X			-e 's|; ldapaliasd="yes"||' \
X		${WRKSRC}/configure \
X		${WRKSRC}/*/configure \
X		${WRKSRC}/*/*/configure \
X		${WRKSRC}/*/*/*/configure
X	@${REINPLACE_CMD} -E -e 's/(root|bin)[[:space:]]*bin/root	wheel/g' \
X		${WRKSRC}/courier/perms.sh.in
X
Xpre-configure:
X	@if [ -f "${WRKDIR}/courier.cache" -a -s "${WRKDIR}/courier.cache" ]; then \
X		${RM} -f "${WRKDIR}/courier.cache"; \
X	fi
X
Xpost-build:
X	@${PERL} -pi -e 's|^(auth)\s+(required).*|$$1\t\t$$2\tpam_unix.so\ttry_first_pass|g;' \
X		     -e 's|^(account)\s+(required).*|$$1 \t$$2\tpam_unix.so|g;' \
X		     -e 's|^(session)\s+(required).*|$$1 \t$$2\tpam_permit.so|g;' \
X		${WRKSRC}/*/*.authpam* \
X		${WRKSRC}/*/*/*.authpam*
X	@${LN} -f ${WRKSRC}/gpglib/README.html		${WRKSRC}/gpglib/README.gpglib.html
X	@${LN} -f ${WRKSRC}/imap/BUGS			${WRKSRC}/imap/BUGS.imap
X	@${LN} -f ${WRKSRC}/imap/BUGS.html		${WRKSRC}/imap/BUGS.imap.html
X	@${LN} -f ${WRKSRC}/imap/README			${WRKSRC}/imap/README.imap
X	@${LN} -f ${WRKSRC}/imap/README.html		${WRKSRC}/imap/README.imap.html
X	@${LN} -f ${WRKSRC}/maildrop/README.html	${WRKSRC}/maildrop/README.maildrop.html
X	@${LN} -f ${WRKSRC}/pcp/README.html		${WRKSRC}/pcp/README.pcp.html
X	@${LN} -f ${WRKSRC}/webmail/BUGS		${WRKSRC}/webmail/BUGS.webmail
X	@${LN} -f ${WRKSRC}/webmail/BUGS.html		${WRKSRC}/webmail/BUGS.webmail.html
X	@${LN} -f ${WRKSRC}/webmail/SECURITY		${WRKSRC}/webmail/SECURITY.webmail
X	@${LN} -f ${WRKSRC}/webmail/SECURITY.html	${WRKSRC}/webmail/SECURITY.webmail.html
X
Xpost-install:
X	@${LN} -f ${SYSCONFDIR}/maildrop ${SYSCONFDIR}/maildropfilter
X	@${INSTALL_DATA} /dev/null ${SYSCONFDIR}/locallowercase
X	@${INSTALL_DATA} ${WRKDIR}/crontab ${PREFIX}/etc/courier/
X.for file in ${OWNER0}
X	@-${CHOWN} -Rh ${BINOWN}:${BINGRP} ${PREFIX}/${file}
X.endfor
X	@${GREP} '^@exec ' ${TMPPLIST} \
X		| ${SED} -e 's:^@exec ::' -e 's:%D:${PREFIX}:g' \
X		> ${WRKDIR}/.PLIST.exec \
X		&& ${SH} ${WRKDIR}/.PLIST.exec
X.if !defined(NOPORTDOCS)
X	@${INSTALL} ${_DOCOWNGRP} -d ${DOCSDIR}/html
X.for f in ${DOCS}
X	@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
X.endfor
X.for f in ${HTMLDOCS}
X	@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/html
X.endfor
X	@${INSTALL_DATA} ${DATADIR}/htmldoc/* ${DOCSDIR}/html
X.endif
X	@${RM} -rf ${DATADIR}/htmldoc
X	@-${CHOWN} -Rh ${SHAREOWN}:${SHAREGRP} ${DATADIR}
X	@${CHMOD} -R a+r ${DATADIR}/courierwebadmin
X	@${CHMOD} -R a-w ${DATADIR} ${LIBEXECDIR}/courier
X	@${CHMOD} 550 ${LIBEXECDIR}/courier/modules/esmtp/courieresmtp*
X	@${ECHO_MSG}
X	@${CAT} ${PKGMESSAGE}
X	@${ECHO_MSG}
X.if defined(BATCH) || defined(PACKAGE_BUILDING)
X	@${ECHO_MSG} "	To activate Courier in /etc/mail/mailer.conf or to"
X	@${ECHO_MSG} "	replace {sendmail,mailq,newaliases} with Courier"
X	@${ECHO_MSG} "	versions execute the following as root user:"
X	@${ECHO_MSG}
X	@${ECHO_MSG} "PKG_PREFIX=\"${PREFIX}\" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL"
X	@${ECHO_MSG}
X.else
X	@PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
X.endif
X
X.include <bsd.port.post.mk>
END-of-courier/Makefile
echo x - courier/Makefile.doc
sed 's/^X//' >courier/Makefile.doc << 'END-of-courier/Makefile.doc'
XDOCS=	AUTHORS \
X	BENCHMARKS \
X	COPYING \
X	COPYING.GPL \
X	ChangeLog \
X	ChangeLog.2001 \
X	INSTALL \
X	NEWS \
X	README \
X	TODO \
X	imap/BUGS.imap \
X	imap/README.imap \
X	imap/README.proxy \
X	maildir/README.maildirquota.txt \
X	maildir/README.sharedfolders.txt \
X	tcpd/README.couriertls \
X	webmail/BUGS.webmail \
X	webmail/SECURITY.webmail
X
XHTMLDOCS=NEWS.html \
X	gpglib/README.gpglib.html \
X	imap/BUGS.imap.html \
X	imap/README.imap.html \
X	imap/README.proxy.html \
X	maildir/README.maildirfilter.html \
X	maildir/README.maildirquota.html \
X	maildir/README.sharedfolders.html \
X	maildrop/README.maildrop.html \
X	pcp/README.pcp.html \
X	webmail/BUGS.webmail.html \
X	webmail/SECURITY.webmail.html
END-of-courier/Makefile.doc
echo x - courier/Makefile.man
sed 's/^X//' >courier/Makefile.man << 'END-of-courier/Makefile.man'
XMAN1=	\
X	cancelmsg.1 \
X	couriermlm.1 \
X	couriertcpd.1 \
X	couriertls.1 \
X	dot-forward.1 \
X	lockmail.1 \
X	mailbot.1 \
X	maildiracl.1 \
X	maildirkw.1 \
X	maildirmake.1 \
X	maildrop.1 \
X	mailq.1 \
X	makedat.1 \
X	makemime.1 \
X	mimegpg.1 \
X	preline.1 \
X	reformail.1 \
X	reformime.1 \
X	sendmail.1 \
X	testmxlookup.1
XMAN5=	\
X	dot-courier.5 \
X	maildir.5
XMAN7=	\
X	localmailfilter.7 \
X	maildirquota.7 \
X	maildropex.7 \
X	maildropfilter.7 \
X	maildropgdbm.7
XMAN8=	\
X	courier.8 \
X	courierfilter.8 \
X	courierldapaliasd.8 \
X	courierperlfilter.8 \
X	courierpop3d.8 \
X	deliverquota.8 \
X	dupfilter.8 \
X	esmtpd.8 \
X	imapd.8 \
X	makeacceptmailfor.8 \
X	makealiases.8 \
X	makehosteddomains.8 \
X	makepercentrelay.8 \
X	makesmtpaccess.8 \
X	mkesmtpdcert.8 \
X	mkimapdcert.8 \
X	mkpop3dcert.8 \
X	pop3d.8 \
X	submit.8
X
XMLINKS=	dot-forward.1 dotforward.1 \
X	sendmail.1 rmail.1 \
X	courierfilter.8 filterctl.8 \
X	courierpop3d.8 courierpop3login.8 \
X	esmtpd.8 esmtpd-msa.8 \
X	makesmtpaccess.8 makesmtpaccess-msa.8
X
X.if defined(WITH_LDAP) && !defined(WITHOUT_LDAP)
X#MAN8+=	courierldapaliasd.8
X.endif
X	
X.if defined(WITH_SENDFAX) && !defined(WITHOUT_SENDFAX)
XMAN8+=	courierfax.8
X.endif
X	
X.if defined(WITH_UUCP) && !defined(WITHOUT_UUCP)
XMAN8+=	courieruucp.8
XMLINKS+=courieruucp.8 makeuucpneighbors.8
X.endif
END-of-courier/Makefile.man
echo x - courier/Makefile.own
sed 's/^X//' >courier/Makefile.own << 'END-of-courier/Makefile.own'
XOWNER0=	bin/courier-config \
X	bin/couriermlm \
X	bin/couriertls \
X	bin/deliverquota \
X	bin/dotforward \
X	bin/imapd \
X	bin/lockmail \
X	bin/mailbot \
X	bin/maildirmake \
X	bin/maildiracl \
X	bin/maildirkw \
X	bin/makemime \
X	bin/mimegpg \
X	bin/preline \
X	bin/reformail \
X	bin/reformime \
X	bin/sendmail \
X	bin/testmxlookup \
X	etc/courier/courierd.dist \
X	etc/courier/enablefiltering \
X	etc/courier/esmtp.authpam \
X	etc/courier/esmtpd-msa.dist \
X	etc/courier/esmtpd-ssl.dist \
X	etc/courier/esmtpd.cnf \
X	etc/courier/esmtpd.dist \
X	etc/courier/imapd-ssl.dist \
X	etc/courier/imapd.authpam \
X	etc/courier/imapd.cnf \
X	etc/courier/imapd.dist \
X	etc/courier/ldapaddressbook.dist \
X	etc/courier/locallowercase \
X	etc/courier/maildrop \
X	etc/courier/maildropfilter \
X	etc/courier/pop3d-ssl.dist \
X	etc/courier/pop3d.authpam \
X	etc/courier/pop3d.cnf \
X	etc/courier/pop3d.dist \
X	etc/courier/quotawarnmsg.example \
X	etc/courier/rfcerr2045.txt \
X	etc/courier/rfcerr2046.txt \
X	etc/courier/rfcerr2047.txt \
X	etc/courier/rfcerrheader.txt \
X	etc/courier/smtpaccess/default \
X	etc/courier/webmail.authpam \
X	libexec/courier/courierpop3d \
X	libexec/courier/courierpop3login \
X	libexec/courier/imaplogin \
X	libexec/courier/makedatprog \
X	libexec/courier/modules \
X	libexec/courier/pcpd \
X	libexec/courier/sqwebmaild \
X	libexec/courier/webmail/webadmin \
X	libexec/courier/webmail/webmail \
X	libexec/filters/dupfilter \
X	libexec/filters/perlfilter \
X	sbin/courier \
X	sbin/courierldapaliasd \
X	sbin/couriertcpd \
X	sbin/showconfig \
X	sbin/webmaild
END-of-courier/Makefile.own
echo c - courier/problem
mkdir -p courier/problem > /dev/null 2>&1
echo x - courier/problem/repo
sed 's/^X//' >courier/problem/repo << 'END-of-courier/problem/repo'
X>Description:
X        I have modified the current Makefile to reflect a
Xpossible prefixed installation. The current ebuild
Xdoes not install prefixed and fails when compiling
Xthe imap-functions using the courier-auth headers.
X
XI have tested my Makefile with and without an explicit
XPREFIX tag, so I can say it works.
X
XIt is still version 0.50.1, but I hope to get 0.52
Xrunning soon.
X
END-of-courier/problem/repo
echo x - courier/distinfo
sed 's/^X//' >courier/distinfo << 'END-of-courier/distinfo'
XMD5 (courier-0.52.0.tar.bz2) = 6046be4fb3392bd0f9da3a71628a14ef
XSIZE (courier-0.52.0.tar.bz2) = 6600449
END-of-courier/distinfo
echo x - courier/pkg-descr
sed 's/^X//' >courier/pkg-descr << 'END-of-courier/pkg-descr'
XCourier is a modular multiprotocol mail server that's designed to
Xstrike a balance between reasonable performance, flexibility and
Xfeatures:
X   
X * Can be configured to function as an intermediate mail relay, or
X   as a mail server that receives mail for one or more domains, or
X   anything in between.
X * Web-based administration and configuration tool.
X * Uses an efficient maildir format as its native mail storage
X   format. Some support is provided for legacy mbox mailboxes.
X * STARTTLS ESMTP extension (as well as IMAP/POP3/Webmail over SSL)
X   in both the client and the server (requires OpenSSL). The ESMTP
X   client can optionally require that the remote server's X.509
X   certificate is signed by a trusted root CA (a default set of
X   root CAs is provided).
X * Mailboxes can be accessed via POP3, IMAP, SMAP, and HTTP.
X * A faxmail gateway that forwards E-mail messages via fax.
X * Courier includes a mailing list manager.
X * PAM, LDAP, PostgreSQL, or MySQL authentication. 
X * Authenticated SMTP.
X * Integrated mail filtering.
X
XWWW: http://www.Courier-MTA.org/
END-of-courier/pkg-descr
echo x - courier/pkg-plist
sed 's/^X//' >courier/pkg-plist << 'END-of-courier/pkg-plist'
X@unexec [ -x %D/sbin/pop3d-ssl ] && %D/sbin/pop3d-ssl stop || true
X@unexec [ -x %D/sbin/pop3d ] && %D/sbin/pop3d stop || true
X@unexec [ -x %D/sbin/imapd-ssl ] && %D/sbin/imapd-ssl stop || true
X@unexec [ -x %D/sbin/imapd ] && %D/sbin/imapd stop || true
X@unexec [ -x %D/sbin/esmtpd-ssl ] && %D/sbin/esmtpd-ssl stop || true
X@unexec [ -x %D/sbin/esmtpd-msa ] && %D/sbin/esmtpd-msa stop || true
X@unexec [ -x %D/sbin/esmtpd ] && %D/sbin/esmtpd stop || true
X@unexec [ -x %D/sbin/courier ] && %D/sbin/courier stop || true
X@unexec [ -x %D/sbin/webmaild ] && %D/sbin/webmaild stop || true
X@unexec [ -x %D/sbin/courierldapaliasd ] && %D/sbin/courierldapaliasd stop || true
X@unexec [ -x %D/sbin/courierfilter ] && %D/sbin/courierfilter stop || true
X@exec install -o %%MAILOWN%% -g %%MAILGRP%% -m 0755 -d %D/etc/courier/aliasdir
X@exec install -o %%MAILOWN%% -g %%MAILGRP%% -m 0750 -d %D/etc/courier/aliases
X@exec install -o %%MAILOWN%% -g %%MAILGRP%% -m 0755 -d %D/etc/courier/esmtpacceptmailfor.dir
X@exec install -o %%MAILOWN%% -g %%MAILGRP%% -m 0755 -d %D/etc/courier/esmtppercentrelay.dir
X@exec install -o %%MAILOWN%% -g %%MAILGRP%% -m 0750 -d %D/etc/courier/filters/active
X@exec install -o %%MAILOWN%% -g %%MAILGRP%% -m 0755 -d %D/etc/courier/shared
X@exec install -o %%MAILOWN%% -g %%MAILGRP%% -m 0755 -d %D/etc/courier/shared.tmp
X@exec install -o %%MAILOWN%% -g %%MAILGRP%% -m 0755 -d %D/etc/courier/smtpaccess
X@exec install -o %%MAILOWN%% -g %%MAILGRP%% -m 0700 -d %D/etc/courier/webadmin/added
X@exec install -o %%MAILOWN%% -g %%MAILGRP%% -m 0700 -d %D/etc/courier/webadmin/removed
X@unexec rm -f %D/etc/courier/*.dat 2>/dev/null || true
X@unexec cmp -s %D/etc/courier/courierd %D/etc/courier/courierd.dist && rm -f %D/etc/courier/courierd 2>/dev/null || true
X@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
X@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
X@unexec cmp -s %D/etc/courier/esmtpd %D/etc/courier/esmtpd.dist && rm -f %D/etc/courier/esmtpd 2>/dev/null || true
X%%WITHFAX%%@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
X%%WITHFAX%%@unexec cmp -s %D/etc/courier/faxnotifyrc %D/etc/courier/faxnotifyrc.dist && rm -f %D/etc/courier/faxnotifyrc 2>/dev/null || true
X%%WITHFAX%%@unexec cmp -s %D/etc/courier/faxrc %D/etc/courier/faxrc.dist && rm -f %D/etc/courier/faxrc 2>/dev/null || true
X@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
X@unexec cmp -s %D/etc/courier/imapd %D/etc/courier/imapd.dist && rm -f %D/etc/courier/imapd 2>/dev/null || true
X@unexec cmp -s %D/etc/courier/ldapaddressbook %D/etc/courier/ldapaddressbook.dist && rm -f %D/etc/courier/ldapaddressbook 2>/dev/null || true
X%%WITHLDAP%%@unexec cmp -s %D/etc/courier/ldapaliasrc %D/etc/courier/ldapaliasrc.dist && rm -f %D/etc/courier/ldapaliasrc 2>/dev/null || true
X@unexec cmp -s %D/etc/courier/pop3d-ssl %D/etc/courier/pop3d-ssl.dist && rm -f %D/etc/courier/pop3d-ssl 2>/dev/null || true
X@unexec cmp -s %D/etc/courier/pop3d %D/etc/courier/pop3d.dist && rm -f %D/etc/courier/pop3d 2>/dev/null || true
X@unexec cmp -s %D/etc/courier/sqwebmaild %D/etc/courier/sqwebmaild.dist && rm -f %D/etc/courier/sqwebmaild 2>/dev/null || true
Xbin/addcr
Xbin/cancelmsg
Xbin/courier-config
Xbin/couriermlm
Xbin/couriertls
Xbin/deliverquota
Xbin/dotforward
Xbin/imapd
Xbin/lockmail
Xbin/mailbot
Xbin/maildiracl
Xbin/maildirkw
Xbin/maildirmake
Xbin/maildrop
Xbin/mailq
Xbin/makedat
Xbin/makemime
Xbin/mimegpg
Xbin/preline
Xbin/reformail
Xbin/reformime
Xbin/rmail
Xbin/sendmail
Xbin/testmxlookup
Xetc/courier/aliases/system
Xetc/courier/courierd.dist
Xetc/courier/crontab
Xetc/courier/dsndelayed.txt
Xetc/courier/dsndelivered.txt
Xetc/courier/dsnfailed.txt
Xetc/courier/dsnfooter.txt
Xetc/courier/dsnheader.txt
Xetc/courier/dsnrelayed.txt
Xetc/courier/dsnsubjectnotice.txt
Xetc/courier/dsnsubjectwarn.txt
Xetc/courier/enablefiltering
Xetc/courier/esmtp.authpam
Xetc/courier/esmtpauthclient
Xetc/courier/esmtpd-msa.dist
Xetc/courier/esmtpd-ssl.dist
Xetc/courier/esmtpd.cnf
Xetc/courier/esmtpd.dist
X%%WITHFAX%%etc/courier/faxcoverpage.tr.dist
X%%WITHFAX%%etc/courier/faxnotifyrc.dist
X%%WITHFAX%%etc/courier/faxrc.dist
Xetc/courier/imapd-ssl.dist
Xetc/courier/imapd.authpam
Xetc/courier/imapd.cnf
Xetc/courier/imapd.dist
Xetc/courier/ldapaddressbook.dist
X%%WITHLDAP%%etc/courier/ldapaliasrc.dist
Xetc/courier/locallowercase
Xetc/courier/maildrop
Xetc/courier/maildropfilter
Xetc/courier/module.dsn
Xetc/courier/module.esmtp
X%%WITHFAX%%etc/courier/module.fax
Xetc/courier/module.local
X%%WITHUUCP%%etc/courier/module.uucp
Xetc/courier/pop3d-ssl.dist
Xetc/courier/pop3d.authpam
Xetc/courier/pop3d.cnf
Xetc/courier/pop3d.dist
Xetc/courier/quotawarnmsg.example
Xetc/courier/rfcerr2045.txt
Xetc/courier/rfcerr2046.txt
Xetc/courier/rfcerr2047.txt
Xetc/courier/rfcerrheader.txt
Xetc/courier/smtpaccess/default
Xetc/courier/sqwebmaild.dist
Xetc/courier/webmail.authpam
X@exec [ -e /etc/aliases ] && ln -sf /etc/aliases %D/etc/courier/aliases/system
X@exec [ -f %D/etc/courier/courierd.dist ] && %%LOCALBASE%%/share/sysconftool/sysconftool %D/etc/courier/courierd.dist
X@exec [ -f %D/etc/courier/esmtpd-msa.dist ] && %%LOCALBASE%%/share/sysconftool/sysconftool %D/etc/courier/esmtpd-msa.dist
X@exec [ -f %D/etc/courier/esmtpd-ssl.dist ] && %%LOCALBASE%%/share/sysconftool/sysconftool %D/etc/courier/esmtpd-ssl.dist
X@exec [ -f %D/etc/courier/esmtpd.dist ] && %%LOCALBASE%%/share/sysconftool/sysconftool %D/etc/courier/esmtpd.dist
X%%WITHFAX%%@exec [ -f %D/etc/courier/faxcoverpage.tr.dist ] && %%LOCALBASE%%/share/sysconftool/sysconftool %D/etc/courier/faxcoverpage.tr.dist
X%%WITHFAX%%@exec [ -f %D/etc/courier/faxnotifyrc.dist ] && %%LOCALBASE%%/share/sysconftool/sysconftool %D/etc/courier/faxnotifyrc.dist
X%%WITHFAX%%@exec [ -f %D/etc/courier/faxrc.dist ] && %%LOCALBASE%%/share/sysconftool/sysconftool %D/etc/courier/faxrc.dist
X@exec [ -f %D/etc/courier/imapd-ssl.dist ] && %%LOCALBASE%%/share/sysconftool/sysconftool %D/etc/courier/imapd-ssl.dist
X@exec [ -f %D/etc/courier/imapd.dist ] && %%LOCALBASE%%/share/sysconftool/sysconftool %D/etc/courier/imapd.dist
X@exec [ -f %D/etc/courier/ldapaddressbook.dist ] && %%LOCALBASE%%/share/sysconftool/sysconftool %D/etc/courier/ldapaddressbook.dist
X%%WITHLDAP%%@exec [ -f %D/etc/courier/ldapaliasrc.dist ] && %%LOCALBASE%%/share/sysconftool/sysconftool %D/etc/courier/ldapaliasrc.dist
X@exec [ -f %D/etc/courier/pop3d-ssl.dist ] && %%LOCALBASE%%/share/sysconftool/sysconftool %D/etc/courier/pop3d-ssl.dist
X@exec [ -f %D/etc/courier/pop3d.dist ] && %%LOCALBASE%%/share/sysconftool/sysconftool %D/etc/courier/pop3d.dist
X@exec [ -f %D/etc/courier/sqwebmaild.dist ] && %%LOCALBASE%%/share/sysconftool/sysconftool %D/etc/courier/sqwebmaild.dist
X@unexec rmdir %D/etc/courier/aliasdir 2>/dev/null || true
X@unexec rmdir %D/etc/courier/aliases 2>/dev/null || true
X@unexec rmdir %D/etc/courier/esmtpacceptmailfor.dir 2>/dev/null || true
X@unexec rmdir %D/etc/courier/esmtppercentrelay.dir 2>/dev/null || true
X@unexec rmdir %D/etc/courier/filters/active 2>/dev/null || true
X@unexec rmdir %D/etc/courier/filters 2>/dev/null || true
X@unexec rmdir %D/etc/courier/shared 2>/dev/null || true
X@unexec rmdir %D/etc/courier/shared.tmp 2>/dev/null || true
X@unexec rmdir %D/etc/courier/smtpaccess 2>/dev/null || true
X@unexec rmdir %D/etc/courier/webadmin/added 2>/dev/null || true
X@unexec rmdir %D/etc/courier/webadmin/removed 2>/dev/null || true
X@unexec rmdir %D/etc/courier/webadmin 2>/dev/null || true
X@unexec rmdir %D/etc/courier 2>/dev/null || true
Xlibexec/courier/aliascombine
Xlibexec/courier/aliascreate
Xlibexec/courier/aliasexp
Xlibexec/courier/courierd
Xlibexec/courier/courierpop3d
Xlibexec/courier/courierpop3login
Xlibexec/courier/imaplogin
Xlibexec/courier/makedatprog
Xlibexec/courier/modules/dsn/courierdsn
Xlibexec/courier/modules/esmtp/addcr
Xlibexec/courier/modules/esmtp/courieresmtp
Xlibexec/courier/modules/esmtp/courieresmtpd
X%%WITHFAX%%libexec/courier/modules/fax/courierfax
Xlibexec/courier/modules/local/courierdeliver
Xlibexec/courier/modules/local/courierlocal
X%%WITHUUCP%%libexec/courier/modules/uucp/courieruucp
Xlibexec/courier/pcpd
Xlibexec/courier/sqwebmaild
Xlibexec/courier/sqwebpasswd
Xlibexec/courier/submit
Xlibexec/courier/submitmkdir
Xlibexec/courier/webmail/webadmin
Xlibexec/courier/webmail/webmail
Xlibexec/filters/dupfilter
Xlibexec/filters/perlfilter
X%%WITHUUCP%%@dirrm libexec/courier/modules/uucp
X@dirrm libexec/courier/modules/local
X%%WITHFAX%%@dirrm libexec/courier/modules/fax
X@dirrm libexec/courier/modules/esmtp
X@dirrm libexec/courier/modules/dsn
X@dirrm libexec/courier/modules
X@dirrm libexec/courier/webmail
X@dirrm libexec/courier
X@dirrm libexec/filters
Xsbin/courier
Xsbin/courieresmtpd
Xsbin/courierfilter
X%%WITHLDAP%%sbin/courierldapaliasd
Xsbin/couriertcpd
Xsbin/esmtpd
Xsbin/esmtpd-msa
Xsbin/esmtpd-ssl
Xsbin/filterctl
Xsbin/imapd
Xsbin/imapd-ssl
Xsbin/makeacceptmailfor
Xsbin/makealiases
Xsbin/makehosteddomains
Xsbin/makepercentrelay
Xsbin/makesmtpaccess
Xsbin/makesmtpaccess-msa
X%%WITHUUCP%%sbin/makeuucpneighbors
Xsbin/mkesmtpdcert
Xsbin/mkimapdcert
Xsbin/mkpop3dcert
Xsbin/pop3d
Xsbin/pop3d-ssl
Xsbin/sharedindexinstall
Xsbin/sharedindexsplit
Xsbin/showconfig
Xsbin/showmodules
Xsbin/webgpg
Xsbin/webmaild
Xshare/courier/courierctl.start
Xshare/courier/couriermlm/adminrequest.tmpl
Xshare/courier/couriermlm/confsubj.tmpl
Xshare/courier/couriermlm/digestsubj.tmpl
Xshare/courier/couriermlm/fetch.tmpl
Xshare/courier/couriermlm/fetchsubj.tmpl
Xshare/courier/couriermlm/help.tmpl
Xshare/courier/couriermlm/idxheader2html.tmpl
Xshare/courier/couriermlm/idxheaderhtml.tmpl
Xshare/courier/couriermlm/idxheadertxt.tmpl
Xshare/courier/couriermlm/idxsubject.tmpl
Xshare/courier/couriermlm/modrejbody.tmpl
Xshare/courier/couriermlm/modreject.tmpl
Xshare/courier/couriermlm/modrejheader.tmpl
Xshare/courier/couriermlm/modsubject.tmpl
Xshare/courier/couriermlm/modtext.tmpl
Xshare/courier/couriermlm/modtext2.tmpl
Xshare/courier/couriermlm/sub.tmpl
Xshare/courier/couriermlm/sub2.tmpl
Xshare/courier/couriermlm/sub3.tmpl
Xshare/courier/couriermlm/sub4.tmpl
Xshare/courier/couriermlm/sub5.tmpl
Xshare/courier/couriermlm/subreportfooter.tmpl
Xshare/courier/couriermlm/subreporthdr.tmpl
Xshare/courier/couriermlm/subreporthdr1.tmpl
Xshare/courier/couriermlm/subreporthdr2.tmpl
Xshare/courier/couriermlm/subreporthdr3.tmpl
Xshare/courier/couriermlm/unsub.tmpl
Xshare/courier/couriermlm/unsub2.tmpl
Xshare/courier/couriermlm/unsub3.tmpl
Xshare/courier/couriermlm/warn1headers.tmpl
Xshare/courier/couriermlm/warn1text.tmpl
Xshare/courier/couriermlm/warn1text2.tmpl
Xshare/courier/couriermlm/warn2msg.tmpl
X@dirrm share/courier/couriermlm
Xshare/courier/courierwebadmin/admin-00machine.html
Xshare/courier/courierwebadmin/admin-00machine.pl
Xshare/courier/courierwebadmin/admin-05local.html
Xshare/courier/courierwebadmin/admin-05local.pl
Xshare/courier/courierwebadmin/admin-10password.html
Xshare/courier/courierwebadmin/admin-10password.pl
Xshare/courier/courierwebadmin/admin-15ldap.html
Xshare/courier/courierwebadmin/admin-15ldap.pl
Xshare/courier/courierwebadmin/admin-15ldapa.html
Xshare/courier/courierwebadmin/admin-15ldapa.pl
Xshare/courier/courierwebadmin/admin-15mysql.html
Xshare/courier/courierwebadmin/admin-15mysql.pl
Xshare/courier/courierwebadmin/admin-15pgsql.html
Xshare/courier/courierwebadmin/admin-15pgsql.pl
Xshare/courier/courierwebadmin/admin-20aliases.html
Xshare/courier/courierwebadmin/admin-20aliases.pl
Xshare/courier/courierwebadmin/admin-30esmtp.html
Xshare/courier/courierwebadmin/admin-30esmtp.pl
Xshare/courier/courierwebadmin/admin-31esmtp.html
Xshare/courier/courierwebadmin/admin-31esmtp.pl
Xshare/courier/courierwebadmin/admin-30xspf.html
Xshare/courier/courierwebadmin/admin-30xspf.pl
Xshare/courier/courierwebadmin/admin-34fax.html
Xshare/courier/courierwebadmin/admin-34fax.pl
Xshare/courier/courierwebadmin/admin-35fax.html
Xshare/courier/courierwebadmin/admin-35fax.pl
Xshare/courier/courierwebadmin/admin-40imap.html
Xshare/courier/courierwebadmin/admin-40imap.pl
Xshare/courier/courierwebadmin/admin-45pop3.html
Xshare/courier/courierwebadmin/admin-45pop3.pl
Xshare/courier/courierwebadmin/admin-47webmail.html
Xshare/courier/courierwebadmin/admin-47webmail.pl
Xshare/courier/courierwebadmin/admin-50bofh.html
Xshare/courier/courierwebadmin/admin-50bofh.pl
Xshare/courier/courierwebadmin/admin-cancel.pl
Xshare/courier/courierwebadmin/admin-main.html
Xshare/courier/courierwebadmin/admin-main.pl
Xshare/courier/courierwebadmin/admin-save.html
Xshare/courier/courierwebadmin/admin-save.pl
Xshare/courier/courierwebadmin/dumpenv.pl
Xshare/courier/courierwebadmin/login.html
Xshare/courier/courierwebadmin/notsupp.html
Xshare/courier/courierwebadmin/unsecure.html
Xshare/courier/courierwebadmin/webadmin.pl
Xshare/courier/courierwebadmin/webadmin.pm
X@dirrm share/courier/courierwebadmin
Xshare/courier/esmtpd
Xshare/courier/esmtpd-ssl
X%%WITHFAX%%share/courier/faxmail/application-pdf.filter
X%%WITHFAX%%share/courier/faxmail/application-postscript.filter
X%%WITHFAX%%share/courier/faxmail/coverpage
X%%WITHFAX%%share/courier/faxmail/image-gif.filter
X%%WITHFAX%%share/courier/faxmail/image-jpeg.filter
X%%WITHFAX%%share/courier/faxmail/image-png.filter
X%%WITHFAX%%share/courier/faxmail/init
X%%WITHFAX%%share/courier/faxmail/new_fax
X%%WITHFAX%%share/courier/faxmail/text-plain.filter
X%%WITHFAX%%@dirrm share/courier/faxmail
Xshare/courier/filterctl
Xshare/courier/imapd
Xshare/courier/imapd-ssl
Xshare/courier/makeacceptmailfor
Xshare/courier/makealiases
Xshare/courier/makedat
Xshare/courier/makehosteddomains
Xshare/courier/makepercentrelay
Xshare/courier/makesmtpaccess
X%%WITHUUCP%%share/courier/makeuucpneighbors
Xshare/courier/mkesmtpdcert
Xshare/courier/mkimapdcert
Xshare/courier/mkpop3dcert
Xshare/courier/perlfilter-example.pl
Xshare/courier/perlfilter-wrapper.pl
Xshare/courier/pop3d
Xshare/courier/pop3d-ssl
Xshare/courier/rootcerts/052e396b.0
Xshare/courier/rootcerts/0bb21872.0
Xshare/courier/rootcerts/0c364b2d.0
Xshare/courier/rootcerts/0e82f83a.0
Xshare/courier/rootcerts/11f154d6.0
Xshare/courier/rootcerts/128b9c8d.0
Xshare/courier/rootcerts/19899da5.0
Xshare/courier/rootcerts/1a147d5b.0
Xshare/courier/rootcerts/1bb6c7e0.0
Xshare/courier/rootcerts/256fd83b.0
Xshare/courier/rootcerts/2d047263.0
Xshare/courier/rootcerts/2edf7016.0
Xshare/courier/rootcerts/31044350.0
Xshare/courier/rootcerts/3ad48a91.0
Xshare/courier/rootcerts/3c58f906.0
Xshare/courier/rootcerts/3e7271e8.0
Xshare/courier/rootcerts/412bea73.0
Xshare/courier/rootcerts/418882ac.0
Xshare/courier/rootcerts/43d4bde2.0
Xshare/courier/rootcerts/4643210f.0
Xshare/courier/rootcerts/4d654d1d.0
Xshare/courier/rootcerts/5480ace1.0
Xshare/courier/rootcerts/54edfa5d.0
Xshare/courier/rootcerts/56e607f4.0
Xshare/courier/rootcerts/594f1775.0
Xshare/courier/rootcerts/5ee07a24.0
Xshare/courier/rootcerts/5f5e5caa.0
Xshare/courier/rootcerts/6166cb50.0
Xshare/courier/rootcerts/61f6c934.0
Xshare/courier/rootcerts/66eb5c17.0
Xshare/courier/rootcerts/66ec64da.0
Xshare/courier/rootcerts/6981fb07.0
Xshare/courier/rootcerts/6a15001a.0
Xshare/courier/rootcerts/6c55cf77.0
Xshare/courier/rootcerts/6d6ec79c.0
Xshare/courier/rootcerts/700b8679.0
Xshare/courier/rootcerts/709afd2b.0
Xshare/courier/rootcerts/72fa7371.0
Xshare/courier/rootcerts/73451336.0
Xshare/courier/rootcerts/739b7930.0
Xshare/courier/rootcerts/74c26bd0.0
Xshare/courier/rootcerts/7651b327.0
Xshare/courier/rootcerts/76d6205a.0
Xshare/courier/rootcerts/788c9bfc.0
Xshare/courier/rootcerts/7a9820c1.0
Xshare/courier/rootcerts/7d3cd826.0
Xshare/courier/rootcerts/7d453d8f.0
Xshare/courier/rootcerts/7e74191f.0
Xshare/courier/rootcerts/81447c6e.0
Xshare/courier/rootcerts/843b6c51.0
Xshare/courier/rootcerts/878cf4c6.0
Xshare/courier/rootcerts/8e6e2991.0
Xshare/courier/rootcerts/8efac7d4.0
Xshare/courier/rootcerts/8f7b96c4.0
Xshare/courier/rootcerts/95750816.0
Xshare/courier/rootcerts/97b4211c.0
Xshare/courier/rootcerts/a15b3b6b.0
Xshare/courier/rootcerts/a2be0f54.0
Xshare/courier/rootcerts/a2df7ad7.0
Xshare/courier/rootcerts/a38484ce.0
Xshare/courier/rootcerts/a3c60019.0
Xshare/courier/rootcerts/aaa45464.0
Xshare/courier/rootcerts/aba-ecom-root-ca.pem
Xshare/courier/rootcerts/addtrust-class-1-ca-root.pem
Xshare/courier/rootcerts/addtrust-external-ca-root.pem
Xshare/courier/rootcerts/addtrust-public-ca-root.pem
Xshare/courier/rootcerts/addtrust-qualified-ca-root.pem
Xshare/courier/rootcerts/american-express-certificate-authority.pem
Xshare/courier/rootcerts/american-express-global-certificate.pem
Xshare/courier/rootcerts/b0f3e76e.0
Xshare/courier/rootcerts/b5f329fa.0
Xshare/courier/rootcerts/ba386118.0
Xshare/courier/rootcerts/baltimore-cybertrust-code-signing.pem
Xshare/courier/rootcerts/baltimore-cybertrust-mobile-root.pem
Xshare/courier/rootcerts/baltimore-cybertrust-root.pem
Xshare/courier/rootcerts/bankengine.pem
Xshare/courier/rootcerts/bb0a889c.0
Xshare/courier/rootcerts/bcdd5959.0
Xshare/courier/rootcerts/belsign-object-publishing-ca.pem
Xshare/courier/rootcerts/belsign-secure-server-ca.pem
Xshare/courier/rootcerts/betrusted-root-ca.pem
Xshare/courier/rootcerts/bffe8b5d.0
Xshare/courier/rootcerts/c19d42c7.0
Xshare/courier/rootcerts/c215bc69.0
Xshare/courier/rootcerts/c33a80d4.0
Xshare/courier/rootcerts/c527e4ab.0
Xshare/courier/rootcerts/c9bc75ba.0
Xshare/courier/rootcerts/ccf7ff0e.0
Xshare/courier/rootcerts/certengine.pem
Xshare/courier/rootcerts/class-1-public-primary-ocsp-responder.pem
Xshare/courier/rootcerts/class-2-public-primary-ocsp-responder.pem
Xshare/courier/rootcerts/class-3-public-primary-ocsp-responder.pem
Xshare/courier/rootcerts/cybertrust-japan-root-ca.pem
Xshare/courier/rootcerts/cybertrust-japan-secure-server.pem
Xshare/courier/rootcerts/d2adc77d.0
Xshare/courier/rootcerts/d593166d.0
Xshare/courier/rootcerts/d78a75c7.0
Xshare/courier/rootcerts/db65db21.0
Xshare/courier/rootcerts/ddc328ff.0
Xshare/courier/rootcerts/deutsche-telekom-root-ca.pem
Xshare/courier/rootcerts/dfd0b044.0
Xshare/courier/rootcerts/digital-signature-trust-co-dstca-00.pem
Xshare/courier/rootcerts/digital-signature-trust-co-dstca-01.pem
Xshare/courier/rootcerts/dst-rootca-x1.pem
Xshare/courier/rootcerts/dst-rootca-x2.pem
Xshare/courier/rootcerts/e-certify-ca.pem
Xshare/courier/rootcerts/e-certify-ra.pem
Xshare/courier/rootcerts/e268a4c5.0
Xshare/courier/rootcerts/e28f6bbc.0
Xshare/courier/rootcerts/e7b8d656.0
Xshare/courier/rootcerts/e9aaa9de.0
Xshare/courier/rootcerts/ed049835.0
Xshare/courier/rootcerts/ed524cf5.0
Xshare/courier/rootcerts/ed62f4e3.0
Xshare/courier/rootcerts/entrust-net-certification-authority.pem
Xshare/courier/rootcerts/entrust-net-client-certification-00.pem
Xshare/courier/rootcerts/entrust-net-client-certification-01.pem
Xshare/courier/rootcerts/entrust-net-secure-server-certification-00.pem
Xshare/courier/rootcerts/entrust-net-secure-server-certification-01.pem
Xshare/courier/rootcerts/equifax-equifax-premium-certificate.pem
Xshare/courier/rootcerts/equifax-equifax-secure-certificate.pem
Xshare/courier/rootcerts/equifax-secure-ebusiness-ca-1.pem
Xshare/courier/rootcerts/equifax-secure-equifax-secure-ebusiness.pem
Xshare/courier/rootcerts/equifax-secure-global-ebusiness.pem
Xshare/courier/rootcerts/f10dd942.0
Xshare/courier/rootcerts/f4996e82.0
Xshare/courier/rootcerts/f73e89fd.0
Xshare/courier/rootcerts/fortengine.pem
Xshare/courier/rootcerts/globalsign-partners-ca.pem
Xshare/courier/rootcerts/globalsign-primary-class-1-ca.pem
Xshare/courier/rootcerts/globalsign-primary-class-2-ca.pem
Xshare/courier/rootcerts/globalsign-primary-class-3-ca.pem
Xshare/courier/rootcerts/globalsign-root-ca.pem
Xshare/courier/rootcerts/gp-root-2.pem
Xshare/courier/rootcerts/gp-root-3.pem
Xshare/courier/rootcerts/gp-root-4.pem
Xshare/courier/rootcerts/gp-root-5.pem
Xshare/courier/rootcerts/gte-cybertrust-global-root.pem
Xshare/courier/rootcerts/gte-cybertrust-root-5.pem
Xshare/courier/rootcerts/gte-cybertrust-root.pem
Xshare/courier/rootcerts/http-www-valicert-com-00.pem
Xshare/courier/rootcerts/http-www-valicert-com-01.pem
Xshare/courier/rootcerts/http-www-valicert-com-02.pem
Xshare/courier/rootcerts/http-www-valicert-net.pem
Xshare/courier/rootcerts/mailengine.pem
Xshare/courier/rootcerts/rsa-data-security-inc-secure-server.pem
Xshare/courier/rootcerts/secure-server-ocsp-responder.pem
Xshare/courier/rootcerts/tc-trustcenter-for-security-in-00.pem
Xshare/courier/rootcerts/tc-trustcenter-for-security-in-01.pem
Xshare/courier/rootcerts/tc-trustcenter-for-security-in-02.pem
Xshare/courier/rootcerts/tc-trustcenter-for-security-in-03.pem
Xshare/courier/rootcerts/tc-trustcenter-for-security-in-04.pem
Xshare/courier/rootcerts/thawte-personal-basic-ca.pem
Xshare/courier/rootcerts/thawte-personal-freemail-ca.pem
Xshare/courier/rootcerts/thawte-personal-premium-ca.pem
Xshare/courier/rootcerts/thawte-premium-server-ca.pem
Xshare/courier/rootcerts/thawte-server-ca.pem
Xshare/courier/rootcerts/thawte-timestamping-ca.pem
Xshare/courier/rootcerts/thawte-universal-ca-root.pem
Xshare/courier/rootcerts/traderengine.pem
Xshare/courier/rootcerts/usps-production-ca-1.pem
Xshare/courier/rootcerts/usps-root-ca.pem
Xshare/courier/rootcerts/verisign-class-1-public-primary.pem
Xshare/courier/rootcerts/verisign-class-2-public-primary.pem
Xshare/courier/rootcerts/verisign-class-3-public-primary.pem
Xshare/courier/rootcerts/verisign-class-4-public-primary.pem
Xshare/courier/rootcerts/verisign-inc-class-1-public-primary.pem
Xshare/courier/rootcerts/verisign-inc-class-2-public-primary.pem
Xshare/courier/rootcerts/verisign-inc-class-3-public-primary.pem
Xshare/courier/rootcerts/verisign-inc-verisign-trust-network-00.pem
Xshare/courier/rootcerts/verisign-inc-verisign-trust-network-01.pem
Xshare/courier/rootcerts/verisign-inc-verisign-trust-network-02.pem
Xshare/courier/rootcerts/verisign-inc-verisign-trust-network-03.pem
Xshare/courier/rootcerts/verisign-time-stamping-authority.pem
Xshare/courier/rootcerts/visa-visa-international-service.pem
Xshare/courier/rootcerts/xcert-ez-by-dst.pem
Xshare/courier/rootcerts/xcert-international-inc-xcert-root-00.pem
Xshare/courier/rootcerts/xcert-international-inc-xcert-root-01.pem
Xshare/courier/rootcerts/xcert-international-inc-xcert-root-02.pem
Xshare/courier/rootcerts/xcert-international-inc-xcert-root-03.pem
X@dirrm share/courier/rootcerts
Xshare/courier/sqwebmail/cleancache.pl
Xshare/courier/sqwebmail/html/en-us/CHARSET
Xshare/courier/sqwebmail/html/en-us/ISPELLDICT
Xshare/courier/sqwebmail/html/en-us/LANGUAGE
Xshare/courier/sqwebmail/html/en-us/LANGUAGE_PREF
Xshare/courier/sqwebmail/html/en-us/LOCALE
Xshare/courier/sqwebmail/html/en-us/TIMEZONELIST
Xshare/courier/sqwebmail/html/en-us/abooklist.html
Xshare/courier/sqwebmail/html/en-us/acl.html
Xshare/courier/sqwebmail/html/en-us/attachments.html
Xshare/courier/sqwebmail/html/en-us/autoresponder.html
Xshare/courier/sqwebmail/html/en-us/calendarlogin.inc.html
Xshare/courier/sqwebmail/html/en-us/empty.html
Xshare/courier/sqwebmail/html/en-us/eventacl.html
Xshare/courier/sqwebmail/html/en-us/eventdaily.html
Xshare/courier/sqwebmail/html/en-us/eventdelete.html
Xshare/courier/sqwebmail/html/en-us/eventmonthly.html
Xshare/courier/sqwebmail/html/en-us/eventnotifydelete.txt
Xshare/courier/sqwebmail/html/en-us/eventnotifynew.txt
Xshare/courier/sqwebmail/html/en-us/eventnotifysubject.txt
Xshare/courier/sqwebmail/html/en-us/eventshow.html
Xshare/courier/sqwebmail/html/en-us/eventweekly.html
Xshare/courier/sqwebmail/html/en-us/expired.html
Xshare/courier/sqwebmail/html/en-us/filter.html
Xshare/courier/sqwebmail/html/en-us/folder.html
Xshare/courier/sqwebmail/html/en-us/folders.html
Xshare/courier/sqwebmail/html/en-us/gpg.html
Xshare/courier/sqwebmail/html/en-us/gpgcreate.html
Xshare/courier/sqwebmail/html/en-us/gpgerr.html
Xshare/courier/sqwebmail/html/en-us/index.html
Xshare/courier/sqwebmail/html/en-us/invalid.html
Xshare/courier/sqwebmail/html/en-us/keyimport.html
Xshare/courier/sqwebmail/html/en-us/ldaplist.html
Xshare/courier/sqwebmail/html/en-us/ldapsearch.html
Xshare/courier/sqwebmail/html/en-us/login.html
Xshare/courier/sqwebmail/html/en-us/navbar.inc.html
Xshare/courier/sqwebmail/html/en-us/navbar2.inc.html
Xshare/courier/sqwebmail/html/en-us/navbar3.inc.html
Xshare/courier/sqwebmail/html/en-us/newevent.html
Xshare/courier/sqwebmail/html/en-us/newmsg.html
Xshare/courier/sqwebmail/html/en-us/preferences.html
Xshare/courier/sqwebmail/html/en-us/print.html
Xshare/courier/sqwebmail/html/en-us/printnocookie.html
Xshare/courier/sqwebmail/html/en-us/printredirect.html
Xshare/courier/sqwebmail/html/en-us/quickadd.html
Xshare/courier/sqwebmail/html/en-us/readmsg.html
Xshare/courier/sqwebmail/html/en-us/redirect.html
Xshare/courier/sqwebmail/html/en-us/smileys.txt
Xshare/courier/sqwebmail/html/en-us/spellchk.html
Xshare/courier/sqwebmail/html/en
X@dirrm share/courier/sqwebmail/html/en-us
X@dirrm share/courier/sqwebmail/html
Xshare/courier/sqwebmail/images/bg.png
Xshare/courier/sqwebmail/images/bluebottomleft.png
Xshare/courier/sqwebmail/images/bluebottomright.png
Xshare/courier/sqwebmail/images/bluetopleft.png
Xshare/courier/sqwebmail/images/bluetopright.png
Xshare/courier/sqwebmail/images/calendar.png
Xshare/courier/sqwebmail/images/cancel.png
Xshare/courier/sqwebmail/images/eventadd.png
Xshare/courier/sqwebmail/images/eventedit.png
Xshare/courier/sqwebmail/images/first.png
Xshare/courier/sqwebmail/images/folder.png
Xshare/courier/sqwebmail/images/folder2.png
Xshare/courier/sqwebmail/images/folders.png
Xshare/courier/sqwebmail/images/forward.png
Xshare/courier/sqwebmail/images/forwardatt.png
Xshare/courier/sqwebmail/images/fullheaders.png
Xshare/courier/sqwebmail/images/graybottomleft.png
Xshare/courier/sqwebmail/images/graybottomright.png
Xshare/courier/sqwebmail/images/graytopleft.png
Xshare/courier/sqwebmail/images/graytopright.png
Xshare/courier/sqwebmail/images/key.png
Xshare/courier/sqwebmail/images/last.png
Xshare/courier/sqwebmail/images/left.png
Xshare/courier/sqwebmail/images/left2.png
Xshare/courier/sqwebmail/images/logo.png
Xshare/courier/sqwebmail/images/print.png
Xshare/courier/sqwebmail/images/reply.png
Xshare/courier/sqwebmail/images/replyall.png
Xshare/courier/sqwebmail/images/replylist.png
Xshare/courier/sqwebmail/images/right.png
Xshare/courier/sqwebmail/images/right2.png
Xshare/courier/sqwebmail/images/save.png
Xshare/courier/sqwebmail/images/sep.png
Xshare/courier/sqwebmail/images/signin.png
Xshare/courier/sqwebmail/images/sm-frowney.png
Xshare/courier/sqwebmail/images/sm-frowney2.png
Xshare/courier/sqwebmail/images/sm-notsmiley.png
Xshare/courier/sqwebmail/images/sm-notsmiley2.png
Xshare/courier/sqwebmail/images/sm-ohno.png
Xshare/courier/sqwebmail/images/sm-smiley.png
Xshare/courier/sqwebmail/images/sm-smiley2.png
Xshare/courier/sqwebmail/images/sm-wink.png
Xshare/courier/sqwebmail/images/sm-wink2.png
Xshare/courier/sqwebmail/images/sqwebmail.css
Xshare/courier/sqwebmail/images/trash2.png
Xshare/courier/sqwebmail/images/uncancel.png
X@dirrm share/courier/sqwebmail/images
Xshare/courier/sqwebmail/ldapsearch
Xshare/courier/sqwebmail/sendit.sh
Xshare/courier/sqwebmail/webgpg
X@dirrm share/courier/sqwebmail
X@dirrm share/courier
X%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
X%%PORTDOCS%%%%DOCSDIR%%/BENCHMARKS
X%%PORTDOCS%%%%DOCSDIR%%/BUGS.imap
X%%PORTDOCS%%%%DOCSDIR%%/BUGS.webmail
X%%PORTDOCS%%%%DOCSDIR%%/COPYING
X%%PORTDOCS%%%%DOCSDIR%%/COPYING.GPL
X%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
X%%PORTDOCS%%%%DOCSDIR%%/ChangeLog.2001
X%%PORTDOCS%%%%DOCSDIR%%/INSTALL
X%%PORTDOCS%%%%DOCSDIR%%/NEWS
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%%%DOCSDIR%%/README.couriertls
X%%PORTDOCS%%%%DOCSDIR%%/README.imap
X%%PORTDOCS%%%%DOCSDIR%%/README.maildirquota.txt
X%%PORTDOCS%%%%DOCSDIR%%/README.proxy
X%%PORTDOCS%%%%DOCSDIR%%/README.sharedfolders.txt
X%%PORTDOCS%%%%DOCSDIR%%/SECURITY.webmail
X%%PORTDOCS%%%%DOCSDIR%%/TODO
X%%PORTDOCS%%%%DOCSDIR%%/html/BUGS.imap.html
X%%PORTDOCS%%%%DOCSDIR%%/html/BUGS.webmail.html
X%%PORTDOCS%%%%DOCSDIR%%/html/FAQ.html
X%%PORTDOCS%%%%DOCSDIR%%/html/NEWS.html
X%%PORTDOCS%%%%DOCSDIR%%/html/README.gpglib.html
X%%PORTDOCS%%%%DOCSDIR%%/html/README.imap.html
X%%PORTDOCS%%%%DOCSDIR%%/html/README.maildirfilter.html
X%%PORTDOCS%%%%DOCSDIR%%/html/README.maildirquota.html
X%%PORTDOCS%%%%DOCSDIR%%/html/README.maildrop.html
X%%PORTDOCS%%%%DOCSDIR%%/html/README.pcp.html
X%%PORTDOCS%%%%DOCSDIR%%/html/README.proxy.html
X%%PORTDOCS%%%%DOCSDIR%%/html/README.sharedfolders.html
X%%PORTDOCS%%%%DOCSDIR%%/html/SECURITY.webmail.html
X%%PORTDOCS%%%%DOCSDIR%%/html/aliases.html
X%%PORTDOCS%%%%DOCSDIR%%/html/bg.gif
X%%PORTDOCS%%%%DOCSDIR%%/html/cancelmsg.html
X%%PORTDOCS%%%%DOCSDIR%%/html/changelog.html
X%%PORTDOCS%%%%DOCSDIR%%/html/courier.html
X%%PORTDOCS%%%%DOCSDIR%%/html/courierd.html
X%%PORTDOCS%%%%DOCSDIR%%/html/courierdsn.html
X%%WITHFAX%%%%PORTDOCS%%%%DOCSDIR%%/html/courierfax.html
X%%PORTDOCS%%%%DOCSDIR%%/html/courierfilter.html
X%%PORTDOCS%%%%DOCSDIR%%/html/courierldapaliasd.html
X%%PORTDOCS%%%%DOCSDIR%%/html/couriermlm.html
X%%PORTDOCS%%%%DOCSDIR%%/html/courierperlfilter.html
X%%PORTDOCS%%%%DOCSDIR%%/html/courierpop3d.html
X%%PORTDOCS%%%%DOCSDIR%%/html/couriertcpd.html
X%%PORTDOCS%%%%DOCSDIR%%/html/couriertls.html
X%%WITHUUCP%%%%PORTDOCS%%%%DOCSDIR%%/html/courieruucp.html
X%%PORTDOCS%%%%DOCSDIR%%/html/cvs.html
X%%PORTDOCS%%%%DOCSDIR%%/html/deliverquota.html
X%%PORTDOCS%%%%DOCSDIR%%/html/documentation.html
X%%PORTDOCS%%%%DOCSDIR%%/html/dot-courier.html
X%%PORTDOCS%%%%DOCSDIR%%/html/dot-forward.html
X%%PORTDOCS%%%%DOCSDIR%%/html/download.php
X%%PORTDOCS%%%%DOCSDIR%%/html/draft-varshavchik-exdata-smtpext.txt
X%%PORTDOCS%%%%DOCSDIR%%/html/draft-varshavchik-security-smtpext.txt
X%%PORTDOCS%%%%DOCSDIR%%/html/draft-varshavchik-verp-smtpext.txt
X%%PORTDOCS%%%%DOCSDIR%%/html/dupfilter.html
X%%PORTDOCS%%%%DOCSDIR%%/html/esmtp.html
X%%PORTDOCS%%%%DOCSDIR%%/html/esmtpd.html
X%%PORTDOCS%%%%DOCSDIR%%/html/footer.html
X%%PORTDOCS%%%%DOCSDIR%%/html/frame.js
X%%PORTDOCS%%%%DOCSDIR%%/html/header.html
X%%PORTDOCS%%%%DOCSDIR%%/html/icon.gif
X%%PORTDOCS%%%%DOCSDIR%%/html/imapd.html
X%%PORTDOCS%%%%DOCSDIR%%/html/index.html
X%%PORTDOCS%%%%DOCSDIR%%/html/install.html
X%%PORTDOCS%%%%DOCSDIR%%/html/intro.html
X%%PORTDOCS%%%%DOCSDIR%%/html/japanese_flag.png
X%%PORTDOCS%%%%DOCSDIR%%/html/layout.html
X%%PORTDOCS%%%%DOCSDIR%%/html/links.html
X%%PORTDOCS%%%%DOCSDIR%%/html/local.html
X%%PORTDOCS%%%%DOCSDIR%%/html/localmailfilter.html
X%%PORTDOCS%%%%DOCSDIR%%/html/lockmail.html
X%%PORTDOCS%%%%DOCSDIR%%/html/mailbot.html
X%%PORTDOCS%%%%DOCSDIR%%/html/maildir.html
X%%PORTDOCS%%%%DOCSDIR%%/html/maildiracl.html
X%%PORTDOCS%%%%DOCSDIR%%/html/maildirkw.html
X%%PORTDOCS%%%%DOCSDIR%%/html/maildirmake.html
X%%PORTDOCS%%%%DOCSDIR%%/html/maildirquota.html
X%%PORTDOCS%%%%DOCSDIR%%/html/maildrop.README.html
X%%PORTDOCS%%%%DOCSDIR%%/html/maildrop.html
X%%PORTDOCS%%%%DOCSDIR%%/html/maildropex.html
X%%PORTDOCS%%%%DOCSDIR%%/html/maildropfilter.html
X%%PORTDOCS%%%%DOCSDIR%%/html/maildropgdbm.html
X%%PORTDOCS%%%%DOCSDIR%%/html/maildroptips.html
X%%PORTDOCS%%%%DOCSDIR%%/html/mailq.html
X%%PORTDOCS%%%%DOCSDIR%%/html/main.html
X%%PORTDOCS%%%%DOCSDIR%%/html/makeacceptmailfor.html
X%%PORTDOCS%%%%DOCSDIR%%/html/makealiases.html
X%%PORTDOCS%%%%DOCSDIR%%/html/makedat.html
X%%PORTDOCS%%%%DOCSDIR%%/html/makehosteddomains.html
X%%PORTDOCS%%%%DOCSDIR%%/html/makemime.html
X%%PORTDOCS%%%%DOCSDIR%%/html/makepercentrelay.html
X%%PORTDOCS%%%%DOCSDIR%%/html/makesmtpaccess.html
X%%PORTDOCS%%%%DOCSDIR%%/html/manpage.css
X%%PORTDOCS%%%%DOCSDIR%%/html/menu.html
X%%PORTDOCS%%%%DOCSDIR%%/html/mimegpg.html
X%%PORTDOCS%%%%DOCSDIR%%/html/mkesmtpdcert.html
X%%PORTDOCS%%%%DOCSDIR%%/html/mkimapdcert.html
X%%PORTDOCS%%%%DOCSDIR%%/html/mkpop3dcert.html
X%%PORTDOCS%%%%DOCSDIR%%/html/modules.html
X%%PORTDOCS%%%%DOCSDIR%%/html/pcp_README.html
X%%PORTDOCS%%%%DOCSDIR%%/html/pop3d.html
X%%PORTDOCS%%%%DOCSDIR%%/html/preline.html
X%%PORTDOCS%%%%DOCSDIR%%/html/queue.html
X%%PORTDOCS%%%%DOCSDIR%%/html/reformail.html
X%%PORTDOCS%%%%DOCSDIR%%/html/reformime.html
X%%PORTDOCS%%%%DOCSDIR%%/html/rpm.html
X%%PORTDOCS%%%%DOCSDIR%%/html/sendmail.html
X%%PORTDOCS%%%%DOCSDIR%%/html/status.html
X%%PORTDOCS%%%%DOCSDIR%%/html/structures.html
X%%PORTDOCS%%%%DOCSDIR%%/html/style.css
X%%PORTDOCS%%%%DOCSDIR%%/html/submit.html
X%%PORTDOCS%%%%DOCSDIR%%/html/testmxlookup.html
X%%PORTDOCS%%@dirrm %%DOCSDIR%%/html
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X@exec chown %%MAILOWN%%:%%MAILGRP%% %D/bin/cancelmsg
X@exec chown %%BINOWN%%:mail %D/bin/maildrop
X@exec chown %%BINOWN%%:%%MAILGRP%% %D/bin/mailq
X@exec chown %%MAILOWN%%:%%MAILGRP%% %D/etc/courier
X@exec chown -Rh %%MAILOWN%%:%%MAILGRP%% %D/etc/courier/aliases
X@exec chown %%BINOWN%%:%%BINGRP%% %D/etc/courier/courierd.dist
X@exec chown %%MAILOWN%%:%%MAILGRP%% %D/etc/courier/*.txt
X@exec chown %%MAILOWN%%:%%MAILGRP%% %D/etc/courier/esmtpauthclient
X@exec chown %%MAILOWN%%:%%MAILGRP%% %D/etc/courier/module.*
X@exec chown %%MAILOWN%%:%%MAILGRP%% %D/libexec/courier/aliascombine
X@exec chown %%MAILOWN%%:%%MAILGRP%% %D/libexec/courier/aliascreate
X@exec chown %%MAILOWN%%:%%MAILGRP%% %D/libexec/courier/aliasexp
X@exec chown %%MAILOWN%%:%%MAILGRP%% %D/libexec/courier/courierd
X@exec chown -Rh %%MAILOWN%%:%%MAILGRP%% %D/libexec/courier/modules/*
X@exec chown %%MAILOWN%%:%%MAILGRP%% %D/libexec/courier/submit
X@exec chown %%MAILOWN%%:%%MAILGRP%% %D/libexec/courier/submitmkdir
X@exec chown %%MAILOWN%%:%%MAILGRP%% %D/sbin/showmodules
X@unexec echo y | crontab -u %%CACHEOWN%% -r 2>/dev/null || true
X@unexec rm -rf %%CALENDIR%% %%CACHEDIR%% 2>/dev/null || true
END-of-courier/pkg-plist
exit
--- courierport ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-i386->freebsd-ports-bugs 
Responsible-Changed-By: simon 
Responsible-Changed-When: Sat Sep 24 08:15:17 GMT 2005 
Responsible-Changed-Why:  
Misfiled ports PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=86517 

From: Milan Obuch <ports-bugs@dino.sk>
To: bug-followup@freebsd.org, martin.piayda@udo.edu
Cc: Yarema <yds@coolrat.org>
Subject: Re: ports/86517: mail/courier: Port Update of Courier 0.52.0
Date: Sat, 24 Sep 2005 17:21:08 +0200

 This patch would be easier revieved as diff, which would be
 
 diff -urN /usr/ports/mail/courier/Makefile courier/Makefile
 --- /usr/ports/mail/courier/Makefile    Sun Jul 17 00:52:34 2005
 +++ courier/Makefile    Sat Sep 24 16:51:51 2005
 @@ -6,7 +6,7 @@
  #
 
  PORTNAME=      courier
 -PORTVERSION=   0.50.1
 +PORTVERSION=   0.52.0
  CATEGORIES=    mail ipv6
  MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE}
  MASTER_SITE_SUBDIR=    courier
 @@ -73,8 +73,8 @@
  USE_RC_SUBR=   courier.sh
  .endif
 
 -CPPFLAGS+=     -I${LOCALBASE}/include
 -LDFLAGS+=      -L${LOCALBASE}/lib
 +CPPFLAGS+=     -I${LOCALBASE}/include -I${PREFIX}/include
 +LDFLAGS+=      -L${LOCALBASE}/lib -L${PREFIX}/include
  CONFIGURE_ENV= REHASH=${SCRIPTDIR}/c_rehash \
                 CPPFLAGS='${CPPFLAGS}' \
                 LDFLAGS='${LDFLAGS}'
 diff -urN /usr/ports/mail/courier/distinfo courier/distinfo
 --- /usr/ports/mail/courier/distinfo    Sun Jul 17 00:52:34 2005
 +++ courier/distinfo    Sat Sep 24 16:51:51 2005
 @@ -1,2 +1,2 @@
 -MD5 (courier-0.50.1.tar.bz2) = 6fb2b188bba8fbf244f2feb80ad99a70
 -SIZE (courier-0.50.1.tar.bz2) = 5913551
 +MD5 (courier-0.52.0.tar.bz2) = 6046be4fb3392bd0f9da3a71628a14ef
 +SIZE (courier-0.52.0.tar.bz2) = 6600449
 
 (unnecessary problem/repo file removed from diff). New courier introduces new 
 dependency however, missing here - devel/pcre. I did not test the PREFIX 
 part, yet, so without this, my patch for 0.52.0 would be
 
 diff -urN /usr/ports/mail/courier/Makefile courier-0.52.0/Makefile
 --- /usr/ports/mail/courier/Makefile    Sun Jul 17 00:52:34 2005
 +++ courier-0.52.0/Makefile     Sat Sep 17 17:18:05 2005
 @@ -6,7 +6,7 @@
  #
 
  PORTNAME=      courier
 -PORTVERSION=   0.50.1
 +PORTVERSION=   0.52.0
  CATEGORIES=    mail ipv6
  MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE}
  MASTER_SITE_SUBDIR=    courier
 @@ -15,7 +15,8 @@
  COMMENT=       Courier SMTP IMAP POP3 HTTP mail server suite
 
  BUILD_DEPENDS= courierauthconfig:${PORTSDIR}/security/courier-authlib-base
 -LIB_DEPENDS=   fam.0:${PORTSDIR}/devel/fam
 +LIB_DEPENDS=   fam.0:${PORTSDIR}/devel/fam \
 +               pcre:${PORTSDIR}/devel/pcre
  RUN_DEPENDS=   courierauthconfig:${PORTSDIR}/security/courier-authlib-base \
                 ${LOCALBASE}/share/sysconftool/sysconftool:
 ${PORTSDIR}/devel/sysconftool \
                 ${LOCALBASE}/etc/mime.types:${PORTSDIR}/misc/mime-support \
 diff -urN /usr/ports/mail/courier/distinfo courier-0.52.0/distinfo
 --- /usr/ports/mail/courier/distinfo    Sun Jul 17 00:52:34 2005
 +++ courier-0.52.0/distinfo     Sat Sep 17 16:13:06 2005
 @@ -1,2 +1,2 @@
 -MD5 (courier-0.50.1.tar.bz2) = 6fb2b188bba8fbf244f2feb80ad99a70
 -SIZE (courier-0.50.1.tar.bz2) = 5913551
 +MD5 (courier-0.52.0.tar.bz2) = 6046be4fb3392bd0f9da3a71628a14ef
 +SIZE (courier-0.52.0.tar.bz2) = 6600449
 
 As there is already bug fix release 0.52.1, I would suggest
 
 diff -urN /usr/ports/mail/courier/Makefile courier-0.52.1/Makefile
 --- /usr/ports/mail/courier/Makefile    Sun Jul 17 00:52:34 2005
 +++ courier-0.52.1/Makefile     Sat Sep 24 08:43:50 2005
 @@ -6,7 +6,7 @@
  #
 
  PORTNAME=      courier
 -PORTVERSION=   0.50.1
 +PORTVERSION=   0.52.1
  CATEGORIES=    mail ipv6
  MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE}
  MASTER_SITE_SUBDIR=    courier
 @@ -15,7 +15,8 @@
  COMMENT=       Courier SMTP IMAP POP3 HTTP mail server suite
 
  BUILD_DEPENDS= courierauthconfig:${PORTSDIR}/security/courier-authlib-base
 -LIB_DEPENDS=   fam.0:${PORTSDIR}/devel/fam
 +LIB_DEPENDS=   fam.0:${PORTSDIR}/devel/fam \
 +               pcre:${PORTSDIR}/devel/pcre
  RUN_DEPENDS=   courierauthconfig:${PORTSDIR}/security/courier-authlib-base \
                 ${LOCALBASE}/share/sysconftool/sysconftool:
 ${PORTSDIR}/devel/sysconftool \
                 ${LOCALBASE}/etc/mime.types:${PORTSDIR}/misc/mime-support \
 diff -urN /usr/ports/mail/courier/distinfo courier-0.52.1/distinfo
 --- /usr/ports/mail/courier/distinfo    Sun Jul 17 00:52:34 2005
 +++ courier-0.52.1/distinfo     Sat Sep 24 08:48:05 2005
 @@ -1,2 +1,2 @@
 -MD5 (courier-0.50.1.tar.bz2) = 6fb2b188bba8fbf244f2feb80ad99a70
 -SIZE (courier-0.50.1.tar.bz2) = 5913551
 +MD5 (courier-0.52.1.tar.bz2) = 98005b9bacd44fa9e1a2b2100907522a
 +SIZE (courier-0.52.1.tar.bz2) = 6603812
 
 (again, this is without PREFIX stuff)
 Regards,
 Milan

From: Martin Piayda <martin.piayda@udo.edu>
To: bug-followup@FreeBSD.org, martin.piayda@udo.edu
Cc:  
Subject: Re: ports/86517: mail/courier: Port Update of Courier 0.52.0
Date: Sat, 24 Sep 2005 18:51:14 +0200

 Updating to 0.52.1 and tested in a prefixed environment. It builds well,
 uninstalls, reinstalls ...
 
 The md5-diff is certainly not the main thing, so I'm leaving it out
 here.
 
 Regards,
 Martin Piayda
 
 
 ----- snip -----------
 
 --- courier/Makefile    Sat Sep 24 18:45:16 2005
 +++ Makefile    Sat Sep 24 18:45:58 2005
 @@ -6,7 +6,7 @@
  #
 
  PORTNAME=      courier
 -PORTVERSION=   0.50.1
 +PORTVERSION=   0.52.1
  CATEGORIES=    mail ipv6
  MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE}
  MASTER_SITE_SUBDIR=    courier
 @@ -17,6 +17,7 @@
  BUILD_DEPENDS= courierauthconfig:
 ${PORTSDIR}/security/courier-authlib-base
  LIB_DEPENDS=   fam.0:${PORTSDIR}/devel/fam
  RUN_DEPENDS=   courierauthconfig:
 ${PORTSDIR}/security/courier-authlib-base \
 +                pcre:${PORTSDIR}/devel/pcre \
                 ${LOCALBASE}/share/sysconftool/sysconftool:
 ${PORTSDIR}/devel/sysconftool \
                 ${LOCALBASE}/etc/mime.types:
 ${PORTSDIR}/misc/mime-support \
                 ${SITE_PERL}/Net/CIDR.pm:
 ${PORTSDIR}/net-mgmt/p5-Net-CIDR
 @@ -73,8 +74,8 @@
  USE_RC_SUBR=   courier.sh
  .endif
 -CPPFLAGS+=     -I${LOCALBASE}/include
 -LDFLAGS+=      -L${LOCALBASE}/lib
 +CPPFLAGS+=     -I${LOCALBASE}/include -I${PREFIX}/include
 +LDFLAGS+=      -L${LOCALBASE}/lib -L${PREFIX}/include
  CONFIGURE_ENV= REHASH=${SCRIPTDIR}/c_rehash \
                 CPPFLAGS='${CPPFLAGS}' \
                 LDFLAGS='${LDFLAGS}'
 
 ---- snip --------
 
 

From: Martin Piayda <martin.piayda@udo.edu>
To: bug-followup@FreeBSD.org, martin.piayda@udo.edu
Cc:  
Subject: Re: ports/86517: mail/courier: Port Update of Courier 0.52.0
Date: Sun, 25 Sep 2005 21:47:34 +0200

 Ok, here's a corrected version, as I found, that most users won't have
 courierauthconfig not in path.
 
 Therefore I'm passing it when configuring the package.
 The parameter is COURIERAUTHCONFIG and is assembled by the installation
 prefix and the relative path to courierauthconfig.
 This one, again, is tested. :-)
 
 ------- snip --------
 
 --- courier/Makefile    Sat Sep 24 18:45:16 2005
 +++ Makefile    Sun Sep 25 21:24:24 2005
 @@ -6,7 +6,7 @@
  #
 
  PORTNAME=      courier
 -PORTVERSION=   0.50.1
 +PORTVERSION=   0.52.1
  CATEGORIES=    mail ipv6
  MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE}
  MASTER_SITE_SUBDIR=    courier
 @@ -17,10 +17,12 @@
  BUILD_DEPENDS= courierauthconfig:
 ${PORTSDIR}/security/courier-authlib-base
  LIB_DEPENDS=   fam.0:${PORTSDIR}/devel/fam
  RUN_DEPENDS=   courierauthconfig:
 ${PORTSDIR}/security/courier-authlib-base \
 +                pcre:${PORTSDIR}/devel/pcre \
                 ${LOCALBASE}/share/sysconftool/sysconftool:
 ${PORTSDIR}/devel/sysconftool \
                 ${LOCALBASE}/etc/mime.types:
 ${PORTSDIR}/misc/mime-support \
                 ${SITE_PERL}/Net/CIDR.pm:
 ${PORTSDIR}/net-mgmt/p5-Net-CIDR
 
 +
  CONFLICTS=     exim-4.* courier-imap-2.* maildrop-1.* \
                 postfix-1.* postfix-2.* \
                 qmail-1.* qmail-*-1.* \
 @@ -73,8 +75,8 @@
  USE_RC_SUBR=   courier.sh
  .endif
 
 -CPPFLAGS+=     -I${LOCALBASE}/include
 -LDFLAGS+=      -L${LOCALBASE}/lib
 +CPPFLAGS+=     -I${LOCALBASE}/include -I${PREFIX}/include
 +LDFLAGS+=      -L${LOCALBASE}/lib -L${PREFIX}/lib
  CONFIGURE_ENV= REHASH=${SCRIPTDIR}/c_rehash \
                 CPPFLAGS='${CPPFLAGS}' \
                 LDFLAGS='${LDFLAGS}'
 @@ -105,7 +107,8 @@
                 --with-default-maildrop=${MAILDROPDEFAULT} \
                 --with-paranoid-smtpext \
                 --enable-workarounds-for-imap-client-bugs \
 -               --cache-file=${WRKDIR}/courier.cache
 +               --cache-file=${WRKDIR}/courier.cache \
 +               COURIERAUTHCONFIG=${PREFIX}/bin/courierauthconfig
 
  INSTALL_TARGET=        install-strip install-perms
 
 ------- snip --------
 
State-Changed-From-To: open->feedback 
State-Changed-By: pav 
State-Changed-When: Sun Oct 2 20:07:35 GMT 2005 
State-Changed-Why:  
The last patch is corrupted (line wrappings), can you resend it properly? 


Responsible-Changed-From-To: freebsd-ports-bugs->pav 
Responsible-Changed-By: pav 
Responsible-Changed-When: Sun Oct 2 20:07:35 GMT 2005 
Responsible-Changed-Why:  
Track 

http://www.freebsd.org/cgi/query-pr.cgi?pr=86517 

From: Pav Lucistnik <pav@FreeBSD.org>
To: yds@CoolRat.org, bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/86517: mail/courier: Port Update of Courier 0.52.0
Date: Wed, 05 Oct 2005 22:43:40 +0200

 --=-V0NQwIiSna+M40z81f5f
 Content-Type: text/plain
 Content-Transfer-Encoding: 7bit
 
 Dear maintainer of FreeBSD port mail/courier, do you approve attached
 patch with update to 0.52.1?
 
 
 -- 
 Pav Lucistnik <pav@oook.cz>
               <pav@FreeBSD.org>
 
 
 --=-V0NQwIiSna+M40z81f5f
 Content-Disposition: attachment; filename=courier.patch
 Content-Transfer-Encoding: base64
 Content-Type: text/x-patch; name=courier.patch; charset=ISO-8859-2
 
 ZGlmZiAtdXJOIC91c3IvcG9ydHMvbWFpbC9jb3VyaWVyL01ha2VmaWxlIGNvdXJpZXItMC41Mi4x
 L01ha2VmaWxlDQotLS0gL3Vzci9wb3J0cy9tYWlsL2NvdXJpZXIvTWFrZWZpbGUJU3VuIEp1bCAx
 NyAwMDo1MjozNCAyMDA1DQorKysgY291cmllci0wLjUyLjEvTWFrZWZpbGUJV2VkIE9jdCAgNSAy
 MjozMzoyOCAyMDA1DQpAQCAtNiw3ICs2LDcgQEANCiAjDQogDQogUE9SVE5BTUU9CWNvdXJpZXIN
 Ci1QT1JUVkVSU0lPTj0JMC41MC4xDQorUE9SVFZFUlNJT049CTAuNTIuMQ0KIENBVEVHT1JJRVM9
 CW1haWwgaXB2Ng0KIE1BU1RFUl9TSVRFUz0JJHtNQVNURVJfU0lURV9TT1VSQ0VGT1JHRX0NCiBN
 QVNURVJfU0lURV9TVUJESVI9CWNvdXJpZXINCkBAIC0xNSw3ICsxNSw4IEBADQogQ09NTUVOVD0J
 Q291cmllciBTTVRQIElNQVAgUE9QMyBIVFRQIG1haWwgc2VydmVyIHN1aXRlDQogDQogQlVJTERf
 REVQRU5EUz0JY291cmllcmF1dGhjb25maWc6JHtQT1JUU0RJUn0vc2VjdXJpdHkvY291cmllci1h
 dXRobGliLWJhc2UNCi1MSUJfREVQRU5EUz0JZmFtLjA6JHtQT1JUU0RJUn0vZGV2ZWwvZmFtDQor
 TElCX0RFUEVORFM9CWZhbS4wOiR7UE9SVFNESVJ9L2RldmVsL2ZhbSBcDQorCQlwY3JlOiR7UE9S
 VFNESVJ9L2RldmVsL3BjcmUNCiBSVU5fREVQRU5EUz0JY291cmllcmF1dGhjb25maWc6JHtQT1JU
 U0RJUn0vc2VjdXJpdHkvY291cmllci1hdXRobGliLWJhc2UgXA0KIAkJJHtMT0NBTEJBU0V9L3No
 YXJlL3N5c2NvbmZ0b29sL3N5c2NvbmZ0b29sOiR7UE9SVFNESVJ9L2RldmVsL3N5c2NvbmZ0b29s
 IFwNCiAJCSR7TE9DQUxCQVNFfS9ldGMvbWltZS50eXBlczoke1BPUlRTRElSfS9taXNjL21pbWUt
 c3VwcG9ydCBcDQpAQCAtNzMsOCArNzQsOCBAQA0KIFVTRV9SQ19TVUJSPQljb3VyaWVyLnNoDQog
 LmVuZGlmDQogDQotQ1BQRkxBR1MrPQktSSR7TE9DQUxCQVNFfS9pbmNsdWRlDQotTERGTEFHUys9
 CS1MJHtMT0NBTEJBU0V9L2xpYg0KK0NQUEZMQUdTKz0JLUkke0xPQ0FMQkFTRX0vaW5jbHVkZSAt
 SSR7UFJFRklYfS9pbmNsdWRlDQorTERGTEFHUys9CS1MJHtMT0NBTEJBU0V9L2xpYiAtTCR7UFJF
 RklYfS9saWINCiBDT05GSUdVUkVfRU5WPQlSRUhBU0g9JHtTQ1JJUFRESVJ9L2NfcmVoYXNoIFwN
 CiAJCUNQUEZMQUdTPScke0NQUEZMQUdTfScgXA0KIAkJTERGTEFHUz0nJHtMREZMQUdTfScNCkBA
 IC0xMDUsNyArMTA2LDggQEANCiAJCS0td2l0aC1kZWZhdWx0LW1haWxkcm9wPSR7TUFJTERST1BE
 RUZBVUxUfSBcDQogCQktLXdpdGgtcGFyYW5vaWQtc210cGV4dCBcDQogCQktLWVuYWJsZS13b3Jr
 YXJvdW5kcy1mb3ItaW1hcC1jbGllbnQtYnVncyBcDQotCQktLWNhY2hlLWZpbGU9JHtXUktESVJ9
 L2NvdXJpZXIuY2FjaGUNCisJCS0tY2FjaGUtZmlsZT0ke1dSS0RJUn0vY291cmllci5jYWNoZSBc
 DQorCQlDT1VSSUVSQVVUSENPTkZJRz0ke1BSRUZJWH0vYmluL2NvdXJpZXJhdXRoY29uZmlnDQog
 DQogSU5TVEFMTF9UQVJHRVQ9CWluc3RhbGwtc3RyaXAgaW5zdGFsbC1wZXJtcw0KIA0KZGlmZiAt
 dXJOIC91c3IvcG9ydHMvbWFpbC9jb3VyaWVyL2Rpc3RpbmZvIGNvdXJpZXItMC41Mi4xL2Rpc3Rp
 bmZvDQotLS0gL3Vzci9wb3J0cy9tYWlsL2NvdXJpZXIvZGlzdGluZm8JU3VuIEp1bCAxNyAwMDo1
 MjozNCAyMDA1DQorKysgY291cmllci0wLjUyLjEvZGlzdGluZm8JU2F0IFNlcCAyNCAwODo0ODow
 NSAyMDA1DQpAQCAtMSwyICsxLDIgQEANCi1NRDUgKGNvdXJpZXItMC41MC4xLnRhci5iejIpID0g
 NmZiMmIxODhiYmE4ZmJmMjQ0ZjJmZWI4MGFkOTlhNzANCi1TSVpFIChjb3VyaWVyLTAuNTAuMS50
 YXIuYnoyKSA9IDU5MTM1NTENCitNRDUgKGNvdXJpZXItMC41Mi4xLnRhci5iejIpID0gOTgwMDVi
 OWJhY2Q0NGZhOWUxYTJiMjEwMDkwNzUyMmENCitTSVpFIChjb3VyaWVyLTAuNTIuMS50YXIuYnoy
 KSA9IDY2MDM4MTINCg==
 
 
 --=-V0NQwIiSna+M40z81f5f--

From: Yarema <yds@CoolRat.org>
To: bug-followup@FreeBSD.org, Pav Lucistnik <pav@FreeBSD.org>
Cc: Martin Piayda <martin.piayda@udo.edu>,
  Milan Obuch <ports-bugs@dino.sk>
Subject: Re: ports/86517: mail/courier: Port Update of Courier 0.52.0
Date: Tue, 11 Oct 2005 02:24:30 -0400

 --==========F14460D0BC4C4B8D5A27==========
 Content-Type: text/plain; charset=us-ascii; format=flowed
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 --On Wednesday, October 05, 2005 22:43:40 +0200 Pav Lucistnik 
 <pav@FreeBSD.org> wrote:
 
 > Dear maintainer of FreeBSD port mail/courier, do you approve attached
 > patch with update to 0.52.1?
 >
 > --
 > Pav Lucistnik <pav@oook.cz>
 >               <pav@FreeBSD.org>
 
 Pav,
 
 I do not approve the patch.  I'm not sure what Martin Piayda 
 <martin.piayda@udo.edu>, the originator of PR ports/86517, was trying to 
 accomplish, but I don't believe that is correct usage of ${PREFIX}.  I am 
 open to discuss what it is he was attempting.
 
 Martin,
 
 I think what you need to do is assign/override ${LOCALBASE} instead of 
 ${PREFIX} to get the desired effect without any special patching to this or 
 any other ports with which you attempt "a
 possible prefixed installation".  The interaction between ${LOCALBASE} || 
 ${X11BASE} || ${LINUXBASE} and ${PREFIX} is quite subtle.  However it is 
 the ${*BASE} variables which are meant to be overridden by users, not 
 ${PREFIX}.  ${PREFIX} is to be overridden by portmaintainer only and 
 usually for ports which do not attempt to follow hier(7) otherwise we have 
 handy shortcuts like USE_X_PREFIX or USE_LINUX_PREFIX or even KDE_PREFIX 
 etc. etc.  Some ports may install and work with user assigned ${PREFIX}. 
 But ALL properly written ports should work with user assigned ${LOCALBASE} 
 or ${X11BASE} or ${LINUXBASE}.
 
 As an asside the proper place for setting:
 CONFIGURE_ARGS+=COURIERAUTHCONFIG=${PREFIX}/bin/courierauthconfig
 would be:
 CONFIGURE_ENV+=COURIERAUTHCONFIG=${LOCALBASE}/bin/courierauthconfig
 but it should not be necessary if ${LOCALBASE}/bin is in the ${PATH} which 
 it should be. If ${PATH} is not set to include ${LOCALBASE}/bin then:
 RUN_DEPENDS=courierauthconfig:${PORTSDIR}/security/courier-authlib-base
 will also fail.  So I am not including the COURIERAUTHCONFIG setting in my 
 patch below.
 
 In any case attached is my update of mail/courier to 0.52.1 sans the 
 ${PREFIX} bits explained above.  pkg-plist needed to be updated to account 
 for:
 
 2005-08-13  Mr. Sam  <mrsam@courier-mta.com>
 	* rootcerts/certs.sh: Updated list of trusted root certs.
 
 in the ChangeLog.
 
 Thanks to all who contributed to this update.  And my apologies for being 
 so pedantic in my explanations.  I figure if I do not agree with a 
 contributed patch I at least owe a decent attempt at explaining myself..
 
 -- 
 Yarema
 http://yds.CoolRat.org
 --==========F14460D0BC4C4B8D5A27==========
 Content-Type: text/plain; charset=iso-8859-1; name="courier.patch"
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: attachment; filename="courier.patch"; size=14435
 
 diff -u -ruN courier-0.50.1/Makefile courier/Makefile
 --- courier-0.50.1/Makefile	Sat Jul 16 18:52:34 2005
 +++ courier/Makefile	Tue Oct 11 01:11:35 2005
 @@ -6,7 +6,7 @@
  #
 =20
  PORTNAME=3D	courier
 -PORTVERSION=3D	0.50.1
 +PORTVERSION=3D	0.52.1
  CATEGORIES=3D	mail ipv6
  MASTER_SITES=3D	${MASTER_SITE_SOURCEFORGE}
  MASTER_SITE_SUBDIR=3D	courier
 @@ -15,7 +15,8 @@
  COMMENT=3D	Courier SMTP IMAP POP3 HTTP mail server suite
 =20
  BUILD_DEPENDS=3D	courierauthconfig:${PORTSDIR}/security/courier-authlib-bas=
 e
 -LIB_DEPENDS=3D	fam.0:${PORTSDIR}/devel/fam
 +LIB_DEPENDS=3D	fam:${PORTSDIR}/devel/fam \
 +		pcre:${PORTSDIR}/devel/pcre
  RUN_DEPENDS=3D	courierauthconfig:${PORTSDIR}/security/courier-authlib-base =
 \
  		${LOCALBASE}/share/sysconftool/sysconftool:${PORTSDIR}/devel/sysconftool =
 \
  		${LOCALBASE}/etc/mime.types:${PORTSDIR}/misc/mime-support \
 @@ -264,6 +265,9 @@
  	@${ECHO_MSG} "=3D=3D=3D> =
 --------------------------------------------------------"
  	@${ECHO_MSG} "=3D=3D=3D>	Run 'make config' to (re)configure ${PKGNAME}"
  	@${ECHO_MSG} "=3D=3D=3D> =
 --------------------------------------------------------"
 +
 +pre-patch:
 +	@${CP} ${TEMPLATES}/config.guess ${TEMPLATES}/config.sub ${WRKSRC}
 =20
  post-patch:
  	@${REINPLACE_CMD} -e 's|@datadir@|@sysconfdir@|g' \
 diff -u -ruN courier-0.50.1/distinfo courier/distinfo
 --- courier-0.50.1/distinfo	Sat Jul 16 18:52:34 2005
 +++ courier/distinfo	Mon Oct 10 20:04:46 2005
 @@ -1,2 +1,2 @@
 -MD5 (courier-0.50.1.tar.bz2) =3D 6fb2b188bba8fbf244f2feb80ad99a70
 -SIZE (courier-0.50.1.tar.bz2) =3D 5913551
 +MD5 (courier-0.52.1.tar.bz2) =3D 98005b9bacd44fa9e1a2b2100907522a
 +SIZE (courier-0.52.1.tar.bz2) =3D 6603812
 diff -u -ruN courier-0.50.1/pkg-plist courier/pkg-plist
 --- courier-0.50.1/pkg-plist	Sat Jul 16 18:52:34 2005
 +++ courier/pkg-plist	Tue Oct 11 00:41:05 2005
 @@ -306,168 +306,180 @@
  share/courier/perlfilter-wrapper.pl
  share/courier/pop3d
  share/courier/pop3d-ssl
 +share/courier/rootcerts/02b73561.0
 +share/courier/rootcerts/0481cb65.0
  share/courier/rootcerts/052e396b.0
 -share/courier/rootcerts/0bb21872.0
  share/courier/rootcerts/0c364b2d.0
 +share/courier/rootcerts/0dbd0096.0
  share/courier/rootcerts/0e82f83a.0
 +share/courier/rootcerts/11a09b38.0
  share/courier/rootcerts/11f154d6.0
 +share/courier/rootcerts/124bbd54.0
  share/courier/rootcerts/128b9c8d.0
  share/courier/rootcerts/19899da5.0
 -share/courier/rootcerts/1a147d5b.0
 -share/courier/rootcerts/1bb6c7e0.0
 +share/courier/rootcerts/219d9499.0
 +share/courier/rootcerts/23f4c490.0
  share/courier/rootcerts/256fd83b.0
 -share/courier/rootcerts/2d047263.0
  share/courier/rootcerts/2edf7016.0
 +share/courier/rootcerts/2fb1850a.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/4166ec0c.0
 +share/courier/rootcerts/4184de39.0
  share/courier/rootcerts/4643210f.0
 +share/courier/rootcerts/47996b5c.0
  share/courier/rootcerts/4d654d1d.0
 -share/courier/rootcerts/5480ace1.0
 +share/courier/rootcerts/4fbd6bfa.0
  share/courier/rootcerts/54edfa5d.0
 -share/courier/rootcerts/56e607f4.0
  share/courier/rootcerts/594f1775.0
 -share/courier/rootcerts/5ee07a24.0
 +share/courier/rootcerts/5a5372fc.0
 +share/courier/rootcerts/5cf9d536.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/635ccfd5.0
  share/courier/rootcerts/6c55cf77.0
 -share/courier/rootcerts/6d6ec79c.0
 -share/courier/rootcerts/700b8679.0
 +share/courier/rootcerts/6e8bf996.0
 +share/courier/rootcerts/6fcc125d.0
  share/courier/rootcerts/709afd2b.0
 +share/courier/rootcerts/72bf6a04.0
  share/courier/rootcerts/72fa7371.0
 -share/courier/rootcerts/73451336.0
 -share/courier/rootcerts/739b7930.0
  share/courier/rootcerts/74c26bd0.0
 +share/courier/rootcerts/755f7420.0
 +share/courier/rootcerts/75680d2e.0
  share/courier/rootcerts/7651b327.0
 -share/courier/rootcerts/76d6205a.0
 +share/courier/rootcerts/76579174.0
  share/courier/rootcerts/788c9bfc.0
 -share/courier/rootcerts/7a9820c1.0
 +share/courier/rootcerts/7999be0d.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/8470719d.0
 +share/courier/rootcerts/86f32474.0
  share/courier/rootcerts/8f7b96c4.0
 +share/courier/rootcerts/8fe643df.0
  share/courier/rootcerts/95750816.0
  share/courier/rootcerts/97b4211c.0
 +share/courier/rootcerts/9ec3a561.0
 +share/courier/rootcerts/a0bc6fbb.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/a3896b44.0
 +share/courier/rootcerts/a6776c69.0
 +share/courier/rootcerts/a7605362.0
 +share/courier/rootcerts/aaa-certificate-services.pem
  share/courier/rootcerts/aaa45464.0
  share/courier/rootcerts/aba-ecom-root-ca.pem
 +share/courier/rootcerts/add67345.0
  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/america-online-root-certification-00.pem
 +share/courier/rootcerts/america-online-root-certification-01.pem
 +share/courier/rootcerts/aol-time-warner-root-certification-00.pem
 +share/courier/rootcerts/aol-time-warner-root-certification-01.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/bda4cc84.0
 +share/courier/rootcerts/betrusted-root-ca-baltimore-implementation.pem
 +share/courier/rootcerts/betrusted-root-ca-entrust-implementation.pem
 +share/courier/rootcerts/betrusted-root-ca-rsa-implementation.pem
  share/courier/rootcerts/betrusted-root-ca.pem
 -share/courier/rootcerts/bffe8b5d.0
 +share/courier/rootcerts/bf87590f.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/ccb919f9.0
 +share/courier/rootcerts/cdaebb72.0
 +share/courier/rootcerts/certum-ca.pem
 +share/courier/rootcerts/chambers-of-commerce-root.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/d537fba6.0
  share/courier/rootcerts/d78a75c7.0
 -share/courier/rootcerts/db65db21.0
 +share/courier/rootcerts/d8274e24.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/ee7cd6fb.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/f3cf1e8e.0
  share/courier/rootcerts/f4996e82.0
 +share/courier/rootcerts/f64d9715.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/f950ccc2.0
 +share/courier/rootcerts/ff783690.0
 +share/courier/rootcerts/geotrust-global-ca.pem
 +share/courier/rootcerts/global-chambersign-root.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/ips-ca-chained-cas-certification.pem
 +share/courier/rootcerts/ips-ca-clase1-certification-authority.pem
 +share/courier/rootcerts/ips-ca-clase3-certification-authority.pem
 +share/courier/rootcerts/ips-ca-clasea1-certification-authority.pem
 +share/courier/rootcerts/ips-ca-clasea3-certification-authority.pem
 +share/courier/rootcerts/ips-ca-timestamping-certification.pem
 +share/courier/rootcerts/ips-servidores.pem
 +share/courier/rootcerts/netlock-expressz-class-c-tanusitvanykiado.pem
 +share/courier/rootcerts/netlock-kozjegyzoi-class-a-tanusitvanykiado.pem
 +share/courier/rootcerts/netlock-uzleti-class-b-tanusitvanykiado.pem
 +share/courier/rootcerts/quovadis-root-certification-authority.pem
  share/courier/rootcerts/rsa-data-security-inc-secure-server.pem
 +share/courier/rootcerts/rsa-security-inc-rsa-security-1024.pem
 +share/courier/rootcerts/rsa-security-inc-rsa-security-2048.pem
 +share/courier/rootcerts/secom-trust-net-security-communication.pem
 +share/courier/rootcerts/secure-certificate-services.pem
  share/courier/rootcerts/secure-server-ocsp-responder.pem
 +share/courier/rootcerts/sonera-class1-ca.pem
 +share/courier/rootcerts/sonera-class2-ca.pem
 +share/courier/rootcerts/staat-der-nederlanden-root-ca.pem
 +share/courier/rootcerts/starfield-technologies-inc-starfield.pem
  share/courier/rootcerts/tc-trustcenter-for-security-in-00.pem
  share/courier/rootcerts/tc-trustcenter-for-security-in-01.pem
 -share/courier/rootcerts/tc-trustcenter-for-security-in-02.pem
 -share/courier/rootcerts/tc-trustcenter-for-security-in-03.pem
 -share/courier/rootcerts/tc-trustcenter-for-security-in-04.pem
 +share/courier/rootcerts/tdc-internet-tdc-internet-root.pem
 +share/courier/rootcerts/tdc-oces-ca.pem
  share/courier/rootcerts/thawte-personal-basic-ca.pem
  share/courier/rootcerts/thawte-personal-freemail-ca.pem
  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/the-go-daddy-group-inc-go-daddy.pem
 +share/courier/rootcerts/trusted-certificate-services.pem
 +share/courier/rootcerts/utn-datacorp-sgc.pem
 +share/courier/rootcerts/utn-userfirst-client-authentication.pem
 +share/courier/rootcerts/utn-userfirst-hardware.pem
 +share/courier/rootcerts/utn-userfirst-network-applications.pem
 +share/courier/rootcerts/utn-userfirst-object.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
 @@ -480,12 +492,8 @@
  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
 +share/courier/rootcerts/visa-ecommerce-root.pem
 +share/courier/rootcerts/xramp-global-certification-authority.pem
  @dirrm share/courier/rootcerts
  share/courier/sqwebmail/cleancache.pl
  share/courier/sqwebmail/html/en-us/CHARSET
 diff -u -ruN courier-0.50.1/scripts/c_rehash courier/scripts/c_rehash
 --- courier-0.50.1/scripts/c_rehash	Sat Jul 16 18:52:35 2005
 +++ courier/scripts/c_rehash	Mon Oct 10 17:29:30 2005
 @@ -1,4 +1,4 @@
 -#!/usr/bin/perl
 +#!/usr/bin/env perl
 =20
 =20
  # Perl c_rehash script, scan all files in a directory
 @@ -6,7 +6,7 @@
 =20
  my $openssl;
 =20
 -my $dir =3D "/usr/local/ssl";
 +my $dir =3D "/etc/ssl";
 =20
  if(defined $ENV{OPENSSL}) {
  	$openssl =3D $ENV{OPENSSL};
 
 --==========F14460D0BC4C4B8D5A27==========--
 

From: Yarema <yds@CoolRat.org>
To: Martin Piayda <martin.piayda@udo.edu>
Cc: bug-followup@FreeBSD.org, Pav Lucistnik <pav@FreeBSD.org>,
  Milan Obuch <ports-bugs@dino.sk>
Subject: Re: ports/86517: mail/courier: Port Update of Courier 0.52.0
Date: Tue, 11 Oct 2005 04:04:11 -0400

 --On Tuesday, October 11, 2005 09:36:09 +0200 Martin Piayda 
 <martin.piayda@udo.edu> wrote:
 
 > On Di, 2005-10-11 at 02:24 -0400, Yarema wrote:
 >
 >> Martin,
 >>
 >> I think what you need to do is assign/override ${LOCALBASE} instead of
 >> ${PREFIX} to get the desired effect without any special patching to this
 >> or  any other ports with which you attempt "a
 >> possible prefixed installation".  The interaction between ${LOCALBASE}
 >> ||  ${X11BASE} || ${LINUXBASE} and ${PREFIX} is quite subtle.  However
 >> it is  the ${*BASE} variables which are meant to be overridden by users,
 >> not  ${PREFIX}.  ${PREFIX} is to be overridden by portmaintainer only
 >> and  usually for ports which do not attempt to follow hier(7) otherwise
 >> we have  handy shortcuts like USE_X_PREFIX or USE_LINUX_PREFIX or even
 >> KDE_PREFIX  etc. etc.  Some ports may install and work with user
 >> assigned ${PREFIX}.  But ALL properly written ports should work with
 >> user assigned ${LOCALBASE}  or ${X11BASE} or ${LINUXBASE}.
 >
 > Hi,
 >
 > I'll keep my comment short.
 > Using LOCALBASE results in a redundant installation of the necessary
 > dependencies into the PREFIXed path altough they might already be
 > installed. I see no reason for duplicate packages on the target system,
 > so I used PREFIX which did what I was looking for. That's it.
 
 Martin,
 
 Still, I don't think ${PREFIX} is meant to work the way you are trying to 
 use it.  Try setting your overrides in Makefile.local or create a 
 Makefile.diff which you can apply to the port to do what you want.  I use 
 both of these methods for many ports I install where I feel like tweaking 
 the port install to suit my needs.  In most cases it's not general enough 
 to submit as a patch to the port maintainer.  In your case, I think I 
 understand what you're trying to do, but I do not believe ${PREFIX} was 
 meant to be used that way.  As for overridding ${LOCALBASE} -- that's meant 
 to be done in /etc/make.conf where you could set it to something like 
 /opt/local .. adjust your path accordingly and have all you ports and 
 dependencies live there.  It isn't just mail/courier which doesn't 
 accommodate what you're attempting.. most ports with any sort of 
 interdependencies will break the exact same way.
 
 Out of curiosity, what is it that you're trying to do?
 
 Regards,
 -- 
 Yarema
 http://yds.CoolRat.org

From: Milan Obuch <ports-bugs@dino.sk>
To: Yarema <yds@coolrat.org>
Cc: bug-followup@freebsd.org, Pav Lucistnik <pav@freebsd.org>,
  Martin Piayda <martin.piayda@udo.edu>
Subject: Re: ports/86517: mail/courier: Port Update of Courier 0.52.0
Date: Tue, 11 Oct 2005 10:30:18 +0200

 On Tuesday 11 October 2005 08:24, Yarema wrote:
 > --On Wednesday, October 05, 2005 22:43:40 +0200 Pav Lucistnik
 >
 > <pav@FreeBSD.org> wrote:
 > > Dear maintainer of FreeBSD port mail/courier, do you approve attached
 > > patch with update to 0.52.1?
 > >
 > > --
 > > Pav Lucistnik <pav@oook.cz>
 > >               <pav@FreeBSD.org>
 >
 > Pav,
 >
 > I do not approve the patch.  I'm not sure what Martin Piayda
 > <martin.piayda@udo.edu>, the originator of PR ports/86517, was trying to
 > accomplish, but I don't believe that is correct usage of ${PREFIX}.  I am
 > open to discuss what it is he was attempting.
 >
 
 Patch applied, build succesfull. Looks like running too.
 Milan
State-Changed-From-To: feedback->closed 
State-Changed-By: pav 
State-Changed-When: Tue Oct 11 09:05:16 GMT 2005 
State-Changed-Why:  
Maintainer's version of patch committed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=86517 

From: Martin Piayda <martin.piayda@udo.edu>
To: Yarema <yds@CoolRat.org>
Cc: bug-followup@FreeBSD.org, Pav Lucistnik <pav@FreeBSD.org>, Milan Obuch <ports-bugs@dino.sk>
Subject: Re: ports/86517: mail/courier: Port Update of Courier 0.52.0
Date: Tue, 11 Oct 2005 09:36:09 +0200

 On Di, 2005-10-11 at 02:24 -0400, Yarema wrote:
 
 > I do not approve the patch.  I'm not sure what Martin Piayda 
 > <martin.piayda@udo.edu>, the originator of PR ports/86517, was trying to 
 > accomplish, but I don't believe that is correct usage of ${PREFIX}.  I am 
 > open to discuss what it is he was attempting.
 > 
 > Martin,
 > 
 > I think what you need to do is assign/override ${LOCALBASE} instead of 
 > ${PREFIX} to get the desired effect without any special patching to this or 
 > any other ports with which you attempt "a
 > possible prefixed installation".  The interaction between ${LOCALBASE} || 
 > ${X11BASE} || ${LINUXBASE} and ${PREFIX} is quite subtle.  However it is 
 > the ${*BASE} variables which are meant to be overridden by users, not 
 > ${PREFIX}.  ${PREFIX} is to be overridden by portmaintainer only and 
 > usually for ports which do not attempt to follow hier(7) otherwise we have 
 > handy shortcuts like USE_X_PREFIX or USE_LINUX_PREFIX or even KDE_PREFIX 
 > etc. etc.  Some ports may install and work with user assigned ${PREFIX}. 
 > But ALL properly written ports should work with user assigned ${LOCALBASE} 
 > or ${X11BASE} or ${LINUXBASE}.
 
 Hi,
 
 I'll keep my comment short.
 Using LOCALBASE results in a redundant installation of the necessary
 dependencies into the PREFIXed path altough they might already be
 installed. I see no reason for duplicate packages on the target system,
 so I used PREFIX which did what I was looking for. That's it.
 
 Regards,
 Martin 
 

From: Martin Piayda <martin.piayda@udo.edu>
To: Yarema <yds@CoolRat.org>
Cc: bug-followup@FreeBSD.org, Pav Lucistnik <pav@FreeBSD.org>, Milan Obuch <ports-bugs@dino.sk>
Subject: Re: ports/86517: mail/courier: Port Update of Courier 0.52.0
Date: Tue, 11 Oct 2005 10:20:37 +0200

 On Di, 2005-10-11 at 04:04 -0400, Yarema wrote:
 > --On Tuesday, October 11, 2005 09:36:09 +0200 Martin Piayda 
 > <martin.piayda@udo.edu> wrote:
 > 
 > > On Di, 2005-10-11 at 02:24 -0400, Yarema wrote:
 
 > Martin,
 > 
 > Still, I don't think ${PREFIX} is meant to work the way you are trying to 
 > use it.  Try setting your overrides in Makefile.local or create a 
 > Makefile.diff which you can apply to the port to do what you want.  I use 
 > both of these methods for many ports I install where I feel like tweaking 
 > the port install to suit my needs.  In most cases it's not general enough 
 > to submit as a patch to the port maintainer.  In your case, I think I 
 > understand what you're trying to do, but I do not believe ${PREFIX} was 
 > meant to be used that way.  As for overridding ${LOCALBASE} -- that's meant 
 > to be done in /etc/make.conf where you could set it to something like 
 > /opt/local .. adjust your path accordingly and have all you ports and 
 > dependencies live there.  It isn't just mail/courier which doesn't 
 > accommodate what you're attempting.. most ports with any sort of 
 > interdependencies will break the exact same way.
 > 
 > Out of curiosity, what is it that you're trying to do?
 
 What you're trying to suggest is to keep a local repository for
 Makefiles in order to make them PREFIXable. This is not what I've read
 in the manual of the Freebsd's ports! Ports shall be installable via the
 ``make PREFIX=$CUSTOMPATH'' command either in the LOCALBASE defined by
 make.conf or by an explicit PREFIX, which most certainly overrides
 LOCALBASE. Setting LOCALBASE in make.conf will result in a global target
 for ports and in a way to install ports, that cannot be dynamically
 installed into custom paths, just like /usr/local/bla/blub/myport. This
 works with most ports, but not with courier. This is not about tweaking
 but about making the port be installed quite flexible into either the
 path defined in make.conf and into a path defined at the commandlike
 given to the Makefile itself. That's it and I tested this way and it
 works.
 Nothing will break, nor will nothing lose it's functionality. I don't
 understand your point here, sorry.
 
>Unformatted:
