View | Details | Raw Unified | Return to bug 116493
Collapse All | Expand All

(-)websieve/Makefile (-21 / +24 lines)
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>
(-)websieve/files/pkg-message.in (+19 lines)
Line 0 Link Here
1
Websieve has been installed in %%WWWDIR%%
2
3
However, before you can use the program, you should copy the file
4
"websieve.conf.sample" in %%PREFIX%%/etc/websieve to "websieve.conf"
5
edit it to suit your needs. Use "openssl rand -base64 39" to create
6
a new secret key.  You will need to add a section like the following to
7
your Apache configuration:
8
9
    ScriptAlias /websieve "%%WWWDIR%%/"
10
11
    <Directory "%%WWWDIR%%">
12
        Options ExecCGI
13
        AllowOverride none
14
15
        Order Deny,Allow
16
        Deny from all
17
        Allow from 127.0.0.1 .example.com
18
    </Directory>
19
(-)websieve/options (-17 lines)
Lines 1-17 Link Here
1
# $FreeBSD: ports/mail/websieve/options,v 1.1 2004/07/19 07:25:55 eik Exp $
2
#
3
4
#WITH_CYRUS_IMAPD_VER=	none, 22, 21, 20
5
# Use the Cyrus IMAP and Sieve perl modules.
6
# The Cyrus perl modules do not support SSL, but better
7
# authentication mechanisms than cleartext PLAIN.
8
9
10
## AUTOMATICALLY GENERATED FILE - DO NOT CHANGE ANYTHING BELOW THIS LINE ##
11
# use `make config' to edit the local configuration
12
# use `make makeconfig' to edit the defaults (MAINTAINER only)
13
14
_OPTIONSNG_READ?=default
15
.ifndef WITH_CYRUS_IMAPD_VER
16
WITHOUT_CYRUS_IMAPD_VER?=yes
17
.endif
(-)websieve/pkg-message (-6 lines)
Lines 1-6 Link Here
1
Websieve has been installed at <http://localhost/cgi-bin/websieve.pl>
2
3
However, before you can use the program, you should copy the file
4
"websieve.conf.sample" in %%PREFIX%%/etc/websieve to "websieve.conf"
5
edit it to suit your needs. Use "openssl rand -base64 39" to create
6
a new secret key.
(-)websieve/pkg-plist (-2 / +3 lines)
Lines 1-4 Link Here
1
www/cgi-bin/websieve.pl
1
%%WWWDIR%%/websieve.pl
2
etc/websieve/websieve.conf.sample
2
etc/websieve/websieve.conf.sample
3
etc/websieve/funclib.pl
3
etc/websieve/funclib.pl
4
@dirrm etc/websieve
4
@dirrmtry etc/websieve
5
@dirrm %%WWWDIR%%

Return to bug 116493