systemd-hostnamed
endif
-if ENABLE_TIMEDATED
-rootlibexec_PROGRAMS += \
- systemd-timedated
-endif
-
if ENABLE_LOCALED
rootlibexec_PROGRAMS += \
systemd-localed
src/org.freedesktop.hostname1.conf
endif
-if ENABLE_TIMEDATED
-dist_dbuspolicy_DATA += \
- src/org.freedesktop.timedate1.conf
-endif
-
if ENABLE_LOCALED
dist_dbuspolicy_DATA += \
src/org.freedesktop.locale1.conf
src/org.freedesktop.hostname1.service
endif
-if ENABLE_TIMEDATED
-dist_dbussystemservice_DATA += \
- src/org.freedesktop.timedate1.service
-endif
-
if ENABLE_LOCALED
dist_dbussystemservice_DATA += \
src/org.freedesktop.locale1.service
org.freedesktop.hostname1.xml
endif
-if ENABLE_TIMEDATED
-dbusinterface_DATA += \
- org.freedesktop.timedate1.xml
-endif
-
if ENABLE_LOCALED
dbusinterface_DATA += \
org.freedesktop.locale1.xml
units/systemd-hostnamed.service
endif
-if ENABLE_TIMEDATED
-nodist_systemunit_DATA += \
- units/systemd-timedated.service
-endif
-
if ENABLE_LOCALED
nodist_systemunit_DATA += \
units/systemd-localed.service
units/systemd-hostnamed.service.in
endif
-if ENABLE_TIMEDATED
-EXTRA_DIST += \
- units/systemd-timedated.service.in
-endif
-
if ENABLE_LOCALED
EXTRA_DIST += \
units/systemd-localed.service.in
src/org.freedesktop.hostname1.policy.in
endif
-if ENABLE_TIMEDATED
-polkitpolicy_in_files += \
- src/org.freedesktop.timedate1.policy.in
-endif
-
if ENABLE_LOCALED
polkitpolicy_in_files += \
src/org.freedesktop.locale1.policy.in
dist_noinst_SCRIPT = \
src/generate-kbd-model-map
+# ------------------------------------------------------------------------------
+if ENABLE_TIMEDATED
systemd_timedated_SOURCES = \
- src/timedated.c \
+ src/timedate/timedated.c \
src/dbus-common.c \
src/polkit.c
libsystemd-daemon.la \
$(DBUS_LIBS)
+rootlibexec_PROGRAMS += \
+ systemd-timedated
+
+dist_dbussystemservice_DATA += \
+ src/timedate/org.freedesktop.timedate1.service
+
+dist_dbuspolicy_DATA += \
+ src/timedate/org.freedesktop.timedate1.conf
+
+nodist_systemunit_DATA += \
+ units/systemd-timedated.service
+
+polkitpolicy_in_files += \
+ src/timedate/org.freedesktop.timedate1.policy.in
+
+org.freedesktop.timedate1.xml: systemd-timedated
+ $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.timedate1 $< $@.tmp && \
+ $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
+ $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
+
+dbusinterface_DATA += \
+ org.freedesktop.timedate1.xml
+
+timedated-install-data-hook:
+ ( cd $(DESTDIR)$(systemunitdir) && \
+ rm -f dbus-org.freedesktop.timedate1.service && \
+ $(LN_S) systemd-timedated.service dbus-org.freedesktop.timedate1.service )
+
+INSTALL_DATA_HOOKS += \
+ timedated-install-data-hook
+
+EXTRA_DIST += \
+ units/systemd-timedated.service.in
+endif
+
# ------------------------------------------------------------------------------
if ENABLE_LOGIND
systemd_logind_SOURCES = \
polkitpolicy_in_files += \
src/login/org.freedesktop.login1.policy.in
-logind-install-data:
+logind-install-data-hook:
( cd $(DESTDIR)$(systemunitdir) && \
rm -f dbus-org.freedesktop.login1.service && \
$(LN_S) systemd-logind.service dbus-org.freedesktop.login1.service)
$(LN_S) ../systemd-logind.service systemd-logind.service )
INSTALL_DATA_HOOKS += \
- logind-install-data
+ logind-install-data-hook
systemd_uaccess_SOURCES = \
src/login/uaccess.c
$(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
$(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
-org.freedesktop.timedate1.xml: systemd-timedated
- $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.timedate1 $< $@.tmp && \
- $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
- $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
-
CLEANFILES += \
$(dbusinterface_DATA)
rm -f dbus-org.freedesktop.hostname1.service && \
$(LN_S) systemd-hostnamed.service dbus-org.freedesktop.hostname1.service )
endif
-if ENABLE_TIMEDATED
- ( cd $(DESTDIR)$(systemunitdir) && \
- rm -f dbus-org.freedesktop.timedate1.service && \
- $(LN_S) systemd-timedated.service dbus-org.freedesktop.timedate1.service )
-endif
if ENABLE_LOCALED
( cd $(DESTDIR)$(systemunitdir) && \
rm -f dbus-org.freedesktop.locale1.service && \