]> git.pld-linux.org Git - packages/openssh.git/commitdiff
- fix ssh-ldap-helper path
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 28 Sep 2011 22:15:31 +0000 (22:15 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- always apply ldap patches, other patches depend on them, yet without ldap bcond does not exactly work

Changed files:
    openssh.spec -> 1.374

openssh.spec

index 6fdec204c051181726e42876e83a90c271157eb0..e9c331e30b40dd191e7fd39f8191e1d2cd688f59 100644 (file)
@@ -498,9 +498,9 @@ openldap-a.
 %patch0 -p1
 %patch2 -p1
 %patch3 -p1
-%{?with_ldap:%patch4 -p1}
-%{?with_ldap:%patch5 -p1}
-%{?with_ldap:%patch8 -p1}
+%patch4 -p1
+%patch5 -p1
+%patch8 -p1
 %patch6 -p1
 %patch7 -p1
 %{?with_hpn:%patch9 -p1}
@@ -525,6 +525,9 @@ install -p %{SOURCE2} sshd.init
 # hack since arc4random from openbsd-compat needs symbols from libssh and vice versa
 sed -i -e 's#-lssh -lopenbsd-compat#-lssh -lopenbsd-compat -lssh#g' Makefile*
 
+grep -rl /usr/libexec/openssh/ssh-ldap-helper . | xargs \
+%{__sed} -i -e 's,/usr/libexec/openssh/ssh-ldap-helper,%{_libexecdir}/ssh-ldap-helper,'
+
 %build
 cp /usr/share/automake/config.sub .
 %{__aclocal}
@@ -540,7 +543,7 @@ CPPFLAGS="-DCHROOT"
        %{?with_audit:--with-audit=linux} \
        --with-ipaddr-display \
        %{?with_kerberos5:--with-kerberos5=/usr} \
-       %{?with_ldap:--with-ldap} \
+       --with-ldap%{!?with_ldap:=no} \
        %{?with_libedit:--with-libedit} \
        --with-mantype=man \
        --with-md5-passwords \
This page took 0.067712 seconds and 4 git commands to generate.