|
|
@ -9,7 +9,7 @@ inherit autotools flag-o-matic linux-info multilib-minimal python-single-r1 pam |
|
|
|
|
|
|
|
DESCRIPTION="System Security Services Daemon provides access to identity and authentication" |
|
|
|
HOMEPAGE="https://github.com/SSSD/sssd" |
|
|
|
SRC_URI="https://github.com/SSSD/sssd/releases/download/${PN}-${PV//./_}/${P}.tar.gz" |
|
|
|
SRC_URI="https://github.com/SSSD/sssd/releases/download/${PV}/${P}.tar.gz" |
|
|
|
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" |
|
|
|
|
|
|
|
LICENSE="GPL-3" |
|
|
@ -18,7 +18,8 @@ IUSE="acl doc +locator +netlink nfsv4 nls +man pac python samba selinux sudo sys |
|
|
|
RESTRICT="!test? ( test )" |
|
|
|
|
|
|
|
REQUIRED_USE="pac? ( samba ) |
|
|
|
python? ( ${PYTHON_REQUIRED_USE} )" |
|
|
|
python? ( ${PYTHON_REQUIRED_USE} ) |
|
|
|
test? ( sudo )" |
|
|
|
|
|
|
|
DEPEND=" |
|
|
|
>=app-crypt/mit-krb5-1.10.3 |
|
|
@ -102,10 +103,6 @@ MULTILIB_WRAPPED_HEADERS=( |
|
|
|
/usr/include/sss_certmap.h |
|
|
|
) |
|
|
|
|
|
|
|
PATCHES=( |
|
|
|
"${FILESDIR}"/${P}-test_ca-Look-for-libsofthsm2.so-in-usr-libdir-sofths.patch |
|
|
|
) |
|
|
|
|
|
|
|
pkg_setup() { |
|
|
|
linux-info_pkg_setup |
|
|
|
} |
|
|
@ -150,7 +147,7 @@ multilib_src_configure() { |
|
|
|
--with-unicode-lib="glib2" |
|
|
|
--disable-rpath |
|
|
|
--sbindir=/usr/sbin |
|
|
|
--with-crypto="libcrypto" |
|
|
|
--enable-local-provider |
|
|
|
$(multilib_native_use_with systemd kcm) |
|
|
|
$(multilib_native_use_with systemd secrets) |
|
|
|
$(use_with samba) |
|
|
@ -170,7 +167,6 @@ multilib_src_configure() { |
|
|
|
$(use_enable valgrind) |
|
|
|
--without-python2-bindings |
|
|
|
$(multilib_native_use_with python python3-bindings) |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
# Annoyingly configure requires that you pick systemd XOR sysv |
|
|
@ -189,9 +185,9 @@ multilib_src_configure() { |
|
|
|
{POPT,TALLOC,TDB,TEVENT,LDB}_{CFLAGS,LIBS}=' ' |
|
|
|
# ldb headers are fine since native needs it |
|
|
|
# ldb lib fails... but it does not seem to bother |
|
|
|
{DHASH,COLLECTION,INI_CONFIG_V{0,1,1_1,1_3}}_{CFLAGS,LIBS}=' ' |
|
|
|
{DHASH,INI_CONFIG_V{0,1,1_1,1_3}}_{CFLAGS,LIBS}=' ' |
|
|
|
{PCRE,CARES,SYSTEMD_LOGIN,SASL,GLIB2,DBUS,CRYPTO,P11_KIT}_{CFLAGS,LIBS}=' ' |
|
|
|
{NDR_NBT,SMBCLIENT,NDR_KRB5PAC}_{CFLAGS,LIBS}=' ' |
|
|
|
{NDR_NBT,SAMBA_UTIL,SMBCLIENT,NDR_KRB5PAC}_{CFLAGS,LIBS}=' ' |
|
|
|
|
|
|
|
# use native include path for dbus (needed for build) |
|
|
|
DBUS_CFLAGS="${native_dbus_cflags}" |
|
|
@ -214,7 +210,7 @@ multilib_src_compile() { |
|
|
|
emake update-po |
|
|
|
fi |
|
|
|
else |
|
|
|
emake libnss_sss.la pam_sss.la |
|
|
|
emake libnss_sss.la pam_sss.la pam_sss_gss.la |
|
|
|
use locator && emake sssd_krb5_locator_plugin.la |
|
|
|
use pac && emake sssd_pac_plugin.la |
|
|
|
fi |
|
|
@ -231,6 +227,7 @@ multilib_src_install() { |
|
|
|
else |
|
|
|
# easier than playing with automake... |
|
|
|
dopammod .libs/pam_sss.so |
|
|
|
dopammod .libs/pam_sss_gss.so |
|
|
|
|
|
|
|
into / |
|
|
|
dolib.so .libs/libnss_sss.so* |