View | Details | Raw Unified | Return to bug 93269
Collapse All | Expand All

(-)courier/Makefile (-7 / +10 lines)
Lines 7-12 Link Here
7
7
8
PORTNAME=	courier
8
PORTNAME=	courier
9
PORTVERSION=	0.52.2
9
PORTVERSION=	0.52.2
10
PORTREVISION=	1
10
CATEGORIES=	mail ipv6
11
CATEGORIES=	mail ipv6
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
12
MASTER_SITE_SUBDIR=	courier
13
MASTER_SITE_SUBDIR=	courier
Lines 59-74 Link Here
59
MIMETYPES=	${LOCALBASE}/etc/mime.types
60
MIMETYPES=	${LOCALBASE}/etc/mime.types
60
WITH_TRANSPORT=	local esmtp dsn
61
WITH_TRANSPORT=	local esmtp dsn
61
62
63
USE_AUTOTOOLS=	libtool:15
62
USE_BZIP2=	yes
64
USE_BZIP2=	yes
63
USE_SUBMAKE=	yes
65
USE_FAM=	yes
64
USE_PERL5=	yes
65
USE_GETTEXT=	yes
66
USE_GETTEXT=	yes
66
USE_GMAKE=	yes
67
USE_GMAKE=	yes
67
USE_OPENSSL=	yes
68
USE_OPENSSL=	yes
69
USE_PERL5=	yes
68
USE_REINPLACE=	yes
70
USE_REINPLACE=	yes
69
USE_AUTOTOOLS=	libtool:15
71
USE_SUBMAKE=	yes
70
USE_FAM=	yes
71
WANT_FAM_SYSTEM=fam
72
72
73
.if defined(WITH_RCORDER)
73
.if defined(WITH_RCORDER)
74
USE_RCORDER=	courier.sh
74
USE_RCORDER=	courier.sh
Lines 118-124 Link Here
118
		CACHEOWN="${CACHEOWN}" CACHEDIR="${CACHEDIR}" \
118
		CACHEOWN="${CACHEOWN}" CACHEDIR="${CACHEDIR}" \
119
		CALENDIR="${CALENDIR}" LOCALSTATEDIR="${LOCALSTATEDIR}"
119
		CALENDIR="${CALENDIR}" LOCALSTATEDIR="${LOCALSTATEDIR}"
120
SUB_LIST:=	${PLIST_SUB}
120
SUB_LIST:=	${PLIST_SUB}
121
SUB_FILES+=	pkg-install pkg-message crontab
121
SUB_FILES+=	pkg-install pkg-message crontab sharedindexupdate
122
122
123
OPTIONS+=LDAP "LDAP-based mail aliasing support"
123
OPTIONS+=LDAP "LDAP-based mail aliasing support"
124
.if (exists(${LOCALBASE}/lib/libldap.a) && exists(${LOCALBASE}/lib/liblber.a)) || defined(WITH_LDAP)
124
.if (exists(${LOCALBASE}/lib/libldap.a) && exists(${LOCALBASE}/lib/liblber.a)) || defined(WITH_LDAP)
Lines 272-277 Link Here
272
	@${CP} ${TEMPLATES}/config.guess ${TEMPLATES}/config.sub ${WRKSRC}
272
	@${CP} ${TEMPLATES}/config.guess ${TEMPLATES}/config.sub ${WRKSRC}
273
273
274
post-patch:
274
post-patch:
275
	@${REINPLACE_CMD} -e 's|^PROG=\./|PROG=exec ./|g' \
276
		${WRKSRC}/courier/module.*/courier.config
275
	@${REINPLACE_CMD} -e 's|@datadir@|@sysconfdir@|g' \
277
	@${REINPLACE_CMD} -e 's|@datadir@|@sysconfdir@|g' \
276
		${WRKSRC}/*/mk*cert.* \
278
		${WRKSRC}/*/mk*cert.* \
277
		${WRKSRC}/*/*/mk*cert.*
279
		${WRKSRC}/*/*/mk*cert.*
Lines 321-327 Link Here
321
post-install:
323
post-install:
322
	@${LN} -f ${SYSCONFDIR}/maildrop ${SYSCONFDIR}/maildropfilter
324
	@${LN} -f ${SYSCONFDIR}/maildrop ${SYSCONFDIR}/maildropfilter
323
	@${INSTALL_DATA} /dev/null ${SYSCONFDIR}/locallowercase
325
	@${INSTALL_DATA} /dev/null ${SYSCONFDIR}/locallowercase
