diff options
-rw-r--r-- | www/webcalendar/Makefile | 66 | ||||
-rw-r--r-- | www/webcalendar/distinfo | 6 | ||||
-rw-r--r-- | www/webcalendar/pkg-message | 5 |
3 files changed, 64 insertions, 13 deletions
diff --git a/www/webcalendar/Makefile b/www/webcalendar/Makefile index 0d15a0e14f0a..8061a132706c 100644 --- a/www/webcalendar/Makefile +++ b/www/webcalendar/Makefile @@ -6,7 +6,7 @@ # PORTNAME= WebCalendar -DISTVERSION= 1.0.2 +DISTVERSION= 1.0.3 CATEGORIES= www MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= webcalendar @@ -15,7 +15,8 @@ DISTNAME= ${PORTNAME}-${PORTVERSION} MAINTAINER= glarkin@sourcehosting.net COMMENT= A web-based calendar application -USE_PHP= yes +USE_PHP= pcre session ldap +USE_APACHE= yes NO_BUILD= yes WRKSRC= ${WRKDIR}/WebCalendar-${DISTVERSION} @@ -30,25 +31,74 @@ DOCS= docs/README \ docs/WebCalendar-SysAdmin.html \ docs/newwin.gif +OPTIONS= MYSQL "Use MySQL database backend (default)" On \ + PGSQL "Use PostgreSQL database backend" Off \ + MSSQL "Use MSSQL database backend" Off \ + DBASE "Use DBase database backend" Off \ + ODBC "Use ODBC database backend" Off \ + ORACLE "Use Oracle database backend" Off + +.include <bsd.port.pre.mk> + +DB_DEFINED= no + +.if !defined(WITHOUT_MYSQL) +USE_PHP+= mysql +DB_DEFINED= yes +.endif + +.if defined(WITH_PGSQL) +USE_PHP+= pgsql +DB_DEFINED= yes +.endif + +.if defined(WITH_MSSQL) +USE_PHP+= mssql +DB_DEFINED= yes +.endif + +.if defined(WITH_DBASE) +USE_PHP+= dbase +DB_DEFINED= yes +.endif + +.if defined(WITH_ODBC) +USE_PHP+= odbc +DB_DEFINED= yes +.endif + +.if defined(WITH_ORACLE) +USE_PHP+= oracle +DB_DEFINED= yes +.endif + +.if ${DB_DEFINED} == "no" +IGNORE= please, choose database backend running 'make config' +.endif + +# Fix USE_PHP after bsd.port.pre.mk +.include "${PORTSDIR}/Mk/bsd.php.mk" + pre-install: cd ${WRKSRC} && ${FIND} -s * -type f | \ ${SED} -e 's|^|${WEBWCDIR}/|' > ${PLIST} \ && ${FIND} -d * -type d | \ ${SED} -e 's|^|@dirrm ${WEBWCDIR}/|' >> ${PLIST} \ && ${ECHO_CMD} @dirrm ${WEBWCDIR} >> ${PLIST} - ${CAT} pkg-plist >> ${PLIST} + @${CAT} pkg-plist >> ${PLIST} do-install: - ${MKDIR} ${PREFIX}/${WEBWCDIR} + @${MKDIR} ${PREFIX}/${WEBWCDIR} ${CP} -R ${WRKSRC}/* ${PREFIX}/${WEBWCDIR} ${CHOWN} -R www:www ${PREFIX}/${WEBWCDIR} ${FIND} ${PREFIX}/${WEBWCDIR} -type f | ${XARGS} ${CHMOD} 644 post-install: - ${MKDIR} ${DOCSDIR} + @${MKDIR} ${DOCSDIR} .for i in ${DOCS} - @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} .endfor - @${CAT} ${PKGMESSAGE} | ${SED} -e 's|%%PREFIX%%|${PREFIX}|g' -e 's|%%WEBWCDIR%%|${WEBWCDIR}|g' -e 's|%%DOCSDIR%%|${DOCSDIR}|g' + @${CAT} ${PKGMESSAGE} | ${SED} -e 's|%%PREFIX%%|${PREFIX}|g' \ + -e 's|%%WEBWCDIR%%|${WEBWCDIR}|g' -e 's|%%DOCSDIR%%|${DOCSDIR}|g' -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/www/webcalendar/distinfo b/www/webcalendar/distinfo index c892f4317866..4cf864a8d037 100644 --- a/www/webcalendar/distinfo +++ b/www/webcalendar/distinfo @@ -1,3 +1,3 @@ -MD5 (WebCalendar-1.0.2.tar.gz) = 358bde9195b88f33134e1fad9d617921 -SHA256 (WebCalendar-1.0.2.tar.gz) = 4f484634aeaec0895f7959460bac08bd2866acdfe02f4e3250af48febaffd0b2 -SIZE (WebCalendar-1.0.2.tar.gz) = 942031 +MD5 (WebCalendar-1.0.3.tar.gz) = 499f9daed1970625e26b8062d4b53f0e +SHA256 (WebCalendar-1.0.3.tar.gz) = dd974906eaf5bceeca4dbe8ea545b913ac53f79cc68aa9bb7d6a25bce9a962b2 +SIZE (WebCalendar-1.0.3.tar.gz) = 885250 diff --git a/www/webcalendar/pkg-message b/www/webcalendar/pkg-message index a42d828bee26..22d7c31ab63c 100644 --- a/www/webcalendar/pkg-message +++ b/www/webcalendar/pkg-message @@ -3,8 +3,9 @@ Post-installation instructions: To make WebCalendar workable, please read %%DOCSDIR%%/WebCalendar-SysAdmin.html -for information about creating the database and installing -the database tables. +for information about creating the database, installing +the database tables and other post-installation tasks, +such as setting up email reminders. Then copy %%PREFIX%%/%%WEBWCDIR%%/includes/settings.php.orig to |