Lines 1-3
Link Here
|
|
|
1 |
# ex:ts=8 |
1 |
# New ports collection makefile for: dovecot |
2 |
# New ports collection makefile for: dovecot |
2 |
# Date created: 12/08/2002 |
3 |
# Date created: 12/08/2002 |
3 |
# Whom: Dominic Marks <dominic.marks@btinternet.com> |
4 |
# Whom: Dominic Marks <dominic.marks@btinternet.com> |
Lines 7-13
Link Here
|
7 |
|
8 |
|
8 |
PORTNAME= dovecot |
9 |
PORTNAME= dovecot |
9 |
PORTVERSION= 0.99.10.4 |
10 |
PORTVERSION= 0.99.10.4 |
10 |
PORTREVISION= 1 |
11 |
PORTREVISION= 2 |
11 |
CATEGORIES= mail ipv6 |
12 |
CATEGORIES= mail ipv6 |
12 |
MASTER_SITES= http://www.dovecot.org/ |
13 |
MASTER_SITES= http://www.dovecot.org/ |
13 |
|
14 |
|
Lines 28-87
Link Here
|
28 |
|
29 |
|
29 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
30 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
30 |
|
31 |
|
31 |
DOCS= auth.txt configuration.txt design.txt \ |
32 |
.if !defined(NOPORTDOCS) |
32 |
index.txt mail-storages.txt mkcert.sh multiaccess.txt \ |
33 |
PORTDOCS= auth.txt configuration.txt design.txt index.txt \ |
33 |
nfs.txt dovecot-ldap.conf dovecot-pgsql.conf \ |
34 |
mail-storages.txt mkcert.sh multiaccess.txt nfs.txt \ |
34 |
dovecot-openssl.cnf securecoding.txt |
35 |
dovecot-ldap.conf dovecot-pgsql.conf dovecot-openssl.cnf \ |
|
|
36 |
securecoding.txt |
37 |
.endif |
35 |
|
38 |
|
36 |
#.include <bsd.port.pre.mk> |
39 |
.include <bsd.port.pre.mk> |
37 |
|
40 |
|
38 |
## SASL2 support -> WITH_SASL2=1 |
41 |
## SASL2 support |
|
|
42 |
OPTIONS+= SASL2 "SASL2 support" off |
39 |
# |
43 |
# |
40 |
# SASL provides authentication support to |
44 |
# SASL provides authentication support to |
41 |
# session-based protocols. This is can be |
45 |
# session-based protocols. This is can be |
42 |
# used by dovecot for authentication sources. |
46 |
# used by dovecot for authentication sources. |
43 |
# |
47 |
# |
44 |
.if defined(WITH_SASL2) |
48 |
.if defined(WITH_SASL2) |
45 |
LIB_DEPENDS+= sasl2.2:${PORTSDIR}/security/cyrus-sasl2 |
49 |
LIB_DEPENDS+= sasl2.2:${PORTSDIR}/security/cyrus-sasl2 |
46 |
CONFIGURE_ARGS+= --with-cyrus-sasl2 |
50 |
CONFIGURE_ARGS+= --with-cyrus-sasl2 |
47 |
.endif |
51 |
.endif |
48 |
|
52 |
|
49 |
## VPopMail Support -> WITH_VPOPMAIL=1 |
53 |
## VPopMail Support |
|
|
54 |
OPTIONS+= VPOPMAIL "VPopMail support" off |
50 |
# |
55 |
# |
51 |
# vpopmail provides easy authentication and |
56 |
# vpopmail provides easy authentication and |
52 |
# multi-domain features. It was originally |
57 |
# multi-domain features. It was originally |
53 |
# created for use with Qmail. |
58 |
# created for use with Qmail. |
54 |
# |
59 |
# |
55 |
.if defined(WITH_VPOPMAIL) |
60 |
.if defined(WITH_VPOPMAIL) |
56 |
VPOPMAIL= ${LOCALBASE}/vpopmail/bin/vchkpw |
61 |
VPOPMAIL= ${LOCALBASE}/vpopmail/bin/vchkpw |
57 |
BUILD_DEPENDS+= ${VPOPMAIL}:${PORTSDIR}/mail/vpopmail |
62 |
BUILD_DEPENDS+= ${VPOPMAIL}:${PORTSDIR}/mail/vpopmail |
58 |
CONFIGURE_ARGS+= --with-vpopmail |
63 |
CONFIGURE_ARGS+= --with-vpopmail |
59 |
.endif |
64 |
.endif |
60 |
|
65 |
|
61 |
## OpenLDAP Support -> WITH_LDAP=1 |
66 |
## OpenLDAP Support |
|
|
67 |
OPTIONS+= LDAP "OpenLDAP support" off |
62 |
# |
68 |
# |
63 |
# LDAP is the light-weight directory access |
69 |
# LDAP is the light-weight directory access |
64 |
# protocol and can be used by Dovecot for its |
70 |
# protocol and can be used by Dovecot for its |
65 |
# user database. |
71 |
# user database. |
66 |
# |
72 |
# |
67 |
.if defined(WITH_LDAP) |
73 |
.if defined(WITH_LDAP) |
68 |
USE_OPENLDAP= yes |
74 |
USE_OPENLDAP= yes |
69 |
CONFIGURE_ARGS+= --with-ldap |
75 |
CONFIGURE_ARGS+= --with-ldap |
70 |
.endif |
76 |
.endif |
71 |
|
77 |
|
72 |
## PostgreSQL Support -> WITH_PGSQL=1 |
78 |
## PostgreSQL Support |
|
|
79 |
OPTIONS+= PGSQL "PostgreSQL support" off |
73 |
# |
80 |
# |
74 |
# PostgreSQL is a powerful SQL database that |
81 |
# PostgreSQL is a powerful SQL database that |
75 |
# can be used to store user tables. |
82 |
# can be used to store user tables. |
76 |
# |
83 |
# |
77 |
.if defined(WITH_PGSQL) |
84 |
.if defined(WITH_PGSQL) |
78 |
LIB_DEPENDS+= pq.3:${PORTSDIR}/databases/postgresql7 |
85 |
LIB_DEPENDS+= pq.3:${PORTSDIR}/databases/postgresql7 |
79 |
CONFIGURE_ARGS+= --with-pgsql |
86 |
CONFIGURE_ARGS+= --with-pgsql |
80 |
.endif |
87 |
.endif |
81 |
|
88 |
|
82 |
pre-configure: |
89 |
.if ${OSVERSION} >= 500038 |
83 |
@${ECHO_MSG} "=> ${PORTNAME} options: see ${MAKEFILE} for descriptions" |
90 |
RC_SUBR?= /etc/rc.subr |
84 |
@${SED} -ne 's,^##,=> ,p' ${MAKEFILE} |
91 |
.else |
|
|
92 |
USE_RC_SUBR= yes |
93 |
.endif |
85 |
|
94 |
|
86 |
pre-build: |
95 |
pre-build: |
87 |
@${REINPLACE_CMD} -e 's,%%SSLDIR%%,/var/dovecot/ssl,' \ |
96 |
@${REINPLACE_CMD} -e 's,%%SSLDIR%%,/var/dovecot/ssl,' \ |
Lines 90-98
Link Here
|
90 |
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' \ |
99 |
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' \ |
91 |
${WRKSRC}/dovecot-example.conf |
100 |
${WRKSRC}/dovecot-example.conf |
92 |
|
101 |
|
|
|
102 |
post-build: |
103 |
@${SED} -e 's,%%PREFIX%%,${PREFIX},g' \ |
104 |
-e 's,%%RC_SUBR%%,${RC_SUBR},g' \ |
105 |
${FILESDIR}/dovecot.sh >${WRKDIR}/dovecot.sh |
106 |
|
93 |
do-install: |
107 |
do-install: |
94 |
@${SETENV} ${SCRIPTS_ENV} \ |
108 |
@${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL |
95 |
${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL |
|
|
96 |
@${MKDIR} ${PREFIX}/libexec/dovecot |
109 |
@${MKDIR} ${PREFIX}/libexec/dovecot |
97 |
${INSTALL_PROGRAM} \ |
110 |
${INSTALL_PROGRAM} \ |
98 |
${WRKSRC}/src/imap/imap \ |
111 |
${WRKSRC}/src/imap/imap \ |
Lines 103-123
Link Here
|
103 |
${PREFIX}/libexec/dovecot/ |
116 |
${PREFIX}/libexec/dovecot/ |
104 |
${INSTALL_DATA} ${WRKSRC}/dovecot-example.conf ${PREFIX}/etc/ |
117 |
${INSTALL_DATA} ${WRKSRC}/dovecot-example.conf ${PREFIX}/etc/ |
105 |
${INSTALL_PROGRAM} ${WRKSRC}/src/master/dovecot ${PREFIX}/sbin/ |
118 |
${INSTALL_PROGRAM} ${WRKSRC}/src/master/dovecot ${PREFIX}/sbin/ |
106 |
@${SETENV} ${SCRIPTS_ENV} \ |
119 |
@${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL |
107 |
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL |
120 |
${INSTALL_SCRIPT} ${WRKDIR}/dovecot.sh ${PREFIX}/etc/rc.d/ |
108 |
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/dovecot.sh.sample \ |
|
|
109 |
${PREFIX}/etc/rc.d/dovecot.sh.sample |
110 |
.if !defined(NOPORTDOCS) |
121 |
.if !defined(NOPORTDOCS) |
111 |
@${MKDIR} ${DOCSDIR} |
122 |
@${MKDIR} ${DOCSDIR} |
112 |
.for document in ${DOCS} |
123 |
@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/doc/,} ${DOCSDIR} |
113 |
@${INSTALL_DATA} ${WRKSRC}/doc/${document} ${DOCSDIR} |
|
|
114 |
.endfor |
115 |
@${INSTALL_DATA} ${FILESDIR}/README.FreeBSD ${DOCSDIR} |
124 |
@${INSTALL_DATA} ${FILESDIR}/README.FreeBSD ${DOCSDIR} |
116 |
.endif |
125 |
.endif |
|
|
126 |
|
127 |
post-install: |
117 |
@${SED} -e 's,%%PREFIX%%,${PREFIX},g' \ |
128 |
@${SED} -e 's,%%PREFIX%%,${PREFIX},g' \ |
118 |
-e 's,%%DOCSDIR%%,${DOCSDIR},g' \ |
129 |
-e 's,%%DOCSDIR%%,${DOCSDIR},g' \ |
119 |
${.CURDIR}/pkg-message >${PKGMESSAGE} |
130 |
${.CURDIR}/pkg-message >${PKGMESSAGE} |
120 |
@${CAT} ${PKGMESSAGE} |
131 |
@${CAT} ${PKGMESSAGE} |
121 |
|
132 |
|
122 |
#.include <bsd.port.post.mk> |
133 |
.include <bsd.port.post.mk> |
123 |
.include <bsd.port.mk> |
|
|