head	1.20;
access;
symbols
	RELEASE_8_3_0:1.18
	RELEASE_9_0_0:1.18
	RELEASE_7_4_0:1.18
	RELEASE_8_2_0:1.18
	RELEASE_6_EOL:1.17
	RELEASE_8_1_0:1.17
	RELEASE_7_3_0:1.16
	RELEASE_8_0_0:1.15
	RELEASE_7_2_0:1.13
	RELEASE_7_1_0:1.13
	RELEASE_6_4_0:1.13
	RELEASE_5_EOL:1.12
	RELEASE_7_0_0:1.11
	RELEASE_6_3_0:1.11
	PRE_XORG_7:1.11
	RELEASE_4_EOL:1.9
	RELEASE_6_2_0:1.8
	RELEASE_6_1_0:1.3
	RELEASE_5_5_0:1.3
	RELEASE_6_0_0:1.1;
locks; strict;
comment	@# @;


1.20
date	2013.03.22.15.52.27;	author svnexp;	state Exp;
branches;
next	1.19;

1.19
date	2012.11.17.06.03.10;	author svnexp;	state Exp;
branches;
next	1.18;

1.18
date	2010.12.29.20.04.34;	author pgollucci;	state Exp;
branches;
next	1.17;

1.17
date	2010.05.05.17.59.33;	author glarkin;	state Exp;
branches;
next	1.16;

1.16
date	2009.12.30.22.31.28;	author glarkin;	state Exp;
branches;
next	1.15;

1.15
date	2009.08.28.21.04.26;	author pav;	state Exp;
branches;
next	1.14;

1.14
date	2009.08.22.00.38.29;	author amdmi3;	state Exp;
branches;
next	1.13;

1.13
date	2008.07.18.21.05.20;	author glarkin;	state Exp;
branches;
next	1.12;

1.12
date	2008.01.10.03.54.15;	author beech;	state Exp;
branches;
next	1.11;

1.11
date	2007.03.20.18.28.49;	author lx;	state Exp;
branches;
next	1.10;

1.10
date	2007.03.06.06.51.51;	author linimon;	state Exp;
branches;
next	1.9;

1.9
date	2006.11.07.17.37.01;	author alepulver;	state Exp;
branches;
next	1.8;

1.8
date	2006.09.20.07.10.48;	author clsung;	state Exp;
branches;
next	1.7;

1.7
date	2006.09.02.16.51.10;	author kris;	state Exp;
branches;
next	1.6;

1.6
date	2006.07.16.19.01.22;	author linimon;	state Exp;
branches;
next	1.5;

1.5
date	2006.06.16.09.18.18;	author itetcu;	state Exp;
branches;
next	1.4;

1.4
date	2006.04.24.03.52.02;	author mnag;	state Exp;
branches;
next	1.3;

1.3
date	2005.12.20.12.07.10;	author edwin;	state Exp;
branches;
next	1.2;

1.2
date	2005.10.14.21.41.26;	author sem;	state Exp;
branches;
next	1.1;

1.1
date	2005.06.22.08.15.02;	author pav;	state Exp;
branches;
next	;


desc
@@


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

PORTNAME=	WebCalendar
PORTVERSION=	1.0.5
PORTREVISION=	2
CATEGORIES=	www
MASTER_SITES=	SF/${PORTNAME:L}/${PORTNAME:L}%201.0/${PORTVERSION}
PORTSCOUT=	limit:^1\.0\.

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

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

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}

WCURL?=		webcalendar
WCDIR?=		www/${WCURL}
PLIST=		${WRKDIR}/pkg-plist

SUB_FILES=	pkg-message
SUB_LIST=	WCURL=${WCURL} WCDIR=${WCDIR}

OPTIONS_DEFINE=	LDAP DOCS
OPTIONS_MULTI=	DB
OPTIONS_MULTI_DB=	MYSQL PGSQL MSSQL DBASE ODBC ORACLE
OPTIONS_DEFAULT=	MYSQL
DB_DESC=	Database backend
DBASE_DESC=	DBase database support

.include <bsd.port.options.mk>

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

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

.if ${PORT_OPTIONS:MPGSQL}
USE_PHP+=	pgsql
.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

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|^|%D/|}' >> ${TMPPLIST}

post-install:
.if ${PORT_OPTIONS:MDOCS}
	@@${MKDIR} ${DOCSDIR}
	@@cd ${WRKSRC}/docs && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
@


