]> git.proxmox.com Git - mirror_lxc.git/commit
$(localstatedir) != $(prefix)/var
authorGuido Trotter <ultrotter@google.com>
Mon, 30 Mar 2009 09:12:13 +0000 (10:12 +0100)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Mon, 30 Mar 2009 12:16:39 +0000 (14:16 +0200)
commitabf424cf20ee2e3261abf95d17df08ff2a723640
tree3f841c7989718309151190e6b0e6ef7937d7fce4
parent85a3182189e9f8eca79a925618e157774e0e8617
$(localstatedir) != $(prefix)/var

The current code assumes that localstatedir is equal to $(prefix)/var,
thus failing for example on debian, where prefix is /usr and
localstatedir is /var. This patch fixes this by expanding LXCPATH just
once in configure.ac to $(localstatedir)/lib/lxc and expanding that
variable everywhere else.

install-exec-local is changed to just do one mkdir -p, and taking into
account of the DESTDIR variable, user for example for packaging.

Changing the permission of LXCPATH is done in lxc-setcap

Signed-off-by: Guido Trotter <ultrotter@quaqua.net>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
configure.in
src/lxc/Makefile.am
src/lxc/lxc-ls.in
src/lxc/lxc-netstat.in
src/lxc/lxc-ps.in
src/lxc/lxc-setcap.in