X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=Makefile.am;h=a2f7e1725ed975a3a750acea6111b463de55049a;hp=c766356094ab53bdc25bb31d357bd853fcfa8533;hb=b2423f1f436f847d9fc96a63679be2b5552b6baf;hpb=c88f64bd1ae833f3674b8945f5b31b102bdc0923 diff --git a/Makefile.am b/Makefile.am index c76635609..a2f7e1725 100644 --- a/Makefile.am +++ b/Makefile.am @@ -50,6 +50,7 @@ AM_CPPFLAGS = \ -DSYSTEMD_BINARY_PATH=\"$(rootbindir)/systemd\" \ -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \ -DRUNTIME_DIR=\"$(localstatedir)/run\" \ + -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \ -I $(top_srcdir)/src rootbin_PROGRAMS = \ @@ -69,7 +70,11 @@ rootlibexec_PROGRAMS = \ systemd-logger \ systemd-cgroups-agent \ systemd-initctl \ - systemd-update-utmp + systemd-update-utmp \ + systemd-random-seed \ + systemd-shutdownd \ + systemd-auto-console-getty \ + systemd-modules-load noinst_PROGRAMS = \ test-engine \ @@ -135,6 +140,7 @@ dist_systemunit_DATA = \ units/dbus.target \ units/systemd-initctl.socket \ units/systemd-logger.socket \ + units/systemd-shutdownd.socket \ units/dev-hugepages.automount \ units/dev-hugepages.mount \ units/dev-mqueue.automount \ @@ -145,8 +151,14 @@ dist_systemunit_DATA = \ units/sys-kernel-debug.mount \ units/sys-kernel-security.automount \ units/sys-kernel-security.mount \ + units/tmp.mount \ units/var-lock.mount \ + units/var-lock.service \ units/var-run.mount \ + units/var-run.service \ + units/hwclock-load.service \ + units/hwclock-save.service \ + units/sysctl.service \ units/printer.target \ units/bluetooth.target \ units/smartcard.target @@ -159,8 +171,13 @@ nodist_systemunit_DATA = \ units/multi-user.target \ units/systemd-initctl.service \ units/systemd-logger.service \ + units/systemd-shutdownd.service \ + units/systemd-auto-console-getty.service \ + units/systemd-modules-load.service \ units/systemd-update-utmp-runlevel.service \ units/systemd-update-utmp-shutdown.service \ + units/systemd-random-seed-save.service \ + units/systemd-random-seed-load.service \ units/syslog.target dist_sessionunit_DATA = \ @@ -178,8 +195,13 @@ EXTRA_DIST = \ units/remote-fs.target.m4 \ units/systemd-initctl.service.in \ units/systemd-logger.service.in \ + units/systemd-shutdownd.service.in \ + units/systemd-auto-console-getty.service.in \ + units/systemd-modules-load.service.in \ units/systemd-update-utmp-runlevel.service.in \ units/systemd-update-utmp-shutdown.service.in \ + units/systemd-random-seed-save.service.in \ + units/systemd-random-seed-load.service.in \ units/syslog.target.in \ units/session/exit.service.in \ systemd.pc.in @@ -296,7 +318,6 @@ libsystemd_core_la_SOURCES = \ src/hostname-setup.c \ src/loopback-setup.c \ src/kmod-setup.c \ - src/modprobe-setup.c \ src/specifier.c \ src/unit-name.c \ src/fdset.c \ @@ -340,7 +361,8 @@ EXTRA_DIST += \ src/bus-errors.h \ src/cgroup-show.h \ src/utmp-wtmp.h \ - src/build.h + src/build.h \ + src/shutdownd.h MANPAGES = \ man/systemd.1 \ @@ -514,6 +536,47 @@ systemd_update_utmp_LDADD = \ $(DBUS_LIBS) \ $(AUDIT_LIBS) +systemd_random_seed_SOURCES = \ + src/random-seed.c + +systemd_random_seed_CFLAGS = \ + $(AM_CFLAGS) + +systemd_random_seed_LDADD = \ + libsystemd-basic.la + +systemd_shutdownd_SOURCES = \ + src/utmp-wtmp.c \ + src/sd-daemon.c \ + src/shutdownd.c + +systemd_shutdownd_CFLAGS = \ + $(AM_CFLAGS) + +systemd_shutdownd_LDADD = \ + libsystemd-basic.la + +systemd_auto_console_getty_SOURCES = \ + src/auto-console-getty.c \ + src/dbus-common.c + +systemd_auto_console_getty_CFLAGS = \ + $(AM_CFLAGS) \ + $(DBUS_CFLAGS) + +systemd_auto_console_getty_LDADD = \ + libsystemd-basic.la \ + $(DBUS_LIBS) + +systemd_modules_load_SOURCES = \ + src/modules-load.c + +systemd_modules_load_CFLAGS = \ + $(AM_CFLAGS) + +systemd_modules_load_LDADD = \ + libsystemd-basic.la + systemd_cgroups_agent_SOURCES = \ src/cgroups-agent.c \ src/dbus-common.c @@ -749,9 +812,10 @@ install-data-hook: rm -f session && \ $(LN_S) $(pkgsysconfdir)/session session ) ( cd $(DESTDIR)$(systemunitdir)/sockets.target.wants && \ - rm -f systemd-initctl.socket systemd-logger.socket && \ + rm -f systemd-initctl.socket systemd-logger.socket systemd-shutdownd.socket && \ $(LN_S) ../systemd-logger.socket systemd-logger.socket && \ - $(LN_S) ../systemd-initctl.socket systemd-initctl.socket ) + $(LN_S) ../systemd-initctl.socket systemd-initctl.socket && \ + $(LN_S) ../systemd-shutdownd.socket systemd-shutdownd.socket ) ( cd $(DESTDIR)$(systemunitdir)/runlevel1.target.wants && \ rm -f systemd-update-utmp-runlevel.service && \ $(LN_S) ../systemd-update-utmp-runlevel.service ) @@ -793,13 +857,14 @@ install-data-hook: $(LN_S) $(systemunitdir)/reboot.target ctrl-alt-del.target && \ $(LN_S) $(systemunitdir)/rescue.target kbrequest.target ) ( cd $(DESTDIR)$(pkgsysconfdir)/system/getty.target.wants && \ - rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service && \ + rm -f getty@tty1.service getty@tty2.service getty@tty3.service getty@tty4.service getty@tty5.service getty@tty6.service systemd-auto-console-getty.service && \ $(LN_S) $(systemunitdir)/getty@.service getty@tty1.service && \ $(LN_S) $(systemunitdir)/getty@.service getty@tty2.service && \ $(LN_S) $(systemunitdir)/getty@.service getty@tty3.service && \ $(LN_S) $(systemunitdir)/getty@.service getty@tty4.service && \ $(LN_S) $(systemunitdir)/getty@.service getty@tty5.service && \ - $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service ) + $(LN_S) $(systemunitdir)/getty@.service getty@tty6.service && \ + $(LN_S) $(systemunitdir)/systemd-auto-console-getty.service systemd-auto-console-getty.service ) ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \ rm -f getty.target remote-fs.target && \ $(LN_S) $(systemunitdir)/getty.target getty.target && \ @@ -821,10 +886,11 @@ install-data-hook: if TARGET_FEDORA $(MKDIR_P) -m 0755 \ $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \ - $(DESTDIR)$(pkgsysconfdir)/system/reboot.target.wants \ - $(DESTDIR)$(pkgsysconfdir)/system/poweroff.target.wants \ - $(DESTDIR)$(pkgsysconfdir)/system/halt.target.wants \ - $(DESTDIR)$(systemunitdir)/rescue.target.wants + $(DESTDIR)$(systemunitdir)/reboot.target.wants \ + $(DESTDIR)$(systemunitdir)/poweroff.target.wants \ + $(DESTDIR)$(systemunitdir)/halt.target.wants \ + $(DESTDIR)$(systemunitdir)/rescue.target.wants \ + $(DESTDIR)$(systemunitdir)/multi-user.target.wants ( cd $(DESTDIR)$(pkgsysconfdir)/system && \ rm -f display-manager.service && \ $(LN_S) $(systemunitdir)/prefdm.service display-manager.service ) @@ -832,21 +898,23 @@ if TARGET_FEDORA rm -f prefdm.service && \ $(LN_S) $(systemunitdir)/prefdm.service prefdm.service ) ( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \ - rm -f rc-local.service plymouth-quit.service && \ - $(LN_S) $(systemunitdir)/rc-local.service rc-local.service && \ - $(LN_S) $(systemunitdir)/plymouth-quit.service plymouth-quit.service ) + rm -f rc-local.service && \ + $(LN_S) $(systemunitdir)/rc-local.service rc-local.service ) ( cd $(DESTDIR)$(systemunitdir)/rescue.target.wants && \ rm -f single.service && \ $(LN_S) $(systemunitdir)/single.service single.service ) - ( cd $(DESTDIR)$(pkgsysconfdir)/system/reboot.target.wants && \ + ( cd $(DESTDIR)$(systemunitdir)/multi-user.target.wants && \ + rm -f plymouth-quit.service && \ + $(LN_S) ../plymouth-quit.service plymouth-quit.service ) + ( cd $(DESTDIR)$(systemunitdir)/reboot.target.wants && \ rm -f plymouth-reboot.service && \ - $(LN_S) $(systemunitdir)/plymouth-reboot.service plymouth-reboot.service ) - ( cd $(DESTDIR)$(pkgsysconfdir)/system/poweroff.target.wants && \ + $(LN_S) ../plymouth-reboot.service plymouth-reboot.service ) + ( cd $(DESTDIR)$(systemunitdir)/poweroff.target.wants && \ rm -f plymouth-poweroff.service && \ - $(LN_S) $(systemunitdir)/plymouth-poweroff.service plymouth-poweroff.service ) - ( cd $(DESTDIR)$(pkgsysconfdir)/system/halt.target.wants && \ + $(LN_S) ../plymouth-poweroff.service plymouth-poweroff.service ) + ( cd $(DESTDIR)$(systemunitdir)/halt.target.wants && \ rm -f plymouth-halt.service && \ - $(LN_S) $(systemunitdir)/plymouth-halt.service plymouth-halt.service ) + $(LN_S) ../plymouth-halt.service plymouth-halt.service ) ( cd $(DESTDIR)$(systemunitdir) && \ rm -f local.service && \ $(LN_S) rc-local.service local.service )