head	1.14;
access;
symbols
	RELEASE_8_3_0:1.9
	RELEASE_9_0_0:1.9
	RELEASE_7_4_0:1.8
	RELEASE_8_2_0:1.8
	RELEASE_6_EOL:1.7
	RELEASE_8_1_0:1.7
	RELEASE_7_3_0:1.6
	RELEASE_8_0_0:1.5
	RELEASE_7_2_0:1.4
	RELEASE_7_1_0:1.3
	RELEASE_6_4_0:1.3
	RELEASE_5_EOL:1.2;
locks; strict;
comment	@# @;


1.14
date	2013.03.22.15.52.27;	author svnexp;	state Exp;
branches;
next	1.13;

1.13
date	2012.11.17.06.03.10;	author svnexp;	state Exp;
branches;
next	1.12;

1.12
date	2012.09.04.22.27.55;	author ohauer;	state Exp;
branches;
next	1.11;

1.11
date	2012.08.18.14.29.08;	author ohauer;	state Exp;
branches;
next	1.10;

1.10
date	2012.05.02.15.37.20;	author glarkin;	state Exp;
branches;
next	1.9;

1.9
date	2011.08.20.17.27.52;	author ohauer;	state Exp;
branches;
next	1.8;

1.8
date	2010.12.16.15.42.59;	author glarkin;	state Exp;
branches;
next	1.7;

1.7
date	2010.05.05.18.10.57;	author glarkin;	state Exp;
branches;
next	1.6;

1.6
date	2009.12.30.22.31.28;	author glarkin;	state Exp;
branches;
next	1.5;

1.5
date	2009.08.22.00.38.29;	author amdmi3;	state Exp;
branches;
next	1.4;

1.4
date	2008.10.07.22.13.40;	author glarkin;	state Exp;
branches;
next	1.3;

1.3
date	2008.07.18.21.05.20;	author glarkin;	state Exp;
branches;
next	1.2;

1.2
date	2008.03.24.18.31.15;	author beech;	state Exp;
branches;
next	1.1;

1.1
date	2008.01.10.00.06.11;	author beech;	state Exp;
branches;
next	;


desc
@@


1.14
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/314915
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# $FreeBSD: head/www/webcalendar-devel/Makefile 314915 2013-03-22 11:53:34Z bapt $

