head	1.16;
access;
symbols
	RELEASE_8_3_0:1.10
	RELEASE_9_0_0:1.9
	RELEASE_7_4_0:1.5
	RELEASE_8_2_0:1.5
	RELEASE_6_EOL:1.5
	RELEASE_8_1_0:1.5
	RELEASE_7_3_0:1.4
	RELEASE_8_0_0:1.1;
locks; strict;
comment	@# @;


1.16
date	2013.03.22.15.52.26;	author svnexp;	state Exp;
branches;
next	1.15;

1.15
date	2012.12.16.06.16.59;	author svnexp;	state Exp;
branches;
next	1.14;

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

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

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

1.11
date	2012.05.21.07.03.03;	author rm;	state Exp;
branches;
next	1.10;

1.10
date	2012.01.01.16.47.37;	author ohauer;	state Exp;
branches;
next	1.9;

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

1.8
date	2011.04.18.17.24.12;	author skv;	state Exp;
branches;
next	1.7;

1.7
date	2011.03.20.19.58.09;	author skv;	state Exp;
branches;
next	1.6;

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

1.5
date	2010.03.23.20.48.28;	author glarkin;	state Exp;
branches;
next	1.4;

1.4
date	2010.02.12.11.25.48;	author skv;	state Exp;
branches;
next	1.3;

1.3
date	2010.01.22.14.24.36;	author kuriyama;	state Exp;
branches;
next	1.2;

1.2
date	2009.10.07.21.22.38;	author glarkin;	state Exp;
branches;
next	1.1;

1.1
date	2009.08.10.21.47.31;	author glarkin;	state Exp;
branches;
next	;


desc
@@


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

PORTNAME=	foswiki
PORTVERSION=	1.1.5
CATEGORIES=	www
MASTER_SITES=	SF
DISTNAME=	Foswiki-${PORTVERSION}
EXTRACT_SUFX=	.tgz

MAINTAINER=	skv@@FreeBSD.org
COMMENT=	A free and open source enterprise wiki

RUN_DEPENDS=	p5-Error>=0.15:${PORTSDIR}/lang/p5-Error \
		p5-Algorithm-Diff>=1.1901:${PORTSDIR}/devel/p5-Algorithm-Diff \
		p5-Text-Diff>=0.35:${PORTSDIR}/textproc/p5-Text-Diff \
		p5-Sort-Maker>=0.06:${PORTSDIR}/devel/p5-Sort-Maker

LICENSE=	GPLv2

USE_PERL5=	yes
NO_BUILD=	yes

OPTIONS_DEFINE=	OPTINT OPTOTH APACHE
OPTIONS_DEFAULT=	OPTINT OPTOTH
OPTINT_DESC=	Install Perl modules for intl character support
OPTOTH_DESC=	Install other optional Perl modules
APACHE_DESC=	Install Apache web server and sample config file

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MOPTINT}
RUN_DEPENDS+=	p5-Locale-Maketext-Lexicon>=0:${PORTSDIR}/devel/p5-Locale-Maketext-Lexicon
.endif

.if ${PORT_OPTIONS:MOPTOTH}
RUN_DEPENDS+=	p5-Apache-Htpasswd>=0:${PORTSDIR}/security/p5-Apache-Htpasswd \
		p5-Archive-Tar>=0:${PORTSDIR}/archivers/p5-Archive-Tar \
		p5-Cache-Cache>=0:${PORTSDIR}/devel/p5-Cache-Cache \
		p5-CGI-Session>=4.40:${PORTSDIR}/www/p5-CGI-Session \
		p5-CSS-Minifier-XS>=0:${PORTSDIR}/textproc/p5-CSS-Minifier-XS \
		p5-JavaScript-Minifier-XS>=0:${PORTSDIR}/textproc/p5-JavaScript-Minifier-XS \
		p5-Digest-SHA1>=0:${PORTSDIR}/security/p5-Digest-SHA1 \
		p5-Lingua-EN-Sentence>=0:${PORTSDIR}/textproc/p5-Lingua-EN-Sentence \
		p5-libwww>=0:${PORTSDIR}/www/p5-libwww \
		p5-HTML-Tree>=3.23:${PORTSDIR}/www/p5-HTML-Tree \
		p5-Net>=1.19:${PORTSDIR}/net/p5-Net
