X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=Makefile.am;h=cb2318406da32f9e712286fa1a727a61a0d20f88;hp=debe4759671569370deb323e0514b8a669c206a0;hb=41b02ec77e54871eaa593c50fb31809814f627a7;hpb=fa776d8e962da9d90459e2f3e86a2a0c6366ee12 diff --git a/Makefile.am b/Makefile.am index debe47596..cb2318406 100644 --- a/Makefile.am +++ b/Makefile.am @@ -58,7 +58,6 @@ rootbin_PROGRAMS = \ systemd-notify bin_PROGRAMS = \ - systemd-install \ systemd-cgls if HAVE_GTK @@ -69,7 +68,8 @@ endif rootlibexec_PROGRAMS = \ systemd-logger \ systemd-cgroups-agent \ - systemd-initctl + systemd-initctl \ + systemd-update-utmp noinst_PROGRAMS = \ test-engine \ @@ -77,7 +77,8 @@ noinst_PROGRAMS = \ test-ns \ test-loopback \ test-daemon \ - test-cgroup + test-cgroup \ + test-env-replace if HAVE_PAM pamlib_LTLIBRARIES = \ @@ -113,6 +114,7 @@ dbusinterface_DATA = \ dist_systemunit_DATA = \ units/emergency.service \ + units/emergency.target \ units/basic.target \ units/getty.target \ units/halt.target \ @@ -126,9 +128,11 @@ dist_systemunit_DATA = \ units/rpcbind.target \ units/rtc-set.target \ units/shutdown.target \ + units/umount.target \ units/sigpwr.target \ units/sockets.target \ units/swap.target \ + units/dbus.target \ units/systemd-initctl.socket \ units/systemd-logger.socket \ units/dev-hugepages.automount \ @@ -142,7 +146,10 @@ dist_systemunit_DATA = \ units/sys-kernel-security.automount \ units/sys-kernel-security.mount \ units/var-lock.mount \ - units/var-run.mount + units/var-run.mount \ + units/printer.target \ + units/bluetooth.target \ + units/smartcard.target nodist_systemunit_DATA = \ units/sysinit.target \ @@ -152,8 +159,7 @@ nodist_systemunit_DATA = \ units/multi-user.target \ units/systemd-initctl.service \ units/systemd-logger.service \ - units/syslog.target \ - units/dbus.target + units/syslog.target dist_sessionunit_DATA = \ units/session/default.target @@ -171,7 +177,6 @@ EXTRA_DIST = \ units/systemd-initctl.service.in \ units/systemd-logger.service.in \ units/syslog.target.in \ - units/dbus.target.in \ units/session/exit.service.in \ systemd.pc.in @@ -183,14 +188,18 @@ dist_systemunit_DATA += \ units/fedora/prefdm.service \ units/fedora/rc-local.service \ units/fedora/reboot.service \ - units/fedora/sysinit.service + units/fedora/sysinit.service \ + units/fedora/single.service \ + units/fedora/plymouth-quit.service \ + units/fedora/plymouth-shutdown.service endif if TARGET_SUSE dist_systemunit_DATA += \ units/suse/halt.service \ units/suse/poweroff.service \ - units/suse/reboot.service + units/suse/reboot.service \ + units/suse/fsck.target endif if TARGET_GENTOO @@ -235,6 +244,13 @@ libsystemd_basic_la_SOURCES = \ src/log.c \ src/ratelimit.c +libsystemd_basic_la_CFLAGS = \ + $(AM_CFLAGS) \ + $(SELINUX_CFLAGS) + +libsystemd_basic_la_LIBADD = \ + $(SELINUX_LIBS) + libsystemd_core_la_SOURCES = \ src/unit.c \ src/job.c \ @@ -274,7 +290,6 @@ libsystemd_core_la_SOURCES = \ src/loopback-setup.c \ src/kmod-setup.c \ src/modprobe-setup.c \ - src/utmp-wtmp.c \ src/specifier.c \ src/unit-name.c \ src/fdset.c \ @@ -286,15 +301,17 @@ libsystemd_core_la_CFLAGS = \ $(AM_CFLAGS) \ $(DBUS_CFLAGS) \ $(UDEV_CFLAGS) \ - $(CGROUP_CFLAGS) + $(LIBWRAP_CFLAGS) \ + $(PAM_CFLAGS) \ + $(AUDIT_CFLAGS) libsystemd_core_la_LIBADD = \ libsystemd-basic.la \ $(DBUS_LIBS) \ $(UDEV_LIBS) \ - $(CGROUP_LIBS) \ $(LIBWRAP_LIBS) \ - $(PAM_LIBS) + $(PAM_LIBS) \ + $(AUDIT_LIBS) # This is needed because automake is buggy in how it generates the # rules for C programs, but not Vala programs. We therefore can't @@ -320,7 +337,6 @@ MANPAGES = \ man/systemd.1 \ man/systemctl.1 \ man/systemadm.1 \ - man/systemd-install.1 \ man/systemd-cgls.1 \ man/systemd-notify.1 \ man/sd_notify.3 \ @@ -396,8 +412,7 @@ systemd_SOURCES = \ systemd_CFLAGS = \ $(AM_CFLAGS) \ $(DBUS_CFLAGS) \ - $(UDEV_CFLAGS) \ - $(CGROUP_CFLAGS) + $(UDEV_CFLAGS) systemd_LDADD = \ libsystemd-core.la @@ -439,12 +454,19 @@ test_cgroup_SOURCES = \ src/cgroup-util.c test_cgroup_CFLAGS = \ - $(AM_CFLAGS) \ - $(CGROUP_CFLAGS) + $(AM_CFLAGS) test_cgroup_LDADD = \ - libsystemd-basic.la \ - $(CGROUP_LIBS) + libsystemd-basic.la + +test_env_replace_SOURCES = \ + src/test-env-replace.c + +test_env_replace_CFLAGS = \ + $(AM_CFLAGS) + +test_env_replace_LDADD = \ + libsystemd-basic.la systemd_logger_SOURCES = \ src/logger.c \ @@ -468,8 +490,24 @@ systemd_initctl_LDADD = \ libsystemd-basic.la \ $(DBUS_LIBS) +systemd_update_utmp_SOURCES = \ + src/update-utmp.c \ + src/dbus-common.c \ + src/utmp-wtmp.c + +systemd_update_utmp_CFLAGS = \ + $(AM_CFLAGS) \ + $(DBUS_CFLAGS) \ + $(AUDIT_CFLAGS) + +systemd_update_utmp_LDADD = \ + libsystemd-basic.la \ + $(DBUS_LIBS) \ + $(AUDIT_LIBS) + systemd_cgroups_agent_SOURCES = \ - src/cgroups-agent.c + src/cgroups-agent.c \ + src/dbus-common.c systemd_cgroups_agent_CFLAGS = \ $(AM_CFLAGS) \ @@ -483,7 +521,10 @@ systemctl_SOURCES = \ src/systemctl.c \ src/utmp-wtmp.c \ src/dbus-common.c \ - src/cgroup-show.c + src/path-lookup.c \ + src/sd-daemon.c \ + src/cgroup-show.c \ + src/cgroup-util.c systemctl_CFLAGS = \ $(AM_CFLAGS) \ @@ -500,29 +541,17 @@ systemd_notify_SOURCES = \ systemd_notify_LDADD = \ libsystemd-basic.la -systemd_install_SOURCES = \ - src/install.c \ - src/path-lookup.c \ - src/dbus-common.c - -systemd_install_LDADD = \ - libsystemd-basic.la \ - $(DBUS_LIBS) - -systemd_install_CFLAGS = \ - $(AM_CFLAGS) \ - $(DBUS_CFLAGS) - systemd_cgls_SOURCES = \ - src/systemd-cgls.c \ - src/cgroup-show.c - -systemd_cgls_LDADD = \ - libsystemd-basic.la + src/cgls.c \ + src/cgroup-show.c \ + src/cgroup-util.c systemd_cgls_CFLAGS = \ $(AM_CFLAGS) +systemd_cgls_LDADD = \ + libsystemd-basic.la + systemadm_SOURCES = \ src/systemadm.vala \ src/systemd-interfaces.vala @@ -552,8 +581,7 @@ pam_systemd_la_SOURCES = \ src/sd-daemon.c pam_systemd_la_CFLAGS = \ - $(AM_CFLAGS) \ - $(CGROUP_CFLAGS) \ + $(AM_CFLAGS) -fvisibility=hidden pam_systemd_la_LDFLAGS = \ @@ -565,14 +593,12 @@ pam_systemd_la_LDFLAGS = \ pam_systemd_la_LIBADD = \ libsystemd-basic.la \ - $(PAM_LIBS) \ - $(CGROUP_LIBS) + $(PAM_LIBS) SED_PROCESS = \ $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \ -e 's,@SPECIAL_SYSLOG_SERVICE\@,$(SPECIAL_SYSLOG_SERVICE),g' \ - -e 's,@SPECIAL_DBUS_SERVICE\@,$(SPECIAL_DBUS_SERVICE),g' \ -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \ -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \ -e 's,@pkgdatadir\@,$(pkgdatadir),g' \ @@ -685,7 +711,7 @@ CLEANFILES += \ endif org.freedesktop.systemd1.%.xml: systemd - $(AM_V_GEN)./systemd --introspect=${@:.xml=} > $@ + $(AM_V_GEN)SYSTEMD_SKIP_API_MOUNTS=1 ./systemd --introspect=${@:.xml=} > $@ CLEANFILES += \ $(dbusinterface_DATA) @@ -712,11 +738,13 @@ install-data-hook: $(LN_S) ../systemd-logger.socket systemd-logger.socket && \ $(LN_S) ../systemd-initctl.socket systemd-initctl.socket ) ( cd $(DESTDIR)$(sessionunitdir) && \ - rm -f shutdown.target sockets.target local-fs.target swap.target && \ + rm -f shutdown.target sockets.target local-fs.target swap.target bluetooth.target printer.target && \ $(LN_S) $(systemunitdir)/shutdown.target shutdown.target && \ $(LN_S) $(systemunitdir)/sockets.target sockets.target && \ $(LN_S) $(systemunitdir)/local-fs.target local-fs.target && \ - $(LN_S) $(systemunitdir)/swap.target swap.target ) + $(LN_S) $(systemunitdir)/swap.target swap.target && \ + $(LN_S) $(systemunitdir)/bluetooth.target bluetooth.target && \ + $(LN_S) $(systemunitdir)/printer.target printer.target) ( cd $(DESTDIR)$(systemunitdir) && \ rm -f runlevel0.target runlevel1.target runlevel6.target && \ $(LN_S) poweroff.target runlevel0.target && \ @@ -760,7 +788,9 @@ install-data-hook: $(LN_S) ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service ) if TARGET_FEDORA $(MKDIR_P) -m 0755 \ - $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) + $(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \ + $(DESTDIR)$(systemunitdir)/rescue.target.wants \ + $(DESTDIR)$(pkgsysconfdir)/system/shutdown.target.wants ( cd $(DESTDIR)$(pkgsysconfdir)/system && \ rm -f display-manager.service && \ $(LN_S) $(systemunitdir)/prefdm.service display-manager.service ) @@ -768,8 +798,15 @@ 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 && \ - $(LN_S) $(systemunitdir)/rc-local.service rc-local.service ) + 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 ) + ( cd $(DESTDIR)$(systemunitdir)/rescue.target.wants && \ + rm -f single.service && \ + $(LN_S) $(systemunitdir)/single.service single.service ) + ( cd $(DESTDIR)$(pkgsysconfdir)/system/shutdown.target.wants && \ + rm -f plymouth-shutdown.service && \ + $(LN_S) $(systemunitdir)/plymouth-shutdown.service plymouth-shutdown.service ) ( cd $(DESTDIR)$(systemunitdir) && \ rm -f local.service && \ $(LN_S) rc-local.service local.service ) @@ -784,6 +821,11 @@ if TARGET_GENTOO rm -f xdm.service && \ $(LN_S) $(systemunitdir)/xdm.service xdm.service ) endif +if !TARGET_SUSE + ( cd $(DESTDIR)$(systemunitdir) && \ + rm -f fsck.target && \ + $(LN_S) sysinit.target fsck.target ) +endif DISTCHECK_CONFIGURE_FLAGS = \ --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \ @@ -793,3 +835,11 @@ DISTCHECK_CONFIGURE_FLAGS = \ --with-udevrulesdir=$$dc_install_base/$(udevrulesdir) \ --with-pamlibdir=$$dc_install_base/$(pamlibdir) \ --with-rootdir=$$dc_install_base/$(rootdir) + +upload: all distcheck + cp -v systemd-$(VERSION).tar.bz2 /home/lennart/cvs.fedora/systemd/devel/ + scp systemd-$(VERSION).tar.bz2 fdo:/srv/www.freedesktop.org/www/software/systemd/ + scp man/*.html tango:public/systemd-man/ + +git-tag: + git tag "v$(VERSION)" -m "systemd $(VERSION)"