From 4355c2c0256069c6ed059f8d210eb190fc6ccb97 Mon Sep 17 00:00:00 2001 From: Beech Rintoul Date: Thu, 10 Jan 2008 00:06:11 +0000 Subject: [PATCH] - New port webcalendar-devel-1.1.6 - This is a port of the WebCalendar application. WebCalendar is an Open Source web-based calendar/scheduling system written in PHP. WebCalendar has been under development since 2000 and continues to evolve. PR: ports/119474 Submitted by: Greg Larkin (maintainer) Approved by: linimon (mentor) --- www/Makefile | 1 + www/webcalendar-devel/Makefile | 120 +++++++++++++++++++++ www/webcalendar-devel/distinfo | 3 + www/webcalendar-devel/files/pkg-message.in | 14 +++ www/webcalendar-devel/pkg-descr | 8 ++ 5 files changed, 146 insertions(+) create mode 100644 www/webcalendar-devel/Makefile create mode 100644 www/webcalendar-devel/distinfo create mode 100644 www/webcalendar-devel/files/pkg-message.in create mode 100644 www/webcalendar-devel/pkg-descr diff --git a/www/Makefile b/www/Makefile index 512020514487..ff40cc088557 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1270,6 +1270,7 @@ SUBDIR += web2ldap SUBDIR += webalizer SUBDIR += webcalendar + SUBDIR += webcalendar-devel SUBDIR += webcheck SUBDIR += webcopy SUBDIR += webcrawl diff --git a/www/webcalendar-devel/Makefile b/www/webcalendar-devel/Makefile new file mode 100644 index 000000000000..5a7e8d1557be --- /dev/null +++ b/www/webcalendar-devel/Makefile @@ -0,0 +1,120 @@ +# New ports collection makefile for: WebCalendar +# Date created: 08 Jan 2008 +# Whom: glarkin +# +# $FreeBSD$ +# + +PORTNAME= WebCalendar +PORTVERSION= 1.1.6 +CATEGORIES= www +MASTER_SITES= SF +MASTER_SITE_SUBDIR= webcalendar +PKGNAMESUFFIX= -devel +DISTNAME= ${PORTNAME:S/-devel//g}-${PORTVERSION} + +MAINTAINER= glarkin@sourcehosting.net +COMMENT= A web-based calendar application + +USE_PHP= pcre session +WANT_PHP_WEB= yes +NO_BUILD= yes +CONFLICTS= WebCalendar-[0-9]* + +WRKSRC= ${WRKDIR}/${DISTNAME} + +WCURL?= ${MASTER_SITE_SUBDIR} +WCDIR?= www/${WCURL} +PLIST= ${WRKDIR}/pkg-plist + +SUB_FILES= pkg-message +SUB_LIST= WCURL=${WCURL} WCDIR=${WCDIR} + +DOCSDIR?= ${PREFIX}/share/doc/${MASTER_SITE_SUBDIR} +PORTDOCS= WebCalendar-SysAdmin.html \ + 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 \ + LDAP "Use LDAP user authentication" Off \ + GRADIENTBG "Add gradient background image support" Off \ + REMINDERS "Add email reminder support" On + +.include + +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 by running 'make config' +.endif + +.if defined(WITH_LDAP) +USE_PHP+= ldap +.endif + +.if defined(WITH_GRADIENTBG) +USE_PHP+= gd +.endif + +.if defined(WITH_REMINDERS) +WANT_PHP_CLI= yes +.endif + +pre-install: + cd ${WRKSRC} && ${FIND} -s * -type f | \ + ${SED} -e 's|^|${WCDIR}/|' > ${PLIST} \ + && ${FIND} -d * -type d | \ + ${SED} -e 's|^|@dirrm ${WCDIR}/|' >> ${PLIST} \ + && ${ECHO_CMD} @dirrm ${WCDIR} >> ${PLIST} + @${ECHO_CMD} @dirrmtry www/data-dist >> ${PLIST} + @${ECHO_CMD} @dirrmtry www/data >> ${PLIST} + +do-install: + @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${PREFIX}/${WCDIR} + @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${WCDIR} + @${FIND} ${PREFIX}/${WCDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644 + @${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \ + ${WCDIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST} + +post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + @cd ${WRKSRC}/docs && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} +.endif + @${CAT} ${PKGMESSAGE} + +.include diff --git a/www/webcalendar-devel/distinfo b/www/webcalendar-devel/distinfo new file mode 100644 index 000000000000..47d467a67ec0 --- /dev/null +++ b/www/webcalendar-devel/distinfo @@ -0,0 +1,3 @@ +MD5 (WebCalendar-1.1.6.tar.gz) = 1a9e80abd7373008e0b998525dd03404 +SHA256 (WebCalendar-1.1.6.tar.gz) = ea8ede2a7ce74a3f5c72a7039ec5db6f6ee8db80e8a461f79cd493f16ac87d42 +SIZE (WebCalendar-1.1.6.tar.gz) = 1300618 diff --git a/www/webcalendar-devel/files/pkg-message.in b/www/webcalendar-devel/files/pkg-message.in new file mode 100644 index 000000000000..cf55974b4b30 --- /dev/null +++ b/www/webcalendar-devel/files/pkg-message.in @@ -0,0 +1,14 @@ +************************************************* +Post-installation instructions: + +First, add the following line to your httpd.conf: + +Alias /%%WCURL%%/ "%%PREFIX%%/%%WCDIR%%/" + +Make sure to restart your web server after changing +httpd.conf. + +Next, to configure WebCalendar, please visit +http://localhost/%%WCURL%%/ and you will +be guided through the installation process. +************************************************* diff --git a/www/webcalendar-devel/pkg-descr b/www/webcalendar-devel/pkg-descr new file mode 100644 index 000000000000..7bee540983fb --- /dev/null +++ b/www/webcalendar-devel/pkg-descr @@ -0,0 +1,8 @@ +This is a port of the WebCalendar application. WebCalendar is an +Open Source web-based calendar/scheduling system written in PHP. +WebCalendar has been under development since 2000 and continues +to evolve. + +WWW: http://www.k5n.us/webcalendar.php +- Greg Larkin +glarkin@sourcehosting.net