summaryrefslogtreecommitdiff
path: root/geography/postgresql81-postgis/Makefile
diff options
context:
space:
mode:
authorjoerg <joerg>2007-06-29 23:35:32 +0000
committerjoerg <joerg>2007-06-29 23:35:32 +0000
commit442993a99622631d99c9c04b5feb996751ac844f (patch)
tree705debd4a23ae3bdc7b98253a7cf91c5e978fcb7 /geography/postgresql81-postgis/Makefile
parent23d13f7b19f3d85aabe10c5fdc694be850520461 (diff)
downloadpkgsrc-442993a99622631d99c9c04b5feb996751ac844f.tar.gz
Honour PKG_SYSCONFDIR and don't write unconditionally to /etc/default.
Bump revision.
Diffstat (limited to 'geography/postgresql81-postgis/Makefile')
-rw-r--r--geography/postgresql81-postgis/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/geography/postgresql81-postgis/Makefile b/geography/postgresql81-postgis/Makefile
index f3eac697ac1..d04eea84885 100644
--- a/geography/postgresql81-postgis/Makefile
+++ b/geography/postgresql81-postgis/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.9 2007/02/22 19:30:03 wiz Exp $
+# $NetBSD: Makefile,v 1.10 2007/06/29 23:35:32 joerg Exp $
DISTNAME= postgis-${VERSION}
VERSION= 1.2.1
+PKGREVISION= 1
PKGNAME= postgresql81-postgis-${VERSION}
MASTER_SITES= http://postgis.refractions.net/download/
CATEGORIES= databases geography
@@ -25,6 +26,16 @@ CONFIGURE_ARGS+= --datadir=${PREFIX}/share/postgresql/contrib
DOCDIR= ${PREFIX}/share/doc/postgis
HTMLDIR= ${PREFIX}/share/doc/html/postgis
+SUBST_CLASSES+= paths
+SUBST_FILES.paths= extras/template_gis/profile \
+ extras/template_gis/createdb.postgis.1 \
+ extras/template_gis/mktemplate_gis.1 \
+ extras/template_gis/postgis_env.sh.in
+SUBST_VARS.paths+= PKG_SYSCONFDIR
+SUBST_STAGE.paths= pre-configure
+
+CONF_FILES= share/examples/postgis/profile ${PKG_SYSCONFDIR}/postgis
+
# Install is manual because distribution fails if docbook prereqs are not
# satisfied, rather than using the prebuilt versions which are actually
# in the distfile.