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
|
# $NetBSD: Makefile,v 1.8 2001/02/17 18:24:42 wiz Exp $
DISTNAME= cyrus-imapd-1.6.24
PKGNAME= ${DISTNAME}nb1
CATEGORIES= mail
MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/OLD-VERSIONS/imap/
MAINTAINER= jlam@netbsd.org
HOMEPAGE= http://asg.web.cmu.edu/cyrus/imapd/
COMMENT= IMAP server
DEPENDS+= tcl>=8.3.2:../../lang/tcl
DEPENDS+= cyrus-sasl>=1.5.24nb2:../../security/cyrus-sasl
USE_PERL5= # defined
USE_SSL= # defined
GNU_CONFIGURE= # defined
.include "../../mk/bsd.prefs.mk"
# CYRUS_USER username of the Cyrus administrator
# CYRUS_GROUP group of the Cyrus administrator
#
CYRUS_USER?= cyrus
CYRUS_GROUP?= mail
BUILD_DEFS+= CYRUS_USER CYRUS_GROUP
CONFIGURE_ARGS+= --with-cyrus-user=${CYRUS_USER}
CONFIGURE_ARGS+= --with-cyrus-group=${CYRUS_GROUP}
CONFIGURE_ARGS+= --with-cyrus-prefix=${PREFIX}/cyrus
CONFIGURE_ARGS+= --with-statedir=/var/run
CONFIGURE_ARGS+= --with-sasldir=${LOCALBASE}
CONFIGURE_ARGS+= --with-openssl=${SSLBASE}
CONFIGURE_ARGS+= --without-notify
CONFIGURE_ARGS+= --without-zephyr
CONFIGURE_ARGS+= --enable-netscapehack
.if exists(/usr/include/krb5/com_err.h)
CONFIGURE_ARGS+= --with-com_err=/usr
CPPFLAGS+= -I/usr/include/krb5
.else
CONFIGURE_ARGS+= --with-com_err=yes
.endif
.if defined(KERBEROS) && ${KERBEROS} == 4
USE_KERBEROS= # defined
CONFIGURE_ARGS+= --with-auth=krb
.else
CONFIGURE_ARGS+= --with-auth=unix
CONFIGURE_ARGS+= --without-krb
.endif
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}"
CONFIGURE_ENV+= LIBS="${LIBS}"
LIBS+= `sasl-config --libs`
DEINSTALL_FILE= ${WRKDIR}/DEINSTALL
INSTALL_FILE= ${WKRDIR}/INSTALL
HTMLDIR= ${PREFIX}/share/doc/html/cyrus-imapd
EGDIR= ${PREFIX}/share/examples/cyrus-imapd
post-extract:
cd ${WRKSRC}/man; ${MV} imapd.8 cyrus-imapd.8
pre-install:
${SED} -e "s,@AWK@,${AWK},g" \
-e "s,@CAT@,${CAT},g" \
-e "s,@RM@,${RM},g" \
< ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE}
${SED} -e "s,@CAT@,${CAT},g" \
-e "s,@CHMOD@,${CHMOD},g" \
-e "s,@CP@,${CP},g" \
< ${PKGDIR}/INSTALL > ${INSTALL_FILE}
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/tools/mkimap ${PREFIX}/cyrus/bin
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA} ${FILESDIR}/imapd.conf ${EGDIR}
${INSTALL_DATA_DIR} ${HTMLDIR}
cd ${WRKSRC}/doc/html; ${INSTALL_DATA} *.html ${HTMLDIR}
PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
.include "../../mk/bsd.pkg.mk"
|