From nobody@FreeBSD.org  Thu Apr  3 16:22:02 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 3F93E936
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  3 Apr 2014 16:22:02 +0000 (UTC)
Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client did not present a certificate)
	by mx1.freebsd.org (Postfix) with ESMTPS id 141BBD1
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  3 Apr 2014 16:22:02 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s33GM1sL055700
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 3 Apr 2014 16:22:01 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s33GM1po055680;
	Thu, 3 Apr 2014 16:22:01 GMT
	(envelope-from nobody)
Message-Id: <201404031622.s33GM1po055680@cgiserv.freebsd.org>
Date: Thu, 3 Apr 2014 16:22:01 GMT
From: Benjamin Podszun <dar@darklajid.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Bump textproc/luaexpat to 1.3.0
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         188230
>Category:       ports
>Synopsis:       Bump textproc/luaexpat to 1.3.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lx
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 03 16:30:00 UTC 2014
>Closed-Date:    
>Last-Modified:  Thu Apr 03 16:30:04 UTC 2014
>Originator:     Benjamin Podszun
>Release:        10-Release
>Organization:
>Environment:
FreeBSD freebsd_build 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
luaexpat upstream released 1.3.0 (and new versions of prosody warn if you use a previous version, due to a potential DDOS attack).
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: Makefile
===================================================================
--- Makefile	(revision 350017)
+++ Makefile	(working copy)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	luaexpat
-PORTVERSION=	1.2.0
+PORTVERSION=	1.3.0
 CATEGORIES=	textproc
 MASTER_SITES=	http://matthewwild.co.uk/projects/luaexpat/ \
 				http://redundancy.redundancy.org/mirror/
@@ -14,18 +14,12 @@
 LIB_DEPENDS=	expat.6:${PORTSDIR}/textproc/expat2
 
 USES=		gmake
-MAKEFILE=	makefile
 ALL_TARGET=	lib
-USE_LUA=	5.0-5.1
-LUA_PREMK=	yes
+USE_LUA=	5.1-5.2
 WANT_LUA_VER=	5.1
 
 CFLAGS+=	-fPIC
+LDFLAGS+=	-L${LOCALBASE}/lib
+MAKE_ENV=	LUA_CDIR=${LUA_MODLIBDIR} LUA_LDIR=${LUA_MODSHAREDIR} LUA_INC="-I${LUA_INCDIR}" EXPAT_INC="-I${LOCALBASE}/include"
 
-.include <bsd.port.pre.mk>
-
-.if ${LUA_VER} == 5.0
-BUILD_DEPENDS+=	${NONEXISTENT}:${PORTSDIR}/devel/lua50-compat51:build
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
Index: distinfo
===================================================================
--- distinfo	(revision 350017)
+++ distinfo	(working copy)
@@ -1,2 +1,2 @@
-SHA256 (luaexpat-1.2.0.tar.gz) = 2a7140e9c1923510639e87b60e85d7ddd0cd4e27561663bd9d4031ef90bae5ef
-SIZE (luaexpat-1.2.0.tar.gz) = 28621
+SHA256 (luaexpat-1.3.0.tar.gz) = d060397960d87b2c89cf490f330508b7def1a0677bdc120531c571609fc57dc3
+SIZE (luaexpat-1.3.0.tar.gz) = 29567
Index: pkg-plist
===================================================================
--- pkg-plist	(revision 350017)
+++ pkg-plist	(working copy)
@@ -1,4 +1,3 @@
 %%LUA_MODLIBDIR%%/lxp.so
-%%LUA_MODLIBDIR%%/lxp.so.1.2.0
 %%LUA_MODSHAREDIR%%/lxp/lom.lua
-@dirrm share/lua/5.1/lxp
+@dirrm %%LUA_MODSHAREDIR%%/lxp


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->lx 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Apr 3 16:30:04 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

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