]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
build-sys: Allow disabling installation of pam config snippet 4358/head
authorFelipe Sateler <fsateler@gmail.com>
Wed, 12 Oct 2016 14:56:27 +0000 (11:56 -0300)
committerFelipe Sateler <fsateler@gmail.com>
Wed, 12 Oct 2016 17:09:14 +0000 (14:09 -0300)
DISTRO_PORTING
Makefile.am
configure.ac

index 9f61bd6de65aaf0d1a3914b61594d1c61390f9f7..51a244389dc036645993beb49fa1f3e89deb0699 100644 (file)
@@ -48,6 +48,9 @@ PAM:
         /etc/security/limits.conf will not be read unless you load pam_limits.
         Make sure you add modules your distro expects from user services.
 
+        Pass --with-pamconfdir=no to ./configure to avoid installing this file
+        and instead install your own.
+
 CONTRIBUTING UPSTREAM:
 
         We generally do no longer accept distribution-specific
index b09b0cf1671c9674ca75ee4a3396dbd4f99c93e9..e740512f98b479bb322ca1f474dc982226fea8a0 100644 (file)
@@ -5902,8 +5902,10 @@ pam_systemd_la_LIBADD = \
 pamlib_LTLIBRARIES = \
        pam_systemd.la
 
+if ENABLE_PAM_CONFIG
 dist_pamconf_DATA = \
        src/login/systemd-user
+endif
 
 EXTRA_DIST += \
        src/login/systemd-user.m4
index ccd212ef138b9807e620f5d355cf57d129ec8002..0e87adc38f6c039b8325bbb834ce843af1bb7170 100644 (file)
@@ -1507,9 +1507,10 @@ AC_ARG_WITH([pamlibdir],
 AX_NORMALIZE_PATH([with_pamlibdir])
 
 AC_ARG_WITH([pamconfdir],
-        AS_HELP_STRING([--with-pamconfdir=DIR], [Directory for PAM configuration]),
+        AS_HELP_STRING([--with-pamconfdir=DIR], [Directory for PAM configuration (pass no to disable installing)]),
         [],
         [with_pamconfdir=${sysconfdir}/pam.d])
+AM_CONDITIONAL(ENABLE_PAM_CONFIG, [test "$with_pamconfdir" != "no"])
 AX_NORMALIZE_PATH([with_pamconfdir])
 
 AC_ARG_ENABLE([split-usr],