mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-20 20:09:11 +00:00
- make Cyrus-IMAP-2.x selectable instead of p5-IMAP-Admin and p5-IMAP-Sieve
- fixes cookie path (i.e. for Lynx) Submitted by: Oliver Eikemeier <eikemeier@fillmore-labs.com> (The maintainer)
This commit is contained in:
parent
4b69dd3240
commit
a97961fa8c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=79868
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= websieve
|
||||
PORTVERSION= 0.61
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= mail
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
@ -14,9 +15,20 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
MAINTAINER= eikemeier@fillmore-labs.com
|
||||
COMMENT= Web based Cyrus IMAP user admin client
|
||||
|
||||
.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
|
||||
RUN_DEPENDS= ${SITE_PERL}/IMAP/Admin.pm:${PORTSDIR}/mail/p5-IMAP-Admin \
|
||||
${SITE_PERL}/IMAP/Sieve.pm:${PORTSDIR}/mail/p5-IMAP-Sieve \
|
||||
${SITE_PERL}/CGI/Cache.pm:${PORTSDIR}/www/p5-CGI-Cache
|
||||
${SITE_PERL}/IMAP/Sieve.pm:${PORTSDIR}/mail/p5-IMAP-Sieve
|
||||
.endif
|
||||
.if defined(WITH_APACHE2)
|
||||
RUN_DEPENDS+= ${LOCALBASE}/www/cgi-bin:${PORTSDIR}/www/apache2
|
||||
.else
|
||||
@ -31,6 +43,26 @@ USE_PERL5_RUN= yes
|
||||
|
||||
NO_BUILD= yes
|
||||
|
||||
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
|
||||
|
||||
# We can not test .if exists(${CYRUS_IMAP_PM}) here
|
||||
# because SITE_PERL is defined in <bsd.port.post.mk>
|
||||
.if !defined(WITH_CYRUS_IMAPD_VER)
|
||||
pre-everything::
|
||||
@${ECHO_CMD} "If you want to use the Cyrus IMAP and Sieve perl modules"
|
||||
@${ECHO_CMD} "hit Ctrl-C right now and use WITH_CYRUS_IMAPD_VER=22, 21 or 20"
|
||||
@${ECHO_CMD}
|
||||
@${ECHO_CMD} "The Cyrus perl modules do not support SSL, but better"
|
||||
@${ECHO_CMD} "authentication mechanisms than cleartext PLAIN."
|
||||
@${ECHO_CMD}
|
||||
.endif
|
||||
|
||||
post-configure:
|
||||
@${REINPLACE_CMD} -e "s,require[ ]*'\./\([^']*\)',require '${PREFIX}/etc/websieve/\1'," \
|
||||
${WRKSRC}/websieve.pl
|
||||
@ -39,8 +71,8 @@ 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
|
||||
@${INSTALL_DATA} ${WRKSRC}/funclib.pl ${PREFIX}/etc/websieve
|
||||
@@${SED} 's,%%PREFIX%%,${PREFIX},g' ${.CURDIR}/pkg-message > ${PKGMESSAGE}
|
||||
@${INSTALL_DATA} ${WRKSRC}/${FUNCLIB_PL} ${PREFIX}/etc/websieve/funclib.pl
|
||||
@${SED} 's,%%PREFIX%%,${PREFIX},g' ${.CURDIR}/pkg-message > ${PKGMESSAGE}
|
||||
|
||||
post-install:
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
@ -1,5 +1,23 @@
|
||||
--- websieve.pl.orig Mon Sep 17 01:23:49 2001
|
||||
+++ websieve.pl Fri Apr 25 19:49:30 2003
|
||||
@@ -98,7 +98,7 @@
|
||||
$encode_params=&encode_base64($encode_params) if $userc4;
|
||||
$auth_cookie=cookie(-name => 'websieve',
|
||||
-value=>$encode_params,
|
||||
- -path=>"$program_url",
|
||||
+ -path=>"/",
|
||||
-expires => 'now');
|
||||
print header(-cookie=> $auth_cookie);
|
||||
param('op','');
|
||||
@@ -193,7 +193,7 @@
|
||||
$encode_params=&encode_base64($encode_params) if $userc4;
|
||||
$auth_cookie=cookie(-name => 'websieve',
|
||||
-value=>$encode_params,
|
||||
- -path=>"$program_url",
|
||||
+ -path=>"/",
|
||||
-expires => $expires);
|
||||
if ($uid ne "" && $pass ne "")
|
||||
{
|
||||
@@ -301,7 +301,7 @@
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user