[PATCH] add $(DESTDIR) prefix to configuration dirs

"Zhang Le" <[email protected]> Fri, 18 Aug 2006 10:57:29 +0800
Newsgroups gmane.comp.gnu.bayonne.devel
Message-ID <[email protected]>
This way we can make sure DESTDIR option of make could take effect.
In fact, without this patch, when emerging bayonne2 in Gentoo could cause
sandbox violation.

--- config/Makefile.in.orig     2006-08-18 02:03:32.000000000 +0800
+++ config/Makefile.in  2006-08-18 02:04:17.000000000 +0800
@@ -258,10 +258,10 @@
 AUTOMAKE_OPTIONS = no-dependencies dist-shar
 EXTRA_DIST = *.conf bayonne.init* instconfig bayonne.log
 RELEASE = -version-info @LT_VERSION@ -release @LT_RELEASE@
-ETC = $(sysconfdir)
-CONF = $(sysconfdir)/bayonne
-INIT = $(sysconfdir)/init.d
-LOGD = $(sysconfdir)/logrotate.d
+ETC = $(DESTDIR)/$(sysconfdir)
+CONF = $(DESTDIR)/$(sysconfdir)/bayonne
+INIT = $(DESTDIR)/$(sysconfdir)/init.d
+LOGD = $(DESTDIR)/$(sysconfdir)/logrotate.d
 all: all-am

 .SUFFIXES:


-- 
Zhang Le, Robert
Linux Engineer/Trainer
http://zhllg.blogspot.com
http://zh.gentoo-wiki.com
http://savannah.nongnu.org/projects/pgubook
http://groups.google.com/group/gentoo-china
http://groups.google.com/group/szlug