]> err.no Git - systemd/commitdiff
timedated: move sources to subdirectory
authorKay Sievers <kay.sievers@vrfy.org>
Sat, 31 Dec 2011 05:20:34 +0000 (06:20 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Sat, 31 Dec 2011 05:40:48 +0000 (06:40 +0100)
.gitignore
Makefile.am
po/POTFILES.in
po/POTFILES.skip
src/timedate/org.freedesktop.timedate1.conf [moved from src/org.freedesktop.timedate1.conf with 100% similarity]
src/timedate/org.freedesktop.timedate1.policy.in [moved from src/org.freedesktop.timedate1.policy.in with 100% similarity]
src/timedate/org.freedesktop.timedate1.service [moved from src/org.freedesktop.timedate1.service with 100% similarity]
src/timedate/timedated.c [moved from src/timedated.c with 100% similarity]

index 20e3ec1f2402bab646860d3f704aace5c396f57e..087ee2394afdb7566492e622ad3d6e4d9127b0ee 100644 (file)
@@ -8,15 +8,15 @@ test-journal
 test-install
 org.freedesktop.hostname1.xml
 org.freedesktop.locale1.xml
-org.freedesktop.timedate1.xml
 libsystemd-daemon.pc
 libsystemd-login.pc
 test-login
 systemd-loginctl
 systemd-localed
 systemd-timedated
-systemd-uaccess
+org.freedesktop.timedate1.xml
 systemd-logind
+systemd-uaccess
 systemd-hostnamed
 systemd-binfmt
 systemd-getty-generator
index 4a338145f4eca4915d3c23bc0283009b7b0cc3b4..3440e68ea411a0f035c47a2bf13ced388245dd4b 100644 (file)
@@ -207,11 +207,6 @@ rootlibexec_PROGRAMS += \
        systemd-hostnamed
 endif
 
-if ENABLE_TIMEDATED
-rootlibexec_PROGRAMS += \
-       systemd-timedated
-endif
-
 if ENABLE_LOCALED
 rootlibexec_PROGRAMS += \
        systemd-localed
@@ -269,11 +264,6 @@ dist_dbuspolicy_DATA += \
        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
@@ -287,11 +277,6 @@ dist_dbussystemservice_DATA += \
        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
@@ -324,11 +309,6 @@ dbusinterface_DATA += \
        org.freedesktop.hostname1.xml
 endif
 
-if ENABLE_TIMEDATED
-dbusinterface_DATA += \
-       org.freedesktop.timedate1.xml
-endif
-
 if ENABLE_LOCALED
 dbusinterface_DATA += \
        org.freedesktop.locale1.xml
@@ -458,11 +438,6 @@ nodist_systemunit_DATA += \
        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
@@ -532,11 +507,6 @@ EXTRA_DIST += \
        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
@@ -623,11 +593,6 @@ polkitpolicy_in_files += \
        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
@@ -1178,8 +1143,10 @@ dist_pkgdata_DATA = \
 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
 
@@ -1192,6 +1159,41 @@ systemd_timedated_LDADD = \
        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 = \
@@ -1328,7 +1330,7 @@ pkgconfiglib_DATA += \
 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)
@@ -1337,7 +1339,7 @@ logind-install-data:
                $(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
@@ -2038,11 +2040,6 @@ org.freedesktop.locale1.xml: systemd-localed
                $(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)
 
@@ -2199,11 +2196,6 @@ if ENABLE_HOSTNAMED
                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 && \
index 1da4dc1d0c8d6ee4dcb851aefc53dd7774bb5938..1a9090348aebb9b754978f725e9e9582b490197e 100644 (file)
@@ -1,4 +1,4 @@
 src/org.freedesktop.hostname1.policy.in
 src/org.freedesktop.locale1.policy.in
 src/login/org.freedesktop.login1.policy.in
-src/org.freedesktop.timedate1.policy.in
+src/timedate/org.freedesktop.timedate1.policy.in
index 192f3b6cc6d485f55489306bafc77c6c89ffbec4..17c87f9560f0b3a410458dac36971f0dd8a94719 100644 (file)
@@ -14,6 +14,6 @@ src/dbus-unit.c
 src/hostnamed.c
 src/localed.c
 src/org.freedesktop.systemd1.policy.in.in
-src/timedated.c
+src/timedate/timedated.c
 units/systemd-readahead-done.service.in
 units/user@.service.in
similarity index 100%
rename from src/timedated.c
rename to src/timedate/timedated.c