Add /etc/machine-info.
authorAntoine Jacoutot <ajacoutot@bsdfrog.org>
Sat, 16 Aug 2014 16:31:57 +0000 (18:31 +0200)
committerAntoine Jacoutot <ajacoutot@bsdfrog.org>
Sat, 16 Aug 2014 16:31:57 +0000 (18:31 +0200)
Makefile
conf/machine-info [new file with mode: 0644]

index bcfab914bda24e6ba1b0688b74b215cdd8fc8535..9eea11ed93775d1b02215240d38249b2e89c54d8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -96,6 +96,7 @@ _install_conf: _generate_servicefiles
        ${INSTALL_DATA_DIR} $(DESTDIR)$(DBUS_POLICYDIR)
        ${INSTALL_DATA_DIR} $(DESTDIR)$(DBUS_CONFIGDIR)
        ${INSTALL_DATA_DIR} $(DESTDIR)$(POLKIT_POLICYDIR)
+       ${INSTALL_DATA} $(CONFDIR)/machine-info $(DESTDIR)$(SYSCONFDIR)/
        ${INSTALL_DATA} $(POLICYDIR)/*-dbus.conf $(DESTDIR)$(DBUS_POLICYDIR)/
        ${INSTALL_DATA} $(SERVICEFDIR)/*.service $(DESTDIR)$(DBUS_CONFIGDIR)/
        ${INSTALL_DATA} $(POLKITDIR)/*.policy $(DESTDIR)$(POLKIT_POLICYDIR)/
diff --git a/conf/machine-info b/conf/machine-info
new file mode 100644 (file)
index 0000000..4d14f2b
--- /dev/null
@@ -0,0 +1,6 @@
+# XXX this file should not be an ini file;
+# it should contain parsable variables
+[hostnamed]
+PRETTY_HOSTNAME=
+ICON_NAME=
+CHASSIS=