update to openwebmail-2.30

This commit is contained in:
Yen-Ming Lee 2004-01-03 11:26:54 +00:00
parent dcc0b77050
commit 77233e9759
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=97220
4 changed files with 33 additions and 10 deletions

View file

@ -6,14 +6,14 @@
# #
PORTNAME= openwebmail PORTNAME= openwebmail
PORTVERSION= 2.21 PORTVERSION= 2.30
CATEGORIES= mail CATEGORIES= mail
MASTER_SITES= http://openwebmail.com/openwebmail/download/ \ MASTER_SITES= http://openwebmail.com/openwebmail/download/ \
http://turtle.ee.ncku.edu.tw/openwebmail/download/ http://turtle.ee.ncku.edu.tw/openwebmail/download/
EXTRACT_SUFX= .tgz EXTRACT_SUFX= .tgz
MAINTAINER= leeym@FreeBSD.org MAINTAINER= leeym@FreeBSD.org
COMMENT= A webmail system designed to manage very big mail folder files in a memory efficient way COMMENT= A webmail system designed to manage big mail folder files efficiently
RUN_DEPENDS= ${SITE_PERL}/CGI.pm:${PORTSDIR}/www/p5-CGI.pm \ RUN_DEPENDS= ${SITE_PERL}/CGI.pm:${PORTSDIR}/www/p5-CGI.pm \
${SITE_PERL}/Net/SMTP.pm:${PORTSDIR}/net/p5-Net \ ${SITE_PERL}/Net/SMTP.pm:${PORTSDIR}/net/p5-Net \
@ -34,7 +34,7 @@ PLIST= ${WRKDIR}/.PLIST.${PKGNAME}
.if !defined(WITHOUT_SPEEDYCGI) .if !defined(WITHOUT_SPEEDYCGI)
BUILD_DEPENDS+= speedy_suid:${PORTSDIR}/www/p5-CGI-SpeedyCGI BUILD_DEPENDS+= speedy_suid:${PORTSDIR}/www/p5-CGI-SpeedyCGI
RUN_DEPENDS+= speedy_suid:${PORTSDIR}/www/p5-CGI-SpeedyCGI RUN_DEPENDS+= speedy_suid:${PORTSDIR}/www/p5-CGI-SpeedyCGI
EXTRA_PATCHES= ${PATCH_WRKSRC}/uty/suidperl2speedy.diff EXTRA_PATCHES= ${PATCH_WRKSRC}/uty/suidperl2speedy_suid.diff
.else .else
_CUSTOMIZED= yes _CUSTOMIZED= yes
.endif .endif
@ -59,6 +59,11 @@ RUN_DEPENDS+= ispell:${PORTSDIR}/textproc/ispell
_CUSTOMIZED= yes _CUSTOMIZED= yes
.endif .endif
.if defined(WITH_ANTIWORD)
RUN_DEPENDS+= antiword:${PORTSDIR}/textproc/antiword
_CUSTOMIZED= yes
.endif
.if defined(WITH_IMAGEMAGICK) .if defined(WITH_IMAGEMAGICK)
RUN_DEPENDS+= convert:${PORTSDIR}/graphics/ImageMagick RUN_DEPENDS+= convert:${PORTSDIR}/graphics/ImageMagick
_CUSTOMIZED= yes _CUSTOMIZED= yes
@ -68,7 +73,7 @@ pre-fetch:
.if ${PERL_LEVEL} > 500800 .if ${PERL_LEVEL} > 500800
@${ECHO} "" @${ECHO} ""
@${ECHO} "WARNING:" @${ECHO} "WARNING:"
@${ECHO} "Please make sure that your perl is built with -DSUIDPERL_ENABLED," @${ECHO} "Please make sure that your PERL is built with -DSUIDPERL_ENABLED,"
@${ECHO} "otherwise please build openwebmail with WITHOUT_SPEEDYCGI=yes" @${ECHO} "otherwise please build openwebmail with WITHOUT_SPEEDYCGI=yes"
@${ECHO} "" @${ECHO} ""
.endif .endif
@ -84,6 +89,9 @@ pre-fetch:
.if defined(WITH_ISPELL) .if defined(WITH_ISPELL)
@${ECHO} "ISpell support will be added." @${ECHO} "ISpell support will be added."
.endif .endif
.if defined(WITH_ANTIWORD)
@${ECHO} "Antiword support will be added."
.endif
.if defined(WITHOUT_SPEEDYCGI) .if defined(WITHOUT_SPEEDYCGI)
@${ECHO} "SpeedyCGI support will NOT be added." @${ECHO} "SpeedyCGI support will NOT be added."
.endif .endif
@ -96,6 +104,7 @@ pre-fetch:
@${ECHO} "Type \"make WITH_ZLIB=yes\" if you want Zlib support." @${ECHO} "Type \"make WITH_ZLIB=yes\" if you want Zlib support."
@${ECHO} "Type \"make WITH_QUOTA=yes\" if you want Quota support." @${ECHO} "Type \"make WITH_QUOTA=yes\" if you want Quota support."
@${ECHO} "Type \"make WITH_ISPELL=yes\" if you want ISpell support." @${ECHO} "Type \"make WITH_ISPELL=yes\" if you want ISpell support."
@${ECHO} "Type \"make WITH_ANTIWORD=yes\" if you want Antiword support."
@${ECHO} "Type \"make WITHOUT_SPEEDYCGI=yes\" if you DONT want SpeedyCGI support." @${ECHO} "Type \"make WITHOUT_SPEEDYCGI=yes\" if you DONT want SpeedyCGI support."
@${ECHO} "Type \"make WITH_IMAGEMAGICK=yes\" if you want ImageMagick support." @${ECHO} "Type \"make WITH_IMAGEMAGICK=yes\" if you want ImageMagick support."
@${ECHO} "You can use them in combinations." @${ECHO} "You can use them in combinations."
@ -107,8 +116,7 @@ post-patch:
@${PERL} -pi.bak -e 's,${LOCALBASE}/www/cgi-bin/openwebmail,${OWCGIDIR},g' ${PATCH_WRKSRC}/etc/openwebmail.conf-dist @${PERL} -pi.bak -e 's,${LOCALBASE}/www/cgi-bin/openwebmail,${OWCGIDIR},g' ${PATCH_WRKSRC}/etc/openwebmail.conf-dist
@${PERL} -pi.bak -e 's,${LOCALBASE}/www/data/openwebmail,${OWDATADIR},g' ${PATCH_WRKSRC}/etc/openwebmail.conf-dist @${PERL} -pi.bak -e 's,${LOCALBASE}/www/data/openwebmail,${OWDATADIR},g' ${PATCH_WRKSRC}/etc/openwebmail.conf-dist
.if !defined(WITHOUT_SPEEDYCGI) .if !defined(WITHOUT_SPEEDYCGI)
@${ECHO} "savedsuid_support no" >> ${PATCH_WRKSRC}/etc/openwebmail.conf-dist @${ECHO} "has_savedsuid_support no" >> ${PATCH_WRKSRC}/etc/openwebmail.conf-dist
@${PERL} -pi.bak -e 's,${LOCALBASE}/bin/speedy,${LOCALBASE}/bin/speedy_suid,g' ${PATCH_WRKSRC}/openwebmail*pl
.else .else
@${PERL} -pi.bak -e 's,/usr/bin/suidperl,${PERL},g' ${PATCH_WRKSRC}/openwebmail*pl @${PERL} -pi.bak -e 's,/usr/bin/suidperl,${PERL},g' ${PATCH_WRKSRC}/openwebmail*pl
.endif .endif
@ -116,8 +124,9 @@ post-patch:
pre-install: pre-install:
@${FIND} ${WRKSRC}/*/openwebmail \( -name "*.bak" -or -name "*.orig" \) -delete @${FIND} ${WRKSRC}/*/openwebmail \( -name "*.bak" -or -name "*.orig" \) -delete
.if !exists(${PLIST}) .if !exists(${PLIST})
@${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} @${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}
@${FIND} ${WRKSRC}/*/openwebmail -type f -o -type l | ${SED} -e 's,${WRKSRC},www,g' | sort -u >> ${PLIST} @${FIND} ${WRKSRC}/*/openwebmail -type f -o -type l | ${SED} -e 's,${WRKSRC},www,g' | sort -u >> ${PLIST}
@${ECHO} "www/cgi-bin/openwebmail/etc/dbm.conf" >> ${PLIST}
.for f in b2g g2b lunar .for f in b2g g2b lunar
@${ECHO} "www/cgi-bin/openwebmail/etc/${f}.db" >> ${PLIST} @${ECHO} "www/cgi-bin/openwebmail/etc/${f}.db" >> ${PLIST}
.endfor .endfor
@ -137,11 +146,13 @@ do-install:
.if !exists(${OWCGIDIR}/etc/openwebmail.conf) .if !exists(${OWCGIDIR}/etc/openwebmail.conf)
@${CP} ${OWCGIDIR}/etc/openwebmail.conf-dist ${OWCGIDIR}/etc/openwebmail.conf @${CP} ${OWCGIDIR}/etc/openwebmail.conf-dist ${OWCGIDIR}/etc/openwebmail.conf
.endif .endif
@${CHMOD} 0770 ${OWCGIDIR}/etc/sessions ${OWCGIDIR}/etc/users @${PERL} ${OWCGIDIR}/uty/dbmtest.pl | ${GREP} "^dbm" > ${OWCGIDIR}/etc/dbm.conf
@${CHMOD} 4755 ${OWCGIDIR}/openwebmail*pl
.if defined(WITHOUT_SPEEDYCGI) .if defined(WITHOUT_SPEEDYCGI)
@${PERL} ${OWCGIDIR}/uty/wrapsuid.pl ${OWCGIDIR} @${PERL} ${OWCGIDIR}/uty/wrapsuid.pl ${OWCGIDIR}
.endif .endif
@${OWCGIDIR}/openwebmail-tool.pl --init --no @${OWCGIDIR}/openwebmail-tool.pl --init --no
post-install:
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.post.mk> .include <bsd.port.post.mk>

View file

@ -1 +1 @@
MD5 (openwebmail-2.21.tgz) = a7bf580b0e6a2f1cd896a4ca6a55355c MD5 (openwebmail-2.30.tgz) = 585a19c3192065be279f22c947a48e83

View file

@ -1,2 +1,6 @@
#!/bin/sh #!/bin/sh
if [ "$2" != "DEINSTALL" ]; then
exit 0
fi
rm -fr ${PKG_PREFIX}/www/cgi-bin/openwebmail/etc/sessions/* rm -fr ${PKG_PREFIX}/www/cgi-bin/openwebmail/etc/sessions/*

View file

@ -0,0 +1,8 @@
#!/bin/sh
if [ "$2" != "POST-INSTALL" ]; then
exit 0
fi
chmod 0770 ${PKG_PREFIX}/www/cgi-bin/openwebmail/etc/sessions
chmod 0700 ${PKG_PREFIX}/www/cgi-bin/openwebmail/etc/users
chmod 4755 ${PKG_PREFIX}/www/cgi-bin/openwebmail/openwebmail*pl