Lines 16-64
Link Here
|
16 |
COMMENT= Web based Cyrus IMAP user admin client |
16 |
COMMENT= Web based Cyrus IMAP user admin client |
17 |
|
17 |
|
18 |
DISTVERSION= 063a |
18 |
DISTVERSION= 063a |
19 |
APACHE_COMPAT= yes |
|
|
20 |
.include "options" |
21 |
|
19 |
|
22 |
.if defined(WITH_CYRUS_IMAPD_VER) |
20 |
# Oh for the ability to do radio buttons. In this case, just use the |
23 |
.if ${WITH_CYRUS_IMAPD_VER} == 22 |
21 |
# highest select version number. If no Cyrus IMAPd versions are |
|
|
22 |
# selected, use some generic IMAP modules |
23 |
|
24 |
OPTIONS= CYRUS_IMAPD_21 "With Cyrus IMAPd version 2.1.x" off \ |
25 |
CYRUS_IMAPD_22 "With Cyrus IMAPd version 2.2.x" off \ |
26 |
CYRUS_IMAPD_23 "With Cyrus IMAPd version 2.3.x" on |
27 |
|
28 |
.include <bsd.port.pre.mk> |
29 |
|
30 |
CYRUS_IMAP_PM= ${SITE_PERL}/${PERL_ARCH}/Cyrus/IMAP/Admin.pm |
31 |
|
32 |
.if defined(WITH_CYRUS_IMAPD_23) |
33 |
RUN_DEPENDS= ${CYRUS_IMAP_PM}:${PORTSDIR}/mail/cyrus-imapd23 |
34 |
FUNCLIB_PL= funclib.cyrus |
35 |
.elif defined(WITH_CYRUS_IMAPD_22) |
24 |
RUN_DEPENDS= ${CYRUS_IMAP_PM}:${PORTSDIR}/mail/cyrus-imapd22 |
36 |
RUN_DEPENDS= ${CYRUS_IMAP_PM}:${PORTSDIR}/mail/cyrus-imapd22 |
25 |
.elif ${WITH_CYRUS_IMAPD_VER} == 21 |
37 |
FUNCLIB_PL= funclib.cyrus |
|
|
38 |
.elif defined(WITH_CYRUS_IMAPD_21) |
26 |
RUN_DEPENDS= ${CYRUS_IMAP_PM}:${PORTSDIR}/mail/cyrus-imapd2 |
39 |
RUN_DEPENDS= ${CYRUS_IMAP_PM}:${PORTSDIR}/mail/cyrus-imapd2 |
27 |
.else |
40 |
FUNCLIB_PL= funclib.cyrus |
28 |
IGNORE= Cannot install: WITH_CYRUS_IMAPD_VER must be 22 or 21 |
|
|
29 |
.endif |
30 |
.else |
41 |
.else |
31 |
RUN_DEPENDS= ${SITE_PERL}/IMAP/Admin.pm:${PORTSDIR}/mail/p5-IMAP-Admin \ |
42 |
RUN_DEPENDS= ${SITE_PERL}/IMAP/Admin.pm:${PORTSDIR}/mail/p5-IMAP-Admin \ |
32 |
${SITE_PERL}/IMAP/Sieve.pm:${PORTSDIR}/mail/p5-IMAP-Sieve |
43 |
${SITE_PERL}/IMAP/Sieve.pm:${PORTSDIR}/mail/p5-IMAP-Sieve |
|
|
44 |
FUNCLIB_PL= funclib.pl |
33 |
.endif |
45 |
.endif |
34 |
RUN_DEPENDS+= ${LOCALBASE}/www/cgi-bin:${PORTSDIR}/${APACHE_PORT} |
|
|
35 |
|
46 |
|
36 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
47 |
SUB_FILES= pkg-message |
37 |
|
48 |
|
38 |
USE_PERL5_RUN= yes |
49 |
USE_PERL5_RUN= yes |
39 |
|
50 |
|
40 |
NO_BUILD= yes |
51 |
NO_BUILD= yes |
41 |
|
52 |
|
42 |
CYRUS_IMAP_PM= ${SITE_PERL}/${PERL_ARCH}/Cyrus/IMAP/Admin.pm |
|
|
43 |
|
44 |
.if defined(WITH_CYRUS_IMAPD_VER) |
45 |
FUNCLIB_PL= funclib.cyrus |
46 |
.else |
47 |
FUNCLIB_PL= funclib.pl |
48 |
.endif |
49 |
|
50 |
post-configure: |
53 |
post-configure: |
51 |
@${REINPLACE_CMD} -e "s,require[ ]*'\./\([^']*\)',require '${PREFIX}/etc/websieve/\1'," \ |
54 |
@${REINPLACE_CMD} -e "s,require[ ]*'\./\([^']*\)',require '${PREFIX}/etc/websieve/\1'," \ |
52 |
${WRKSRC}/websieve.pl |
55 |
${WRKSRC}/websieve.pl |
53 |
|
56 |
|
54 |
do-install: |
57 |
do-install: |
55 |
@${INSTALL_SCRIPT} ${WRKSRC}/websieve.pl ${PREFIX}/www/cgi-bin |
58 |
@${MKDIR} ${WWWDIR} |
|
|
59 |
@${INSTALL_SCRIPT} ${WRKSRC}/websieve.pl ${WWWDIR}/websieve.pl |
56 |
@${MKDIR} ${PREFIX}/etc/websieve |
60 |
@${MKDIR} ${PREFIX}/etc/websieve |
57 |
@${INSTALL_DATA} ${WRKSRC}/websieve.conf ${PREFIX}/etc/websieve/websieve.conf.sample |
61 |
@${INSTALL_DATA} ${WRKSRC}/websieve.conf ${PREFIX}/etc/websieve/websieve.conf.sample |
58 |
@${INSTALL_DATA} ${WRKSRC}/${FUNCLIB_PL} ${PREFIX}/etc/websieve/funclib.pl |
62 |
@${INSTALL_DATA} ${WRKSRC}/${FUNCLIB_PL} ${PREFIX}/etc/websieve/funclib.pl |
59 |
@${SED} 's,%%PREFIX%%,${PREFIX},g' ${.CURDIR}/pkg-message > ${PKGMESSAGE} |
|
|
60 |
|
63 |
|
61 |
post-install: |
64 |
post-install: |
62 |
@${CAT} ${PKGMESSAGE} |
65 |
@${CAT} ${PKGMESSAGE} |
63 |
|
66 |
|
64 |
.include <bsd.port.mk> |
67 |
.include <bsd.port.post.mk> |