@echo 'BINDIR="$(BINDIR)"' >>$@
@echo 'LIBDIR="$(LIBDIR)"' >>$@
@echo 'TOOLDIR="$(TOOLDIR)"' >>$@
+ @echo 'SYSCONFDIR="$(SYSCONFDIR)"' >>$@
@echo 'E2="$(E2)"' >>$@
@echo 'LUA="$(LUA)"' >>$@
@echo 'E2_SYNTAX="$(E2_SYNTAX)"' >>$@
cmdline = {},
git_skip_checkout = true,
buildnumber_server_url = nil,
- template_path = "/etc/e2/templates",
+ template_path = string.format("%s/templates", buildconfig.SYSCONFDIR),
extension_config = ".e2/extensions",
}
string.format("%s/.e2/e2.conf-%s.%s", e2lib.homedir, buildconfig.MAJOR,
buildconfig.MINOR),
string.format("%s/.e2/e2.conf", e2lib.homedir),
- string.format("/etc/e2/e2.conf-%s.%s.%s",
+ string.format("%s/e2.conf-%s.%s.%s", buildconfig.SYSCONFDIR,
buildconfig.MAJOR, buildconfig.MINOR, buildconfig.PATCHLEVEL),
- string.format("/etc/e2/e2.conf-%s.%s", buildconfig.MAJOR,
- buildconfig.MINOR),
- string.format("/etc/e2/e2.conf"),
+ string.format("%s/e2.conf-%s.%s", buildconfig.SYSCONFDIR,
+ buildconfig.MAJOR, buildconfig.MINOR),
+ string.format("%s/e2.conf", buildconfig.SYSCONFDIR),
}
end
-- use ipairs to keep the list entries ordered
clean:
install: all
- install -m 755 -d $(DESTDIR)/etc/e2/templates/proj
- install -m 644 proj/config $(DESTDIR)/etc/e2/templates/proj/config
- install -m 644 proj/chroot $(DESTDIR)/etc/e2/templates/proj/chroot
- install -m 644 proj/licences $(DESTDIR)/etc/e2/templates/proj/licences
- install -m 644 proj/env $(DESTDIR)/etc/e2/templates/proj/env
- install -m 644 gitignore $(DESTDIR)/etc/e2/templates/gitignore
+ install -m 755 -d $(DESTDIR)$(SYSCONFDIR)/templates/proj
+ install -m 644 proj/config $(DESTDIR)$(SYSCONFDIR)/templates/proj/config
+ install -m 644 proj/chroot $(DESTDIR)$(SYSCONFDIR)/templates/proj/chroot
+ install -m 644 proj/licences $(DESTDIR)$(SYSCONFDIR)/templates/proj/licences
+ install -m 644 proj/env $(DESTDIR)$(SYSCONFDIR)/templates/proj/env
+ install -m 644 gitignore $(DESTDIR)$(SYSCONFDIR)/templates/gitignore
install-local: all
install -m 755 -d $(LOCALLIBDIR)/templates