commit:     4ba2a3a242005962bd8f7ab51a60b5a1a13b3f4f
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Sat May 15 15:51:20 2021 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Sat May 15 16:05:23 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ba2a3a2

sys-auth/sssd: fix style

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 sys-auth/sssd/sssd-2.5.0.ebuild | 23 ++++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)

diff --git a/sys-auth/sssd/sssd-2.5.0.ebuild b/sys-auth/sssd/sssd-2.5.0.ebuild
index 5589ebcb8df..4242b9b973e 100644
--- a/sys-auth/sssd/sssd-2.5.0.ebuild
+++ b/sys-auth/sssd/sssd-2.5.0.ebuild
@@ -104,12 +104,17 @@ pkg_setup() {
 }
 
 src_prepare() {
-       sed -i 's:/var/run:/run:' \
-               "${S}"/src/examples/logrotate || die
-
        default
+
+       sed -i \
+               -e 's:/var/run:/run:' \
+               "${S}"/src/examples/logrotate \
+               || die
+
        eautoreconf
+
        multilib_copy_sources
+
        if use python && multilib_is_native_abi; then
                python_setup
        fi
@@ -142,6 +147,7 @@ multilib_src_configure() {
                --with-nscd="${EPREFIX}"/usr/sbin/nscd
                --with-unicode-lib="glib2"
                --disable-rpath
+               --disable-static
                --sbindir=/usr/sbin
                --enable-local-provider
                $(multilib_native_use_with systemd kcm)
@@ -212,6 +218,10 @@ multilib_src_compile() {
        fi
 }
 
+multilib_src_test() {
+       multilib_is_native_abi && emake check
+}
+
 multilib_src_install() {
        if multilib_is_native_abi; then
                emake -j1 DESTDIR="${D}" "${_at_args[@]}" install
@@ -219,7 +229,6 @@ multilib_src_install() {
                        python_optimize
                        python_fix_shebang "${ED}"
                fi
-
        else
                # easier than playing with automake...
                dopammod .libs/pam_sss.so
@@ -264,7 +273,7 @@ multilib_src_install_all() {
        keepdir /var/log/sssd
 
        # strip empty dirs
-       if ! use doc ; then
+       if ! use doc; then
                rm -r "${ED}"/usr/share/doc/"${PF}"/doc || die
                rm -r 
"${ED}"/usr/share/doc/"${PF}"/{hbac,idmap,nss_idmap,sss_simpleifp}_doc || die
        fi
@@ -272,10 +281,6 @@ multilib_src_install_all() {
        rm -r "${ED}"/run || die
 }
 
-multilib_src_test() {
-       multilib_is_native_abi && emake check
-}
-
 pkg_postinst() {
        elog "You must set up sssd.conf (default installed into /etc/sssd)"
        elog "and (optionally) configuration in /etc/pam.d in order to use SSSD"

Reply via email to