324
	@${INSTALL_DATA} ${WRKDIR}/crontab ${PREFIX}/etc/courier/
326
	@${INSTALL_DATA} ${WRKDIR}/crontab ${SYSCONFDIR}/
327
	@${INSTALL_SCRIPT} ${WRKDIR}/sharedindexupdate ${DATADIR}/
325
.for file in ${OWNER0}
328
.for file in ${OWNER0}
326
	@-${CHOWN} -Rh ${BINOWN}:${BINGRP} ${PREFIX}/${file}
329
	@-${CHOWN} -Rh ${BINOWN}:${BINGRP} ${PREFIX}/${file}
327
.endfor
330
.endfor
(-)courier/files/pkg-message.in (+8 lines)
Lines 38-40 Link Here
38
	Documentation (if installed locally) is located in
38
	Documentation (if installed locally) is located in
39
	%%DOCSDIR%%/ otherwise see
39
	%%DOCSDIR%%/ otherwise see
40
	http://www.Courier-MTA.org/
40
	http://www.Courier-MTA.org/
41
42
	If you are planning to serve shared maildirs, then
43
	you should create a cron job that runs at regular
44
	intervals (once every few hours is fine) that
45
	executes the following script to update the
46
	shared folder index:
47
48
		%%PREFIX%%/share/courier/sharedindexupdate
