blob: bca2c76dc3637f3c8fa38c2a93d1024cc00bcf45 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
# New ports collection makefile for: cyrus
# Date created: May 4th 1997
# Whom: jfitz@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= cyrus
PORTVERSION= 1.6.24
PORTREVISION= 4
CATEGORIES= mail tcl82
MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
ftp://ftp.hanse.de/sites/transit/mirror/ftp.andrew.cmu.edu/pub/cyrus-mail/
DISTNAME= ${PORTNAME}-imapd-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= The cyrus mail server, supporting POP3, KPOP, and IMAP4 protocols
CONFLICTS= cyrus-imapd-*
LIB_DEPENDS= tcl82.1:${PORTSDIR}/lang/tcl82
BUILD_DEPENDS= makedepend:${PORTSDIR}/devel/makedepend \
${LOCALBASE}/sbin/pwcheck:${PORTSDIR}/security/cyrus-sasl
USE_REINPLACE= yes
USE_AUTOCONF_VER= 213
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
MAN1= cyradm.1 imtest.1 installsieve.1
MAN3= imclient.3
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
post-patch:
${CP} ${FILESDIR}/600.cyrus ${WRKDIR}
${REINPLACE_CMD} -e 's,LOCALBASE,${LOCALBASE},g' ${WRKDIR}/600.cyrus
post-configure:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/imap/config.c ${WRKSRC}/imap/krbck.c
pre-install:
@ ${CP} ${WRKSRC}/man/quota.8 ${WRKSRC}/man/cyrquota.8
@ ${CP} ${WRKDIR}/600.cyrus /etc/periodic/daily/600.cyrus
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 \
questions readme sieve-protocol sieve
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_CMD} share/doc/cyrus/${file} >>${TMPPLIST}
.endfor
.for file in ${HTDOCS}
${INSTALL_DATA} ${WRKSRC}/doc/html/${file}.html \
${PREFIX}/share/doc/cyrus/html
@${ECHO_CMD} share/doc/cyrus/html/${file}.html >>${TMPPLIST}
.endfor
@${ECHO_CMD} "@dirrm share/doc/cyrus/html" >>${TMPPLIST}
@${ECHO_CMD} "@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 \
${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
${CHMOD} 640 ${PREFIX}/etc/imap/mailboxes
${CHOWN} cyrus:cyrus ${PREFIX}/etc/imap/mailboxes
@${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}
.for dir in user quota proc log msg
@${ECHO_CMD} "@exec ${MKDIR} %D/etc/imap/${dir}" >>${TMPPLIST}
@${ECHO_CMD} "@unexec rmdir %D/etc/imap/${dir} 2>/dev/null || true" >>${TMPPLIST}
.endfor
@${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}
@PKG_PREFIX=${PREFIX} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>
|