head	1.11;
access;
symbols
	RELEASE_8_3_0:1.6
	RELEASE_9_0_0:1.6;
locks; strict;
comment	@# @;


1.11
date	2013.03.22.15.52.26;	author svnexp;	state Exp;
branches;
next	1.10;

1.10
date	2012.11.17.06.02.58;	author svnexp;	state Exp;
branches;
next	1.9;

1.9
date	2012.07.03.10.53.59;	author scheidell;	state Exp;
branches;
next	1.8;

1.8
date	2012.05.14.10.43.39;	author rm;	state Exp;
branches;
next	1.7;

1.7
date	2012.04.10.16.46.59;	author miwi;	state Exp;
branches;
next	1.6;

1.6
date	2011.10.17.04.35.02;	author dougb;	state Exp;
branches;
next	1.5;

1.5
date	2011.08.16.14.29.38;	author zi;	state Exp;
branches;
next	1.4;

1.4
date	2011.06.07.07.12.09;	author culot;	state Exp;
branches;
next	1.3;

1.3
date	2011.03.17.13.13.04;	author miwi;	state Exp;
branches;
next	1.2;

1.2
date	2011.02.12.17.54.46;	author miwi;	state Exp;
branches;
next	1.1;

1.1
date	2011.02.12.04.50.49;	author miwi;	state Exp;
branches;
next	;


desc
@@


1.11
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/314915
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: Fumiyuki Shimizu <fumifumi@@abacustech.jp>
# $FreeBSD: head/www/pivotx/Makefile 314915 2013-03-22 11:53:34Z bapt $

PORTNAME=	pivotx
PORTVERSION=	2.3.3
PORTREVISION=	1
CATEGORIES=	www
MASTER_SITES=	SF/pivot-weblog/PivotX \
		http://pivotx.net/files/ \
		http://pivotx.net/files/archived/
DISTNAME=	pivotx_${PORTVERSION}
EXTRACT_SUFX=	.tgz

MAINTAINER=	fumifumi@@abacustech.jp
COMMENT=	Software to help you maintain dynamic sites such as weblogs

LICENSE=	GPLv2

PORTDOCS=	LICENSE.txt README.txt
PORTEXAMPLES=	example.htaccess

# Requirements:
# http://book.pivotx.net/index.php?page=app-e#anchor-determining-if-your-server-meets-pivotxs-requirements

OPTIONS_DEFINE=	MYSQL PHPDOM NLS DOCS
MYSQL_DESC=	Use MySQL instead of flat files
PHPDOM_DESC=	Use PHP:DOM instead of SimpleXML

.include <bsd.port.options.mk>

WANT_PHP_WEB=	yes
USE_PHP=	session gettext xml tokenizer gd pcre
USE_GETTEXT=	yes

.if ${PORT_OPTIONS:MPHPDOM}
USE_PHP+=	dom
.else
USE_PHP+=	simplexml
.endif

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

NO_BUILD=	YES

TEMP_WRKSRC=	${WRKDIR}/.temp-${PORTNAME}-${PORTVERSION}-${PORTREVISION}
TEMP_DIFF=	${WRKDIR}/.temp-diff-${PORTNAME}-${PORTVERSION}-${PORTREVISION}

BLOGURL=	${PORTNAME}
.if defined(BLOGDIR)
# Relative to ${PREFIX}
WWWDIR=		${PREFIX}/${BLOGDIR}
.endif

SUB_FILES=	pkg-message
SUB_LIST=	BLOGURL=${BLOGURL}

# http://book.pivotx.net/page/1-2#anchor-setting-the-file-rights
WRITABLEDIRS=		images pivotx/templates pivotx/db
USEREDITABLEDIRS=	pivotx/templates

post-extract:
	@@if ${TEST} -e '${TEMP_WRKSRC}'; then ${RM} -r '${TEMP_WRKSRC}'; fi
	@@${MKDIR} '${TEMP_WRKSRC}'
	@@${MV} '${WRKDIR}/'* '${TEMP_WRKSRC}'
	@@${MV} '${TEMP_WRKSRC}' '${WRKSRC}'
	@@${MKDIR} '${TEMP_WRKSRC}'
.for FILES in ${PORTDOCS}
	@@${MV} '${WRKSRC}/${FILES}' '${TEMP_WRKSRC}'
.endfor

