summaryrefslogtreecommitdiff
path: root/libpod/version.go
diff options
context:
space:
mode:
authorLawrence Chan <element103@gmail.com>2019-06-07 00:46:41 -0500
committerLawrence Chan <element103@gmail.com>2019-06-14 17:42:05 -0500
commit6ea12e302877f7ce1b77d3dafc4d0aa51839840c (patch)
tree577af2735d0243fd38c2abd129d8aa3358b950e8 /libpod/version.go
parent185b413e3d10ba001c4d1670a50dad77507154d7 (diff)
downloadpodman-6ea12e302877f7ce1b77d3dafc4d0aa51839840c.tar.gz
podman-6ea12e302877f7ce1b77d3dafc4d0aa51839840c.tar.bz2
podman-6ea12e302877f7ce1b77d3dafc4d0aa51839840c.zip
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 <element103@gmail.com>
Diffstat (limited to 'libpod/version.go')
-rw-r--r--libpod/version.go6
1 files changed, 6 insertions, 0 deletions
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