1997-05-30 19:59:08 +00:00
|
|
|
# New ports collection makefile for: cyrus
|
1999-05-10 02:22:58 +00:00
|
|
|
# Version required: 1.5.19
|
1997-05-30 19:59:08 +00:00
|
|
|
# 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
|
|
|
#
|
|
|
|
|
1999-05-10 02:22:58 +00:00
|
|
|
DISTNAME= cyrus-imapd-v1.5.19
|
|
|
|
PKGNAME= cyrus-1.5.19
|
1998-09-23 15:36:27 +00:00
|
|
|
CATEGORIES= mail tcl80
|
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
|
|
|
http://www.freebsd.org/~stb/mirror/ftp.andrew.cmu.edu/pub/cyrus-mail/ \
|
|
|
|
ftp://ftp.hanse.de/sites/transit/mirror/ftp.andrew.cmu.edu/pub/cyrus-mail/
|
1997-05-30 19:59:08 +00:00
|
|
|
|
1999-08-31 06:53:31 +00:00
|
|
|
MAINTAINER= stb@FreeBSD.org
|
1997-05-30 19:59:08 +00:00
|
|
|
|
1999-01-13 02:47:33 +00:00
|
|
|
Y2K= http://andrew2.andrew.cmu.edu/cyrus/imapd/y2k.html
|
|
|
|
|
1998-09-25 10:07:46 +00:00
|
|
|
LIB_DEPENDS= tcl80.1:${PORTSDIR}/lang/tcl80
|
1997-09-02 09:46:50 +00:00
|
|
|
BUILD_DEPENDS= makedepend:${PORTSDIR}/devel/makedepend
|
|
|
|
|
1999-05-28 16:38:38 +00:00
|
|
|
GNU_CONFIGURE= YES
|
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 \
|
|
|
|
--with-login=unix_pwcheck \
|
1998-09-23 15:36:27 +00:00
|
|
|
--with-tclsh=${PREFIX}/bin/tclsh8.0 \
|
|
|
|
--with-auth=unix \
|
|
|
|
--with-com-err
|
1997-05-30 19:59:08 +00:00
|
|
|
|
|
|
|
MAN1= cyradm.1
|
|
|
|
MAN3= imclient.3
|
|
|
|
MAN5= imapd.conf.5
|
|
|
|
MAN8= arbitron.8 collectnews.8 cyrquota.8 deliver.8 imapd.8 \
|
|
|
|
pop3d.8 reconstruct.8 rmnews.8 syncnews.8
|
|
|
|
|
|
|
|
post-configure:
|
1998-09-23 15:36:27 +00:00
|
|
|
@ ${SETENV} ${MAKE_ENV} perl -pi -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
|
1998-09-23 15:36:27 +00:00
|
|
|
@${PKGDIR}/INSTALL ${PKGNAME} PRE-INSTALL
|
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 \
|
|
|
|
readme unpack
|
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
|
|
|
|
@${ECHO} 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
|
|
|
|
@${ECHO} share/doc/cyrus/html/${file}.html >>${TMPPLIST}
|
|
|
|
.endfor
|
|
|
|
@${ECHO} "@dirrm share/doc/cyrus/html"
|
|
|
|
@${ECHO} "@dirrm share/doc/cyrus"
|
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/
|
1998-11-04 01:34:59 +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
|
|
|
${INSTALL} -d -m 700 -o cyrus -g cyrus /var/pwcheck
|
|
|
|
${TOUCH} ${PREFIX}/etc/imap/mailboxes
|
1999-08-22 19:01:07 +00:00
|
|
|
${CHMOD} 640 ${PREFIX}/etc/imap/mailboxes
|
1999-08-28 02:17:34 +00:00
|
|
|
@${SED} -e "/%%PREFIX%%/s##${PREFIX}#g" ${FILESDIR}/cyrus.sh \
|
1998-09-23 15:36:27 +00:00
|
|
|
>${PREFIX}/etc/rc.d/cyrus.sh
|
1999-08-22 19:01:07 +00:00
|
|
|
@${CHMOD} 0755 ${PREFIX}/etc/rc.d/cyrus.sh
|
1999-05-10 02:22:58 +00:00
|
|
|
@PKG_PREFIX=${PREFIX} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
|
1997-05-30 19:59:08 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|