From varju@snapple.webct.com  Thu Dec  1 06:18:23 2005
Return-Path: <varju@snapple.webct.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 53E6616A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  1 Dec 2005 06:18:23 +0000 (GMT)
	(envelope-from varju@snapple.webct.com)
Received: from snapple.webct.com (snapple.webct.com [209.87.17.45])
	by mx1.FreeBSD.org (Postfix) with ESMTP id DF3F143D5E
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  1 Dec 2005 06:18:17 +0000 (GMT)
	(envelope-from varju@snapple.webct.com)
Received: from snapple.webct.com (localhost [127.0.0.1])
	by snapple.webct.com (8.13.1/8.13.1) with ESMTP id jB16ICTf034821
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 30 Nov 2005 22:18:12 -0800 (PST)
	(envelope-from varju@snapple.webct.com)
Received: (from root@localhost)
	by snapple.webct.com (8.13.1/8.13.1/Submit) id jB16ICMF034820;
	Wed, 30 Nov 2005 22:18:12 -0800 (PST)
	(envelope-from varju)
Message-Id: <200512010618.jB16ICMF034820@snapple.webct.com>
Date: Wed, 30 Nov 2005 22:18:12 -0800 (PST)
From: Alex Varju <freebsd-ports@varju.ca>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [MAINTAINER] www/gallery2: update to 2.0.2
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         89785
>Category:       ports
>Synopsis:       [MAINTAINER] www/gallery2: update to 2.0.2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 01 06:20:02 GMT 2005
>Closed-Date:    Thu Dec 01 08:28:46 GMT 2005
>Last-Modified:  Thu Dec 01 08:28:46 GMT 2005
>Originator:     Alex Varju
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD snapple.webct.com 5.3-STABLE FreeBSD 5.3-STABLE #13: Wed Nov  3 11:31:28 PST
>Description:
- Update to 2.0.2
  - This fixes a security issue described at http://gallery.menalto.com/gallery_2.0.2_released
- While here, convert some dependencies into options, as suggested by <ingmar.gebert at web.de>

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

--- gallery2-2.0.2.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/freebsd/cvsroot/ports/www/gallery2/Makefile,v
retrieving revision 1.42
diff -u -u -r1.42 Makefile
--- Makefile	14 Oct 2005 21:58:56 -0000	1.42
+++ Makefile	1 Dec 2005 05:30:23 -0000
@@ -6,21 +6,16 @@
 #
 
 PORTNAME=	gallery2
-PORTVERSION=	2.0.1
+PORTVERSION=	2.0.2
 CATEGORIES=	www
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	gallery
-DISTNAME=	gallery-2.0.1-full
+DISTNAME=	gallery-2.0.2-full
 DIST_SUBDIR=	gallery2
 
 MAINTAINER=	freebsd-ports@varju.ca
 COMMENT=	Gallery is a web based photo album written using PHP
 
-RUN_DEPENDS=	giftopnm:${PORTSDIR}/graphics/netpbm \
-		jhead:${PORTSDIR}/graphics/jhead \
-		unzip:${PORTSDIR}/archivers/unzip \
-		convert:${PORTSDIR}/graphics/ImageMagick
-
 USE_PHP=	pcre session mysql
 WANT_PHP_WEB=	yes
 
@@ -30,6 +25,42 @@
 CPIOARGS=	--quiet -pdum -R
 PLIST_SUB+=	GALLERY2DIR=${GALLERY2DIR}
 
+GALLERY2DIR?=	www/data/gallery2
+WWWOWN?=	www
+WWWGRP?=	www
+
+OPTIONS=	NETPBM "Enable netpbm support" on \
+		IMAGEMAGICK "Enable imagemagick support" on \
+		JHEAD "Enable jhead support" on \
+		UNZIP "Enable unzip support" on \
+		GD "Enable gd support" off \
+		DCRAW "Enable dcraw support" off \
+		FFMPEG "Enable ffmpeg support" off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_NETPBM)
+RUN_DEPENDS+=	giftopnm:${PORTSDIR}/graphics/netpbm
+.endif
+.if defined(WITH_IMAGEMAGICK)
+RUN_DEPENDS+=	convert:${PORTSDIR}/graphics/ImageMagick
+.endif
+.if defined(WITH_GD)
+RUN_DEPENDS+=	pngtogd:${PORTSDIR}/graphics/gd
+.endif
+.if defined(WITH_JHEAD)
+RUN_DEPENDS+=	jhead:${PORTSDIR}/graphics/jhead
+.endif
+.if defined(WITH_UNZIP)
+RUN_DEPENDS+=	unzip:${PORTSDIR}/archivers/unzip
+.endif
+.if defined(WITH_FFMPEG)
+LIB_DEPENDS+=	avcodec.1:${PORTSDIR}/multimedia/ffmpeg
+.endif
+.if defined(WITH_DCRAW)
+RUN_DEPENDS+=	dcraw:${PORTSDIR}/graphics/dcraw
+.endif
+
 pre-fetch:
 .if !defined(GALLERY2DIR)
 	@${ECHO_MSG} ""
@@ -37,10 +68,6 @@
 	@${ECHO_MSG} ""
 .endif
 
-GALLERY2DIR?=	www/data/gallery2
-WWWOWN?=	www
-WWWGRP?=	www
-
 post-configure:
 	@ ${SED} -e 's#%%PREFIX%%#${PREFIX}#g' \
 	  -e 's#%%GALLERY2DIR%%#${GALLERY2DIR}#g' pkg-message > ${PKGMESSAGE}
@@ -55,4 +82,4 @@
 	@ ${CAT} ${PKGMESSAGE}
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
Index: distinfo
===================================================================
RCS file: /home/freebsd/cvsroot/ports/www/gallery2/distinfo,v
retrieving revision 1.31
diff -u -u -r1.31 distinfo
--- distinfo	14 Oct 2005 21:58:56 -0000	1.31
+++ distinfo	1 Dec 2005 05:02:56 -0000
@@ -1,2 +1,2 @@
-MD5 (gallery2/gallery-2.0.1-full.tar.gz) = e2601ba687acd3a43560041988a3b2a5
-SIZE (gallery2/gallery-2.0.1-full.tar.gz) = 5432452
+MD5 (gallery2/gallery-2.0.2-full.tar.gz) = b833b195d1713745b97be0abfec221f6
+SIZE (gallery2/gallery-2.0.2-full.tar.gz) = 5426443
Index: pkg-plist
===================================================================
RCS file: /home/freebsd/cvsroot/ports/www/gallery2/pkg-plist,v
retrieving revision 1.27
diff -u -u -r1.27 pkg-plist
--- pkg-plist	17 Sep 2005 11:26:55 -0000	1.27
+++ pkg-plist	1 Dec 2005 05:32:27 -0000
@@ -4,7 +4,6 @@
 %%GALLERY2DIR%%/bootstrap.inc
 %%GALLERY2DIR%%/docs/DEVELOPER_GUIDELINES
 %%GALLERY2DIR%%/docs/EMBEDDING
-%%GALLERY2DIR%%/docs/LOCALIZING
 %%GALLERY2DIR%%/embed.php
 %%GALLERY2DIR%%/images/g2Logo.gif
 %%GALLERY2DIR%%/images/gallery.gif
--- gallery2-2.0.2.patch ends here ---

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: edwin 
State-Changed-When: Thu Dec 1 08:28:43 GMT 2005 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=89785 
>Unformatted:
