From nobody@FreeBSD.org  Wed Feb 25 06:18:51 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id F1FF116A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 25 Feb 2004 06:18:51 -0800 (PST)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D556243D2D
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 25 Feb 2004 06:18:51 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.10/8.12.10) with ESMTP id i1PEIo72062680
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 25 Feb 2004 06:18:50 -0800 (PST)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.10/8.12.10/Submit) id i1PEIoKH062679;
	Wed, 25 Feb 2004 06:18:50 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200402251418.i1PEIoKH062679@www.freebsd.org>
Date: Wed, 25 Feb 2004 06:18:50 -0800 (PST)
From: Aleksandar Pejic <alex@yunord.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: New port: mail/openwebmail-current  Open WebMail is designed to manage very large mail folder files in a memory efficient way
X-Send-Pr-Version: www-2.3

>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:    leeym
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 25 06:20:20 PST 2004
>Closed-Date:    Thu Aug 19 09:08:58 GMT 2004
>Last-Modified:  Thu Aug 19 09:08:58 GMT 2004
>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:

From: Yen-Ming Lee <leeym@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org, alex@yunord.net
Cc:  
Subject: Re: ports/63349: New port: mail/openwebmail-current  Open WebMail is designed to manage very large mail folder files in a memory efficient way
Date: Thu, 26 Feb 2004 10:59:20 +0800

 --9jxsPFA5p3P2qPhR
 Content-Type: text/plain; charset=big5
 Content-Disposition: inline
 Content-Transfer-Encoding: 8bit
 
 Why do we need this port?
 
 Unlike other *-{stable,current} ports or packages, which "current" means
 the next major version of "stable" (e.g. stable is 2.2 and current is 3.0),
 the openwebmail itself only have one branch. The openwebmail-current doesn't
 belong to a release version yet, it is only a tarball of currently devloping
 source tree, so the distfile will always be named as "openwebmail-current.tgz",
 and it may be rerolled after every modifications, even several times a day.
 
 Under this situation, I don't think it should be put into FreeBSD ports.
 If you insist, openwebmail and openwebmail shouldn't be maintained separately.
 The only difference between these two ports is PORTVERSION (and distinfo,
 of course). openwebmail-current should be made as a slave port of openwebmail.
 
 regards,
 -- 
 Yen-Ming Lee [۩] KeyID: 0x5EB52E51 : www.leeym.com : Taipei, Taiwan
 
 --9jxsPFA5p3P2qPhR
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.4 (FreeBSD)
 
 iQCVAwUBQD1g+MnMx0NetS5RAQF5fwP/VhRpYASlzc0umwrdC5RKVMog8oTCBcb7
 lGkWGtwX4+Pc2aDBT6cT66hIA+xQn7ZcpazrPXF6DH9ZVufHorh3mG2vWIyvJQHf
 SkWAqC22mztqdYr1us8uPBjsd4oY4FUpaKJpGwfwahWq0r3wZ4od+rkeCeA/PiyJ
 i5k4bsNAHUw=
 =S17a
 -----END PGP SIGNATURE-----
 
 --9jxsPFA5p3P2qPhR--
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Mon Jul 19 05:34:20 GMT 2004 
State-Changed-Why:  
Please convince the authors to use numbered versions of their tar-balls: 
- it will give us an idea which number the new is on 
- it will not break the distinfo everytime they reroll the tar-ball 

Also, please talk with leeym@FreeBSD.org about a development version 
of this port. 



Responsible-Changed-From-To: freebsd-ports-bugs->edwin 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Jul 19 05:34:20 GMT 2004 
Responsible-Changed-Why:  
Please convince the authors to use numbered versions of their tar-balls: 
- it will give us an idea which number the new is on 
- it will not break the distinfo everytime they reroll the tar-ball 

Also, please talk with leeym@FreeBSD.org about a development version 
of this port. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=63349 
Responsible-Changed-From-To: edwin->leeym 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Jul 19 05:36:51 GMT 2004 
Responsible-Changed-Why:  
leeym@ is maintainer of mail/openwebmail 

http://www.freebsd.org/cgi/query-pr.cgi?pr=63349 
State-Changed-From-To: feedback->closed 
State-Changed-By: leeym 
State-Changed-When: Thu Aug 19 09:08:56 GMT 2004 
State-Changed-Why:  
updated to the latest release. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=63349 
>Unformatted:
