net-misc/openssh: fix libexec directory in ldap wrapper
authorThomas Deutschmann <whissi@gentoo.org>
Mon, 2 Jul 2018 22:35:08 +0000 (00:35 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Mon, 2 Jul 2018 22:35:46 +0000 (00:35 +0200)
Reported-by: Sergey Popov <pinkbyte@gentoo.org>
Package-Manager: Portage-2.3.40, Repoman-2.3.9

net-misc/openssh/openssh-7.7_p1-r103.ebuild [moved from net-misc/openssh/openssh-7.7_p1-r102.ebuild with 98% similarity]

similarity index 98%
rename from net-misc/openssh/openssh-7.7_p1-r102.ebuild
rename to net-misc/openssh/openssh-7.7_p1-r103.ebuild
index 83b9dd34711921de50f1c9cf1b61b82e0f72d013..3a2abed912ea523549ed467fdfc33d0f244df0ed 100644 (file)
@@ -393,6 +393,11 @@ src_install() {
        if use ldap && [[ -n ${LDAP_PATCH} ]] ; then
                insinto /etc/openldap/schema/
                doins openssh-lpk-{sun,openldap}.schema
+
+               # Set the same libexec directory as in src_configure
+               sed -i \
+                       -e "s:libexec/openssh:$(get_libdir)/misc:" \
+                       "${ED%/}/usr/$(get_libdir)/misc/ssh-ldap-wrapper" || die
        fi
 
        doman contrib/ssh-copy-id.1