head	1.15;
access;
symbols
	RELEASE_8_3_0:1.13
	RELEASE_9_0_0:1.11
	RELEASE_7_4_0:1.5
	RELEASE_8_2_0:1.5
	RELEASE_6_EOL:1.4
	old_RELEASE_8_1_0:1.2
	old_RELEASE_7_3_0:1.2
	old_RELEASE_8_0_0:1.2
	old_RELEASE_7_2_0:1.2
	old_RELEASE_7_1_0:1.1
	old_RELEASE_6_4_0:1.1;
locks; strict;
comment	@# @;


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

1.14
date	2012.04.12.10.30.17;	author culot;	state Exp;
branches;
next	1.13;

1.13
date	2012.02.19.06.31.30;	author sunpoet;	state Exp;
branches;
next	1.12;

1.12
date	2012.01.30.09.21.54;	author culot;	state Exp;
branches;
next	1.11;

1.11
date	2011.11.27.08.49.50;	author miwi;	state Exp;
branches;
next	1.10;

1.10
date	2011.09.07.04.01.13;	author sunpoet;	state Exp;
branches;
next	1.9;

1.9
date	2011.08.28.12.59.50;	author sunpoet;	state Exp;
branches;
next	1.8;

1.8
date	2011.07.04.23.23.56;	author beech;	state Exp;
branches;
next	1.7;

1.7
date	2011.04.12.16.06.32;	author sunpoet;	state Exp;
branches;
next	1.6;

1.6
date	2011.04.12.15.15.30;	author sunpoet;	state Exp;
branches;
next	1.5;

1.5
date	2010.12.05.06.32.17;	author sunpoet;	state Exp;
branches;
next	1.4;

1.4
date	2010.11.30.20.35.48;	author beech;	state Exp;
branches;
next	1.3;

1.3
date	2010.11.30.08.19.06;	author beech;	state Exp;
branches;
next	1.2;

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

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


desc
@@


1.15
log
@Switch exporter over
@
text
@# New ports collection makefile for:   phpwebgallery
# Date created:        8 June 2008
# Whom:                Goran Lowkrantz <glz@@hidden-powers.com>
#
# $FreeBSD: head/www/piwigo/Makefile 300897 2012-07-14 14:29:18Z beat $
#

PORTNAME=	piwigo
PORTVERSION=	2.3.4
CATEGORIES=	www
MASTER_SITES=	http://piwigo.org/download/dlcounter.php?code=${PORTVERSION}&/ \
		SF/${PORTNAME}/Piwigo/${PORTVERSION}

MAINTAINER=	glz@@hidden-powers.com
COMMENT=	A PHP based Web Gallery

NO_BUILD=	yes
USE_PHP=	calendar ctype dom exif filter gd gettext hash iconv json \
		mbstring mcrypt mhash mysql openssl pcre pdf pdo posix session \
		simplexml sockets spl tokenizer xml xmlreader xmlwriter zlib
USE_ZIP=	yes
WANT_PHP_WEB=	yes
WRKSRC=		${WRKDIR}/${PORTNAME}

PORTDOCS=	COPYING README_en.txt README_fr.txt
SUB_FILES=	pkg-deinstall pkg-message

post-extract:
	@@${CHMOD} -R o-w ${WRKSRC}

do-install:
.if !defined(NOPORTDOCS)
	@@${INSTALL} -d ${DOCSDIR}/
	@@cd ${WRKSRC}/doc/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
.endif
.if !defined(NOPORTEXAMPLES)
	@@${INSTALL} -d ${EXAMPLESDIR}/
	@@cd ${WRKSRC}/tools/ && ${COPYTREE_SHARE} . ${EXAMPLESDIR}/
.endif

# Own version with our owners and we also have to protect if
# galleries is read-only.

	@@${RM} -fr ${WRKSRC}/doc/ ${WRKSRC}/tools/
	@@${MV} ${WRKSRC}/local/ ${WRKSRC}/local.sample/
	@@${TOUCH} ${WRKSRC}/upload/.keepme
	@@cd ${WRKSRC}/ && ${COPYTREE_WWW} . ${WWWDIR}
	@@${CHMOD} ugo+rwx ${WWWDIR}/_data/

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

COPYTREE_WWW=	\
	${SH} -c '(${FIND} -d $$0 $$2 | ${CPIO} -dumpl $$1 >/dev/null 2>&1) && \
		${CHOWN} -fR ${WWWOWN}:${WWWGRP} $$1 && \
		${FIND} -d $$0 $$2 -type d -exec ${CHMOD} -f 755 $$1/{} \; && \
		${FIND} -d $$0 $$2 -type f -exec ${CHMOD} -f 644 $$1/{} \;' --

.include <bsd.port.mk>
@


1.14
log
@- Update to 2.3.4

Changes:	http://piwigo.org/releases/2.3.4
PR:		ports/166865
Submitted by:	Goran Lowkrantz <glz@@hidden-powers.com> (maintainer)
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.13
log
@- Update to 2.3.3

Changes:	http://piwigo.org/releases/2.3.3
PR:		ports/165264
Submitted by:	Goran Lowkrantz <glz@@hidden-powers.com> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	2.3.3
@


1.12
log
@- Update to 2.3.2

Changes:	http://piwigo.org/releases/2.3.2
PR:		ports/164612
Submitted by:	Goran Lowkrantz <glz@@hidden-powers.com> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	2.3.2
@


1.11
log
@- Update to 2.3.1

PR:		162892
Submitted by:	Goran Lowkrantz <glz@@hidden-powers.com> (maintainer)
Feature safe:	yes
@
text
@d9 1
a9 1
PORTVERSION=	2.3.1
@


