From anderson@cnpm.embrapa.br  Wed May 16 10:54:58 2012
Return-Path: <anderson@cnpm.embrapa.br>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 1B59D106566B
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 16 May 2012 10:54:58 +0000 (UTC)
	(envelope-from anderson@cnpm.embrapa.br)
Received: from inga.cnpm.embrapa.br (inga.cnpm.embrapa.br [200.136.111.23])
	by mx1.freebsd.org (Postfix) with ESMTP id 923F58FC14
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 16 May 2012 10:54:57 +0000 (UTC)
Received: from caraiba.cnpm.embrapa.br (caraiba.cnpm.embrapa.br [192.168.157.98])
	by inga.cnpm.embrapa.br (Postfix) with ESMTP id 60AD27301A
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 16 May 2012 07:54:56 -0300 (BRT)
Received: from localhost (localhost [127.0.0.1])
	by caraiba.cnpm.embrapa.br (Postfix) with ESMTP id 4940A3F42C
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 16 May 2012 07:54:56 -0300 (BRT)
Received: from caraiba.cnpm.embrapa.br (localhost [127.0.0.1])
	by caraiba.cnpm.embrapa.br (Postfix) with ESMTP id 320AD3F42B
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 16 May 2012 07:54:56 -0300 (BRT)
Received: from caraiba.cnpm.embrapa.br ([127.0.0.1])
	by caraiba.cnpm.embrapa.br (caraiba.cnpm.embrapa.br [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 82JGl9qla6Od for <FreeBSD-gnats-submit@freebsd.org>;
	Wed, 16 May 2012 07:54:55 -0300 (BRT)
Received: by caraiba.cnpm.embrapa.br (Postfix, from userid 1100)
	id B62B13F41D; Wed, 16 May 2012 07:54:55 -0300 (BRT)
Message-Id: <20120516105455.B62B13F41D@caraiba.cnpm.embrapa.br>
Date: Wed, 16 May 2012 07:54:55 -0300 (BRT)
From: Anderson Soares Ferreira <anderson@cnpm.embrapa.br>
Reply-To: Anderson Soares Ferreira <anderson@cnpm.embrapa.br>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [update] graphics/tinyows: Fix dependency to postgis
X-Send-Pr-Version: 3.113
X-GNATS-Notify: joris.dedieu@nfrance.com

>Number:         167955
>Category:       ports
>Synopsis:       [update] graphics/tinyows: Fix dependency to postgis
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 16 11:00:15 UTC 2012
>Closed-Date:    Fri Feb 08 02:41:42 UTC 2013
>Last-Modified:  Fri Feb 08 02:41:42 UTC 2013
>Originator:     Anderson Soares Ferreira
>Release:        FreeBSD 8.0-STABLE amd64
>Organization:
Embrapa Monitoramento por Satelite
>Environment:
System: FreeBSD caraiba.cnpm.embrapa.br 8.0-STABLE FreeBSD 8.0-STABLE #1: Wed Apr 28 16:03:13 BRT 2010 anderson@caraiba.cnpm.embrapa.br:/usr/obj/usr/src/sys/CARAIBA amd64

>Description:

This patch removes dependency to Postgis library, not needed to enable Postgis support. 
It also adds option to enable shp2pgsql supports that needs postgresql server and postgis binaries.

>How-To-Repeat:

>Fix:
--- tinyows.patch begins here ---
diff -Nru tinyows.old/Makefile tinyows/Makefile
--- tinyows.old/Makefile	2012-05-15 20:54:10.000000000 -0300
+++ tinyows/Makefile	2012-05-15 21:47:25.000000000 -0300
@@ -7,7 +7,7 @@
 
 PORTNAME=		tinyows
 PORTVERSION=		1.0.0
-PORTREVISION=		1
+PORTREVISION=		2
 CATEGORIES=		graphics www geography
 MASTER_SITES=		http://tinyows.org/tracdocs/release/
 
@@ -15,13 +15,14 @@
 COMMENT=		High Performance WFS-T server
 
 LIB_DEPENDS=		xml2:${PORTSDIR}/textproc/libxml2
-BUILD_DEPENDS=		${LOCALBASE}/lib/postgresql/postgis-1.5.so:${PORTSDIR}/databases/postgis
-
+BUILD_DEPENDS=		
+USE_PGSQL=		YES
 USE_BZIP2=		YES
 WRKSRC=      		${WRKDIR}/${PORTNAME}
 GNU_CONFIGURE=		YES
 
 OPTIONS=		FASTCGI "Support FASTCGI" on \
+			SHP2PGSQL "Enable shp2pgsql support" off
 
 .include <bsd.port.pre.mk>
 
@@ -30,6 +31,14 @@
 CONFIGURE_ARGS+=        --with-fastcgi=${LOCALBASE}
 .endif
 
+.if defined(WITH_SHP2PGSQL)
+BUILD_DEPENDS+=		${LOCALBASE}/bin/shp2pgsql:${PORTSDIR}/databases/postgis
+CONFIGURE_ARGS+=	--with-shp2pgsql=${LOCALBASE}/bin/shp2pgsql
+.else
+CONFIGURE_ARGS+=	--without-shp2pgsql
+.endif
+
+
 post-install:
 	${MKDIR} ${WWWDIR}/cgi-bin/
 	${INSTALL_PROGRAM} ${WRKSRC}/tinyows ${WWWDIR}/cgi-bin/tinyows
--- tinyows.patch ends here ---


---
Aviso de confidencialidade:

Esta mensagem da Empresa Brasileira de Pesquisa Agropecuria (Embrapa), 
empresa pblica federal regida pelo disposto na Lei Federal n 5.851, 
de 7 de dezembro de 1972,  enviada exclusivamente a seu destinatrio 
e pode conter informaes confidenciais, protegidas por sigilo profissional. 
Sua utilizao desautorizada  ilegal e sujeita o infrator s penas da lei. 
Se voc a recebeu indevidamente, queira, por gentileza, reenvi-la ao emitente, 
esclarecendo o equvoco.

Confidentiality note:

This message from Empresa Brasileira de Pesquisa Agropecuria (Embrapa), 
a government company established under Brazilian law (5.851/72), 
is directed exclusively to its addressee and may contain confidential data, 
protected under professional secrecy rules. Its unauthorized use is illegal 
and may subject the transgressor to the law's penalties. 
If you are not the addressee, please send it back, elucidating the failure. 
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Wed May 16 11:00:35 UTC 2012 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=167955 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: joris.dedieu@nfrance.com
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/167955: [update] graphics/tinyows: Fix dependency to postgis
Date: Wed, 16 May 2012 11:00:32 UT

 Maintainer of graphics/tinyows,
 
 Please note that PR ports/167955 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/167955
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: Joris Dedieu <joris.dedieu@nfrance.com>
To: bug-followup@FreeBSD.ORG
Cc: anderson@cnpm.embrapa.br
Subject: Re: ports/167955: [update] graphics/tinyows: Fix dependency to
 postgis
Date: Fri, 18 May 2012 10:38:57 +0200

 --Sig_/6w88IYm+sLXtR46F60FgSEA
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: quoted-printable
 
 On Wed, 16 May 2012 11:00:32 UT
 Edwin Groothuis <edwin@FreeBSD.ORG> wrote:
 
 Unfortunately postgis (and its ton of dependencies) is mandatory for
 tinyows. Build --without-shp2pgsqlreturns is not valid :
 
 configure: error: 'no' is not an executable.  Make sure you use
 --with-shp2pgsql=3D/path/to/shp2pgsql
 
 As you can see in configure.in
 
 dnl -----------------------------------------------------------------------=
 ----
 dnl Shp2PgSQL
 dnl -----------------------------------------------------------------------=
 ----
 AC_ARG_WITH(shp2pgsql,[  --with-shp2pgsql[[=3DARG]]  shp2pgsql directory Su=
 pport (ARG=3Dpath to shp2pgsql)],,)
    =20
 if test "$with_shp2gpsql" =3D "no" ; then
   AC_MSG_ERROR([shp2pgsql is a need to TinyOWS !])
 elif test "$with_shp2pgsql" =3D "yes" -o "$with_shp2pgsql" =3D "" ; then
   AC_PATH_PROG(SHP2PGSQL, shp2pgsql, no)
 else
   AC_MSG_RESULT(yes)
   SHP2PGSQL=3D$with_shp2pgsql
 fi
 
 if ! test -f "$SHP2PGSQL" -a -x "$SHP2PGSQL" ; then
   AC_MSG_ERROR(['$SHP2PGSQL' is not an executable.  Make sure you use --wit=
 h-shp2pgsql=3D/path/to/shp2pgsql])
 fi
 
 
 There are other issues with this port, that I will fix.=20
 Best Regards
 Joris
 
 --Sig_/6w88IYm+sLXtR46F60FgSEA
 Content-Type: application/pgp-signature; name=signature.asc
 Content-Disposition: attachment; filename=signature.asc
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.12 (GNU/Linux)
 
 iEYEARECAAYFAk+2CqEACgkQneQnrdCEnGrmCQCfXaRuqpwDJwOS/jOrz7bIOpFy
 GFwAoI3bCNC3orORByrvwsS9FDSgb22s
 =mm4+
 -----END PGP SIGNATURE-----
 
 --Sig_/6w88IYm+sLXtR46F60FgSEA--
State-Changed-From-To: feedback->suspended 
State-Changed-By: linimon 
State-Changed-When: Mon May 21 13:55:36 UTC 2012 
State-Changed-Why:  
maintainer is working on an alternate fix. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=167955 

From: joris dedieu <joris.dedieu@gmail.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/167955: [update] graphics/tinyows: Fix dependency to postgis
Date: Tue, 9 Oct 2012 16:35:23 +0200

 There is no way to remove this dependency. This pr can be clause.
 
 Tinyows will be a part of mapserver 6.2, it will be soon deprecated.
 
 Joris
State-Changed-From-To: suspended->closed 
State-Changed-By: miwi 
State-Changed-When: Fri Feb 8 02:41:37 UTC 2013 
State-Changed-Why:  
close by maintainer request 

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