.endif

.if ${PORT_OPTIONS:MAPACHE}
USE_APACHE_RUN?=22+
PLIST_SUB+=	NOAPACHE=""
PKGMESSAGE=	pkg-message-apache
SUB_FILES+=	pkg-message-apache

.include <bsd.port.pre.mk>

CONFDIR_REL=	${APACHEETCDIR}/Includes
CONFDIR=	${PREFIX}/${CONFDIR_REL}

PLIST_SUB+=	CONFDIR=${CONFDIR_REL}
.else
# Weirdness - need to include in this branch of the .if because
# it was included in the other one.  The other branch needs
# the include performed after the USE_APACHE variable is set so
# APACHE_VERSION can be tested above.

.include <bsd.port.pre.mk>

PLIST_SUB+=	NOAPACHE="@@comment "
PKGMESSAGE=	pkg-message-noapache
SUB_FILES+=	pkg-message-noapache
.endif

SUB_FILES+=	LocalSite.cfg

post-patch:
	@@${RM} -rf ${WRKSRC}/lib/CPAN
	@@${MV} ${WRKSRC}/bin-htaccess.txt ${WRKSRC}/bin/.htaccess.txt
	@@${CP} ${WRKSRC}/subdir-htaccess.txt ${WRKSRC}/working/.htaccess
	@@cd ${WRKSRC} && \
		${REINPLACE_CMD} -i "" \
		-e "s|^#[[:space:]]*\(.*\)/home/httpd/foswiki|\1${WWWDIR}|g" \
		-e "s|^#[[:space:]]*\(.*\)\(\= \'/foswiki/\)|\1\2|g" \
		-e "s|/bin/grep|/usr/bin/grep|g" \
		lib/Foswiki.spec
	@@cd ${WRKSRC} && \
		${REINPLACE_CMD} -i "" \
		-e "s|/var/www/foswiki|${WWWDIR}|g" \
		-e "s|192.168.1.10||g" \
		foswiki_httpd_conf.txt
	@@cd ${WRKSRC}/bin && \
		${INSTALL_DATA} LocalLib.cfg.txt LocalLib.cfg && \
		${REINPLACE_CMD} -i "" -e "s|/absolute/path/to/your/lib|${WWWDIR}/lib|g" \
		LocalLib.cfg
	@@${FIND} ${WRKSRC} -name \*.orig -delete

post-install:
.if ${PORT_OPTIONS:MAPACHE}
	@@if [ -d "${CONFDIR}" ]; then \
	  ${INSTALL_DATA} ${WRKSRC}/foswiki_httpd_conf.txt \
		${CONFDIR}/foswiki.conf.sample; \
	else \
	  ${ECHO_MSG} "" ; \
	  ${ECHO_MSG} "Please check your Apache installation -" ; \
	  ${ECHO_MSG} "${CONFDIR} doesn't exist," ; \
	  ${ECHO_MSG} "so I cannot install foswiki.conf.sample there!" ; \
	  ${ECHO_MSG} "" ; \
	  ${FALSE} ; \
	fi
.endif
	@@${CAT} ${PKGMESSAGE}

.include "${.CURDIR}/bsd.foswiki.mk"
.include <bsd.port.post.mk>
@


1.15
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/308985
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r308985 | az | 2012-12-16 06:12:28 +0000 (Sun, 16 Dec 2012) | 5 lines
## SVN ##
## SVN ## - Set default perl version for ports which currently using
## SVN ##   (5.x+ and x < 12) scheme.
## SVN ##
## SVN ## Approved by: bapt@@ (portmgr@@)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: head/www/foswiki/Makefile 308985 2012-12-16 06:12:28Z az $
d23 5
a27 3
OPTIONS=	OPTINT "Install Perl modules for intl character support" On \
		OPTOTH "Install other optional Perl modules" On \
		APACHE "Install Apache web server and sample config file" Off
d31 1
a31 1
.if defined(WITH_OPTINT)
d35 1
a35 1
.if defined(WITH_OPTOTH)
d49 1
a49 1
.if defined(WITH_APACHE)
d98 1
a98 1
.if defined(WITH_APACHE)
@