1.10
log
@- Update to 2.2.5
- Remove duplicate entry in PLIST

Changes:	http://piwigo.org/releases/2.2.5
PR:		ports/160454
Submitted by:	Goran Lowkrantz <glz@@hidden-powers.com> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	2.2.5
@


1.9
log
@- Update to 2.2.4

Changes:	http://piwigo.org/forum/viewtopic.php?id=17833
PR:		ports/160230
Submitted by:	sunpoet (myself)
Approved by:	Goran Lowkrantz <glz@@hidden-powers.com> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	2.2.4
@


1.8
log
@- Update to 2.2.3

PR:		ports/158633
Submitted by:	Goran Lowkrantz <glz@@hidden-powers.com> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	2.2.3
a16 1
FETCH_BEFORE_ARGS=	-o ${DISTDIR}/${DISTFILES}
d19 2
a20 2
		mbstring mcrypt mhash mysql openssl pcre pdf pdo posix recode \
		session simplexml sockets spl tokenizer xml xmlreader xmlwriter zlib
@


1.7
log
@Force commit to note that it is actually 2.1.6 only in previous commit.
@
text
@d9 1
a9 1
PORTVERSION=	2.1.6
@


1.6
log
@- Update to 2.2.0 while I'm here

Changes:	http://www.piwigo.org/releases/2.2.0
		http://www.piwigo.org/releases/2.1.6
PR:		ports/155474
Submitted by:	sunpoet (myself)
Approved by:	maintainer (timeout, 1 month)
@
text
@@


1.5
log
@- Update to 2.1.5
  Though SF does not host latest version (2.1.5 in this case), we keep this
  for future updates.
- Use EXAMPLESDIR in PLIST
- Pet portlint

Changes:	http://www.piwigo.org/releases/2.1.5
		http://www.piwigo.org/releases/2.1.4
PR:		ports/152840
Submitted by:	sunpoet (myself)
Approved by:	Goran Lowkrantz <glz@@hidden-powers.com> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	2.1.5
@


1.4
log
@Update of piwigo (the software formerly known as PHPWebGallery) to version 2.1.3.
Add entry to MOVED
Hook into build and unhook phpwebgallery
PR:		ports/150863
Submitted by:	Goran Lowkrantz <glz@@hidden-powers.com> (maintainer)
Approved by:	itetcu
@
text
@d9 1
a9 1
PORTVERSION=	2.1.3
d11 2
a12 1
MASTER_SITES=	SF/${PORTNAME}/Piwigo/${PORTVERSION}
d17 1
a17 5
USE_PHP=	filter hash json pcre calendar sockets exif recode openssl posix \
		gettext simplexml spl mbstring mysql xmlwriter zlib gd pdo dom \
		iconv tokenizer mhash session ctype xmlreader xml mcrypt pdf
WANT_PHP_WEB=	yes

d19 3
d23 1
a25 2
SUB_FILES+=	pkg-message pkg-deinstall

d27 1
d34 2
a35 2
	@@${INSTALL} -d ${DOCSDIR}
	@@cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
d38 2
a39 2
	@@${INSTALL} -d ${EXAMPLESDIR}
	@@cd ${WRKSRC}/tools && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
d42 1
a42 1
# Own version with our owners and we also have to protect if 
d45 5
a49 5
	@@cd ${WRKSRC} && ${RM} -rf doc
	@@cd ${WRKSRC} && ${RM} -rf tools
	@@cd ${WRKSRC} && ${MV} local local.sample
	@@cd ${WRKSRC} && ${COPYTREE_WWW} . ${WWWDIR}
	@@${CHMOD} 0777 ${WWWDIR}/_data
d54 5
a58 5
COPYTREE_WWW= ${SH} -c '(${FIND} -d $$0 $$2 | ${CPIO} -dumpl $$1 >/dev/null \
                                    2>&1) && \
                                    ${CHOWN} -fR ${WWWOWN}:${WWWGRP} $$1 && \
                                     ${FIND} -d $$0 $$2 -type d -exec ${CHMOD} -f 755 $$1/{} \; && \
                                     ${FIND} -d $$0 $$2 -type f -exec ${CHMOD} -f 644 $$1/{} \;' --
@


1.3
log
@Forced commit after repocopy

Approved by:	itetcu (implicit)
@
text
@d8 2
a9 2
PORTNAME=	phpwebgallery
PORTVERSION=	1.7.3
d11 1
a11 1
MASTER_SITES=	http://download.gna.org/phpwebgallery/release/1.7/${PORTVERSION}/
d22 2
a23 1
USE_BZIP2=	yes
d27 1
a27 4
PORTDOCS=	COPYING ChangeLog README_en.txt README_fr.txt
PORTEXAMPLES=	config_local.inc.php create_listing_file.php fill_history.pl index.php \
		local-layout.css metadata.php prototype.js ws.htm
CFGFILE_MYSQL=	mysql.inc.php
d39 1
a39 1
	@@cd ${WRKSRC}/tools && ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}
d41 4
d47 3
a49 11
	@@cd ${WRKSRC}/include && ${MV} ${CFGFILE_MYSQL} ${CFGFILE_MYSQL}.sample
	@@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}
d54 6
@


1.2
log
@- Update to 1.7.3

PR:		130260
Submitted by:	maintainer
@
text
@@


1.1
log
@PhpWebGallery is a free and open source software used
to present photo collections on your web site.

WWW: http://www.phpwebgallery.net/

PR:		ports/126756
Submitted by:	Goran Lowkrantz <glz at hidden-powers.com>
@
text
@d9 1
a9 1
PORTVERSION=	1.7.2
d11 1
a11 1
MASTER_SITES=	http://download.gna.org/phpwebgallery/release/1.7/1.7.2/
@