1.19
log
@Switch exporter over
@
text
@d1 2
a2 6
# New ports collection makefile for:   WebCalendar
# Date created:        21 June 2005
# Whom:                glarkin
#
# $FreeBSD: head/www/webcalendar/Makefile 300897 2012-07-14 14:29:18Z beat $
#
d28 10
a37 1
.if !defined(NOPORTDOCS)
d47 1
a47 13
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

.include <bsd.port.pre.mk>

DB_DEFINED=	no

.if !defined(WITHOUT_MYSQL)
a48 1
DB_DEFINED=	yes
d51 1
a51 1
.if defined(WITH_PGSQL)
a52 1
DB_DEFINED=	yes
d55 1
a55 1
.if defined(WITH_MSSQL)
a56 1
DB_DEFINED=	yes
d59 1
a59 1
.if defined(WITH_DBASE)
a60 1
DB_DEFINED=	yes
d63 1
a63 1
.if defined(WITH_ODBC)
a64 1
DB_DEFINED=	yes
d67 1
a67 1
.if defined(WITH_ORACLE)
a68 5
DB_DEFINED=	yes
.endif

.if ${DB_DEFINED} == "no"
IGNORE=		please choose database backend by running 'make config'
d71 1
a71 1
.if defined(WITH_LDAP)
d92 1
a92 1
.if !defined(NOPORTDOCS)
d98 1
a98 1
.include <bsd.port.post.mk>
@


1.18
log
@- DISTNAME= ${PORTNAME}-${PORTVERSION} is the default and not needed.

PR:             ports/153292
Submitted by:   myself (pgollucci)
Tested by:      -exp run by pav
Approved by:    portmgr (pav)
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.17
log
@- Fixed DOCSDIR definition after another Makefile variable was removed.
- Bumped PORTREVISION
@
text
@a12 1
DISTNAME=	${PORTNAME}-${PORTVERSION}
@


1.16
log
@- Added PORTSCOUT variables to stop erroneous warnings
@
text
@d10 1
a10 1
PORTREVISION=	1
d33 2
a34 1
DOCSDIR=	${PREFIX}/share/doc/${MASTER_SITE_SUBDIR}
d41 1
d94 1
a94 1
	cd ${WRKSRC} && ${FIND} -s * -type f | \
@


1.15
log
@- Fix subtle plist breakage caused by Sourceforge overhaul

Reported by:	pointyhat
@
text
@d14 1
@


1.14
log
@- Switch SourceForge ports to the new File Release System: categories starting with W
@
text
@d25 1
a25 1
WCURL?=		${MASTER_SITE_SUBDIR}
@


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

Approved by:	beech (mentor)
@
text
@d12 1
a12 2
MASTER_SITES=	SF
MASTER_SITE_SUBDIR=	${PORTNAME:L}
@


1.12
log
@- Makefile cleanup and tweaks

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


1.11
log
@Update to 1.0.5, fixing a remote variable overwrite vulnerability.
See http://secunia.com/advisories/24403/ for more details.

PR:		ports/110587
Submitted by:	Greg Larkin (maintainer)
Approved by:	edwin (mentor)
@
text
@d10 1
d12 2
a13 2
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	webcalendar
d22 1
d26 1
a26 1
WCURL?=		${PORTNAME:L}
d33 7
a39 7
DOCSDIR?=	${PREFIX}/share/doc/${PORTNAME}
DOCS=		docs/README \
		docs/WebCalendar-Database.html \
		docs/WebCalendar-DeveloperGuide.html \
		docs/WebCalendar-Styling.html \
		docs/WebCalendar-SysAdmin.html \
		docs/newwin.gif
a96 1
	@@${CAT} pkg-plist >> ${PLIST}
