chiark / gitweb /
build-sys: make systemd-user-sessions conditional on PAM again
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 27 Feb 2015 22:26:26 +0000 (17:26 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 27 Feb 2015 22:28:03 +0000 (17:28 -0500)
This undoes a part of previous commit: s-u-s is dependent on HAVE_PAM
again, but not on HAVE_LOGIND.

Makefile.am
man/systemd-user-sessions.service.xml

index 5847bb4..751f44c 100644 (file)
@@ -393,8 +393,7 @@ rootlibexec_PROGRAMS = \
        systemd-sleep \
        systemd-bus-proxyd \
        systemd-socket-proxyd \
-       systemd-update-done \
-       systemd-user-sessions
+       systemd-update-done
 
 if HAVE_UTMP
 rootlibexec_PROGRAMS += \
@@ -555,8 +554,7 @@ nodist_systemunit_DATA = \
        units/initrd-udevadm-cleanup-db.service \
        units/initrd-switch-root.service \
        units/systemd-nspawn@.service \
-       units/systemd-update-done.service \
-       units/systemd-user-sessions.service
+       units/systemd-update-done.service
 
 if HAVE_UTMP
 nodist_systemunit_DATA += \
@@ -609,8 +607,7 @@ EXTRA_DIST += \
        units/initrd-udevadm-cleanup-db.service.in \
        units/initrd-switch-root.service.in \
        units/systemd-nspawn@.service.in \
-       units/systemd-update-done.service.in \
-       units/systemd-user-sessions.service.in
+       units/systemd-update-done.service.in
 
 CLEANFILES += \
        units/console-shell.service.m4 \
@@ -2126,13 +2123,6 @@ systemd_update_done_LDADD = \
        libsystemd-shared.la
 
 # ------------------------------------------------------------------------------
-systemd_user_sessions_SOURCES = \
-       src/user-sessions/user-sessions.c
-
-systemd_user_sessions_LDADD = \
-       libsystemd-shared.la
-
-# ------------------------------------------------------------------------------
 systemd_shutdownd_SOURCES = \
        src/shutdownd/shutdownd.c
 
@@ -6015,6 +6005,7 @@ pamlib_LTLIBRARIES = \
 
 dist_pamconf_DATA = \
        src/login/systemd-user
+
 endif
 
 nodist_systemunit_DATA += \
@@ -6074,6 +6065,30 @@ EXTRA_DIST += \
        units/systemd-logind.service.in
 
 # ------------------------------------------------------------------------------
+if HAVE_PAM
+
+systemd_user_sessions_SOURCES = \
+       src/user-sessions/user-sessions.c
+
+systemd_user_sessions_LDADD = \
+       libsystemd-shared.la
+
+rootlibexec_PROGRAMS += \
+       systemd-user-sessions
+
+nodist_systemunit_DATA += \
+       units/systemd-user-sessions.service
+
+EXTRA_DIST += \
+       units/systemd-user-sessions.service.in
+
+MULTI_USER_TARGET_WANTS += \
+       systemd-user-sessions.service
+
+endif
+
+# ------------------------------------------------------------------------------
+
 if HAVE_PYTHON_DEVEL
 pkgpyexec_LTLIBRARIES = \
        _journal.la \
@@ -6596,8 +6611,7 @@ LOCAL_FS_TARGET_WANTS += \
 
 MULTI_USER_TARGET_WANTS += \
        getty.target \
-       systemd-ask-password-wall.path \
-       systemd-user-sessions.service
+       systemd-ask-password-wall.path
 
 SYSINIT_TARGET_WANTS += \
        dev-hugepages.mount \
index 9a228df..9d796b1 100644 (file)
@@ -19,7 +19,7 @@
   You should have received a copy of the GNU Lesser General Public License
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 -->
-<refentry id="systemd-user-sessions.service">
+<refentry id="systemd-user-sessions.service" conditional='HAVE_PAM'>
 
   <refentryinfo>
     <title>systemd-user-sessions.service</title>