(-)courier/files/sharedindexupdate.in (+26 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# $NetBSD: sharedindexupdate.sh,v 1.2 2005/02/18 22:12:50 jlam Exp $
4
# $FreeBSD: $
5
#
6
# This script updates the index of shared folders on the system and is
7
# only needed if Courier-IMAP or SqWebMail used to serve mail and shared
8
# folders are used.  If so, then this script should be run regularly as a
9
# system process to ensure the shared folder index is kept up-to-date.
10
#
11
# The courier-authlib package must be separately installed to provide the
12
# "authenumerate" program used in this script.
13
14
prefix="%%PREFIX%%"
15
exec_prefix="${prefix}"
16
sysconfdir="${prefix}/etc/courier"
17
sbindir="${exec_prefix}/sbin"
18
19
rm -rf ${sysconfdir}/shared.tmp
20
mkdir ${sysconfdir}/shared.tmp || exit 1
21
22
test -x ${sbindir}/authenumerate || exit 1
23
${sbindir}/authenumerate > ${sysconfdir}/shared.tmp/.tmplist || exit 1
24
${sbindir}/sharedindexsplit ${sysconfdir}/shared.tmp 1 < ${sysconfdir}/shared.tmp/.tmplist || exit 1
25
rm -f ${sysconfdir}/shared.tmp/.tmplist
26
${sbindir}/sharedindexinstall
(-)courier/pkg-plist (+21 lines)
Lines 13-22 Link Here
13
@exec install -o %%MAILOWN%% -g %%MAILGRP%% -m 0750 -d %D/etc/courier/aliases
13
@exec install -o %%MAILOWN%% -g %%MAILGRP%% -m 0750 -d %D/etc/courier/aliases
14
@exec install -o %%MAILOWN%% -g %%MAILGRP%% -m 0755 -d %D/etc/courier/esmtpacceptmailfor.dir
14
@exec install -o %%MAILOWN%% -g %%MAILGRP%% -m 0755 -d %D/etc/courier/esmtpacceptmailfor.dir
15
@exec install -o %%MAILOWN%% -g %%MAILGRP%% -m 0755 -d %D/etc/courier/esmtppercentrelay.dir
15
@exec install -o %%MAILOWN%% -g %%MAILGRP%% -m 0755 -d %D/etc/courier/esmtppercentrelay.dir
16
@exec install -o %%MAILOWN%% -g %%MAILGRP%% -m 0750 -d %D/etc/courier/filters
16
@exec install -o %%MAILOWN%% -g %%MAILGRP%% -m 0750 -d %D/etc/courier/filters/active
17
@exec install -o %%MAILOWN%% -g %%MAILGRP%% -m 0750 -d %D/etc/courier/filters/active
17
@exec install -o %%MAILOWN%% -g %%MAILGRP%% -m 0755 -d %D/etc/courier/shared
18
@exec install -o %%MAILOWN%% -g %%MAILGRP%% -m 0755 -d %D/etc/courier/shared
18
@exec install -o %%MAILOWN%% -g %%MAILGRP%% -m 0755 -d %D/etc/courier/shared.tmp
19
@exec install -o %%MAILOWN%% -g %%MAILGRP%% -m 0755 -d %D/etc/courier/shared.tmp
19
@exec install -o %%MAILOWN%% -g %%MAILGRP%% -m 0755 -d %D/etc/courier/smtpaccess
20
@exec install -o %%MAILOWN%% -g %%MAILGRP%% -m 0755 -d %D/etc/courier/smtpaccess
21
@exec install -o %%MAILOWN%% -g %%MAILGRP%% -m 0700 -d %D/etc/courier/webadmin
20
@exec install -o %%MAILOWN%% -g %%MAILGRP%% -m 0700 -d %D/etc/courier/webadmin/added
22
@exec install -o %%MAILOWN%% -g %%MAILGRP%% -m 0700 -d %D/etc/courier/webadmin/added
21
@exec install -o %%MAILOWN%% -g %%MAILGRP%% -m 0700 -d %D/etc/courier/webadmin/removed
23
@exec install -o %%MAILOWN%% -g %%MAILGRP%% -m 0700 -d %D/etc/courier/webadmin/removed
22
@unexec rm -f %D/etc/courier/*.dat 2>/dev/null || true
24
@unexec rm -f %D/etc/courier/*.dat 2>/dev/null || true
Lines 495-500 Link Here
495
share/courier/rootcerts/visa-ecommerce-root.pem
497
share/courier/rootcerts/visa-ecommerce-root.pem
496
share/courier/rootcerts/xramp-global-certification-authority.pem
498
share/courier/rootcerts/xramp-global-certification-authority.pem
497
@dirrm share/courier/rootcerts
499
@dirrm share/courier/rootcerts
500
share/courier/sharedindexupdate
498
share/courier/sqwebmail/cleancache.pl
501
share/courier/sqwebmail/cleancache.pl
499
share/courier/sqwebmail/html/en-us/CHARSET
502
share/courier/sqwebmail/html/en-us/CHARSET
500
share/courier/sqwebmail/html/en-us/ISPELLDICT
503
share/courier/sqwebmail/html/en-us/ISPELLDICT
Lines 733-737 Link Here
733
@exec chown %%MAILOWN%%:%%MAILGRP%% %D/libexec/courier/submit
736
@exec chown %%MAILOWN%%:%%MAILGRP%% %D/libexec/courier/submit
734
@exec chown %%MAILOWN%%:%%MAILGRP%% %D/libexec/courier/submitmkdir
737
@exec chown %%MAILOWN%%:%%MAILGRP%% %D/libexec/courier/submitmkdir
735
@exec chown %%MAILOWN%%:%%MAILGRP%% %D/sbin/showmodules
738
@exec chown %%MAILOWN%%:%%MAILGRP%% %D/sbin/showmodules
739
@exec chmod 0555 %D/libexec/courier
740
@exec chmod 0555 %D/libexec/courier/modules
741
@exec chmod 0555 %D/libexec/courier/modules/dsn
742
@exec chmod 0555 %D/libexec/courier/modules/esmtp
743
%%WITHFAX%%@exec chmod 0555 %D/libexec/courier/modules/fax
744
@exec chmod 0555 %D/libexec/courier/modules/local
745
%%WITHUUCP%%@exec chmod 0555 %D/libexec/courier/modules/uucp
746
@exec chmod 0555 %D/libexec/courier/webmail
747
@exec chmod 0555 %D/libexec/filters
748
@exec chmod 0555 %D/share/courier
749
@exec chmod 0555 %D/share/courier/couriermlm
750
@exec chmod 0555 %D/share/courier/courierwebadmin
751
%%WITHFAX%%@exec chmod 0555 %D/share/courier/faxmail
752
@exec chmod 0555 %D/share/courier/rootcerts
753
@exec chmod 0555 %D/share/courier/sqwebmail
754
@exec chmod 0555 %D/share/courier/sqwebmail/html
755
@exec chmod 0555 %D/share/courier/sqwebmail/html/en-us
756
@exec chmod 0555 %D/share/courier/sqwebmail/images
736
@unexec echo y | crontab -u %%CACHEOWN%% -r 2>/dev/null || true
757
@unexec echo y | crontab -u %%CACHEOWN%% -r 2>/dev/null || true
737
@unexec rm -rf %%CALENDIR%% %%CACHEDIR%% 2>/dev/null || true
758
@unexec rm -rf %%CALENDIR%% %%CACHEDIR%% 2>/dev/null || true

Return to bug 93269