2013-09-20 21:59:12 +02:00
|
|
|
# Created by: Oliver Eikemeier <eikemeier@fillmore-labs.com>
|
2003-04-26 23:50:25 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= websieve
|
2004-07-19 09:25:30 +02:00
|
|
|
PORTVERSION= 0.63.a
|
2014-06-30 12:19:16 +02:00
|
|
|
PORTREVISION= 1
|
2003-04-26 23:50:25 +02:00
|
|
|
CATEGORIES= mail
|
2009-09-02 17:01:56 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/063a
|
2004-07-19 09:25:30 +02:00
|
|
|
DISTNAME?= ${PORTNAME}-${DISTVERSION}
|
2003-04-26 23:50:25 +02:00
|
|
|
|
2005-07-18 05:49:55 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-04-26 23:50:25 +02:00
|
|
|
COMMENT= Web based Cyrus IMAP user admin client
|
|
|
|
|
2004-07-19 09:25:30 +02:00
|
|
|
DISTVERSION= 063a
|
|
|
|
|
2013-08-03 15:44:00 +02:00
|
|
|
USES= perl5
|
|
|
|
USE_PERL5= run
|
2007-10-12 02:59:51 +02:00
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
2007-09-29 21:09:03 +02:00
|
|
|
# Oh for the ability to do radio buttons. In this case, just use the
|
|
|
|
# highest select version number. If no Cyrus IMAPd versions are
|
|
|
|
# selected, use some generic IMAP modules
|
2003-04-26 23:50:25 +02:00
|
|
|
|
2014-06-30 12:19:16 +02:00
|
|
|
OPTIONS_DEFINE= CYRUS_IMAPD_23 CYRUS_IMAPD_24
|
2012-06-13 07:55:02 +02:00
|
|
|
OPTIONS_DEFAULT= CYRUS_IMAPD_23
|
2003-04-26 23:50:25 +02:00
|
|
|
|
2012-06-13 07:55:02 +02:00
|
|
|
CYRUS_IMAPD_23_DESC= With Cyrus IMAPd version 2.3.x
|
|
|
|
CYRUS_IMAPD_24_DESC= With Cyrus IMAPd version 2.4.x
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
2003-04-26 23:50:25 +02:00
|
|
|
|
2012-06-13 07:55:02 +02:00
|
|
|
.if ${PORT_OPTIONS:MCYRUS_IMAPD_24}
|
2014-06-30 12:19:16 +02:00
|
|
|
RUN_DEPENDS+= cyradm:${PORTSDIR}/mail/cyrus-imapd24
|
2010-10-18 19:26:12 +02:00
|
|
|
FUNCLIB_PL= funclib.cyrus
|
2012-06-13 07:55:02 +02:00
|
|
|
.elif ${PORT_OPTIONS:MCYRUS_IMAPD_23}
|
2014-06-30 12:19:16 +02:00
|
|
|
RUN_DEPENDS+= cyradm:${PORTSDIR}/mail/cyrus-imapd23
|
2003-04-29 15:30:23 +02:00
|
|
|
FUNCLIB_PL= funclib.cyrus
|
|
|
|
.else
|
2014-06-30 12:19:16 +02:00
|
|
|
RUN_DEPENDS+= p5-IMAP-Admin:${PORTSDIR}/mail/p5-IMAP-Admin \
|
|
|
|
p5-IMAP-Sieve:${PORTSDIR}/mail/p5-IMAP-Sieve
|
2003-04-29 15:30:23 +02:00
|
|
|
FUNCLIB_PL= funclib.pl
|
|
|
|
.endif
|
|
|
|
|
2007-09-29 21:09:03 +02:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2003-04-26 23:50:25 +02:00
|
|
|
post-configure:
|
|
|
|
@${REINPLACE_CMD} -e "s,require[ ]*'\./\([^']*\)',require '${PREFIX}/etc/websieve/\1'," \
|
|
|
|
${WRKSRC}/websieve.pl
|
|
|
|
|
|
|
|
do-install:
|
2014-06-30 12:19:16 +02:00
|
|
|
@${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
|
2003-04-26 23:50:25 +02:00
|
|
|
|
2012-06-13 07:55:02 +02:00
|
|
|
.include <bsd.port.mk>
|