diff options
author | Yen-Ming Lee <leeym@FreeBSD.org> | 2003-04-26 04:54:21 +0000 |
---|---|---|
committer | Yen-Ming Lee <leeym@FreeBSD.org> | 2003-04-26 04:54:21 +0000 |
commit | e4ca0117e378efaf96adc9431ea8ac6c342a92c6 (patch) | |
tree | 2e10fc4e09cef3d531a7e8812535ef9aa0f634f6 /mail/openwebmail/Makefile | |
parent | Don't call free when we haven't actually malloc'd any memory. This should (diff) |
update to openwebmail-2.01
- the master download site is relocated to openwebmail.com
- the SpeedyCGI support are enabled by default
Diffstat (limited to 'mail/openwebmail/Makefile')
-rw-r--r-- | mail/openwebmail/Makefile | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/mail/openwebmail/Makefile b/mail/openwebmail/Makefile index dedc171a99ef..aa47136c8517 100644 --- a/mail/openwebmail/Makefile +++ b/mail/openwebmail/Makefile @@ -6,9 +6,9 @@ # PORTNAME= openwebmail -PORTVERSION= 2.00 +PORTVERSION= 2.01 CATEGORIES= mail -MASTER_SITES= http://openwebmail.org/openwebmail/download/ \ +MASTER_SITES= http://openwebmail.com/openwebmail/download/ \ http://turtle.ee.ncku.edu.tw/openwebmail/download/ EXTRACT_SUFX= .tgz @@ -27,11 +27,11 @@ OWCGIDIR= ${PREFIX}/www/cgi-bin/openwebmail OWDATADIR= ${PREFIX}/www/data/openwebmail PATCH_WRKSRC= ${WRKSRC}/cgi-bin/openwebmail PATCH_STRIP= -p1 -PLIST= ${WRKDIR}/.PLIST.openwebmail +PLIST= ${WRKDIR}/.PLIST.${PKGNAME} -.if defined(WITH_SPEEDYCGI) -BUILD_DEPENDS+= ${SITE_PERL}/CGI/SpeedyCGI.pm:${PORTSDIR}/www/p5-CGI-SpeedyCGI -RUN_DEPENDS+= ${SITE_PERL}/CGI/SpeedyCGI.pm:${PORTSDIR}/www/p5-CGI-SpeedyCGI +.if !defined(WITHOUT_SPEEDYCGI) +BUILD_DEPENDS+= speedy_suid:${PORTSDIR}/www/p5-CGI-SpeedyCGI +RUN_DEPENDS+= speedy_suid:${PORTSDIR}/www/p5-CGI-SpeedyCGI EXTRA_PATCHES= ${PATCH_WRKSRC}/uty/suidperl2speedy.diff .endif @@ -54,17 +54,17 @@ pre-fetch: .if defined(WITH_ISPELL) @${ECHO} "ISpell support will be added." .endif -.if defined(WITH_SPEEDYCGI) - @${ECHO} "SpeedyCGI support will be added." +.if defined(WITHOUT_SPEEDYCGI) + @${ECHO} "SpeedyCGI support will NOT be added." .endif .if defined(WITH_IMAGEMAGICK) @${ECHO} "ImageMagick support will be added." .endif -.if !defined(WITH_PAM) && !defined(WITH_ISPELL) && !defined(WITH_IMAGEMAGICK) && !defined(WITH_SPEEDYCGI) +.if !defined(WITH_PAM) && !defined(WITH_ISPELL) && !defined(WITH_IMAGEMAGICK) && !defined(WITHOUT_SPEEDYCGI) @${ECHO} "" @${ECHO} "Type \"make WITH_PAM=yes\" if you want PAM support." @${ECHO} "Type \"make WITH_ISPELL=yes\" if you want ISpell support." - @${ECHO} "Type \"make WITH_SPEEDYCGI=yes\" if you 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} "You can use them in combinations." @${ECHO} "" @@ -73,8 +73,9 @@ pre-fetch: post-patch: @${PERL} -pi.bak -e 's,/usr/local/www/cgi-bin/openwebmail,${OWCGIDIR},g' ${PATCH_WRKSRC}/etc/openwebmail.conf @${PERL} -pi.bak -e 's,/usr/local/www/data/openwebmail,${OWDATADIR},g' ${PATCH_WRKSRC}/etc/openwebmail.conf -.if defined(WITH_SPEEDYCGI) +.if !defined(WITHOUT_SPEEDYCGI) @${ECHO} "savedsuid_support no" >> ${PATCH_WRKSRC}/etc/openwebmail.conf + @${PERL} -pi.bak -e 's,/usr/local/bin/speedy,${PREFIX}/bin/speedy_suid,g' ${PATCH_WRKSRC}/openwebmail*pl .else @${PERL} -pi.bak -e 's,/usr/bin/suidperl,${PERL},g' ${PATCH_WRKSRC}/openwebmail*pl .endif @@ -85,11 +86,14 @@ do-install: @cd ${WRKSRC}/data/openwebmail && ${FIND} . | cpio -dpum -R ${SHAREOWN}:${SHAREGRP} ${OWDATADIR} @${CHMOD} 0770 ${OWCGIDIR}/etc/sessions ${OWCGIDIR}/etc/users @${CHMOD} 4755 ${OWCGIDIR}/openwebmail*pl +.if defined(WITHOUT_SPEEDYCGI) @${PERL} ${OWCGIDIR}/uty/wrapsuid.pl ${OWCGIDIR} +.endif @${OWCGIDIR}/openwebmail-tool.pl --init --no @${FIND} ${OWCGIDIR} \( -name "*.bak" -or -name "*.orig" \) -delete - @${RM} -f ${PLIST} +.if !exists(${PLIST}) @cd ${PREFIX} && ${FIND} ${OWCGIDIR:S,${PREFIX}/,,} ${OWDATADIR:S,${PREFIX}/,,} -type f -or -type l | sort -u > ${PLIST} @cd ${PREFIX} && ${FIND} ${OWCGIDIR:S,${PREFIX}/,,} ${OWDATADIR:S,${PREFIX}/,,} -type d | sort -ur | ${SED} -e 's,^,@dirrm ,g' >> ${PLIST} +.endif .include <bsd.port.mk> |