2001-03-13 11:15:12 +00:00
|
|
|
# New ports collection makefile for: cyrus-imapd
|
|
|
|
# Date created: Jan 4th 2001
|
|
|
|
# Whom: ume@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
|
|
|
#
|
|
|
|
|
2001-03-13 11:15:12 +00:00
|
|
|
PORTNAME= cyrus-imapd
|
2002-12-05 14:04:36 +00:00
|
|
|
PORTVERSION= 2.1.11
|
2002-08-28 18:25:16 +00:00
|
|
|
#PORTREVISION= 0
|
2001-03-13 11:15:12 +00:00
|
|
|
CATEGORIES= mail ipv6
|
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/
|
1997-05-30 19:59:08 +00:00
|
|
|
|
2001-03-13 11:15:12 +00:00
|
|
|
PATCH_SITES= http://www.imasy.or.jp/~ume/ipv6/
|
2002-12-05 14:04:36 +00:00
|
|
|
PATCHFILES= ${DISTNAME}-ipv6-20021205.diff.gz
|
1997-05-30 19:59:08 +00:00
|
|
|
|
2001-03-13 11:15:12 +00:00
|
|
|
MAINTAINER= ume@FreeBSD.org
|
|
|
|
|
2002-08-08 14:06:48 +00:00
|
|
|
LIB_DEPENDS= sasl2.2:${PORTSDIR}/security/cyrus-sasl2 \
|
2002-08-22 19:13:46 +00:00
|
|
|
db3.3:${PORTSDIR}/databases/db3
|
2000-05-13 18:32:38 +00:00
|
|
|
BUILD_DEPENDS= makedepend:${PORTSDIR}/devel/makedepend \
|
2002-08-08 14:06:48 +00:00
|
|
|
${LOCALBASE}/sbin/saslauthd:${PORTSDIR}/security/cyrus-sasl2
|
1997-09-02 09:46:50 +00:00
|
|
|
|
2002-05-19 14:28:20 +00:00
|
|
|
USE_PERL5= yes
|
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 \
|
2003-01-30 14:04:02 +00:00
|
|
|
--with-cyrus-user=${CYRUS_USER} \
|
|
|
|
--with-cyrus-group=${CYRUS_GROUP} \
|
2001-03-13 11:15:12 +00:00
|
|
|
--with-sasl=${LOCALBASE} \
|
|
|
|
--with-dbdir=${LOCALBASE} \
|
1998-09-23 15:36:27 +00:00
|
|
|
--with-auth=unix \
|
2001-03-13 11:15:12 +00:00
|
|
|
--with-com_err
|
|
|
|
|
2003-01-01 19:34:41 +00:00
|
|
|
.if defined(WITH_SKIPLIST_MBOX)
|
|
|
|
CONFIGURE_ARGS+=--with-mboxlist-db=skiplist
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_MURDER)
|
|
|
|
CONFIGURE_ARGS+=--enable-murder
|
|
|
|
CFLAGS+= ${PTHREAD_CFLAGS}
|
|
|
|
MAKE_ENV+= PTHREAD_LIBS=${PTHREAD_LIBS}
|
|
|
|
PLIST_SUB+= MURDER=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= MURDER="@comment "
|
|
|
|
.endif
|
|
|
|
|
2001-03-13 11:15:12 +00:00
|
|
|
.if defined(WITH_SNMP)
|
|
|
|
# It seems not compilable due to lack of auto_nlist_value() in libucdagent.
|
2002-08-08 14:06:48 +00:00
|
|
|
LIB_DEPENDS+= netsnmp.5:${PORTSDIR}/net/net-snmp
|
|
|
|
#CONFIGURE_ENV= LIBS=-lkvm
|
2001-03-13 11:15:12 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--with-ucdsnmp=no
|
|
|
|
.endif
|
1997-05-30 19:59:08 +00:00
|
|
|
|
2003-01-30 14:04:02 +00:00
|
|
|
CYRUS_USER?= cyrus
|
|
|
|
CYRUS_GROUP?= cyrus
|
|
|
|
|
2002-08-21 20:46:33 +00:00
|
|
|
MAN1= cyradm.1 imtest.1 installsieve.1 lmtptest.1 mupdatetest.1 \
|
|
|
|
pop3test.1 sieveshell.1 sivtest.1 smtptest.1
|
1997-05-30 19:59:08 +00:00
|
|
|
MAN3= imclient.3
|
2001-03-13 11:15:12 +00:00
|
|
|
MAN5= cyrus.conf.5 imapd.conf.5 krb.equiv.5
|
2002-08-08 14:06:48 +00:00
|
|
|
MAN8= arbitron.8 chk_cyrus.8 collectnews.8 ctl_cyrusdb.8 \
|
|
|
|
ctl_deliver.8 ctl_mboxlist.8 cvt_cyrusdb.8 cyrquota.8 \
|
|
|
|
deliver.8 fud.8 idled.8 imapd.8 ipurge.8 lmtpd.8 master.8 \
|
|
|
|
mbpath.8 notifyd.8 pop3d.8 reconstruct.8 rmnews.8 \
|
|
|
|
squatter.8 syncnews.8 timsieved.8 tls_prune.8
|
1997-05-30 19:59:08 +00:00
|
|
|
|
2002-08-08 14:06:48 +00:00
|
|
|
DOCS= altnamespace anoncvs bugs changes faq feedback index \
|
|
|
|
install install-admin-mb install-auth install-compile \
|
|
|
|
install-configure install-murder install-perf \
|
2001-03-13 11:15:12 +00:00
|
|
|
install-prereq install-sieve install-snmpmon install-testing \
|
2002-08-08 14:06:48 +00:00
|
|
|
install-upgrade mailing-list man notes os overview questions \
|
|
|
|
readme sieve sieve-protocol specs
|
|
|
|
|
2003-01-30 14:04:02 +00:00
|
|
|
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
|
|
|
|
PKGINSTALL= ${WRKDIR}/pkg-install
|
|
|
|
|
2002-08-08 14:06:48 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2003-01-01 19:34:41 +00:00
|
|
|
.if ${PERL_LEVEL} < 500800
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp
|
|
|
|
.endif
|
|
|
|
.if ${PERL_LEVEL} < 500600
|
2002-08-08 14:06:48 +00:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Pod/Parser.pm:${PORTSDIR}/textproc/p5-PodParser
|
|
|
|
.endif
|
1997-05-30 19:59:08 +00:00
|
|
|
|
2001-04-12 19:06:31 +00:00
|
|
|
post-patch:
|
2003-01-30 14:04:02 +00:00
|
|
|
@${SED} -e "s|%%CYRUS_USER%%|${CYRUS_USER}|g" \
|
|
|
|
${.CURDIR}/pkg-install > ${PKGINSTALL}
|
|
|
|
@${SED} -e "s|%%CYRUS_USER%%|${CYRUS_USER}|g" \
|
|
|
|
${.CURDIR}/pkg-deinstall > ${PKGDEINSTALL}
|
|
|
|
@${SED} -e "s|/etc/|${PREFIX}/etc/|" \
|
|
|
|
-e "s|%%CYRUS_USER%%|${CYRUS_USER}|g" \
|
|
|
|
-e "s|%%CYRUS_GROUP%%|${CYRUS_GROUP}|g" \
|
|
|
|
${WRKSRC}/tools/mkimap > ${WRKSRC}/tools/mkimap.new
|
2001-04-12 19:06:31 +00:00
|
|
|
@${MV} ${WRKSRC}/tools/mkimap.new ${WRKSRC}/tools/mkimap
|
2002-08-08 14:06:48 +00:00
|
|
|
@${CP} ${WRKSRC}/man/quota.8 ${WRKSRC}/man/cyrquota.8
|
2003-01-01 19:34:41 +00:00
|
|
|
.if ${PERL_LEVEL} < 500600
|
2002-08-08 14:06:48 +00:00
|
|
|
@${SED} -e "s|exec perl -x|exec perl -I${LOCALBASE}/lib/perl5/site_perl/${PERL_VER} -x|" \
|
|
|
|
${WRKSRC}/perl/sieve/scripts/sieveshell.pl \
|
|
|
|
> ${WRKSRC}/perl/sieve/scripts/sieveshell.pl.new
|
|
|
|
@${MV} ${WRKSRC}/perl/sieve/scripts/sieveshell.pl.new \
|
|
|
|
${WRKSRC}/perl/sieve/scripts/sieveshell.pl
|
|
|
|
.endif
|
1997-05-30 19:59:08 +00:00
|
|
|
|
|
|
|
post-install:
|
2002-08-08 14:06:48 +00:00
|
|
|
@${MV} ${PREFIX}/cyrus/bin/quota ${PREFIX}/cyrus/bin/cyrquota
|
1998-02-15 12:14:15 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-08-08 14:06:48 +00:00
|
|
|
${MKDIR} ${PREFIX}/share/doc/cyrus-imapd2/man
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/cyrus-imapd2/text
|
|
|
|
.for file in ${DOCS}
|
2001-03-13 11:15:12 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${file}.html \
|
2002-08-08 14:06:48 +00:00
|
|
|
${PREFIX}/share/doc/cyrus-imapd2
|
|
|
|
@${ECHO} share/doc/cyrus-imapd2/${file}.html >>${TMPPLIST}
|
2001-07-09 11:19:56 +00:00
|
|
|
.endfor
|
|
|
|
.for file in ${MAN1} ${MAN3} ${MAN5} ${MAN8}
|
|
|
|
ofile=`echo ${file} | sed s/cyrquota/quota/`; \
|
2001-07-28 16:08:08 +00:00
|
|
|
if [ -f ${WRKSRC}/doc/man/$${ofile}.html ]; then \
|
2001-07-09 11:19:56 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/man/$${ofile}.html \
|
2002-08-08 14:06:48 +00:00
|
|
|
${PREFIX}/share/doc/cyrus-imapd2/man/$${ofile}.html; \
|
|
|
|
${ECHO} share/doc/cyrus-imapd2/man/$${ofile}.html \
|
|
|
|
>>${TMPPLIST}; \
|
2001-07-28 16:08:08 +00:00
|
|
|
fi
|
1997-05-30 19:59:08 +00:00
|
|
|
.endfor
|
2001-03-13 11:15:12 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/cyrusv2.mc \
|
2002-08-08 14:06:48 +00:00
|
|
|
${PREFIX}/share/doc/cyrus-imapd2
|
|
|
|
@${ECHO} share/doc/cyrus-imapd2/cyrusv2.mc >>${TMPPLIST}
|
2001-03-13 11:15:12 +00:00
|
|
|
.for file in ${DOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/text/${file} \
|
2002-08-08 14:06:48 +00:00
|
|
|
${PREFIX}/share/doc/cyrus-imapd2/text
|
|
|
|
@${ECHO} share/doc/cyrus-imapd2/text/${file} >>${TMPPLIST}
|
1999-05-10 02:22:58 +00:00
|
|
|
.endfor
|
2002-08-08 14:06:48 +00:00
|
|
|
@${ECHO} "@dirrm share/doc/cyrus-imapd2/text" >>${TMPPLIST}
|
|
|
|
@${ECHO} "@dirrm share/doc/cyrus-imapd2/man" >>${TMPPLIST}
|
|
|
|
@${ECHO} "@dirrm share/doc/cyrus-imapd2" >>${TMPPLIST}
|
1998-02-15 12:14:15 +00:00
|
|
|
.endif
|
2001-03-13 11:15:12 +00:00
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/imapd.sh \
|
|
|
|
${PREFIX}/etc/rc.d/imapd.sh.sample
|
1999-05-10 02:22:58 +00:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/imapd.conf \
|
|
|
|
${PREFIX}/etc/imapd.conf.dist
|
2001-03-13 11:15:12 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/master/conf/normal.conf \
|
|
|
|
${PREFIX}/etc/cyrus.conf.dist
|
2001-04-06 18:53:09 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tools/mkimap \
|
|
|
|
${PREFIX}/cyrus/bin/mkimap
|
2003-01-30 14:04:02 +00:00
|
|
|
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} \
|
|
|
|
POST-INSTALL
|
2001-04-06 18:53:09 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
1997-05-30 19:59:08 +00:00
|
|
|
|
2002-08-08 14:06:48 +00:00
|
|
|
.include <bsd.port.post.mk>
|