post-patch:
.for FILES in ${PORTEXAMPLES}
	@@${SED} -e 's#%%BLOGURL%%#${BLOGURL}#g' '${WRKSRC}/${FILES}' >'${TEMP_WRKSRC}/${FILES}'
	@@${RM} -f '${WRKSRC}/${FILES}'
.endfor
	@@cd '${WRKSRC}' && ${FIND} . -type f -name '*.orig' -delete

do-install:
	@@if ${TEST} -e '${TEMP_DIFF}'; then ${RM} -f '${TEMP_DIFF}'; fi
	@@${TOUCH} '${TEMP_DIFF}'
.for DIR in ${USEREDITABLEDIRS}
	@@if ${TEST} -d '${WWWDIR}/${DIR}'; then	\
	   cd '${WRKSRC}/${DIR}' && { ${DIFF} -auwr . '${WWWDIR}/${DIR}' | ${EGREP} -v -e '^Only[[:space:]]+in[[:space:]]' >>'${TEMP_DIFF}' || ${TRUE}; }	\
	 fi
.endfor
	@@if ${TEST} -s '${TEMP_DIFF}'; then	\
	   ${ECHO} '*******************************************************';	\
	   ${ECHO} 'CAUTION CAUTION CAUTION CAUTION CAUTION CAUTION CAUTION';	\
	   ${ECHO} '*******************************************************';	\
	   ${ECHO} 'Output of diff: ${TEMP_DIFF}';	\
	   ${ECHO};	\
	   ${ECHO} 'Installer will *OVERWRITE* files on ${WWWDIR}';	\
	   ${ECHO} 'Press ctrl-C *now* to backup them manually.';	\
	   sleep 7;	\
	 fi
.if ${PORT_OPTIONS:MDOCS}
	@@${MKDIR} '${DOCSDIR}'
.for FILES in ${PORTDOCS}
	@@${INSTALL_DATA} '${TEMP_WRKSRC}/${FILES}' '${DOCSDIR}'
.endfor
.endif
.if ${PORT_OPTIONS:MNLS}
	@@${MKDIR} '${EXAMPLESDIR}'
.for FILES in ${PORTEXAMPLES}
	@@${INSTALL_DATA} '${TEMP_WRKSRC}/${FILES}' '${EXAMPLESDIR}'
.endfor
.endif
	@@${MKDIR} '${WWWDIR}'
	@@cd '${WRKSRC}' && ${COPYTREE_SHARE} . '${WWWDIR}'
.for DIR in ${WRITABLEDIRS}
	@@${CHOWN} -R '${WWWOWN}:${WWWGRP}' '${WWWDIR}/${DIR}'
	@@${FIND} '${WWWDIR}/${DIR}' -type d -print0 | ${XARGS} -0 ${CHMOD} u=rwx,go=rx
	@@${FIND} '${WWWDIR}/${DIR}' -type f -print0 | ${XARGS} -0 ${CHMOD} u=rw,go=r
.endfor

post-install:
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
@


1.10
log
@Switch exporter over
@
text
@d1 2
a2 6
# New ports collection makefile for:	pivotx
# Date created:		2011-01-05
# Whom:			Fumiyuki Shimizu <fumifumi@@abacustech.jp>
#
# $FreeBSD: head/www/pivotx/Makefile 300897 2012-07-14 14:29:18Z beat $
#
d25 3
a27 2
OPTIONS=	MYSQL	"Use MySQL instead of flat files" off \
		PHPDOM	"Use PHP:DOM instead of SimpleXML" off
d35 1
a35 1
.if defined(WITH_PHPDOM)
d41 1
a41 1
.if defined(WITH_MYSQL)
d99 1
a99 1
.if !defined(NOPORTDOCS)
d105 1
a105 1
.if !defined(NOPORTEXAMPLES)
@


1.9
log
@- Unbreak on PHP 5.4 [1]
- Supply default .htaccess in PORTEXAMPLES [1]
- Use PORT(DOCS|EXAMPLES) MACRO's for pkg-plist [2]

PR:		ports/169067 [1]
Submitted by:	Fumiyuki Shimizu <fumifumi@@abacustech.jp> (maintainer) [1]
Reviewed by:	scheidell@@ (me) [2]
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.8
log
@- update to 2.3.3

