1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/mail/cyrus-imapd/Makefile

95 lines
3.2 KiB
Makefile
Raw Normal View History

1997-05-30 19:59:08 +00:00
# New ports collection makefile for: cyrus
# Date created: May 4th 1997
# 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
PORTVERSION= 1.6.24
CATEGORIES= mail tcl82
1998-12-22 10:24:10 +00:00
MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
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
MAINTAINER= ports@FreeBSD.org
1997-05-30 19:59:08 +00:00
LIB_DEPENDS= tcl82.1:${PORTSDIR}/lang/tcl82
2000-05-13 18:32:38 +00:00
BUILD_DEPENDS= makedepend:${PORTSDIR}/devel/makedepend \
${LOCALBASE}/sbin/pwcheck:${PORTSDIR}/security/cyrus-sasl
GNU_CONFIGURE= YES
1997-05-30 19:59:08 +00:00
CONFIGURE_ARGS= --with-cyrus-prefix=${PREFIX}/cyrus \
--with-cyrus-group=cyrus \
--with-sasldir=${LOCALBASE} \
--with-tclsh=${LOCALBASE}/bin/tclsh8.2 \
--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:
@ ${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
@${PKGINSTALL} ${PKGNAME} PRE-INSTALL
1997-05-30 19:59:08 +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
1997-05-30 19:59:08 +00:00
post-install:
@ ${MV} ${PREFIX}/cyrus/bin/quota ${PREFIX}/cyrus/bin/cyrquota
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/cyrus/html
.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
.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" >>${TMPPLIST}
@${ECHO} "@dirrm share/doc/cyrus" >>${TMPPLIST}
.endif
${INSTALL_DATA} ${FILESDIR}/imapd.conf \
${PREFIX}/etc/imapd.conf.dist
${INSTALL_DATA} ${FILESDIR}/inetd.conf.cyrus \
${PREFIX}/etc/
${INSTALL} -d -m 750 -o cyrus -g cyrus \
/var/spool/imap \
${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
${TOUCH} ${PREFIX}/etc/imap/mailboxes
1999-08-22 19:01:07 +00:00
${CHMOD} 640 ${PREFIX}/etc/imap/mailboxes
${CHOWN} cyrus:cyrus ${PREFIX}/etc/imap/mailboxes
@${ECHO} "@exec ${MKDIR} %D/etc/imap" >>${TMPPLIST}
.for dir in user quota proc log msg
@${ECHO} "@exec ${MKDIR} %D/etc/imap/${dir}" >>${TMPPLIST}
@${ECHO} "@dirrm etc/imap/${dir}" >>${TMPPLIST}
.endfor
@${ECHO} "@exec ${CP} /dev/null %D/etc/imap/mailboxes" >>${TMPPLIST}
@${ECHO} "@exec ${CHOWN} -R cyrus:cyrus %D/etc/imap" >>${TMPPLIST}
@${ECHO} "@exec ${CHMOD} -R g-w,o= %D/etc/imap" >>${TMPPLIST}
@${ECHO} "@mode u=rwx,go=" >>${TMPPLIST}
@${ECHO} "@exec ${MKDIR} /var/spool/imap" >>${TMPPLIST}
@${ECHO} "@exec ${CHOWN} cyrus:cyrus /var/spool/imap" >>${TMPPLIST}
@${ECHO} "@exec ${CHMOD} g-w,o= /var/spool/imap" >>${TMPPLIST}
@${ECHO} "@cwd /var" >>${TMPPLIST}
@${ECHO} "@dirrm spool/imap" >>${TMPPLIST}
@PKG_PREFIX=${PREFIX} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
1997-05-30 19:59:08 +00:00
.include <bsd.port.mk>