lists.arthurdejong.org
RSS feed

Re: --disable-nslcd, nssov, and local user lookups

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

Re: --disable-nslcd, nssov, and local user lookups



On Mon, 2012-06-11 at 08:49 -0400, Ryan Steele wrote:
> On a related note - what's the accepted approach to disabling nslcd at
> build-time in addition to providing the --disable-nslcd flag?  I ask
> because simply removing the following flags from debian/rules:
> 
>                 --sysconfdir=/etc \
>               --localstatedir=/var \
>                 --with-ldap-conf-file=/etc/nslcd.conf \
>                 --with-nslcd-pidfile=/var/run/nslcd/nslcd.pid \
>                 --with-nslcd-socket=/var/run/nslcd/socket
> 
> ...and adding this flag:
> 
>               --disable-nslcd

You could keep --with-nslcd-socket since it is also used in the NSS and
PAM modules. Having said that /var/run/nslcd/socket is the default so it
shouldn't change anything.

> dh_install
>       install -d debian/nslcd/
>       cp -a debian/tmp/etc debian/nslcd//
>       install -d debian/nslcd//usr
>       cp -a debian/tmp/usr/sbin debian/nslcd//usr/
> cp: cannot stat `debian/tmp/usr/sbin': No such file or directory
> dh_install: cp -a debian/tmp/usr/sbin debian/nslcd//usr/ returned exit code 1
> make: *** [binary-arch] Error 2
> dpkg-buildpackage: error: debian/rules binary gave error exit status 2

You could remove debian/nslcd.* and edit debian/control to remove the
nslcd package section.

Btw, out of curiosity, why are you building custom Debian packages?

-- 
-- arthur - arthur@arthurdejong.org - http://arthurdejong.org --
-- 
To unsubscribe send an email to
nss-pam-ldapd-users-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-users/