While I'm here, do some cleanup:
- remove LICENSE_FILE (it isn't needed for well known licences)
- remove IGNORE_WITH_PHP=4 (because we have not this in the tree anymore)

PR:     ports/167861
Submitted by:	Fumiyuki Shimizu <fumifumi at abacustech dot jp> (maintainer)
Security:	0d3547ab-9b69-11e1-bdb1-525401003090
@
text
@d10 1
d23 2
a24 2
DOCS=		LICENSE.txt README.txt example.htaccess
DOCS_WRKSRC=	${WRKDIR}/${PORTNAME}-${PORTVERSION}-${PORTREVISION}-docs
d72 3
a74 3
	@@${MKDIR} '${DOCS_WRKSRC}'
.for FILES in ${DOCS}
	@@${MV} '${WRKSRC}/${FILES}' '${DOCS_WRKSRC}'
d78 5
a82 1
	@@cd '${WRKSRC}' && { ${FIND} . -type f -name '*.orig' -print0 | ${XARGS} -0 -J % ${MV} % '${DOCS_WRKSRC}'; }
d104 9
a112 1
	@@cd '${DOCS_WRKSRC}' && ${COPYTREE_SHARE} . '${DOCSDIR}'
@


1.7
log
@- Update to 2.3.2

PR:		165872
Submitted by:	Fumiyuki Shimizu <fumifumi@@abacustech.jp> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	2.3.2
a20 1
LICENSE_FILE=	${DOCS_WRKSRC}/LICENSE.txt
a33 1
IGNORE_WITH_PHP=4
@


1.6
log
@Remove references to mysql 323 and 40, most commonly of the form:

IGNORE_WITH_MYSQL=     323 40
@
text
@d9 1
a9 1
PORTVERSION=	2.3.0
d14 1
a14 1
DISTNAME=	pivotx_2.3.0
d29 2
a30 1
OPTIONS=	MYSQL	"Use MySQL instead of flat files" off
d36 1
a36 1
USE_PHP=	session gettext xml gd pcre tokenizer
d39 3
a41 1
.if exists(${PHPBASE}/lib/php/${PHP_EXT_DIR}/simplexml.so) || !exists(${PHPBASE}/lib/php/${PHP_EXT_DIR}/dom.so)
a42 2
.else
USE_PHP+=	dom
d46 1
a46 1
USE_MYSQL=	yes
d106 1
a106 1
	@@${CHOWN} -R ${WWWOWN}:${WWWGRP} '${WWWDIR}/${DIR}'
@


1.5
log
@Update to 2.3.0 [1]
Add missing dependency [2]

PR:		ports/159810 ports/159514
Submitted by:	Fumiyuki Shimizu <fumifumi@@abacustech.jp> (maintainer) [1], Hans Fredrik Nordhaug <hans@@nordhaug.priv.no> [2]
Approved by:	wxs (mentor)
@
text
@a44 1
IGNORE_WITH_MYSQL=323 40
@


1.4
log
@- Update to 2.2.6

PR:		ports/157648
Submitted by:	Fumiyuki Shimizu <fumifumi@@abacustech.jp> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	2.2.6
d11 4
a14 2
MASTER_SITES=	SF/pivot-weblog/PivotX http://pivotx.net/files/ http://pivotx.net/files/archived/
DISTNAME=	pivotx_226
a19 3
DOCS=	LICENSE.txt README.txt example.htaccess
DOCS_WRKSRC=	${WRKDIR}/${PORTNAME}-${PORTVERSION}-${PORTREVISION}-docs

d23 3
d30 1
d35 1
a35 1
USE_PHP=	session gettext xml gd pcre
@


1.3
log
@- Update to 2.2.5

PR:		154839
Submitted by:	 maintainer
@
text
@d9 1
a9 1
PORTVERSION=	2.2.5
d12 1
a12 1
DISTNAME=	pivotx_225
@


1.2
log
@- Update to 2.2.4

PR:		154701
Submitted by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION=	2.2.4
d11 2
a12 2
MASTER_SITES=	SF/pivot-weblog/PivotX http://pivotx.net/files/
DISTNAME=	pivotx_224
@


1.1
log
@PivotX is free software to help you maintain dynamic sites such as
weblogs, online journals and other frequently updated websites in
general. It's written in PHP and uses *flat files* or MySQL as a
database.

Since PivotX is an entirely different beast than pivot-weblog (Pivot
1.x), upgrading from Pivot 1.x will take a while to do properly.
(http://book.pivotx.net/page/4-1)

WWW: http://pivotx.net/

PR:		ports/154093
Submitted by:	Fumiyuki Shimizu <fumifumi at abacustech.jp>
@
text
@d9 1
a9 1
PORTVERSION=	2.2.2
d12 1
a12 1
DISTNAME=	pivotx_222
@

