All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tools: revert to using /var and /etc/
@ 2013-01-25 13:10 Ian Campbell
  2013-01-25 13:41 ` Roger Pau Monné
  0 siblings, 1 reply; 15+ messages in thread
From: Ian Campbell @ 2013-01-25 13:10 UTC (permalink / raw)
  To: xen-devel; +Cc: Ian Campbell, Roger Pau Monne

26470:acaf29203cf9 "tools+stubdom: install under /usr/local by
default" moved more stuff under /usr/local than was desirable.

In particular SYSCONFIG_DIR (configuration for initscripts) moved to
/usr/local/etc/{sysconfig,defaults} while the initscripts themselves
(correctly) remained in /etc/init.d. Moving /etc/xen/scripts breaks
the udev bakcned rules file. Lastly stuff under /var was moved to
/usr/local/var.

Move these back to /etc/ and /var. Moving /etc wholesale rather thsn
just the problematic bits is preferable for consistency.

Although there seems to be some disagreement about /usr/local/var vs
/var using /var is compatible with the FHS and what we think most
people will expect.

Most of this impacts Linux only but NetBSD appears to have been using
/usr/local/var/lib which I have also reset to /var/lib.

Note that we already paid no attention to autoconf --sysconfdir or
--localstatedir ('etc' and 'var' respectively) so there is no change
from that PoV.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Roger Pau Monne <roger.pau@citrix.com>
Cc: Ian Jackson <ian.jackson@citrix.com?
---
 config/NetBSD.mk |    4 ----
 config/StdGNU.mk |    7 -------
 2 files changed, 0 insertions(+), 11 deletions(-)

diff --git a/config/NetBSD.mk b/config/NetBSD.mk
index 12c8a34..141de7c 100644
--- a/config/NetBSD.mk
+++ b/config/NetBSD.mk
@@ -6,10 +6,6 @@ PRIVATE_BINDIR = $(BINDIR)
 
 DLOPEN_LIBS =
 
-ifeq ($(PREFIX),/usr)
 XEN_LOCK_DIR = /var/lib
-else
-XEN_LOCK_DIR = $(PREFIX)/var/lib
-endif
 
 WGET = ftp
diff --git a/config/StdGNU.mk b/config/StdGNU.mk
index 3febe8d..25fc594 100644
--- a/config/StdGNU.mk
+++ b/config/StdGNU.mk
@@ -41,17 +41,10 @@ XENFIRMWAREDIR = $(PREFIX)/lib/xen/boot
 PRIVATE_PREFIX = $(LIBDIR)/xen
 PRIVATE_BINDIR = $(PRIVATE_PREFIX)/bin
 
-ifeq ($(PREFIX),/usr)
 CONFIG_DIR = /etc
 XEN_LOCK_DIR = /var/lock
 XEN_RUN_DIR = /var/run/xen
 XEN_PAGING_DIR = /var/lib/xen/xenpaging
-else
-CONFIG_DIR = $(PREFIX)/etc
-XEN_LOCK_DIR = $(PREFIX)/var/lock
-XEN_RUN_DIR = $(PREFIX)/var/run/xen
-XEN_PAGING_DIR = $(PREFIX)/var/lib/xen/xenpaging
-endif
 
 SYSCONFIG_DIR = $(CONFIG_DIR)/$(CONFIG_LEAF_DIR)
 
-- 
1.7.2.5

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2013-02-05 11:35 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-25 13:10 [PATCH] tools: revert to using /var and /etc/ Ian Campbell
2013-01-25 13:41 ` Roger Pau Monné
2013-01-25 16:15   ` Ian Campbell
2013-01-27 21:49     ` Sander Eikelenboom
2013-01-28 10:25       ` Ian Campbell
2013-01-28 10:39         ` Sander Eikelenboom
2013-01-28 10:50           ` Ian Campbell
2013-01-28 16:49             ` Stefano Stabellini
2013-01-28 18:46               ` Sander Eikelenboom
2013-01-28 18:54                 ` Roger Pau Monné
2013-01-29 11:26                   ` Stefano Stabellini
2013-01-29 11:30               ` Ian Campbell
2013-01-29 11:33                 ` Stefano Stabellini
2013-01-28 18:48             ` [PATCH] xencommons: redirect serial and parallel to /dev/null Stefano Stabellini
2013-02-05 11:35               ` Ian Campbell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.