1997-05-30 19:59:08 +00:00
|
|
|
# New ports collection makefile for: cyrus
|
|
|
|
# Date created: May 4th 1997
|
1999-08-31 06:53:31 +00:00
|
|
|
# Whom: jfitz@FreeBSD.org
|
1997-05-30 19:59:08 +00:00
|
|
|
#
|
1999-08-25 06:51:17 +00:00
|
|
|
# $FreeBSD$
|
1997-05-30 19:59:08 +00:00
|
|
|
#
|
|
|
|
|
2000-04-13 20:01:08 +00:00
|
|
|
PORTNAME= cyrus
|
2001-02-05 15:11:27 +00:00
|
|
|
PORTVERSION= 1.6.24
|
2003-10-27 23:53:03 +00:00
|
|
|
PORTREVISION= 4
|
1999-11-26 18:20:21 +00:00
|
|
|
CATEGORIES= mail tcl82
|
1998-12-22 10:24:10 +00:00
|
|
|
MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
|
1999-04-20 22:54:02 +00:00
|
|
|
ftp://ftp.hanse.de/sites/transit/mirror/ftp.andrew.cmu.edu/pub/cyrus-mail/
|
2000-05-13 17:18:14 +00:00
|
|
|
DISTNAME= ${PORTNAME}-imapd-${PORTVERSION}
|
1997-05-30 19:59:08 +00:00
|
|
|
|
2000-12-21 08:25:50 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 19:00:52 +00:00
|
|
|
COMMENT= The cyrus mail server, supporting POP3, KPOP, and IMAP4 protocols
|
1997-05-30 19:59:08 +00:00
|
|
|
|
2004-05-12 14:55:36 +00:00
|
|
|
FORBIDDEN= remote exploitable buffer overflow: US-CERT VU\#740169, SecurityFocus BID 6298
|
2004-05-08 23:15:25 +00:00
|
|
|
|
2003-08-29 18:22:38 +00:00
|
|
|
CONFLICTS= cyrus-imapd-*
|
|
|
|
|
1999-11-26 18:20:21 +00:00
|
|
|
LIB_DEPENDS= tcl82.1:${PORTSDIR}/lang/tcl82
|
2000-05-13 18:32:38 +00:00
|
|
|
BUILD_DEPENDS= makedepend:${PORTSDIR}/devel/makedepend \
|
2000-11-13 23:53:53 +00:00
|
|
|
${LOCALBASE}/sbin/pwcheck:${PORTSDIR}/security/cyrus-sasl
|
1997-09-02 09:46:50 +00:00
|
|
|
|
2002-09-01 16:07:59 +00:00
|
|
|
USE_REINPLACE= yes
|
2004-03-14 06:17:56 +00:00
|
|
|
USE_AUTOCONF_VER= 213
|
1997-05-30 19:59:08 +00:00
|
|
|
CONFIGURE_ARGS= --with-cyrus-prefix=${PREFIX}/cyrus \
|
1998-02-15 12:14:15 +00:00
|
|
|
--with-cyrus-group=cyrus \
|
2000-12-21 23:16:02 +00:00
|
|
|
--with-sasldir=${LOCALBASE} \
|
|
|
|
--with-tclsh=${LOCALBASE}/bin/tclsh8.2 \
|
1998-09-23 15:36:27 +00:00
|
|
|
--with-auth=unix \
|
|
|
|
--with-com-err
|
1997-05-30 19:59:08 +00:00
|
|
|
|
2001-01-17 17:31:13 +00:00
|
|
|
MAN1= cyradm.1 imtest.1 installsieve.1
|
1997-05-30 19:59:08 +00:00
|
|
|
MAN3= imclient.3
|
2001-01-17 17:31:13 +00:00
|
|
|
MAN5= imapd.conf.5 krb.equiv.5
|
|
|
|
MAN8= arbitron.8 collectnews.8 cyrquota.8 deliver.8 fud.8 \
|
|
|
|
imapd.8 mbpath.8 pop3d.8 reconstruct.8 rmnews.8 syncnews.8 \
|
|
|
|
timsieved.8
|
1997-05-30 19:59:08 +00:00
|
|
|
|
2003-04-06 00:07:58 +00:00
|
|
|
post-patch:
|
|
|
|
${CP} ${FILESDIR}/600.cyrus ${WRKDIR}
|
|
|
|
${REINPLACE_CMD} -e 's,LOCALBASE,${LOCALBASE},g' ${WRKDIR}/600.cyrus
|
|
|
|
|
1997-05-30 19:59:08 +00:00
|
|
|
post-configure:
|
2002-09-01 16:07:59 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/imap/config.c ${WRKSRC}/imap/krbck.c
|
1997-05-30 19:59:08 +00:00
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@ ${CP} ${WRKSRC}/man/quota.8 ${WRKSRC}/man/cyrquota.8
|
2003-04-06 00:07:58 +00:00
|
|
|
@ ${CP} ${WRKDIR}/600.cyrus /etc/periodic/daily/600.cyrus
|
1997-05-30 19:59:08 +00:00
|
|
|
|
1999-05-10 02:22:58 +00:00
|
|
|
DOCS= README acl-extension anoncvs bugs changes copyrights install \
|
|
|
|
mailing-list overview quota-extension server-design
|
|
|
|
HTDOCS= anoncvs bugs changes index install mailing-list overview \
|
2000-05-13 17:18:14 +00:00
|
|
|
questions readme sieve-protocol sieve
|
2001-06-29 22:02:04 +00:00
|
|
|
|
1997-05-30 19:59:08 +00:00
|
|
|
post-install:
|
|
|
|
@ ${MV} ${PREFIX}/cyrus/bin/quota ${PREFIX}/cyrus/bin/cyrquota
|
1998-02-15 12:14:15 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/cyrus/html
|
1999-05-10 02:22:58 +00:00
|
|
|
.for file in ${DOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${file} \
|
|
|
|
${PREFIX}/share/doc/cyrus
|
2002-01-29 11:48:57 +00:00
|
|
|
@${ECHO_CMD} share/doc/cyrus/${file} >>${TMPPLIST}
|
1997-05-30 19:59:08 +00:00
|
|
|
.endfor
|
1999-05-10 02:22:58 +00:00
|
|
|
.for file in ${HTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/html/${file}.html \
|
|
|
|
${PREFIX}/share/doc/cyrus/html
|
2002-01-29 11:48:57 +00:00
|
|
|
@${ECHO_CMD} share/doc/cyrus/html/${file}.html >>${TMPPLIST}
|
1999-05-10 02:22:58 +00:00
|
|
|
.endfor
|
2002-01-29 11:48:57 +00:00
|
|
|
@${ECHO_CMD} "@dirrm share/doc/cyrus/html" >>${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@dirrm share/doc/cyrus" >>${TMPPLIST}
|
1998-02-15 12:14:15 +00:00
|
|
|
.endif
|
1999-05-10 02:22:58 +00:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/imapd.conf \
|
|
|
|
${PREFIX}/etc/imapd.conf.dist
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/inetd.conf.cyrus \
|
|
|
|
${PREFIX}/etc/
|
1999-12-29 08:37:52 +00:00
|
|
|
${INSTALL} -d -m 750 -o cyrus -g cyrus \
|
|
|
|
/var/spool/imap \
|
1998-09-23 15:36:27 +00:00
|
|
|
${PREFIX}/etc/imap \
|
1997-05-30 19:59:08 +00:00
|
|
|
${PREFIX}/etc/imap/user \
|
|
|
|
${PREFIX}/etc/imap/quota \
|
|
|
|
${PREFIX}/etc/imap/proc \
|
|
|
|
${PREFIX}/etc/imap/log \
|
|
|
|
${PREFIX}/etc/imap/msg
|
1998-09-23 15:36:27 +00:00
|
|
|
${TOUCH} ${PREFIX}/etc/imap/mailboxes
|
1999-08-22 19:01:07 +00:00
|
|
|
${CHMOD} 640 ${PREFIX}/etc/imap/mailboxes
|
2000-12-21 23:16:02 +00:00
|
|
|
${CHOWN} cyrus:cyrus ${PREFIX}/etc/imap/mailboxes
|
2002-01-29 11:48:57 +00:00
|
|
|
@${ECHO_CMD} "@exec ${MKDIR} %D/etc/imap" >>${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@unexec if [ ! -s %D/etc/imap/mailboxes ]; then ${RM} %D/etc/imap/mailboxes; fi" >>${TMPPLIST}
|
1999-12-29 08:37:52 +00:00
|
|
|
.for dir in user quota proc log msg
|
2002-01-29 11:48:57 +00:00
|
|
|
@${ECHO_CMD} "@exec ${MKDIR} %D/etc/imap/${dir}" >>${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@unexec rmdir %D/etc/imap/${dir} 2>/dev/null || true" >>${TMPPLIST}
|
1999-12-29 08:37:52 +00:00
|
|
|
.endfor
|
2002-01-29 11:48:57 +00:00
|
|
|
@${ECHO_CMD} "@unexec rmdir %D/etc/imap 2>/dev/null || true" >>${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@exec ${TOUCH} %D/etc/imap/mailboxes" >>${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@exec ${CHOWN} -R cyrus:cyrus %D/etc/imap" >>${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@exec ${CHMOD} -R g-w,o= %D/etc/imap" >>${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@mode u=rwx,go=" >>${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@exec ${MKDIR} /var/spool/imap" >>${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@exec ${CHOWN} cyrus:cyrus /var/spool/imap" >>${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@exec ${CHMOD} g-w,o= /var/spool/imap" >>${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@cwd /var" >>${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@dirrm spool/imap" >>${TMPPLIST}
|
2000-10-08 10:23:48 +00:00
|
|
|
@PKG_PREFIX=${PREFIX} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
1997-05-30 19:59:08 +00:00
|
|
|
|
2003-10-27 23:53:03 +00:00
|
|
|
.include <bsd.port.mk>
|