1997-05-30 15:59:08 -04:00
|
|
|
# New ports collection makefile for: cyrus
|
1998-11-03 20:18:33 -05:00
|
|
|
# Version required: 1.5.14
|
1997-05-30 15:59:08 -04:00
|
|
|
# Date created: May 4th 1997
|
|
|
|
# Whom: jfitz@FreeBSD.ORG
|
|
|
|
#
|
1998-11-03 20:18:33 -05:00
|
|
|
# $Id: Makefile,v 1.9 1998/09/25 10:07:46 asami Exp $
|
1997-05-30 15:59:08 -04:00
|
|
|
#
|
|
|
|
|
1998-09-23 11:36:27 -04:00
|
|
|
DISTNAME= cyrus-imapd-v1.5.14
|
|
|
|
PKGNAME= cyrus-1.5.14
|
|
|
|
CATEGORIES= mail tcl80
|
1997-05-30 15:59:08 -04:00
|
|
|
MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/
|
|
|
|
|
1998-09-23 11:36:27 -04:00
|
|
|
MAINTAINER= stb@FreeBSD.ORG
|
1997-05-30 15:59:08 -04:00
|
|
|
|
1998-09-25 06:07:46 -04:00
|
|
|
LIB_DEPENDS= tcl80.1:${PORTSDIR}/lang/tcl80
|
1997-09-02 05:46:50 -04:00
|
|
|
BUILD_DEPENDS= makedepend:${PORTSDIR}/devel/makedepend
|
|
|
|
|
1997-05-30 15:59:08 -04:00
|
|
|
HAS_CONFIGURE= YES
|
|
|
|
CONFIGURE_ARGS= --with-cyrus-prefix=${PREFIX}/cyrus \
|
1998-02-15 07:14:15 -05:00
|
|
|
--with-cyrus-group=cyrus \
|
|
|
|
--with-login=unix_pwcheck \
|
1998-09-23 11:36:27 -04:00
|
|
|
--with-tclsh=${PREFIX}/bin/tclsh8.0 \
|
|
|
|
--with-auth=unix \
|
|
|
|
--with-com-err
|
1997-05-30 15:59:08 -04: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 11:36:27 -04:00
|
|
|
@ ${SETENV} ${MAKE_ENV} perl -pi -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/imap/config.c ${WRKSRC}/imap/krbck.c
|
1997-05-30 15:59:08 -04:00
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@ ${CP} ${WRKSRC}/man/quota.8 ${WRKSRC}/man/cyrquota.8
|
1998-09-23 11:36:27 -04:00
|
|
|
@${PKGDIR}/INSTALL ${PKGNAME} PRE-INSTALL
|
1997-05-30 15:59:08 -04:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@ ${MV} ${PREFIX}/cyrus/bin/quota ${PREFIX}/cyrus/bin/cyrquota
|
1998-02-15 07:14:15 -05:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/cyrus/html
|
1997-05-30 15:59:08 -04:00
|
|
|
.for file in acl-extension bugs changes copyrights install overview quota-extension server-design
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${file} ${PREFIX}/share/doc/cyrus
|
|
|
|
.endfor
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/html/* ${PREFIX}/share/doc/cyrus/html
|
1998-02-15 07:14:15 -05:00
|
|
|
.endif
|
1997-05-30 15:59:08 -04:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/imapd.conf ${PREFIX}/etc
|
1998-09-23 11:36:27 -04:00
|
|
|
${INSTALL} -d -m 750 -o cyrus -g cyrus /var/spool/imapd \
|
|
|
|
${PREFIX}/etc/imap \
|
1997-05-30 15:59:08 -04:00
|
|
|
${PREFIX}/etc/imap/user \
|
|
|
|
${PREFIX}/etc/imap/quota \
|
|
|
|
${PREFIX}/etc/imap/proc \
|
|
|
|
${PREFIX}/etc/imap/log \
|
|
|
|
${PREFIX}/etc/imap/msg
|
1998-09-23 11:36:27 -04:00
|
|
|
${INSTALL} -d -m 700 -o cyrus -g cyrus /var/pwcheck
|
|
|
|
${TOUCH} ${PREFIX}/etc/imap/mailboxes
|
|
|
|
chmod 640 ${PREFIX}/etc/imap/mailboxes
|
|
|
|
@sed -e "/%%PREFIX%%/s##${PREFIX}#g" ${FILESDIR}/cyrus.sh \
|
|
|
|
>${PREFIX}/etc/rc.d/cyrus.sh
|
|
|
|
@chmod 0755 ${PREFIX}/etc/rc.d/cyrus.sh
|
1997-05-30 15:59:08 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|