d101 5
a105 4
	@@${MKDIR} ${PREFIX}/${WCDIR}
	${CP} -R ${WRKSRC}/* ${PREFIX}/${WCDIR}
	${CHOWN} -R www:www ${PREFIX}/${WCDIR}
	${FIND} ${PREFIX}/${WCDIR} -type f | ${XARGS} ${CHMOD} 644
d110 1
a110 3
.for i in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
@


1.10
log
@Use the new facility of bsd.port.mk to be able to simplify the interaction
of USE_PHP and OPTIONS.

PR:		ports/106557
Submitted by:	ale
Hat:		portmgr
@
text
@d9 1
a9 2
PORTVERSION=	1.0.4
PORTREVISION=	1
@


1.9
log
@- Install in the correct directory (/usr/local/www/data -> /usr/local/www).

PR:		ports/105053
Submitted by:	Greg Larkin <glarkin@@sourcehosting.net> (maintainer)
@
text
@a89 3
# Fix USE_PHP after bsd.port.pre.mk
.include "${PORTSDIR}/Mk/bsd.php.mk"

@


1.8
log
@- The port was fixed to correct a problem that caused to be marked
  for deletion. Thanks to the following individuals:

  Miroslav Lachman - Patch to remove non-configurable LDAP dependency
  Thomas Abthorpe - A kick in the pants to get this done!

PR:		ports/103403
Submitted by:	maintainer (Greg Larkin)
@
text
@d9 2
a10 1
DISTVERSION=	1.0.4
d23 1
a23 1
WRKSRC=		${WRKDIR}/WebCalendar-${DISTVERSION}
d25 2
a26 1
WEBWCDIR?=	www/data/WebCalendar
d29 3
d95 1
a95 1
		${SED} -e 's|^|${WEBWCDIR}/|' > ${PLIST} \
d97 2
a98 2
		${SED} -e 's|^|@@dirrm ${WEBWCDIR}/|' >> ${PLIST} \
		&& ${ECHO_CMD} @@dirrm ${WEBWCDIR} >> ${PLIST}
d104 4
a107 4
	@@${MKDIR} ${PREFIX}/${WEBWCDIR}
	${CP} -R ${WRKSRC}/* ${PREFIX}/${WEBWCDIR}
	${CHOWN} -R www:www ${PREFIX}/${WEBWCDIR}
	${FIND} ${PREFIX}/${WEBWCDIR} -type f | ${XARGS} ${CHMOD} 644
d110 1
d115 2
a116 2
	@@${CAT} ${PKGMESSAGE} | ${SED} -e 's|%%PREFIX%%|${PREFIX}|g' \
		-e 's|%%WEBWCDIR%%|${WEBWCDIR}|g' -e 's|%%DOCSDIR%%|${DOCSDIR}|g'
@


1.7
log
@Schedule these broken ports for termination on 2006-12-01
@
text
@d18 1
a18 5
BROKEN=		fails to deinstall cleanly
DEPRECATED=	${BROKEN}
EXPIRATION_DATE=2006-12-01

USE_PHP=	pcre session ldap
d40 2
a41 1
		ORACLE "Use Oracle database backend" Off
d78 5
a82 1
IGNORE=		please, choose database backend running 'make config'
d95 2
@


1.6
log
@Mark broken: fails to deinstall cleanly.
@
text
@d19 2
@


1.5
log
@Update to 1.0.4  to fix serious vulnerability which, with
register_globals = On; permits including of any remote file, which in turn
permits rading of any file.

PR:		ports/98993
Submitted by:	maintainer
Security:	http://www.securityfocus.com/archive/1/435379
@
text
@d18 2
@


1.4
log
@- Update port 1.0.3
- Use OPTIONS
- portlint(1)

PR:		96053
Submitted by:	maintainer
@
text
@d9 1
a9 1
DISTVERSION=	1.0.3
d19 1
a19 1
USE_APACHE=	yes
d21 1
@


1.3
log
@[maintainer update] www/webcalendar: Security update to WebCalendar 1.0.1

	Update port to version 1.0.2 to track official release (security fixes)

PR:		ports/90663
Submitted by:	Greg Larkin <glarkin@@sourcehosting.net>
Security:	http://www.ush.it/2005/11/28/webcalendar-multiple-vulnerabilities/
@
text
@d9 1
a9 1
DISTVERSION=	1.0.2
d18 2
a19 1
USE_PHP=	yes
d34 48
d88 1
a88 1
	${CAT} pkg-plist >> ${PLIST}
d91 1
a91 1
	${MKDIR} ${PREFIX}/${WEBWCDIR}
d97 1
a97 1
	${MKDIR} ${DOCSDIR}
d99 1
a99 1
	@@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
d101 2
a102 1
	@@${CAT} ${PKGMESSAGE} | ${SED} -e 's|%%PREFIX%%|${PREFIX}|g' -e 's|%%WEBWCDIR%%|${WEBWCDIR}|g' -e 's|%%DOCSDIR%%|${DOCSDIR}|g'
d104 1
a104 1
.include <bsd.port.mk>
@


1.2
log
@- Update to 1.0.1. It fixes a security problem.

PR:		ports/87441
Submitted by:	maintainer
@
text
@d9 1
a9 1
DISTVERSION=	1.0.1
@


1.1
log
@WebCalendar is a PHP-based online calendar application.

PR:		ports/76928
Submitted by:	Greg Larkin <glarkin@@sourcehosting.net>
@
text
@d9 1
a9 1
DISTVERSION=	1.0.0
@

