emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#26651: closed ([PATCH] gnu: nss-pam-ldap: Look for


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#26651: closed ([PATCH] gnu: nss-pam-ldap: Look for nslcd.conf in global /etc/ directory.)
Date: Wed, 26 Apr 2017 11:12:02 +0000

Your message dated Wed, 26 Apr 2017 13:11:35 +0200
with message-id <address@hidden>
and subject line Re: bug#26651: [PATCH] gnu: nss-pam-ldap: Look for nslcd.conf 
in global /etc/ directory.
has caused the debbugs.gnu.org bug report #26651,
regarding [PATCH] gnu: nss-pam-ldap: Look for nslcd.conf in global /etc/ 
directory.
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
26651: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=26651
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: [PATCH] gnu: nss-pam-ldap: Look for nslcd.conf in global /etc/ directory. Date: Tue, 25 Apr 2017 14:25:31 +0200
* gnu/packages/openldap.scm (nss-pam-ldapd)[arguments]: Set
"--with-ldap-conf-file" to look for global configuration file; add build phase
to install example configuration file in the package output directory.
---
 gnu/packages/openldap.scm | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/openldap.scm b/gnu/packages/openldap.scm
index b67510647..61f7a9469 100644
--- a/gnu/packages/openldap.scm
+++ b/gnu/packages/openldap.scm
@@ -94,8 +94,23 @@
      `(#:configure-flags
        (list (string-append "--with-pam-seclib-dir="
                             (assoc-ref %outputs "out") "/lib/security/")
-             (string-append "--with-ldap-conf-file="
-                            (assoc-ref %outputs "out") "/etc/nslcd.conf"))))
+             ;; nslcd cannot be convinced to look at run-time for its
+             ;; configuration file at a location that differs from the
+             ;; configured location.
+             "--with-ldap-conf-file=/etc/nslcd.conf")
+       #:phases
+       (modify-phases %standard-phases
+         ;; This is necessary because we tell nslcd with configure flags that
+         ;; it should look for its configuration file at /etc/nslcd.conf.  The
+         ;; build system tries to install a default configuration to that very
+         ;; location.
+         (add-after 'unpack 'override-nslcd.conf-install-path
+           (lambda* (#:key outputs #:allow-other-keys)
+             (substitute* "Makefile.in"
+               (("\\$\\(DESTDIR\\)\\$\\(NSLCD_CONF_PATH\\)")
+                (string-append (assoc-ref outputs "out")
+                               "/etc/nslcd.conf.example")))
+             #t)))))
     (inputs
      `(("linux-pam" ,linux-pam)
        ("openldap" ,openldap)
-- 
2.11.1




--- End Message ---
--- Begin Message --- Subject: Re: bug#26651: [PATCH] gnu: nss-pam-ldap: Look for nslcd.conf in global /etc/ directory. Date: Wed, 26 Apr 2017 13:11:35 +0200 User-agent: mu4e 0.9.18; emacs 25.1.1
Kei Kebreau <address@hidden> writes:

> Ricardo Wurmus <address@hidden> writes:
>
>> * gnu/packages/openldap.scm (nss-pam-ldapd)[arguments]: Set
>> "--with-ldap-conf-file" to look for global configuration file; add build 
>> phase
>> to install example configuration file in the package output directory.

[…]

> LGTM.

Thanks.  Pushed with a minor change in the summary.
(Commit 289a89801afaeee0522777078258ce103d0452e8)

-- 
Ricardo Wurmus


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]