2003-04-26 23:50:25 +02:00
|
|
|
# New ports collection makefile for: websieve
|
|
|
|
# Date created: 25 Apr 2003
|
|
|
|
# Whom: Oliver Eikemeier <eikemeier@fillmore-labs.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= websieve
|
2004-07-19 09:25:30 +02:00
|
|
|
PORTVERSION= 0.63.a
|
2003-04-26 23:50:25 +02:00
|
|
|
CATEGORIES= mail
|
2004-07-19 09:25:30 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
|
2003-04-26 23:50:25 +02:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2004-07-19 09:25:30 +02:00
|
|
|
DISTNAME?= ${PORTNAME}-${DISTVERSION}
|
2003-04-26 23:50:25 +02:00
|
|
|
|
2003-11-14 01:29:48 +01:00
|
|
|
MAINTAINER= eik@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
|
|
|
|
|
|
|
|
.include "options"
|
|
|
|
|
2003-04-29 15:30:23 +02:00
|
|
|
.if defined(WITH_CYRUS_IMAPD_VER)
|
|
|
|
.if ${WITH_CYRUS_IMAPD_VER} == 22
|
|
|
|
RUN_DEPENDS= ${CYRUS_IMAP_PM}:${PORTSDIR}/mail/cyrus-imapd22
|
|
|
|
.elif ${WITH_CYRUS_IMAPD_VER} == 21
|
|
|
|
RUN_DEPENDS= ${CYRUS_IMAP_PM}:${PORTSDIR}/mail/cyrus-imapd2
|
|
|
|
.elif ${WITH_CYRUS_IMAPD_VER} == 20
|
|
|
|
RUN_DEPENDS= ${CYRUS_IMAP_PM}:${PORTSDIR}/mail/cyrus-imapd
|
|
|
|
.else
|
|
|
|
.error WITH_CYRUS_IMAPD_VER must be 22, 21 or 20
|
|
|
|
.endif
|
|
|
|
.else
|
2003-04-26 23:50:25 +02:00
|
|
|
RUN_DEPENDS= ${SITE_PERL}/IMAP/Admin.pm:${PORTSDIR}/mail/p5-IMAP-Admin \
|
2003-04-29 15:30:23 +02:00
|
|
|
${SITE_PERL}/IMAP/Sieve.pm:${PORTSDIR}/mail/p5-IMAP-Sieve
|
|
|
|
.endif
|
2003-11-07 10:12:58 +01:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/www/cgi-bin:${PORTSDIR}/${APACHE_PORT}
|
2003-04-26 23:50:25 +02:00
|
|
|
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
USE_PERL5_RUN= yes
|
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
2003-04-29 15:30:23 +02:00
|
|
|
CYRUS_IMAP_PM= ${SITE_PERL}/${PERL_ARCH}/Cyrus/IMAP/Admin.pm
|
|
|
|
|
|
|
|
.if defined(WITH_CYRUS_IMAPD_VER)
|
|
|
|
FUNCLIB_PL= funclib.cyrus
|
|
|
|
.else
|
|
|
|
FUNCLIB_PL= funclib.pl
|
|
|
|
.endif
|
|
|
|
|
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:
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/websieve.pl ${PREFIX}/www/cgi-bin
|
|
|
|
@${MKDIR} ${PREFIX}/etc/websieve
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/websieve.conf ${PREFIX}/etc/websieve/websieve.conf.sample
|
2003-04-29 15:30:23 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${FUNCLIB_PL} ${PREFIX}/etc/websieve/funclib.pl
|
|
|
|
@${SED} 's,%%PREFIX%%,${PREFIX},g' ${.CURDIR}/pkg-message > ${PKGMESSAGE}
|
2003-04-26 23:50:25 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|