- Support relocating client files at build time (required for LSB compliant nodes) - OS varable added to perform some make choices - Saving and exporting the Makefile vars now scripted using list of variables - Updated specfile to match RH and SUSE requirements and guidelines - Moved /usr/local/var to /var/local; dynamic files shall not use /usr. - State files use %sharedstatedir for path (std for SLE and RHEL) - Release value adjusted to meet different DEB and RPM reqs. Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com>
92 lines
2.1 KiB
Go
92 lines
2.1 KiB
Go
package buildconfig
|
|
|
|
import "github.com/hpcng/warewulf/internal/pkg/wwlog"
|
|
|
|
var (
|
|
bindir string = "UNDEF"
|
|
sysconfdir string = "UNDEF"
|
|
localstatedir string = "UNDEF"
|
|
sharedstatedir string = "UNDEF"
|
|
srvdir string = "UNDEF"
|
|
tftpdir string = "UNDEF"
|
|
firewallddir string = "UNDEF"
|
|
systemddir string = "UNDEF"
|
|
wwoverlaydir string = "UNDEF"
|
|
wwchrootdir string = "UNDEF"
|
|
wwprovisiondir string = "UNDEF"
|
|
wwclientdir string = "UNDEF"
|
|
version string = "UNDEF"
|
|
release string = "UNDEF"
|
|
wwclientloc string = "UNDEF"
|
|
)
|
|
|
|
func BINDIR() string {
|
|
wwlog.Printf(wwlog.DEBUG, "BINDIR = '%s'\n", bindir)
|
|
return bindir
|
|
}
|
|
|
|
func SYSCONFDIR() string {
|
|
wwlog.Printf(wwlog.DEBUG, "SYSCONFDIR = '%s'\n", sysconfdir)
|
|
return sysconfdir
|
|
}
|
|
|
|
func LOCALSTATEDIR() string {
|
|
wwlog.Printf(wwlog.DEBUG, "LOCALSTATEDIR = '%s'\n", localstatedir)
|
|
return localstatedir
|
|
}
|
|
|
|
func SRVDIR() string {
|
|
wwlog.Printf(wwlog.DEBUG, "SRVDIR = '%s'\n", srvdir)
|
|
return srvdir
|
|
}
|
|
|
|
func TFTPDIR() string {
|
|
wwlog.Printf(wwlog.DEBUG, "TFTPDIR = '%s'\n", tftpdir)
|
|
return tftpdir
|
|
}
|
|
|
|
func FIREWALLDDIR() string {
|
|
wwlog.Printf(wwlog.DEBUG, "FIREWALLDDIR = '%s'\n", firewallddir)
|
|
return firewallddir
|
|
}
|
|
|
|
func SYSTEMDDIR() string {
|
|
wwlog.Printf(wwlog.DEBUG, "SYSTEMDDIR = '%s'\n", systemddir)
|
|
return systemddir
|
|
}
|
|
|
|
func WWOVERLAYDIR() string {
|
|
wwlog.Printf(wwlog.DEBUG, "WWOVERLAYDIR = '%s'\n", wwoverlaydir)
|
|
return wwoverlaydir
|
|
}
|
|
|
|
func WWCHROOTDIR() string {
|
|
wwlog.Printf(wwlog.DEBUG, "WWCHROOTDIR = '%s'\n", wwchrootdir)
|
|
return wwchrootdir
|
|
}
|
|
|
|
func WWPROVISIONDIR() string {
|
|
wwlog.Printf(wwlog.DEBUG, "WWPROVISIONDIR = '%s'\n", wwprovisiondir)
|
|
return wwprovisiondir
|
|
}
|
|
|
|
func VERSION() string {
|
|
wwlog.Printf(wwlog.DEBUG, "VERSION = '%s'\n", version)
|
|
return version
|
|
}
|
|
|
|
func RELEASE() string {
|
|
wwlog.Printf(wwlog.DEBUG, "RELEASE = '%s'\n", release)
|
|
return release
|
|
}
|
|
|
|
func WWCLIENTDIR() string {
|
|
wwlog.Printf(wwlog.DEBUG, "WWPROVISIONDIR = '%s'\n", wwclientdir)
|
|
return wwclientdir
|
|
}
|
|
|
|
func SHAREDSTATEDIR() string {
|
|
wwlog.Printf(wwlog.DEBUG, "SHAREDSTATEDIR = '%s'\n", sharedstatedir)
|
|
return sharedstatedir
|
|
}
|