1.14
log
@Switch exporter over
@
text
@d1 1
a1 1
# $FreeBSD: head/www/foswiki/Makefile 303678 2012-09-04 22:27:55Z ohauer $
d20 1
a20 1
USE_PERL5=	5.8.4+
@


1.13
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.12
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:	foswiki
# Date created:		2009-04-13
# Whom:			Greg Larkin <glarkin@@FreeBSD.org>
#
a1 1
#
d48 1
a48 1
USE_APACHE?=	22+
@


1.11
log
@- update to 1.1.5 (fix for CVE-2012-1004)

Different patch committed. There was pkg-plist changes missed, and original
submitter later sent them to me via private mail.

PR:		166399
Submitted by:	Kevin Oberman <rkoberman at gmail dot com>
Approved by:	maintainer timeout (>one month)
Security:   495b46fd-a30f-11e1-82c9-d0df9acfd7e5
@
text
@d53 1
a53 1
USE_APACHE?=	20+
@


1.10
log
@- change required APACHE version from 13+ to 20+
  (prepare to remove www/apache13)

- no PORTREVISION bump since apache22 is the default

with hat apache@@
@
text
@d9 1
a9 1
PORTVERSION=	1.1.3
d81 2
@


1.9
log
@- unbreak build now where apache22 is the default the
  port builds fine
@
text
@d53 1
a53 1
USE_APACHE?=	13+
d60 1
a61 5
.if ${APACHE_VERSION} == "13"
CONFDIR_REL=	${APACHEETCDIR}
.else
CONFDIR_REL=	${APACHEETCDIR}/Includes
.endif
@


1.8
log
@Update to 1.1.3.

Changes:	http://foswiki.org/Download/FoswikiRelease01x01x03#Changes_since_Foswiki_1.1.2
@
text
@d53 1
a53 1
USE_APACHE?=	1.3+
@


1.7
log
@- Update to 1.1.2
- Enable OPTINT by default
- Take maintainership

Changes:	http://foswiki.org/System/ReleaseNotes01x01#Release01x01Changes
PR:		ports/155060
Submitted by:	skv
@
text
@d9 1
a9 1
PORTVERSION=	1.1.2
d48 1
@


1.6
log
@- Reassign to skv

Requested by:	skv (via email)
@
text
@d9 1
a9 2
PORTVERSION=	1.0.9
PORTREVISION=	1
d18 6
a23 2
BUILD_DEPENDS=	p5-Error>=0:${PORTSDIR}/lang/p5-Error
RUN_DEPENDS=	p5-Error>=0:${PORTSDIR}/lang/p5-Error
d28 1
a28 1
OPTIONS=	OPTINT "Install Perl modules for intl character support" Off \
a34 1
BUILD_DEPENDS+=	p5-Locale-Maketext-Lexicon>=0:${PORTSDIR}/devel/p5-Locale-Maketext-Lexicon
a38 7
BUILD_DEPENDS+=	p5-Apache-Htpasswd>=0:${PORTSDIR}/security/p5-Apache-Htpasswd \
		p5-Archive-Tar>=0:${PORTSDIR}/archivers/p5-Archive-Tar \
		p5-CGI-Session>=4.30:${PORTSDIR}/www/p5-CGI-Session \
		p5-Digest-SHA1>=0:${PORTSDIR}/security/p5-Digest-SHA1 \
		p5-Lingua-EN-Sentence>=0:${PORTSDIR}/textproc/p5-Lingua-EN-Sentence \
		p5-libwww>=0:${PORTSDIR}/www/p5-libwww \
		p5-Net>=1.19:${PORTSDIR}/net/p5-Net
d41 4
a44 1
		p5-CGI-Session>=4.30:${PORTSDIR}/www/p5-CGI-Session \
d83 1
@


1.5
log
@- Removed hard dependency on Apache 2.0+
- If requested, foswiki now uses the existing Apache installation or
  installs Apache 1.3+
- Rewrote pkg-message when Apache dependency is not selected
- Bumped PORTREVISION

Requested by:	tobez
@
text
@d16 1
a16 1
MAINTAINER=	glarkin@@FreeBSD.org
@


1.4
log
@Update to 1.0.9

