mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- Remove optional dependencies on expired Cyrus 2.1 / 2.2
- Stage support - Fix runtime dependencies - Use @sample - Unmute installation commands - Bump PORTREVISION
This commit is contained in:
parent
91fde41091
commit
0edde742cd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=359820
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= websieve
|
||||
PORTVERSION= 0.63.a
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= mail
|
||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/063a
|
||||
DISTNAME?= ${PORTNAME}-${DISTVERSION}
|
||||
@ -21,32 +22,23 @@ NO_BUILD= yes
|
||||
# highest select version number. If no Cyrus IMAPd versions are
|
||||
# selected, use some generic IMAP modules
|
||||
|
||||
OPTIONS_DEFINE= CYRUS_IMAPD_21 CYRUS_IMAPD_22 CYRUS_IMAPD_23 CYRUS_IMAPD_24
|
||||
OPTIONS_DEFINE= CYRUS_IMAPD_23 CYRUS_IMAPD_24
|
||||
OPTIONS_DEFAULT= CYRUS_IMAPD_23
|
||||
|
||||
CYRUS_IMAPD_21_DESC= With Cyrus IMAPd version 2.1.x
|
||||
CYRUS_IMAPD_22_DESC= With Cyrus IMAPd version 2.2.x
|
||||
CYRUS_IMAPD_23_DESC= With Cyrus IMAPd version 2.3.x
|
||||
CYRUS_IMAPD_24_DESC= With Cyrus IMAPd version 2.4.x
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MCYRUS_IMAPD_24}
|
||||
RUN_DEPENDS+= cyrus-imapd>=0:${PORTSDIR}/mail/cyrus-imapd24
|
||||
RUN_DEPENDS+= cyradm:${PORTSDIR}/mail/cyrus-imapd24
|
||||
FUNCLIB_PL= funclib.cyrus
|
||||
.elif ${PORT_OPTIONS:MCYRUS_IMAPD_23}
|
||||
RUN_DEPENDS+= cyrus-imapd>=0:${PORTSDIR}/mail/cyrus-imapd23
|
||||
FUNCLIB_PL= funclib.cyrus
|
||||
.elif ${PORT_OPTIONS:MCYRUS_IMAPD_22}
|
||||
RUN_DEPENDS+= cyrus-imapd>=0:${PORTSDIR}/mail/cyrus-imapd22
|
||||
FUNCLIB_PL= funclib.cyrus
|
||||
.elif ${PORT_OPTIONS:MCYRUS_IMAPD_21}
|
||||
RUN_DEPENDS+= cyrus-imapd>=0:${PORTSDIR}/mail/cyrus-imapd2
|
||||
RUN_DEPENDS+= cyradm:${PORTSDIR}/mail/cyrus-imapd23
|
||||
FUNCLIB_PL= funclib.cyrus
|
||||
.else
|
||||
RUN_DEPENDS+= p5-IMAP-Admin>=0:${PORTSDIR}/mail/p5-IMAP-Admin \
|
||||
p5-IMAP-Sieve>=0:${PORTSDIR}/mail/p5-IMAP-Sieve
|
||||
RUN_DEPENDS+= p5-IMAP-Admin:${PORTSDIR}/mail/p5-IMAP-Admin \
|
||||
p5-IMAP-Sieve:${PORTSDIR}/mail/p5-IMAP-Sieve
|
||||
FUNCLIB_PL= funclib.pl
|
||||
.endif
|
||||
|
||||
@ -57,13 +49,10 @@ post-configure:
|
||||
${WRKSRC}/websieve.pl
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${WWWDIR}
|
||||
@${INSTALL_SCRIPT} ${WRKSRC}/websieve.pl ${WWWDIR}/websieve.pl
|
||||
@${MKDIR} ${PREFIX}/etc/websieve
|
||||
@${INSTALL_DATA} ${WRKSRC}/websieve.conf ${PREFIX}/etc/websieve/websieve.conf.sample
|
||||
@${INSTALL_DATA} ${WRKSRC}/${FUNCLIB_PL} ${PREFIX}/etc/websieve/funclib.pl
|
||||
|
||||
post-install:
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
@${MKDIR} ${STAGEDIR}${WWWDIR}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/websieve.pl ${STAGEDIR}${WWWDIR}/websieve.pl
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/websieve
|
||||
${INSTALL_DATA} ${WRKSRC}/websieve.conf ${STAGEDIR}${PREFIX}/etc/websieve/websieve.conf.sample
|
||||
${INSTALL_DATA} ${WRKSRC}/${FUNCLIB_PL} ${STAGEDIR}${PREFIX}/etc/websieve/funclib.pl
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,5 +1,5 @@
|
||||
%%WWWDIR%%/websieve.pl
|
||||
etc/websieve/websieve.conf.sample
|
||||
@sample etc/websieve/websieve.conf.sample
|
||||
etc/websieve/funclib.pl
|
||||
@dirrmtry etc/websieve
|
||||
@dirrm %%WWWDIR%%
|
||||
|
Loading…
Reference in New Issue
Block a user