Skip site navigation (1)Skip section navigation (2)
Date:      Wed,  9 Jun 2004 15:58:29 -0300 (BRT)
From:      "Anderson S.Ferreira" <anderson@cnpm.embrapa.br>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/67765: New port: database/postgis
Message-ID:  <20040609185829.30E3D4168A@ipe.cnpm.embrapa.br>
Resent-Message-ID: <200406091900.i59J0k4s039989@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         67765
>Category:       ports
>Synopsis:       New port: database/postgis
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 09 19:00:46 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Anderson S. Ferreira
>Release:        FreeBSD 4.10-STABLE i386
>Organization:
Embrapa Monitoramento por Satélite
>Environment:
System: FreeBSD ipe.cnpm.embrapa.br 4.10-STABLE FreeBSD 4.10-STABLE #16: Mon May 31 08:34:46 BRT 2004 root@ipe.cnpm.embrapa.br:/usr/src/sys/compile/IPE i386

>Description:
PostGIS adds support for geographic objects to the PostgreSQL database

>How-To-Repeat:
	
>Fix:
--- postgis.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	postgis
#	postgis/pkg-plist
#	postgis/pkg-descr
#	postgis/distinfo
#	postgis/Makefile
#
echo c - postgis
mkdir -p postgis > /dev/null 2>&1
echo x - postgis/pkg-plist
sed 's/^X//' >postgis/pkg-plist << 'END-of-postgis/pkg-plist'
Xlib/postgresql/libpostgis.so.0
Xlib/postgresql/libpostgis.so
X@unexec rmdir %D/lib/postgresql 2>/dev/null || true
Xshare/postgresql/postgis.sql 
Xshare/postgresql/postgis_undef.sql 
Xshare/postgresql/spatial_ref_sys.sql 
Xshare/postgresql/README.postgis 
X@unexec rmdir %D/share/postgresql 2>/dev/null || true
Xbin/pgsql2shp
Xbin/shp2pgsql 
END-of-postgis/pkg-plist
echo x - postgis/pkg-descr
sed 's/^X//' >postgis/pkg-descr << 'END-of-postgis/pkg-descr'
XPostGIS adds support for geographic objects to the PostgreSQL 
Xobject-relational database. In effect, PostGIS "spatially enables" 
Xthe PostgreSQL server, allowing it to be used as a backend spatial 
Xdatabase for geographic information systems (GIS), much like ESRI's SDE 
Xor Oracle's Spatial extension. 
XPostGIS follows the OpenGIS "Simple Features Specification for SQL" and 
Xwill be submitted for conformance testing at version 1.0.
X
XPostGIS has been developed by Refractions Research Inc as a research project 
Xin open source spatial database technology. PostGIS is released under the 
XGNU General Public License. We intend to continue development as time and 
Xresources permit. Our list of future projects includes enhanced technology 
Xfor data loading and dumping, user interface tools for direct data access 
Xand manipulation, and support for advanced topologies at the server side, 
Xsuch as coverages, networks, and surfaces.
X
XWWW: http://postgis.refractions.net/
X
XAnderson
Xanderson@cnpm.embrapa.br
END-of-postgis/pkg-descr
echo x - postgis/distinfo
sed 's/^X//' >postgis/distinfo << 'END-of-postgis/distinfo'
XMD5 (postgis-0.8.2.tar.gz) = 0a2ed054e7a1ad74153eb844d1b56046
XSIZE (postgis-0.8.2.tar.gz) = 1875280
END-of-postgis/distinfo
echo x - postgis/Makefile
sed 's/^X//' >postgis/Makefile << 'END-of-postgis/Makefile'
X# New ports collection makefile for:	PostGIS
X# Date created:		June 09, 2004
X# Whom:			Anderson Soares Ferreira <anderson@cnpm.embrapa.br>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	postgis
XPORTVERSION=	0.8.2
XPORTREVISION=	0
XCATEGORIES=	databases
XMASTER_SITES=   http://postgis.refractions.net/
XDISTNAME=	postgis-${PORTVERSION}
X
XMAINTAINER=	anderson@cnpm.embrapa.br
XCOMMENT=	Adds support for geographic objects to the PostgreSQL
X
XLIB_DEPENDS=    proj.3:${PORTSDIR}/graphics/proj
XBUILD_DEPENDS=  postmaster:${PORTSDIR}/databases/postgresql7
X
XUSE_GMAKE=	YES
XCONFIGURE=	NO
X
XPGSQL_PORTDIR=	${PORTSDIR}/databases/postgresql7
XWRKSRC=		${WRKDIR}/postgis-${PORTVERSION}
XPGSQL_SRC=	${PGSQL_PORTDIR}/work/postgresql-7.4.2
XINSTALL_TARGET=	install
X
X.if defined(WITH_GEOS)
XLIB_DEPENDS+=            geos.1:${PORTSDIR}/graphics/geos
X.endif
X
X.include <bsd.port.pre.mk>
X
Xpre-extract:
X	@if [ ! -d ${PGSQL_SRC} ] ; then \
X	${ECHO} "Extracting and configuring PostgreSQL source." ; \
X	cd ${PGSQL_PORTDIR} ; \
X	${MAKE} configure ; \
X	fi
X
Xpost-extract:
X.if ! defined(WITH_GEOS)
X	@ ${CP} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.orig ; \
X	${CAT} ${WRKSRC}/Makefile.orig | \
X	${SED} "s|USE_GEOS=1|USE_GEOS=0|g" > ${WRKSRC}/Makefile
X.endif
X
Xdo-build:
X	@ cd ${WRKSRC}; \
X	${GMAKE} PGSQL_SRC=${PGSQL_SRC}
X
Xdo-install:
X	@ cd ${WRKSRC}; \
X	${GMAKE} PGSQL_SRC=${PGSQL_SRC} ${INSTALL_TARGET}
X
X.include <bsd.port.post.mk>
END-of-postgis/Makefile
exit
--- postgis.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040609185829.30E3D4168A>