From 6ea12e302877f7ce1b77d3dafc4d0aa51839840c Mon Sep 17 00:00:00 2001 From: Lawrence Chan Date: Fri, 7 Jun 2019 00:46:41 -0500 Subject: Improve DESTDIR/PREFIX/ETCDIR handling - PREFIX is now passed saved in the binary at build-time so that default paths match installation paths. - ETCDIR is also overridable in a similar way. - DESTDIR is now applied on top of PREFIX for install/uninstall steps. Previously, a DESTDIR=/foo PREFIX=/bar make would install into /bar, rather than /foo/bar. Signed-off-by: Lawrence Chan --- libpod/version.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libpod/version.go') diff --git a/libpod/version.go b/libpod/version.go index d2b99a275..b876efddd 100644 --- a/libpod/version.go +++ b/libpod/version.go @@ -15,6 +15,12 @@ var ( // BuildInfo is the time at which the binary was built // It will be populated by the Makefile. buildInfo string + // InstallPrefix is the prefix where podman will be installed. + // It will be populated by the Makefile. + installPrefix string = "/usr/local" + // EtcDir is the sysconfdir where podman should look for system config files. + // It will be populated by the Makefile. + etcDir string = "/etc" ) //Version is an output struct for varlink -- cgit v1.2.3-54-g00ecf