add DBus service files, change Makefile to install them
authorkremlin <ian@kremlin.cc>
Tue, 22 Jul 2014 02:00:27 +0000 (21:00 -0500)
committerkremlin <ian@kremlin.cc>
Tue, 22 Jul 2014 02:00:27 +0000 (21:00 -0500)
Makefile
conf/org.freedesktop.hostname1.service [new file with mode: 0644]
conf/org.freedesktop.locale1.service [new file with mode: 0644]
conf/org.freedesktop.login1 [new file with mode: 0644]
conf/org.freedesktop.timedate1.service [new file with mode: 0644]

index 011a12ca822a94cc1186f489173095cf3ef1086a..048bcf238065a0f47a6bb5343019ba690928223f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -49,12 +49,10 @@ _build_genfile_objs_debug:
        gcc -o bin/obj/logind-gen.o    $(DEBUGF) $(GLIBOF) $(SANITY) -c $(INTFDIR)/logind/logind-gen.c
 
 _install_conf:
-       cp conf/*-dbus.conf         /etc/dbus-1/system.d/
-       cp conf/systemd_compat.conf /etc/
+       cp conf/*-dbus.conf               /etc/dbus-1/system.d/
+       cp conf/systemd_compat.conf       /etc/
+       cp conf/org.freedesktop.*.service /usr/local/share/dbus-1/system-services/
 
 _install_interface_binaries: $(LINKHN)
-       cp bin/systemd-hostnamed /usr/local/libexec/
-       cp bin/systemd-localed   /usr/local/libexec/
-       cp bin/systemd-timedated /usr/local/libexec/
-       cp bin/systemd-logind    /usr/local/libexec/
-
+       mkdir /usr/local/bin/systemd-compat
+       cp bin/systemd-* /usr/local/bin/systemd-compat/
diff --git a/conf/org.freedesktop.hostname1.service b/conf/org.freedesktop.hostname1.service
new file mode 100644 (file)
index 0000000..c02d3c4
--- /dev/null
@@ -0,0 +1,3 @@
+[D-BUS Service]
+Names=org.freedesktop.hostname1
+Exec=/usr/local/bin/systemd-compat/systemd-hostnamed
diff --git a/conf/org.freedesktop.locale1.service b/conf/org.freedesktop.locale1.service
new file mode 100644 (file)
index 0000000..22cd8c1
--- /dev/null
@@ -0,0 +1,3 @@
+[D-BUS Service]
+Names=org.freedesktop.locale1
+Exec=/usr/local/bin/systemd-compat/systemd-localed
diff --git a/conf/org.freedesktop.login1 b/conf/org.freedesktop.login1
new file mode 100644 (file)
index 0000000..ec47461
--- /dev/null
@@ -0,0 +1,3 @@
+[D-BUS Service]
+Names=org.freedesktop.login1
+Exec=/usr/local/bin/systemd-compat/systemd-logind
diff --git a/conf/org.freedesktop.timedate1.service b/conf/org.freedesktop.timedate1.service
new file mode 100644 (file)
index 0000000..f757f4a
--- /dev/null
@@ -0,0 +1,3 @@
+[D-BUS Service]
+Names=org.freedesktop.timedate1
+Exec=/usr/local/bin/systemd-compat/systemd-timedated