[postgis-devel] [PATCH] Alternate location for /etc/default/postgis

strk at refractions.net strk at refractions.net
Wed Feb 28 07:55:33 PST 2007


What about using $datadir instead ?
Or some other variable set by ./configure ?

--strk;


On Wed, Feb 28, 2007 at 03:34:38PM +0000, Carlos Valiente wrote:
> Hi! What about installing extras/template_gis/profile as
> $(prefix)/etc/default/postgis, instead of as /etc/default/postgis?
> That would be much more convenient for people installing PostGIS as
> non-root users:
> 
> Index: extras/template_gis/Makefile
> ===================================================================
> --- extras/template_gis/Makefile        (revision 2595)
> +++ extras/template_gis/Makefile        (working copy)
> @@ -31,7 +31,7 @@
> MAN1_INSTALL=$(INSTALL_DATA) $(MAN1) $(MAN1_TARGET)
> MAN1_UNINSTALL=rm -f $(MAN1_TARGET)
> 
> -DEFAULTS_DIR=$(DESTDIR)/etc/default
> +DEFAULTS_DIR=$(DESTDIR)$(prefix)/etc/default
> SCRIPT_DEFAULTS=$(DEFAULTS_DIR)/postgis
> 
> all: $(SCRIPTS_IN)



More information about the postgis-devel mailing list