diff options
-rw-r--r-- | Makefile.am | 161 | ||||
-rw-r--r-- | src/shared/cgroup-show.c (renamed from src/cgroup-show.c) | 0 | ||||
-rw-r--r-- | src/shared/cgroup-show.h (renamed from src/cgroup-show.h) | 0 | ||||
-rw-r--r-- | src/shared/dbus-common.c (renamed from src/dbus-common.c) | 0 | ||||
-rw-r--r-- | src/shared/dbus-common.h (renamed from src/dbus-common.h) | 0 | ||||
-rw-r--r-- | src/shared/hostname-setup.c (renamed from src/hostname-setup.c) | 0 | ||||
-rw-r--r-- | src/shared/hostname-setup.h (renamed from src/hostname-setup.h) | 0 | ||||
-rw-r--r-- | src/shared/install.c (renamed from src/install.c) | 0 | ||||
-rw-r--r-- | src/shared/install.h (renamed from src/install.h) | 0 | ||||
-rw-r--r-- | src/shared/logs-show.c (renamed from src/logs-show.c) | 0 | ||||
-rw-r--r-- | src/shared/logs-show.h (renamed from src/logs-show.h) | 0 | ||||
-rw-r--r-- | src/shared/loopback-setup.c (renamed from src/loopback-setup.c) | 0 | ||||
-rw-r--r-- | src/shared/loopback-setup.h (renamed from src/loopback-setup.h) | 0 | ||||
-rw-r--r-- | src/shared/machine-id-setup.c (renamed from src/machine-id-setup.c) | 0 | ||||
-rw-r--r-- | src/shared/machine-id-setup.h (renamed from src/machine-id-setup.h) | 0 | ||||
-rw-r--r-- | src/shared/mount-setup.c (renamed from src/mount-setup.c) | 0 | ||||
-rw-r--r-- | src/shared/mount-setup.h (renamed from src/mount-setup.h) | 0 | ||||
-rw-r--r-- | src/shared/path-lookup.c (renamed from src/path-lookup.c) | 0 | ||||
-rw-r--r-- | src/shared/path-lookup.h (renamed from src/path-lookup.h) | 0 | ||||
-rw-r--r-- | src/shared/spawn-ask-password-agent.c (renamed from src/spawn-ask-password-agent.c) | 0 | ||||
-rw-r--r-- | src/shared/spawn-ask-password-agent.h (renamed from src/spawn-ask-password-agent.h) | 0 | ||||
-rw-r--r-- | src/shared/spawn-polkit-agent.c (renamed from src/spawn-polkit-agent.c) | 0 | ||||
-rw-r--r-- | src/shared/spawn-polkit-agent.h (renamed from src/spawn-polkit-agent.h) | 0 | ||||
-rw-r--r-- | src/shared/specifier.c (renamed from src/specifier.c) | 0 | ||||
-rw-r--r-- | src/shared/specifier.h (renamed from src/specifier.h) | 0 | ||||
-rw-r--r-- | src/shared/umount.c (renamed from src/umount.c) | 0 | ||||
-rw-r--r-- | src/shared/umount.h (renamed from src/umount.h) | 0 | ||||
-rw-r--r-- | src/shared/unit-name.c (renamed from src/unit-name.c) | 0 | ||||
-rw-r--r-- | src/shared/unit-name.h (renamed from src/unit-name.h) | 0 | ||||
-rw-r--r-- | src/shared/utmp-wtmp.c (renamed from src/utmp-wtmp.c) | 0 | ||||
-rw-r--r-- | src/shared/utmp-wtmp.h (renamed from src/utmp-wtmp.h) | 0 | ||||
-rw-r--r-- | src/shared/watchdog.c (renamed from src/watchdog.c) | 0 | ||||
-rw-r--r-- | src/shared/watchdog.h (renamed from src/watchdog.h) | 0 |
33 files changed, 62 insertions, 99 deletions
diff --git a/Makefile.am b/Makefile.am index 0a9f2e5198..6601e18d03 100644 --- a/Makefile.am +++ b/Makefile.am @@ -120,7 +120,7 @@ AM_CPPFLAGS = \ -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \ -DX_SERVER=\"$(bindir)/X\" \ -DUDEVLIBEXECDIR=\""$(libexecdir)/udev"\" \ - -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \ + -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \ -I $(top_srcdir)/src \ -I $(top_srcdir)/src/shared \ -I $(top_srcdir)/src/readahead \ @@ -458,8 +458,8 @@ dist_doc_DATA = \ README \ NEWS \ LICENSE.LGPL2.1 \ - LICENSE.GPL2 \ - LICENSE.MIT \ + LICENSE.GPL2 \ + LICENSE.MIT \ DISTRO_PORTING pkgconfigdata_DATA = \ @@ -583,14 +583,50 @@ libsystemd_shared_la_SOURCES = \ src/shared/socket-util.h \ src/shared/cgroup-util.c \ src/shared/cgroup-util.h \ + src/shared/dbus-common.c \ + src/shared/dbus-common.h \ + src/shared/hostname-setup.c \ + src/shared/hostname-setup.h \ + src/shared/logs-show.c \ + src/shared/logs-show.h \ + src/shared/cgroup-show.c \ + src/shared/cgroup-show.h \ + src/shared/unit-name.c \ + src/shared/unit-name.h \ + src/shared/utmp-wtmp.c \ + src/shared/utmp-wtmp.h \ + src/shared/watchdog.c \ + src/shared/watchdog.h \ + src/shared/umount.c \ + src/shared/umount.h \ + src/shared/spawn-ask-password-agent.c \ + src/shared/spawn-ask-password-agent.h \ + src/shared/mount-setup.c \ + src/shared/mount-setup.h \ + src/shared/machine-id-setup.c \ + src/shared/machine-id-setup.h \ + src/shared/loopback-setup.h \ + src/shared/loopback-setup.c \ + src/shared/specifier.c \ + src/shared/specifier.h \ + src/shared/spawn-polkit-agent.c \ + src/shared/spawn-polkit-agent.h \ src/shared/list.h \ src/shared/macro.h +libsystemd_shared_la_CFLAGS = \ + $(AM_CFLAGS) \ + $(DBUS_CFLAGS) + # ------------------------------------------------------------------------------ noinst_LTLIBRARIES += \ libsystemd-label.la libsystemd_label_la_SOURCES = \ + src/shared/install.c \ + src/shared/install.h \ + src/shared/path-lookup.c \ + src/shared/path-lookup.h \ src/shared/cgroup-label.c \ src/shared/socket-label.c \ src/shared/label.c \ @@ -600,6 +636,7 @@ libsystemd_label_la_SOURCES = \ libsystemd_label_la_CFLAGS = \ $(AM_CFLAGS) \ + $(DBUS_CFLAGS) \ $(SELINUX_CFLAGS) libsystemd_label_la_LIBADD = \ @@ -655,28 +692,6 @@ noinst_LTLIBRARIES += \ libsystemd_core_la_SOURCES = \ src/def.h \ src/missing.h \ - src/dbus-common.c \ - src/dbus-common.h \ - src/watchdog.c \ - src/watchdog.h \ - src/loopback-setup.h \ - src/loopback-setup.c \ - src/hostname-setup.c \ - src/hostname-setup.h \ - src/specifier.c \ - src/specifier.h \ - src/install.c \ - src/install.h \ - src/path-lookup.c \ - src/path-lookup.h \ - src/unit-name.c \ - src/unit-name.h \ - src/utmp-wtmp.c \ - src/utmp-wtmp.h \ - src/machine-id-setup.c \ - src/machine-id-setup.h \ - src/mount-setup.c \ - src/mount-setup.h \ src/linux/auto_dev-ioctl.h \ src/linux/fanotify.h \ src/core/unit.c \ @@ -840,15 +855,13 @@ test_ns_LDADD = \ libsystemd-core.la test_loopback_SOURCES = \ - src/test-loopback.c \ - src/loopback-setup.c + src/test-loopback.c test_loopback_LDADD = \ libsystemd-shared.la test_hostname_SOURCES = \ - src/test-hostname.c \ - src/hostname-setup.c + src/test-hostname.c test_hostname_LDADD = \ libsystemd-shared.la @@ -874,17 +887,13 @@ test_env_replace_LDADD = \ libsystemd-shared.la test_strv_SOURCES = \ - src/test-strv.c \ - src/specifier.c + src/test-strv.c test_strv_LDADD = \ libsystemd-shared.la test_install_SOURCES = \ - src/test-install.c \ - src/install.c \ - src/path-lookup.c \ - src/unit-name.c + src/test-install.c test_install_CFLAGS = \ $(AM_CFLAGS) \ @@ -895,17 +904,14 @@ test_install_LDADD = \ libsystemd-shared.la test_watchdog_SOURCES = \ - src/test-watchdog.c \ - src/watchdog.c \ - src/watchdog.h + src/test-watchdog.c test_watchdog_LDADD = \ libsystemd-shared.la # ------------------------------------------------------------------------------ systemd_initctl_SOURCES = \ - src/initctl.c \ - src/dbus-common.c + src/initctl.c systemd_initctl_CFLAGS = \ $(AM_CFLAGS) \ @@ -918,9 +924,7 @@ systemd_initctl_LDADD = \ # ------------------------------------------------------------------------------ systemd_update_utmp_SOURCES = \ - src/update-utmp.c \ - src/dbus-common.c \ - src/utmp-wtmp.c + src/update-utmp.c systemd_update_utmp_CFLAGS = \ $(AM_CFLAGS) \ @@ -934,7 +938,6 @@ systemd_update_utmp_LDADD = \ # ------------------------------------------------------------------------------ systemd_shutdownd_SOURCES = \ - src/utmp-wtmp.c \ src/shutdownd.c systemd_shutdownd_LDADD = \ @@ -947,12 +950,7 @@ pkginclude_HEADERS += \ # ------------------------------------------------------------------------------ systemd_shutdown_SOURCES = \ - src/mount-setup.c \ - src/umount.c \ - src/umount.h \ - src/shutdown.c \ - src/watchdog.c \ - src/watchdog.h + src/shutdown.c systemd_shutdown_LDADD = \ libsystemd-label.la \ @@ -981,7 +979,6 @@ systemd_tmpfiles_LDADD = \ # ------------------------------------------------------------------------------ systemd_machine_id_setup_SOURCES = \ - src/machine-id-setup.c \ src/machine-id-main.c systemd_machine_id_setup_LDADD = \ @@ -998,8 +995,7 @@ systemd_sysctl_LDADD = \ # ------------------------------------------------------------------------------ systemd_fsck_SOURCES = \ - src/fsck.c \ - src/dbus-common.c + src/fsck.c systemd_fsck_CFLAGS = \ $(AM_CFLAGS) \ @@ -1034,8 +1030,7 @@ systemd_detect_virt_LDADD = \ # ------------------------------------------------------------------------------ systemd_getty_generator_SOURCES = \ - src/getty-generator.c \ - src/unit-name.c + src/getty-generator.c systemd_getty_generator_LDADD = \ libsystemd-label.la \ @@ -1051,16 +1046,14 @@ systemd_rc_local_generator_LDADD = \ # ------------------------------------------------------------------------------ systemd_remount_api_vfs_SOURCES = \ - src/remount-api-vfs.c \ - src/mount-setup.c + src/remount-api-vfs.c systemd_remount_api_vfs_LDADD = \ libsystemd-shared.la # ------------------------------------------------------------------------------ systemd_cgroups_agent_SOURCES = \ - src/cgroups-agent.c \ - src/dbus-common.c + src/cgroups-agent.c systemd_cgroups_agent_CFLAGS = \ $(AM_CFLAGS) \ @@ -1072,20 +1065,7 @@ systemd_cgroups_agent_LDADD = \ # ------------------------------------------------------------------------------ systemctl_SOURCES = \ - src/systemctl.c \ - src/utmp-wtmp.c \ - src/dbus-common.c \ - src/path-lookup.c \ - src/cgroup-show.c \ - src/cgroup-show.h \ - src/unit-name.c \ - src/install.c \ - src/spawn-ask-password-agent.c \ - src/spawn-ask-password-agent.h \ - src/spawn-polkit-agent.c \ - src/spawn-polkit-agent.h \ - src/logs-show.c \ - src/logs-show.h + src/systemctl.c systemctl_CFLAGS = \ $(AM_CFLAGS) \ @@ -1126,9 +1106,7 @@ systemd_reply_password_LDADD = \ # ------------------------------------------------------------------------------ systemd_cgls_SOURCES = \ - src/cgls.c \ - src/cgroup-show.c \ - src/cgroup-show.h + src/cgls.c systemd_cgls_LDADD = \ libsystemd-shared.la @@ -1142,13 +1120,12 @@ systemd_cgtop_LDADD = \ # ------------------------------------------------------------------------------ systemd_nspawn_SOURCES = \ - src/nspawn.c \ - src/loopback-setup.c + src/nspawn.c systemd_nspawn_LDADD = \ libsystemd-label.la \ - libsystemd-shared.la \ libsystemd-capability.la \ + libsystemd-shared.la \ libsystemd-daemon.la # ------------------------------------------------------------------------------ @@ -1161,8 +1138,7 @@ systemd_stdio_bridge_LDADD = \ # ------------------------------------------------------------------------------ systemd_tty_ask_password_agent_SOURCES = \ src/tty-ask-password-agent.c \ - src/ask-password-api.c \ - src/utmp-wtmp.c + src/ask-password-api.c systemd_tty_ask_password_agent_LDADD = \ libsystemd-label.la \ @@ -1978,9 +1954,7 @@ systemd_cat_LDADD = \ libsystemd-journal.la journalctl_SOURCES = \ - src/journal/journalctl.c \ - src/logs-show.c \ - src/logs-show.h + src/journal/journalctl.c journalctl_LDADD = \ libsystemd-shared.la \ @@ -2353,8 +2327,7 @@ systemd_cryptsetup_LDADD = \ $(LIBCRYPTSETUP_LIBS) systemd_cryptsetup_generator_SOURCES = \ - src/cryptsetup/cryptsetup-generator.c \ - src/unit-name.c + src/cryptsetup/cryptsetup-generator.c systemd_cryptsetup_generator_LDADD = \ libsystemd-label.la \ @@ -2375,7 +2348,6 @@ endif if ENABLE_HOSTNAMED systemd_hostnamed_SOURCES = \ src/hostname/hostnamed.c \ - src/dbus-common.c \ src/polkit.c systemd_hostnamed_CFLAGS = \ @@ -2426,7 +2398,6 @@ endif if ENABLE_LOCALED systemd_localed_SOURCES = \ src/locale/localed.c \ - src/dbus-common.c \ src/polkit.c systemd_localed_CFLAGS = \ @@ -2488,7 +2459,6 @@ endif if ENABLE_TIMEDATED systemd_timedated_SOURCES = \ src/timedate/timedated.c \ - src/dbus-common.c \ src/polkit.c systemd_timedated_CFLAGS = \ @@ -2552,7 +2522,6 @@ systemd_logind_SOURCES = \ src/login/logind-session-dbus.c \ src/login/logind-seat-dbus.c \ src/login/logind-user-dbus.c \ - src/dbus-common.c \ src/dbus-loop.c \ src/polkit.c \ src/login/logind-acl.h @@ -2592,12 +2561,7 @@ rootlibexec_PROGRAMS += \ loginctl_SOURCES = \ src/login/loginctl.c \ - src/login/sysfs-show.c \ - src/dbus-common.c \ - src/spawn-polkit-agent.c \ - src/spawn-polkit-agent.h \ - src/cgroup-show.c \ - src/cgroup-show.h + src/login/sysfs-show.c loginctl_CFLAGS = \ $(AM_CFLAGS) \ @@ -2639,8 +2603,7 @@ libsystemd_login_la_LIBADD = \ if HAVE_PAM pam_systemd_la_SOURCES = \ - src/login/pam-module.c \ - src/dbus-common.c + src/login/pam-module.c pam_systemd_la_CFLAGS = \ $(AM_CFLAGS) \ @@ -2714,7 +2677,7 @@ polkitpolicy_in_files += \ logind-install-data-hook: $(MKDIR_P) -m 0755 \ $(DESTDIR)$(systemunitdir)/multi-user.target.wants \ - $(DESTDIR)$(localstatedir)/lib/systemd + $(DESTDIR)$(localstatedir)/lib/systemd ( cd $(DESTDIR)$(systemunitdir) && \ rm -f dbus-org.freedesktop.login1.service && \ $(LN_S) systemd-logind.service dbus-org.freedesktop.login1.service) diff --git a/src/cgroup-show.c b/src/shared/cgroup-show.c index 550a2f5f31..550a2f5f31 100644 --- a/src/cgroup-show.c +++ b/src/shared/cgroup-show.c diff --git a/src/cgroup-show.h b/src/shared/cgroup-show.h index 5433f46a53..5433f46a53 100644 --- a/src/cgroup-show.h +++ b/src/shared/cgroup-show.h diff --git a/src/dbus-common.c b/src/shared/dbus-common.c index 038fdd41a0..038fdd41a0 100644 --- a/src/dbus-common.c +++ b/src/shared/dbus-common.c diff --git a/src/dbus-common.h b/src/shared/dbus-common.h index 38d8e6538c..38d8e6538c 100644 --- a/src/dbus-common.h +++ b/src/shared/dbus-common.h diff --git a/src/hostname-setup.c b/src/shared/hostname-setup.c index 550d3c2113..550d3c2113 100644 --- a/src/hostname-setup.c +++ b/src/shared/hostname-setup.c diff --git a/src/hostname-setup.h b/src/shared/hostname-setup.h index 9550b8c5ab..9550b8c5ab 100644 --- a/src/hostname-setup.h +++ b/src/shared/hostname-setup.h diff --git a/src/install.c b/src/shared/install.c index 080ae6a01d..080ae6a01d 100644 --- a/src/install.c +++ b/src/shared/install.c diff --git a/src/install.h b/src/shared/install.h index d365c01bc7..d365c01bc7 100644 --- a/src/install.h +++ b/src/shared/install.h diff --git a/src/logs-show.c b/src/shared/logs-show.c index fedb4532db..fedb4532db 100644 --- a/src/logs-show.c +++ b/src/shared/logs-show.c diff --git a/src/logs-show.h b/src/shared/logs-show.h index 94caed5579..94caed5579 100644 --- a/src/logs-show.h +++ b/src/shared/logs-show.h diff --git a/src/loopback-setup.c b/src/shared/loopback-setup.c index 46c1fc843a..46c1fc843a 100644 --- a/src/loopback-setup.c +++ b/src/shared/loopback-setup.c diff --git a/src/loopback-setup.h b/src/shared/loopback-setup.h index cbb969e1e4..cbb969e1e4 100644 --- a/src/loopback-setup.h +++ b/src/shared/loopback-setup.h diff --git a/src/machine-id-setup.c b/src/shared/machine-id-setup.c index 9e84ac0cb9..9e84ac0cb9 100644 --- a/src/machine-id-setup.c +++ b/src/shared/machine-id-setup.c diff --git a/src/machine-id-setup.h b/src/shared/machine-id-setup.h index 16f45d86d3..16f45d86d3 100644 --- a/src/machine-id-setup.h +++ b/src/shared/machine-id-setup.h diff --git a/src/mount-setup.c b/src/shared/mount-setup.c index 52fe523674..52fe523674 100644 --- a/src/mount-setup.c +++ b/src/shared/mount-setup.c diff --git a/src/mount-setup.h b/src/shared/mount-setup.h index 720b66f76c..720b66f76c 100644 --- a/src/mount-setup.h +++ b/src/shared/mount-setup.h diff --git a/src/path-lookup.c b/src/shared/path-lookup.c index 1d95f7d1f8..1d95f7d1f8 100644 --- a/src/path-lookup.c +++ b/src/shared/path-lookup.c diff --git a/src/path-lookup.h b/src/shared/path-lookup.h index e8a5a77a7b..e8a5a77a7b 100644 --- a/src/path-lookup.h +++ b/src/shared/path-lookup.h diff --git a/src/spawn-ask-password-agent.c b/src/shared/spawn-ask-password-agent.c index c1a9c58681..c1a9c58681 100644 --- a/src/spawn-ask-password-agent.c +++ b/src/shared/spawn-ask-password-agent.c diff --git a/src/spawn-ask-password-agent.h b/src/shared/spawn-ask-password-agent.h index fa5e7b0260..fa5e7b0260 100644 --- a/src/spawn-ask-password-agent.h +++ b/src/shared/spawn-ask-password-agent.h diff --git a/src/spawn-polkit-agent.c b/src/shared/spawn-polkit-agent.c index fd72588417..fd72588417 100644 --- a/src/spawn-polkit-agent.c +++ b/src/shared/spawn-polkit-agent.c diff --git a/src/spawn-polkit-agent.h b/src/shared/spawn-polkit-agent.h index b91d20f120..b91d20f120 100644 --- a/src/spawn-polkit-agent.h +++ b/src/shared/spawn-polkit-agent.h diff --git a/src/specifier.c b/src/shared/specifier.c index ae00ae10bb..ae00ae10bb 100644 --- a/src/specifier.c +++ b/src/shared/specifier.c diff --git a/src/specifier.h b/src/shared/specifier.h index 57d1fcb35c..57d1fcb35c 100644 --- a/src/specifier.h +++ b/src/shared/specifier.h diff --git a/src/umount.c b/src/shared/umount.c index 24c0947f21..24c0947f21 100644 --- a/src/umount.c +++ b/src/shared/umount.c diff --git a/src/umount.h b/src/shared/umount.h index 2e2f9c181a..2e2f9c181a 100644 --- a/src/umount.h +++ b/src/shared/umount.h diff --git a/src/unit-name.c b/src/shared/unit-name.c index 566cdc51cc..566cdc51cc 100644 --- a/src/unit-name.c +++ b/src/shared/unit-name.c diff --git a/src/unit-name.h b/src/shared/unit-name.h index 4dfb9fa3ce..4dfb9fa3ce 100644 --- a/src/unit-name.h +++ b/src/shared/unit-name.h diff --git a/src/utmp-wtmp.c b/src/shared/utmp-wtmp.c index 6bba325d3e..6bba325d3e 100644 --- a/src/utmp-wtmp.c +++ b/src/shared/utmp-wtmp.c diff --git a/src/utmp-wtmp.h b/src/shared/utmp-wtmp.h index ab950617a1..ab950617a1 100644 --- a/src/utmp-wtmp.h +++ b/src/shared/utmp-wtmp.h diff --git a/src/watchdog.c b/src/shared/watchdog.c index 13265e7692..13265e7692 100644 --- a/src/watchdog.c +++ b/src/shared/watchdog.c diff --git a/src/watchdog.h b/src/shared/watchdog.h index 2e00cb9f4b..2e00cb9f4b 100644 --- a/src/watchdog.h +++ b/src/shared/watchdog.h |