$NetBSD: patch-ae,v 1.1 2007/06/29 23:35:34 joerg Exp $

--- extras/template_gis/postgis_env.sh.in.orig	2007-06-29 23:03:21.000000000 +0000
+++ extras/template_gis/postgis_env.sh.in
@@ -3,7 +3,7 @@
 # environment variables for postgis
 
 #read optional configuration files. last prevails
-for file in "/etc/default/postgis" "$HOME/.postgis/profile" ; do
+for file in "@PKG_SYSCONFDIR@/postgis" "$HOME/.postgis/profile" ; do
 	if [ -f "$file" ]; then
 		tmpval=`grep "^TEMPLATEDB=" $file | cut -d= -f2`
 		if [ -n "$tmpval" ]; then
