Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Feb 2004 06:18:50 -0800 (PST)
From:      Aleksandar Pejic <alex@yunord.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/63349: New port: mail/openwebmail-current  Open WebMail is designed to manage very large mail folder files in a memory efficient way
Message-ID:  <200402251418.i1PEIoKH062679@www.freebsd.org>
Resent-Message-ID: <200402251420.i1PEKLku036281@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         63349
>Category:       ports
>Synopsis:       New port: mail/openwebmail-current  Open WebMail is designed to manage very large mail folder files in a memory efficient way
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 25 06:20:20 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Aleksandar Pejic
>Release:        5.2
>Organization:
>Environment:
>Description:
Open WebMail is designed to manage very large mail folder files in a memory efficient way.
>How-To-Repeat:
      
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	openwebmail-current
#	openwebmail-current/Makefile
#	openwebmail-current/distinfo
#	openwebmail-current/pkg-install
#	openwebmail-current/pkg-deinstall
#	openwebmail-current/pkg-descr
#	openwebmail-current/pkg-plist
#	openwebmail-current/README.html
#
echo c - openwebmail-current
mkdir -p openwebmail-current > /dev/null 2>&1
echo x - openwebmail-current/Makefile
sed 's/^X//' >openwebmail-current/Makefile << 'END-of-openwebmail-current/Makefile'
X# New ports collection makefile for:	openwebmail-current
X# Date created:				25 February 2004
X# Whom:	Aleksandar Pejic <alexa@yunord.net> based on Yen-Ming Lee's <leeym@leeym.com> openwebmail port
X#
X
XPORTNAME=	openwebmail
XPORTVERSION=	current
XCATEGORIES=	mail
XMASTER_SITES=	http://openwebmail.com/openwebmail/download/ \
X		http://turtle.ee.ncku.edu.tw/openwebmail/download/
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	alexa@yunord.net
XCOMMENT=	Open WebMail is designed to manage very large mail folder files in a memory efficient way.
X
XRUN_DEPENDS=	${SITE_PERL}/CGI.pm:${PORTSDIR}/www/p5-CGI.pm \
X		${SITE_PERL}/Net/SMTP.pm:${PORTSDIR}/net/p5-Net \
X		${SITE_PERL}/${PERL_ARCH}/Text/Iconv.pm:${PORTSDIR}/converters/p5-Text-Iconv \
X		${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64
X
X.include <bsd.port.pre.mk>
X
XUSE_PERL5=	yes
XNO_BUILD=	yes
XNO_WRKSUBDIR=	yes
XOWCGIDIR=	${PREFIX}/www/cgi-bin/openwebmail
XOWDATADIR=	${PREFIX}/www/data/openwebmail
XPATCH_WRKSRC=	${WRKSRC}/cgi-bin/openwebmail
XPATCH_STRIP=	-p1
XPLIST=		${WRKDIR}/.PLIST.${PKGNAME}
X
X.if !defined(WITHOUT_SPEEDYCGI)
XBUILD_DEPENDS+=	speedy_suid:${PORTSDIR}/www/p5-CGI-SpeedyCGI
XRUN_DEPENDS+=	speedy_suid:${PORTSDIR}/www/p5-CGI-SpeedyCGI
XEXTRA_PATCHES=	${PATCH_WRKSRC}/uty/suidperl2speedy_suid.diff
X.else
X_CUSTOMIZED=	yes
X.endif
X
X.if defined(WITH_PAM)
XRUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/Authen/PAM.pm:${PORTSDIR}/security/p5-Authen-PAM
X_CUSTOMIZED=	yes
X.endif
X
X.if defined(WITH_ZLIB)
XRUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/Compress/Zlib.pm:${PORTSDIR}/archivers/p5-Compress-Zlib
X_CUSTOMIZED=	yes
X.endif
X
X.if defined(WITH_QUOTA)
XRUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/Quota.pm:${PORTSDIR}/sysutils/p5-Quota
X_CUSTOMIZED=	yes
X.endif
X
X.if defined(WITH_ISPELL)
XRUN_DEPENDS+=	ispell:${PORTSDIR}/textproc/ispell
X_CUSTOMIZED=	yes
X.endif
X
X.if defined(WITH_ANTIWORD)
XRUN_DEPENDS+=	antiword:${PORTSDIR}/textproc/antiword
X_CUSTOMIZED=	yes
X.endif
X
X.if defined(WITH_IMAGEMAGICK)
XRUN_DEPENDS+=	convert:${PORTSDIR}/graphics/ImageMagick
X_CUSTOMIZED=	yes
X.endif
X
Xpre-fetch:
X.if ${PERL_LEVEL} > 500800
X	@${ECHO} ""
X	@${ECHO} "WARNING:"
X	@${ECHO} "Please make sure that your PERL is built with -DSUIDPERL_ENABLED,"
X	@${ECHO} "otherwise please build openwebmail with WITHOUT_SPEEDYCGI=yes"
X	@${ECHO} ""
X.endif
X
X	@${ECHO} ""
X	@${ECHO} "-----------------------------------------------------------------------"
X	@${ECHO} "NOTICE: openwebmail-current changes frequently, so if you get a"
X	@${ECHO} "        checksum mismatch please use NO_CHECKSUM=yes along make"
X	@${ECHO} "-----------------------------------------------------------------------"
X	@${ECHO} ""
X
X.if defined(WITH_PAM)
X	@${ECHO} "PAM support will be added."
X.endif
X.if defined(WITH_ZLIB)
X	@${ECHO} "Zlib support will be added."
X.endif
X.if defined(WITH_QUOTA)
X	@${ECHO} "Quota support will be added."
X.endif
X.if defined(WITH_ISPELL)
X	@${ECHO} "ISpell support will be added."
X.endif
X.if defined(WITH_ANTIWORD)
X	@${ECHO} "Antiword support will be added."
X.endif
X.if defined(WITHOUT_SPEEDYCGI)
X	@${ECHO} "SpeedyCGI support will NOT be added."
X.endif
X.if defined(WITH_IMAGEMAGICK)
X	@${ECHO} "ImageMagick support will be added."
X.endif
X.if !defined(_CUSTOMIZED)
X	@${ECHO} ""
X	@${ECHO} "Type \"make WITH_PAM=yes\" if you want PAM support."
X	@${ECHO} "Type \"make WITH_ZLIB=yes\" if you want Zlib support."
X	@${ECHO} "Type \"make WITH_QUOTA=yes\" if you want Quota support."
X	@${ECHO} "Type \"make WITH_ISPELL=yes\" if you want ISpell support."
X	@${ECHO} "Type \"make WITH_ANTIWORD=yes\" if you want Antiword support."
X	@${ECHO} "Type \"make WITHOUT_SPEEDYCGI=yes\" if you DONT want SpeedyCGI support."
X	@${ECHO} "Type \"make WITH_IMAGEMAGICK=yes\" if you want ImageMagick support."
X	@${ECHO} "You can use them in combinations."
X	@${ECHO} ""
X.endif
X
Xpost-patch:
X	@${MV} ${PATCH_WRKSRC}/etc/openwebmail.conf ${PATCH_WRKSRC}/etc/openwebmail.conf-dist
X	@${PERL} -pi.bak -e 's,${LOCALBASE}/www/cgi-bin/openwebmail,${OWCGIDIR},g' ${PATCH_WRKSRC}/etc/openwebmail.conf-dist
X	@${PERL} -pi.bak -e 's,${LOCALBASE}/www/data/openwebmail,${OWDATADIR},g' ${PATCH_WRKSRC}/etc/openwebmail.conf-dist
X.if !defined(WITHOUT_SPEEDYCGI)
X	@${ECHO} "has_savedsuid_support	no" >> ${PATCH_WRKSRC}/etc/openwebmail.conf-dist
X.else
X	@${PERL} -pi.bak -e 's,/usr/bin/suidperl,${PERL},g' ${PATCH_WRKSRC}/openwebmail*pl
X.endif
X
Xpre-install:
X	@${FIND} ${WRKSRC}/*/openwebmail \( -name "*.bak" -or -name "*.orig" \) -delete
X.if !exists(${PLIST})
X	@${ECHO} "@unexec if cmp -s %D/www/cgi-bin/openwebmail/etc/openwebmail.conf %D/www/cgi-bin/openwebmail/etc/openwebmail.conf-dist; then ${RM} -f %D/www/cgi-bin/openwebmail/etc/openwebmail.conf; fi" > ${PLIST}
X	@${FIND} ${WRKSRC}/*/openwebmail -type f -o -type l | \
X		${SED} -e 's,${WRKSRC},www,g' | ${SORT} -u >> ${PLIST}
X	@${ECHO} "www/cgi-bin/openwebmail/etc/dbm.conf" >> ${PLIST}
X.for f in b2g g2b lunar
X	@${ECHO} "www/cgi-bin/openwebmail/etc/${f}.db" >> ${PLIST}
X.endfor
X.if defined(WITHOUT_SPEEDYCGI)
X	@${FIND} ${WRKSRC}/*/openwebmail -name "openwebmail*pl" | \
X		${SED} -e 's,${WRKSRC},www,g' \
X		-e 's,openwebmail/openwebmail,openwebmail/.openwebmail,g' \
X		>> ${PLIST}
X.endif
X	@${FIND} ${WRKSRC}/*/openwebmail -type d | ${SORT} -ur | \
X		${SED} -e 's,${WRKSRC},@dirrm www,g' >> ${PLIST}
X.endif
X
Xdo-install:
X	@${MKDIR} ${OWCGIDIR} ${OWDATADIR}
X	@cd ${WRKSRC}/cgi-bin/openwebmail && ${FIND} . \
X		| ${CPIO} -dpum -R ${BINOWN}:mail ${OWCGIDIR}
X	@cd ${WRKSRC}/data/openwebmail && ${FIND} . \
X		| ${CPIO} -dpum -R ${SHAREOWN}:${SHAREGRP} ${OWDATADIR}
X.if !exists(${OWCGIDIR}/etc/openwebmail.conf)
X	@${CP} ${OWCGIDIR}/etc/openwebmail.conf-dist ${OWCGIDIR}/etc/openwebmail.conf
X.endif
X	@${PERL} ${OWCGIDIR}/uty/dbmtest.pl | ${GREP} "^dbm" > ${OWCGIDIR}/etc/dbm.conf
X.if defined(WITHOUT_SPEEDYCGI)
X	@${PERL} ${OWCGIDIR}/uty/wrapsuid.pl ${OWCGIDIR}
X.endif
X	@${OWCGIDIR}/openwebmail-tool.pl --init --no
X
Xpost-install:
X	@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
X
X.include <bsd.port.post.mk>
END-of-openwebmail-current/Makefile
echo x - openwebmail-current/distinfo
sed 's/^X//' >openwebmail-current/distinfo << 'END-of-openwebmail-current/distinfo'
XMD5 (openwebmail-current.tgz) = 8f6cdf7b50d16356b784b51e974e78e7
END-of-openwebmail-current/distinfo
echo x - openwebmail-current/pkg-install
sed 's/^X//' >openwebmail-current/pkg-install << 'END-of-openwebmail-current/pkg-install'
X#!/bin/sh
Xif [ "$2" != "POST-INSTALL" ]; then
X    exit 0
Xfi
X
Xchmod 0770 ${PKG_PREFIX}/www/cgi-bin/openwebmail/etc/sessions
Xchmod 0700 ${PKG_PREFIX}/www/cgi-bin/openwebmail/etc/users
Xchmod 4755 ${PKG_PREFIX}/www/cgi-bin/openwebmail/openwebmail*pl
END-of-openwebmail-current/pkg-install
echo x - openwebmail-current/pkg-deinstall
sed 's/^X//' >openwebmail-current/pkg-deinstall << 'END-of-openwebmail-current/pkg-deinstall'
X#!/bin/sh
Xif [ "$2" != "DEINSTALL" ]; then
X    exit 0
Xfi
X
Xrm -fr ${PKG_PREFIX}/www/cgi-bin/openwebmail/etc/sessions/*
END-of-openwebmail-current/pkg-deinstall
echo x - openwebmail-current/pkg-descr
sed 's/^X//' >openwebmail-current/pkg-descr << 'END-of-openwebmail-current/pkg-descr'
XOpen WebMail is a webmail system designed to manage very large mail folder
Xfiles in a memory efficient way. It also provides a range of features to help
Xusers migrate smoothly from Microsoft Outlook to Open WebMail. Open WebMail
Xhas the following features: multiple languages, multiple iconsets/styles,
Xstrong MIME support, virtual host/login alias, PAM support, online password
Xchanging, convenient folder/message operations, draft folder, confirmed
Xreading support, full content search, a spelling checker, auto reply, mail
Xfiltering, POP3 support, and message count previewing.
X
XWWW: http://www.openwebmail.com/
END-of-openwebmail-current/pkg-descr
echo x - openwebmail-current/pkg-plist
sed 's/^X//' >openwebmail-current/pkg-plist << 'END-of-openwebmail-current/pkg-plist'
X@comment real PLIST will be generated in pre-install phase
END-of-openwebmail-current/pkg-plist
echo x - openwebmail-current/README.html
sed 's/^X//' >openwebmail-current/README.html << 'END-of-openwebmail-current/README.html'
X<html>
X<title> The FreeBSD Ports Collection (mail/openwebmail)</title>
X<head><h1> The FreeBSD Ports Collection ("mail/openwebmail")</h1> </head> <hr>
X<body>
X
X<p>You are now in the directory for the port "mail/openwebmail-current" (package name "openwebmail-current").
X
X<p>This is the one-line description for this port:
X
X<p><hr><p>
XOpen WebMail is designed to manage very large mail folder files in a memory efficient way.
X<p><hr>
X
X<p>Please read the "<a href="pkg-descr">description file</a>" for a
Xlonger description.
X
X<p>Go to the <a href="../../README.html">top of the ports tree</a> for
Xa summary on how to use the ports collection.
X
X<p>
X
X<p>
XThis port requires package(s) "libiconv-1.8_2 p5-CGI.pm-2.89,1 p5-File-Spec-0.82 p5-MIME-Base64-2.12 p5-Net-1.11,1 p5-Text-Iconv-1.2_1 perl-5.6.1_11" to run.
X
X<p><hr><p>
X<a href="../README.html"> Go up one level</a>
X|
X<a href="../../README.html"> Go to top of ports tree</a>
X</body>
X</html>
END-of-openwebmail-current/README.html
exit
 
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402251418.i1PEIoKH062679>