PORTNAME=	WebCalendar
PORTVERSION=	1.2.5
CATEGORIES=	www
MASTER_SITES=	SF/${PORTNAME:L}/${PORTNAME:L}%201.2/${PORTVERSION}
PKGNAMESUFFIX=	-devel
DISTNAME=	${PORTNAME:S/-devel//g}-${PORTVERSION}
PORTSCOUT=	limit:^1\.2\. skipb:1

MAINTAINER=	glarkin@@FreeBSD.org
COMMENT=	A web-based calendar application

USE_PHP=	pcre session
WANT_PHP_WEB=	yes
NO_BUILD=	yes
CONFLICTS=	WebCalendar-[0-9]*

LICENSE=	GPLv2

WRKSRC=		${WRKDIR}/${DISTNAME}
WWWDIR=		${PREFIX}/www/${PORTNAME:L}

OPTIONS_DEFINE=	APACHE LDAP GRADIENTBG REMINDERS PALM DOCS
OPTIONS_DEFAULT=	MYSQL REMINDERS
OPTIONS_MULTI=	DB
OPTIONS_MULTI_DB=	MYSQL PGSQL SQLITE MSSQL DBASE ODBC ORACLE
GRADIENTBG_DESC=	Gradient background image support
REMINDERS_DESC=		Email reminder support
PALM_DESC=		Palm export support

.include <bsd.port.pre.mk>

.if ${PORT_OPTIONS:MDOCS}
DOCSDIR=	${PREFIX}/share/doc/${PORTNAME:L}
PORTDOCS=	WebCalendar-SysAdmin.html \
		newwin.gif
.endif

.if ${PORT_OPTIONS:MAPACHE}
USE_APACHE_RUN=	22+

PLIST_SUB+=	NOAPACHE="" CONFDIR=${CONFDIR_REL}
CONFDIR=	${PREFIX}/${CONFDIR_REL}
CONFDIR_REL=	${APACHEETCDIR}/Includes
SUB_FILES=	pkg-message
.else
PLIST_SUB+=	NOAPACHE="@@comment "
.endif

WITH_PHP_CGI?=	/cgi-bin/php

.if ${PHP_SAPI:Mcgi} == "cgi" && ${PHP_SAPI:Mmod} == ""
CGI_EXT=	-cgi
.else
CGI_EXT=
.endif

DEFAULT_PHP_VER=5

SUB_LIST+=	PHPCGI=${WITH_PHP_CGI}

.if ${PORT_OPTIONS:MMYSQL}
USE_PHP+=	mysql
.endif

.if ${PORT_OPTIONS:MPGSQL}
USE_PHP+=	pgsql
.endif

.if ${PORT_OPTIONS:MSQLITE}
USE_PHP+=	sqlite3
.endif

.if ${PORT_OPTIONS:MMSSQL}
USE_PHP+=	mssql
.endif

.if ${PORT_OPTIONS:MDBASE}
USE_PHP+=	dbase
.endif

.if ${PORT_OPTIONS:MODBC}
USE_PHP+=	odbc
.endif

.if ${PORT_OPTIONS:MORACLE}
USE_PHP+=	oracle
.endif

.if ${PORT_OPTIONS:MLDAP}
USE_PHP+=	ldap
.endif

.if ${PORT_OPTIONS:MGRADIENTBG}
USE_PHP+=	gd
.endif

.if ${PORT_OPTIONS:MREMINDERS}
WANT_PHP_CLI=	yes
.endif

.if ${PORT_OPTIONS:MPALM}
RUN_DEPENDS+=	${LOCALBASE}/bin/pilot-xfer:${PORTSDIR}/palm/pilot-link
.endif

.if ${PORT_OPTIONS:MDOCS}
SUB_LIST+=	HASHMARK=
.else
SUB_LIST+=	HASHMARK=\#
.endif

CONF=		webcalendar${CGI_EXT}.conf
SUB_FILES+=	${CONF}

do-install:
	@@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR}
	@@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
	@@${ECHO_CMD} '@@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \
		${WWWDIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST}
	@@${FIND} ${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
	@@${ECHO_CMD} '@@exec ${FIND} ${WWWDIR} -type f -print0 | \
		${XARGS} -0 ${CHMOD} 644' >> ${TMPPLIST}
	@@${FIND} ${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
	@@${ECHO_CMD} '@@exec ${FIND} ${WWWDIR} -type d -print0 | \
		${XARGS} -0 ${CHMOD} 755' >> ${TMPPLIST}

post-install:
.if ${PORT_OPTIONS:MAPACHE}
	@@if [ -d "${CONFDIR}" ]; then \
	  ${CP} ${WRKDIR}/${CONF} ${CONFDIR}/webcalendar.conf; \
	else \
	  ${ECHO_MSG} "" ; \
	  ${ECHO_MSG} "Please check your Apache 2.x installation -" ; \
	  ${ECHO_MSG} "${CONFDIR} doesn't exist," ; \
	  ${ECHO_MSG} "so I cannot install webcalendar.conf there!" ; \
	  ${ECHO_MSG} "" ; \
	  ${FALSE} ; \
	fi
	@@${CAT} ${PKGMESSAGE}
.endif
.if ${PORT_OPTIONS:MDOCS}
	@@${MKDIR} ${DOCSDIR}
	@@cd ${WRKSRC}/docs && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
.if ${CGI_EXT} == "-cgi"
	@@${ECHO_MSG}	""
	@@${ECHO_MSG}	"Your WebCalendar installation was configured to use the PHP CGI binary."
	@@${ECHO_MSG}	"The PHP CGI binary is expected to be referenced by the URL:"
	@@${ECHO_MSG}	""
	@@${ECHO_MSG}	"       ${WITH_PHP_CGI}"
	@@${ECHO_MSG}	""
	@@${ECHO_MSG}	"If this is incorrect, reinstall the port with the WITH_ PHP_CGI knob"
	@@${ECHO_MSG}	"set to the correct URL."
	@@${ECHO_MSG}	"*********************************************************************"
.endif

.include <bsd.port.post.mk>
@


1.13
log
@Switch exporter over
@
text
@d1 1
a1 1
# $FreeBSD: head/www/webcalendar-devel/Makefile 303678 2012-09-04 22:27:55Z ohauer $
d24 11
a34 1
.if !defined(NOPORTDOCS)
d40 1
a40 16
OPTIONS=	APACHE "Configure for Apache-2.x" off \
		MYSQL "Use MySQL database backend (default)" On \
		PGSQL "Use PostgreSQL database backend" Off \
		SQLITE "Use SQLite 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 \
		PALM "Add Palm export support" Off

.include <bsd.port.pre.mk>

.if defined(WITH_APACHE)
d63 1
a63 3
DB_DEFINED=	no

.if !defined(WITHOUT_MYSQL)
a64 1
DB_DEFINED=	yes
d67 1
a67 1
.if defined(WITH_PGSQL)
a68 1
DB_DEFINED=	yes
d71 1
a71 1
.if defined(WITH_SQLITE)
a72 1
DB_DEFINED=	yes
d75 1
a75 1
.if defined(WITH_MSSQL)
a76 1
DB_DEFINED=	yes
d79 1
a79 1
.if defined(WITH_DBASE)
a80 1
DB_DEFINED=	yes
d83 1
a83 1
.if defined(WITH_ODBC)
a84 1
DB_DEFINED=	yes
d87 1
a87 1
.if defined(WITH_ORACLE)
a88 1
DB_DEFINED=	yes
d91 1
a91 5
.if ${DB_DEFINED} == "no"
IGNORE=		please choose database backend by running 'make config'
.endif

.if defined(WITH_LDAP)
d95 1
a95 1
.if defined(WITH_GRADIENTBG)
d99 1
a99 1
.if defined(WITH_REMINDERS)
d103 1
a103 1
.if defined(WITH_PALM)
d107 3
a109 1
.if defined(NOPORTDOCS)
a110 2
.else
SUB_LIST+=	HASHMARK=
d129 1
a129 1
.if defined(WITH_APACHE)
d142 1
a142 1
.if !defined(NOPORTDOCS)
@


1.12
log
@SVN rev 303678 on 2012-09-04 22:27:55Z by ohauer

- unbreak build
  since the port has NO_BUILD set use s/USE_APACHE/USE_APACHE_RUN/

with hat apache@@
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.11
log
@SVN rev 302724 on 2012-08-18 14:29:08Z by ohauer

- remove www/apache20 and devel/apr0
- s/USE_APACHE= 20+/USE_APACHE= 22+/
- unify s/YES/yes/
- cleanup APACHE_VERSION <= 22 usage
- add entry to MOVED

with hat apache@@
@
text
@a0 4
# New ports collection makefile for:	WebCalendar
# Date created:				08 Jan 2008
# Whom:					glarkin
#
a1 1
#
d46 1
a46 1
USE_APACHE=	22+
@


1.10
log
@- Updated to 1.2.5
- Added option for new SQLite backend

Requested by:	eadler
Security:	18dffa02-946a-11e1-be9d-000c29cc39d3
Security:	CVE-2012-1495
Security:	CVE-2012-1496
@
text
@d51 1
a51 1
USE_APACHE=	20+
@


1.9
log
@ - bump PORTREVISION from ports if USE_APACHE=13+ or 20+ is defined
@
text
@d9 1
a9 1
PORTVERSION=	1.2.3
d38 1
d85 5
@


1.8
log
@- Updated to 1.2.3
- Added GPLv2 LICENSE

Version 1.2.3 (14 Aug 2010)
 - Fixed bug: could not save events with more than one category
 - Include backtrace in fatal errors when in development mode

Version 1.2.2 (14 Aug 2010)
 - Fixes for PHP warnings about default timezone not being set.

Reported by:	portscout via miwi
@
text
@d50 1
a50 1
USE_APACHE=	2.0+
@


1.7
log
@- Updated to 1.2.1

Prompted by:	tjv@@wynet.com.my
@
text
@d9 1
a9 1
PORTVERSION=	1.2.1
d24 2
@


1.6
log
@- Added PORTSCOUT variables to stop erroneous warnings
@
text
@d9 1
a9 1
PORTVERSION=	1.2.0
@


1.5
log
@- Switch SourceForge ports to the new File Release System: categories starting with W
@
text
@d14 1
@


1.4
log
@- Update to 1.2.0

Approved by:	beech (mentor, implicit)
@
text
@d11 1
a11 2
MASTER_SITES=	SF
MASTER_SITE_SUBDIR=	${PORTNAME:L}
@


1.3
log
@Changed my MAINTAINER address to
glarkin@@FreeBSD.org.

Approved by:	beech (mentor)
@
text
@d9 1
a9 1
PORTVERSION=	1.2.b1
@


1.2
log
@- Update to 1.2.b1
- Remove unnecessary Makefile variables
- Add Apache config files and an option for installing one of them
- Add conditional installation of doc files
- Add dep for Palm Pilot export support
- Convert from dynamic pkg-plist to a static one

PR:		ports/121924
Submitted by:	Greg Larkin <glarkin@@sourcehosting.net> (maintainer)
@
text
@d16 1
a16 1
MAINTAINER=	glarkin@@sourcehosting.net
@


1.1
log
@- 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 <glarkin@@sourcehosting.net> (maintainer)
Approved by:	linimon (mentor)
@
text
@d9 1
a9 1
PORTVERSION=	1.1.6
d12 1
a12 1
MASTER_SITE_SUBDIR=	webcalendar
d25 1
d27 2
a28 8
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}
d31 1
d33 2
a34 1
OPTIONS=	MYSQL "Use MySQL database backend (default)" On \
d42 2
a43 1
		REMINDERS "Add email reminder support" On
d47 23
d118 12
a129 8
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}
d132 2
a133 3
	@@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${PREFIX}/${WCDIR}
	@@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${WCDIR}
	@@${FIND} ${PREFIX}/${WCDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
d135 7
a141 1
		${WCDIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST}
d144 13
d161 11
a171 1
	@@${CAT} ${PKGMESSAGE}
@