Changes:	http://foswiki.org/System/ReleaseNotes01x00#Important_Changes_since_Foswiki
PR:		ports/143347
Submitted by:	skv
Approved by:	maintainer timeout (glarkin; 14 days)
@
text
@d10 1
d20 1
a20 1
RUN_DEPENDS=	${BUILD_DEPENDS}
a22 1
USE_APACHE=	2.0+
d27 3
a29 1
		APACHE "Install sample Apache 2.x config file" Off
a30 1
.include <bsd.port.pre.mk>
d44 7
a50 1
RUN_DEPENDS+=	${BUILD_DEPENDS}
d54 1
d58 6
d65 12
a81 4
# Always set these so the pkg-message displays correctly
CONFDIR=	${PREFIX}/${CONFDIR_REL}
CONFDIR_REL=	${APACHEETCDIR}/Includes
PLIST_SUB+=	CONFDIR=${CONFDIR_REL}
d109 1
a109 1
	  ${ECHO_MSG} "Please check your Apache 2.x installation -" ; \
@


1.3
log
@- Remove unneeded dependencies which is in perl-5.8.9 dist
  (part 2).

Approved by:	portmgr (itetcu)
@
text
@d9 1
a9 2
PORTVERSION=	1.0.7
PORTREVISION=	1
d31 2
a32 4
BUILD_DEPENDS+=	p5-Locale-Maketext-Lexicon>=0:${PORTSDIR}/devel/p5-Locale-Maketext-Lexicon \
		p5-Unicode-MapUTF8>=0:${PORTSDIR}/converters/p5-Unicode-MapUTF8
RUN_DEPENDS+=	p5-Locale-Maketext-Lexicon>=0:${PORTSDIR}/devel/p5-Locale-Maketext-Lexicon \
		p5-Unicode-MapUTF8>=0:${PORTSDIR}/converters/p5-Unicode-MapUTF8
@


1.2
log
@- Updated to 1.0.7
@
text
@d10 1
d19 1
a19 8
BUILD_DEPENDS=	p5-CGI.pm>3.37:${PORTSDIR}/www/p5-CGI.pm \
		p5-PathTools>=0:${PORTSDIR}/devel/p5-PathTools \
		p5-Data-Dumper>=0:${PORTSDIR}/devel/p5-Data-Dumper \
		p5-Error>=0:${PORTSDIR}/lang/p5-Error \
		p5-File-Path>=0:${PORTSDIR}/devel/p5-File-Path \
		p5-File-Temp>=0:${PORTSDIR}/devel/p5-File-Temp \
		p5-IO>=1.22:${PORTSDIR}/devel/p5-IO \
		p5-MIME-Base64>=0:${PORTSDIR}/converters/p5-MIME-Base64
d32 1
a32 4
BUILD_DEPENDS+=	p5-Encode>=0:${PORTSDIR}/converters/p5-Encode \
		p5-Encode-compat>=0:${PORTSDIR}/converters/p5-Encode-compat \
		p5-Getopt-Long>=0:${PORTSDIR}/devel/p5-Getopt-Long \
		p5-Locale-Maketext-Lexicon>=0:${PORTSDIR}/devel/p5-Locale-Maketext-Lexicon \
d34 1
a34 4
RUN_DEPENDS+=	p5-Encode>=0:${PORTSDIR}/converters/p5-Encode \
		p5-Encode-compat>=0:${PORTSDIR}/converters/p5-Encode-compat \
		p5-Getopt-Long>=0:${PORTSDIR}/devel/p5-Getopt-Long \
		p5-Locale-Maketext-Lexicon>=0:${PORTSDIR}/devel/p5-Locale-Maketext-Lexicon \
a41 1
		p5-Digest-MD5>=0:${PORTSDIR}/security/p5-Digest-MD5 \
@


1.1
log
@Foswiki is a flexible, powerful, secure, yet simple web-based
collaboration platform. Use Foswiki to run a project development
space, a document management system, a knowledge base or any other
groupware tool on either an intranet or on the Internet.

WWW:    http://www.foswiki.org/
@
text
@d9 1
a9 1
PORTVERSION=	1.0.6
d63 1
a63 4
PLIST_SUB+=	NOAPACHE="" CONFDIR=${CONFDIR_REL}
CONFDIR=	${PREFIX}/${CONFDIR_REL}
CONFDIR_REL=	${APACHEETCDIR}/Includes

d72 4
@

