mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-01 03:41:11 +02:00
sys-auth/sssd: Modify for CoreOS
Fix the sssd build and add appropriate tmpfiles
This commit is contained in:
parent
5d296a9909
commit
59e690fc69
@ -31,6 +31,7 @@ DEPEND="
|
|||||||
dev-util/boost-build
|
dev-util/boost-build
|
||||||
dev-util/checkbashisms
|
dev-util/checkbashisms
|
||||||
dev-vcs/repo
|
dev-vcs/repo
|
||||||
|
net-dns/bind-tools
|
||||||
net-misc/curl
|
net-misc/curl
|
||||||
sys-apps/debianutils
|
sys-apps/debianutils
|
||||||
sys-apps/iproute2
|
sys-apps/iproute2
|
||||||
|
@ -1,36 +0,0 @@
|
|||||||
diff --git a/Makefile.am b/Makefile.am
|
|
||||||
--- a/Makefile.am
|
|
||||||
+++ b/Makefile.am
|
|
||||||
@@ -313,7 +313,8 @@
|
|
||||||
$(DHASH_LIBS) \
|
|
||||||
$(SSS_CRYPT_LIBS) \
|
|
||||||
$(OPENLDAP_LIBS) \
|
|
||||||
- $(TDB_LIBS)
|
|
||||||
+ $(TDB_LIBS) \
|
|
||||||
+ -lpthread
|
|
||||||
|
|
||||||
PYTHON_BINDINGS_LIBS = \
|
|
||||||
$(TALLOC_LIBS) \
|
|
||||||
@@ -338,7 +339,8 @@
|
|
||||||
$(COLLECTION_LIBS) \
|
|
||||||
$(DHASH_LIBS) \
|
|
||||||
$(OPENLDAP_LIBS) \
|
|
||||||
- $(TDB_LIBS)
|
|
||||||
+ $(TDB_LIBS) \
|
|
||||||
+ -lpthread
|
|
||||||
|
|
||||||
if BUILD_SELINUX
|
|
||||||
PYTHON_BINDINGS_LIBS += $(SELINUX_LIBS)
|
|
||||||
diff --git a/configure.ac b/configure.ac
|
|
||||||
--- a/configure.ac
|
|
||||||
+++ b/configure.ac
|
|
||||||
@@ -18,7 +18,8 @@
|
|
||||||
AM_PROG_CC_C_O
|
|
||||||
AC_DISABLE_STATIC
|
|
||||||
AC_PROG_INSTALL
|
|
||||||
-AC_PROG_LIBTOOL
|
|
||||||
+LT_INIT
|
|
||||||
+AM_PROG_AR
|
|
||||||
AC_CONFIG_MACRO_DIR([m4])
|
|
||||||
AM_GNU_GETTEXT([external])
|
|
||||||
AM_GNU_GETTEXT_VERSION([0.14])
|
|
@ -1,19 +0,0 @@
|
|||||||
--- src/sysv/gentoo/sssd.old 2011-08-02 23:14:48.000000000 +0300
|
|
||||||
+++ src/sysv/gentoo/sssd 2011-08-24 12:15:18.413929409 +0300
|
|
||||||
@@ -1,13 +1,13 @@
|
|
||||||
#!/sbin/runscript
|
|
||||||
|
|
||||||
depend(){
|
|
||||||
- need localmount netmount clock
|
|
||||||
- use syslog
|
|
||||||
+ need localmount netmount clock nscd
|
|
||||||
+ use syslog xdm
|
|
||||||
}
|
|
||||||
|
|
||||||
start(){
|
|
||||||
ebegin "Starting sssd"
|
|
||||||
- start-stop-daemon --start --exec /usr/sbin/sssd -- -D
|
|
||||||
+ start-stop-daemon --start --exec /usr/sbin/sssd -- -Df
|
|
||||||
eend ${?}
|
|
||||||
}
|
|
||||||
|
|
@ -1,46 +0,0 @@
|
|||||||
From 4e78fab6a1b2e9653a7959cbdb7d54bb750041d0 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jakub Hrozek <jhrozek@redhat.com>
|
|
||||||
Date: Mon, 04 Feb 2013 16:30:48 +0000
|
|
||||||
Subject: krb5: include backwards compatible declaration of krb5_trace_info
|
|
||||||
|
|
||||||
krb5-1.10 used to include "struct krb5_trace_info", now krb5-1.11
|
|
||||||
includes a "krb5_trace_info" typedefed from "struct _krb5_trace_info".
|
|
||||||
|
|
||||||
Do the same in the SSSD to allow compiling with both 1.10 and 1.11.
|
|
||||||
---
|
|
||||||
diff --git a/src/external/krb5.m4 b/src/external/krb5.m4
|
|
||||||
index 5bc8711..f1679a1 100644
|
|
||||||
--- a/src/external/krb5.m4
|
|
||||||
+++ b/src/external/krb5.m4
|
|
||||||
@@ -37,7 +37,7 @@ SAVE_LIBS=$LIBS
|
|
||||||
CFLAGS="$CFLAGS $KRB5_CFLAGS"
|
|
||||||
LIBS="$LIBS $KRB5_LIBS"
|
|
||||||
AC_CHECK_HEADERS([krb5.h krb5/krb5.h])
|
|
||||||
-AC_CHECK_TYPES([krb5_ticket_times, krb5_times], [], [],
|
|
||||||
+AC_CHECK_TYPES([krb5_ticket_times, krb5_times, krb5_trace_info], [], [],
|
|
||||||
[ #ifdef HAVE_KRB5_KRB5_H
|
|
||||||
#include <krb5/krb5.h>
|
|
||||||
#else
|
|
||||||
diff --git a/src/util/sss_krb5.c b/src/util/sss_krb5.c
|
|
||||||
index bb61d10..ab0344c 100644
|
|
||||||
--- a/src/util/sss_krb5.c
|
|
||||||
+++ b/src/util/sss_krb5.c
|
|
||||||
@@ -1001,9 +1001,15 @@ sss_krb5_residual_check_type(const char *full_location,
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef HAVE_KRB5_SET_TRACE_CALLBACK
|
|
||||||
+
|
|
||||||
+#ifndef HAVE_KRB5_TRACE_INFO
|
|
||||||
+/* krb5-1.10 had struct krb5_trace_info, 1.11 has type named krb5_trace_info */
|
|
||||||
+typedef struct krb5_trace_info krb5_trace_info;
|
|
||||||
+#endif /* HAVE_KRB5_TRACE_INFO */
|
|
||||||
+
|
|
||||||
static void
|
|
||||||
sss_child_krb5_trace_cb(krb5_context context,
|
|
||||||
- const struct krb5_trace_info *info, void *data)
|
|
||||||
+ const krb5_trace_info *info, void *data)
|
|
||||||
{
|
|
||||||
if (info == NULL) {
|
|
||||||
/* Null info means destroy the callback data. */
|
|
||||||
--
|
|
||||||
cgit v0.9.1
|
|
@ -1,19 +0,0 @@
|
|||||||
--- src/sysv/gentoo/sssd.old 2011-08-02 23:14:48.000000000 +0300
|
|
||||||
+++ src/sysv/gentoo/sssd 2011-08-24 12:15:18.413929409 +0300
|
|
||||||
@@ -1,13 +1,13 @@
|
|
||||||
#!/sbin/runscript
|
|
||||||
|
|
||||||
depend(){
|
|
||||||
- need localmount netmount clock
|
|
||||||
- use syslog
|
|
||||||
+ need localmount netmount clock nscd
|
|
||||||
+ use syslog xdm
|
|
||||||
}
|
|
||||||
|
|
||||||
start(){
|
|
||||||
ebegin "Starting sssd"
|
|
||||||
- start-stop-daemon --start --exec /usr/sbin/sssd -- -D
|
|
||||||
+ start-stop-daemon --start --exec /usr/sbin/sssd -- -Df
|
|
||||||
eend ${?}
|
|
||||||
}
|
|
||||||
|
|
@ -1,28 +0,0 @@
|
|||||||
From 121061115d1902d8298fbe9ebc3f8d081a725934 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Tyler Gates <tgates81@gmail.com>
|
|
||||||
Date: Mon, 20 Jul 2015 17:14:12 -0400
|
|
||||||
Subject: [PATCH] daemon startup options as declared in conf.d/sssd
|
|
||||||
|
|
||||||
---
|
|
||||||
Gentoo bugzilla: https://bugs.gentoo.org/show_bug.cgi?id=553678
|
|
||||||
Upstrem bugzilla: https://fedorahosted.org/sssd/ticket/2722
|
|
||||||
---
|
|
||||||
src/sysv/gentoo/sssd.in | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/src/sysv/gentoo/sssd.in b/src/sysv/gentoo/sssd.in
|
|
||||||
index 30d7559..7ced44f 100644
|
|
||||||
--- a/src/sysv/gentoo/sssd.in
|
|
||||||
+++ b/src/sysv/gentoo/sssd.in
|
|
||||||
@@ -7,7 +7,7 @@ depend(){
|
|
||||||
|
|
||||||
start(){
|
|
||||||
ebegin "Starting sssd"
|
|
||||||
- start-stop-daemon --start --exec @sbindir@/sssd -- -Df
|
|
||||||
+ start-stop-daemon --start --exec @sbindir@/sssd -- -Df ${SSSD_OPTIONS}
|
|
||||||
eend ${?}
|
|
||||||
}
|
|
||||||
|
|
||||||
--
|
|
||||||
2.0.5
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
|||||||
A couple of changes are necessary to make sssd work better on Gentoo Linux
|
|
||||||
systems.
|
|
||||||
|
|
||||||
- login manager can use sssd for login. Therefore it's necessary to adjust
|
|
||||||
the dependencies of the script to use 'xdm' if it is available.
|
|
||||||
- We need to send the debug output to files instead of stderr.
|
|
||||||
|
|
||||||
Upstream:
|
|
||||||
https://git.fedorahosted.org/cgit/sssd.git/commit/?id=c20dbd8f20e08676637ee7fc185ea7882a1f8651
|
|
||||||
https://git.fedorahosted.org/cgit/sssd.git/commit/?id=9882475d3c59f4750a19953bb7d02edab198c900
|
|
||||||
Signed-off-by: Markos Chandras <hwoarang@gentoo.org>
|
|
||||||
|
|
||||||
Index: sssd-1.9.6/src/sysv/gentoo/sssd.in
|
|
||||||
===================================================================
|
|
||||||
--- sssd-1.9.6.orig/src/sysv/gentoo/sssd.in
|
|
||||||
+++ sssd-1.9.6/src/sysv/gentoo/sssd.in
|
|
||||||
@@ -2,12 +2,12 @@
|
|
||||||
|
|
||||||
depend(){
|
|
||||||
need localmount netmount clock
|
|
||||||
- use syslog
|
|
||||||
+ use syslog xdm
|
|
||||||
}
|
|
||||||
|
|
||||||
start(){
|
|
||||||
ebegin "Starting sssd"
|
|
||||||
- start-stop-daemon --start --exec @sbindir@/sssd -- -D
|
|
||||||
+ start-stop-daemon --start --exec @sbindir@/sssd -- -Df
|
|
||||||
eend ${?}
|
|
||||||
}
|
|
||||||
|
|
2
sdk_container/src/third_party/coreos-overlay/sys-auth/sssd/files/tmpfiles.d/sssd.conf
vendored
Normal file
2
sdk_container/src/third_party/coreos-overlay/sys-auth/sssd/files/tmpfiles.d/sssd.conf
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
d /etc/sssd 0700 root root - -
|
||||||
|
C /etc/sssd/sssd.conf - - - - /usr/share/sssd/sssd-example.conf
|
@ -1,139 +0,0 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python2_7 )
|
|
||||||
|
|
||||||
WANT_AUTOMAKE="1.13"
|
|
||||||
|
|
||||||
AUTOTOOLS_IN_SOURCE_BUILD=1
|
|
||||||
AUTOTOOLS_AUTORECONF=1
|
|
||||||
AUTOTOOLS_PRUNE_LIBTOOL_FILES=all
|
|
||||||
|
|
||||||
inherit python-single-r1 multilib pam linux-info autotools-utils systemd
|
|
||||||
|
|
||||||
DESCRIPTION="System Security Services Daemon provides access to identity and authentication"
|
|
||||||
HOMEPAGE="http://fedorahosted.org/sssd/"
|
|
||||||
SRC_URI="http://fedorahosted.org/released/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 ~ppc ~ppc64 x86"
|
|
||||||
IUSE="acl augeas autofs +locator netlink nfsv4 nls +manpages python selinux sudo ssh test"
|
|
||||||
|
|
||||||
COMMON_DEP="
|
|
||||||
virtual/pam
|
|
||||||
>=dev-libs/popt-1.16
|
|
||||||
dev-libs/glib:2
|
|
||||||
>=dev-libs/ding-libs-0.2
|
|
||||||
>=sys-libs/talloc-2.0.7
|
|
||||||
>=sys-libs/tdb-1.2.9
|
|
||||||
>=sys-libs/tevent-0.9.16
|
|
||||||
>=sys-libs/ldb-1.1.17-r1:=
|
|
||||||
>=net-nds/openldap-2.4.30[sasl]
|
|
||||||
>=dev-libs/libpcre-8.30
|
|
||||||
>=app-crypt/mit-krb5-1.10.3
|
|
||||||
>=sys-apps/keyutils-1.5
|
|
||||||
>=net-dns/c-ares-1.7.4
|
|
||||||
>=dev-libs/nss-3.12.9
|
|
||||||
selinux? (
|
|
||||||
>=sys-libs/libselinux-2.1.9
|
|
||||||
>=sys-libs/libsemanage-2.1
|
|
||||||
)
|
|
||||||
>=net-dns/bind-tools-9.9[gssapi]
|
|
||||||
>=dev-libs/cyrus-sasl-2.1.25-r3[kerberos]
|
|
||||||
>=sys-apps/dbus-1.6
|
|
||||||
acl? ( net-fs/cifs-utils[acl] )
|
|
||||||
augeas? ( app-admin/augeas )
|
|
||||||
nfsv4? ( net-libs/libnfsidmap )
|
|
||||||
nls? ( >=sys-devel/gettext-0.18 )
|
|
||||||
virtual/libintl
|
|
||||||
netlink? ( dev-libs/libnl:3 )
|
|
||||||
"
|
|
||||||
|
|
||||||
RDEPEND="${COMMON_DEP}
|
|
||||||
>=sys-libs/glibc-2.17[nscd]
|
|
||||||
selinux? ( >=sec-policy/selinux-sssd-2.20120725-r9 )
|
|
||||||
"
|
|
||||||
DEPEND="${COMMON_DEP}
|
|
||||||
test? ( dev-libs/check )
|
|
||||||
manpages? (
|
|
||||||
>=dev-libs/libxslt-1.1.26
|
|
||||||
app-text/docbook-xml-dtd:4.4
|
|
||||||
)"
|
|
||||||
|
|
||||||
CONFIG_CHECK="~KEYS"
|
|
||||||
|
|
||||||
pkg_setup(){
|
|
||||||
use python && python-single-r1_pkg_setup
|
|
||||||
linux-info_pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
autotools-utils_src_prepare
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure(){
|
|
||||||
# no samba4 per 447022
|
|
||||||
# set initscript to sysv because the systemd option needs systemd to
|
|
||||||
# be installed. We provide our own systemd file anyway.
|
|
||||||
local myeconfargs=(
|
|
||||||
--localstatedir="${EPREFIX}"/var
|
|
||||||
--enable-nsslibdir="${EPREFIX}"/$(get_libdir)
|
|
||||||
--with-plugin-path="${EPREFIX}"/usr/$(get_libdir)/sssd
|
|
||||||
--enable-pammoddir="${EPREFIX}"/$(getpam_mod_dir)
|
|
||||||
--with-ldb-lib-dir="${EPREFIX}"/usr/$(get_libdir)/samba/ldb
|
|
||||||
--without-nscd
|
|
||||||
--with-unicode-lib="glib2"
|
|
||||||
--disable-rpath
|
|
||||||
--disable-silent-rules
|
|
||||||
--sbindir=/usr/sbin
|
|
||||||
--without-samba
|
|
||||||
$(use_enable acl cifs-idmap-plugin)
|
|
||||||
$(use_enable augeas config-lib)
|
|
||||||
$(use_with selinux)
|
|
||||||
$(use_with selinux semanage)
|
|
||||||
$(use_with python python-bindings)
|
|
||||||
$(use_enable locator krb5-locator-plugin)
|
|
||||||
$(use_with nfsv4 nfsv4-idmapd-plugin)
|
|
||||||
$(use_enable nls )
|
|
||||||
$(use_with netlink libnl)
|
|
||||||
$(use_with manpages)
|
|
||||||
$(use_with sudo)
|
|
||||||
$(use_with autofs)
|
|
||||||
$(use_with ssh)
|
|
||||||
--with-crypto="libcrypto"
|
|
||||||
--with-initscript="sysv"
|
|
||||||
)
|
|
||||||
|
|
||||||
autotools-utils_src_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install(){
|
|
||||||
autotools-utils_src_install
|
|
||||||
use python && python_optimize
|
|
||||||
|
|
||||||
insinto /etc/sssd
|
|
||||||
insopts -m600
|
|
||||||
doins "${S}"/src/examples/sssd-example.conf
|
|
||||||
|
|
||||||
insinto /etc/logrotate.d
|
|
||||||
insopts -m644
|
|
||||||
newins "${S}"/src/examples/logrotate sssd
|
|
||||||
|
|
||||||
newconfd "${FILESDIR}"/sssd.conf sssd
|
|
||||||
|
|
||||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
autotools-utils_src_test
|
|
||||||
}
|
|
||||||
|
|
||||||
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"
|
|
||||||
elog "features. Please see howto in http://fedorahosted.org/sssd/wiki/HOWTO_Configure_1_0_2"
|
|
||||||
}
|
|
@ -1,207 +0,0 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
|
||||||
|
|
||||||
WANT_AUTOMAKE="1.13"
|
|
||||||
|
|
||||||
inherit python-single-r1 multilib pam linux-info autotools multilib-minimal systemd toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="System Security Services Daemon provides access to identity and authentication"
|
|
||||||
HOMEPAGE="http://fedorahosted.org/sssd/"
|
|
||||||
SRC_URI="http://fedorahosted.org/released/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
|
|
||||||
IUSE="acl augeas autofs +locator netlink nfsv4 nls +manpages python samba selinux sudo ssh test"
|
|
||||||
|
|
||||||
COMMON_DEP="
|
|
||||||
>=virtual/pam-0-r1[${MULTILIB_USEDEP}]
|
|
||||||
>=dev-libs/popt-1.16
|
|
||||||
dev-libs/glib:2
|
|
||||||
>=dev-libs/ding-libs-0.2
|
|
||||||
>=sys-libs/talloc-2.0.7
|
|
||||||
>=sys-libs/tdb-1.2.9
|
|
||||||
>=sys-libs/tevent-0.9.16
|
|
||||||
>=sys-libs/ldb-1.1.17-r1:=
|
|
||||||
>=net-nds/openldap-2.4.30[sasl]
|
|
||||||
>=dev-libs/libpcre-8.30
|
|
||||||
>=app-crypt/mit-krb5-1.10.3
|
|
||||||
locator? (
|
|
||||||
>=app-crypt/mit-krb5-1.12.2[${MULTILIB_USEDEP}]
|
|
||||||
>=net-dns/c-ares-1.10.0-r1[${MULTILIB_USEDEP}]
|
|
||||||
)
|
|
||||||
>=sys-apps/keyutils-1.5
|
|
||||||
>=net-dns/c-ares-1.7.4
|
|
||||||
>=dev-libs/nss-3.12.9
|
|
||||||
selinux? (
|
|
||||||
>=sys-libs/libselinux-2.1.9
|
|
||||||
>=sys-libs/libsemanage-2.1
|
|
||||||
)
|
|
||||||
>=net-dns/bind-tools-9.9[gssapi]
|
|
||||||
>=dev-libs/cyrus-sasl-2.1.25-r3[kerberos]
|
|
||||||
>=sys-apps/dbus-1.6
|
|
||||||
acl? ( net-fs/cifs-utils[acl] )
|
|
||||||
augeas? ( app-admin/augeas )
|
|
||||||
nfsv4? ( net-libs/libnfsidmap )
|
|
||||||
nls? ( >=sys-devel/gettext-0.18 )
|
|
||||||
virtual/libintl
|
|
||||||
netlink? ( dev-libs/libnl:3 )
|
|
||||||
samba? ( >=net-fs/samba-4.0 )
|
|
||||||
"
|
|
||||||
|
|
||||||
RDEPEND="${COMMON_DEP}
|
|
||||||
>=sys-libs/glibc-2.17[nscd]
|
|
||||||
selinux? ( >=sec-policy/selinux-sssd-2.20120725-r9 )
|
|
||||||
"
|
|
||||||
DEPEND="${COMMON_DEP}
|
|
||||||
test? ( dev-libs/check )
|
|
||||||
manpages? (
|
|
||||||
>=dev-libs/libxslt-1.1.26
|
|
||||||
app-text/docbook-xml-dtd:4.4
|
|
||||||
)"
|
|
||||||
|
|
||||||
CONFIG_CHECK="~KEYS"
|
|
||||||
|
|
||||||
MULTILIB_WRAPPED_HEADERS=(
|
|
||||||
/usr/include/ipa_hbac.h
|
|
||||||
/usr/include/sss_idmap.h
|
|
||||||
/usr/include/sss_nss_idmap.h
|
|
||||||
/usr/include/wbclient_sssd.h
|
|
||||||
# --with-ifp
|
|
||||||
/usr/include/sss_sifp.h
|
|
||||||
/usr/include/sss_sifp_dbus.h
|
|
||||||
)
|
|
||||||
|
|
||||||
pkg_setup(){
|
|
||||||
use python && python-single-r1_pkg_setup
|
|
||||||
linux-info_pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
eautoreconf
|
|
||||||
|
|
||||||
multilib_copy_sources
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local native_dbus_cflags=$($(tc-getPKG_CONFIG) --cflags dbus-1)
|
|
||||||
|
|
||||||
multilib-minimal_src_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_configure() {
|
|
||||||
# set initscript to sysv because the systemd option needs systemd to
|
|
||||||
# be installed. We provide our own systemd file anyway.
|
|
||||||
local myconf=(
|
|
||||||
--localstatedir="${EPREFIX}"/var
|
|
||||||
--enable-nsslibdir="${EPREFIX}"/$(get_libdir)
|
|
||||||
--with-plugin-path="${EPREFIX}"/usr/$(get_libdir)/sssd
|
|
||||||
--enable-pammoddir="${EPREFIX}"/$(getpam_mod_dir)
|
|
||||||
--with-ldb-lib-dir="${EPREFIX}"/usr/$(get_libdir)/samba/ldb
|
|
||||||
--without-nscd
|
|
||||||
--with-unicode-lib="glib2"
|
|
||||||
--disable-rpath
|
|
||||||
--disable-silent-rules
|
|
||||||
--sbindir=/usr/sbin
|
|
||||||
$(multilib_native_use_with samba)
|
|
||||||
$(multilib_native_use_enable acl cifs-idmap-plugin)
|
|
||||||
$(multilib_native_use_enable augeas config-lib)
|
|
||||||
$(multilib_native_use_with selinux)
|
|
||||||
$(multilib_native_use_with selinux semanage)
|
|
||||||
$(multilib_native_use_with python python-bindings)
|
|
||||||
$(use_enable locator krb5-locator-plugin)
|
|
||||||
$(multilib_native_use_with nfsv4 nfsv4-idmapd-plugin)
|
|
||||||
$(use_enable nls )
|
|
||||||
$(multilib_native_use_with netlink libnl)
|
|
||||||
$(multilib_native_use_with manpages)
|
|
||||||
$(multilib_native_use_with sudo)
|
|
||||||
$(multilib_native_use_with autofs)
|
|
||||||
$(multilib_native_use_with ssh)
|
|
||||||
--with-crypto="libcrypto"
|
|
||||||
--with-initscript="sysv"
|
|
||||||
|
|
||||||
KRB5_CONFIG=/usr/bin/${CHOST}-krb5-config
|
|
||||||
)
|
|
||||||
|
|
||||||
if ! multilib_is_native_abi; then
|
|
||||||
# work-around all the libraries that are used for CLI and server
|
|
||||||
myconf+=(
|
|
||||||
{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}}_{CFLAGS,LIBS}=' '
|
|
||||||
{PCRE,CARES,SYSTEMD_LOGIN,SASL,GLIB2,DBUS,CRYPTO}_{CFLAGS,LIBS}=' '
|
|
||||||
|
|
||||||
# use native include path for dbus (needed for build)
|
|
||||||
DBUS_CFLAGS="${native_dbus_cflags}"
|
|
||||||
|
|
||||||
# non-pkgconfig checks
|
|
||||||
ac_cv_lib_ldap_ldap_search=yes
|
|
||||||
)
|
|
||||||
|
|
||||||
use locator || myconf+=(
|
|
||||||
KRB5_CONFIG=/bin/true
|
|
||||||
)
|
|
||||||
fi
|
|
||||||
|
|
||||||
econf "${myconf[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_compile() {
|
|
||||||
if multilib_is_native_abi; then
|
|
||||||
default
|
|
||||||
else
|
|
||||||
emake libnss_sss.la pam_sss.la
|
|
||||||
use locator && emake sssd_krb5_locator_plugin.la
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_install() {
|
|
||||||
if multilib_is_native_abi; then
|
|
||||||
emake -j1 DESTDIR="${D}" "${_at_args[@]}" install
|
|
||||||
else
|
|
||||||
# easier than playing with automake...
|
|
||||||
dopammod .libs/pam_sss.so
|
|
||||||
|
|
||||||
into /
|
|
||||||
dolib .libs/libnss_sss.so*
|
|
||||||
|
|
||||||
if use locator; then
|
|
||||||
exeinto /usr/$(get_libdir)/krb5/plugins/libkrb5
|
|
||||||
doexe .libs/sssd_krb5_locator_plugin.so
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_install_all() {
|
|
||||||
einstalldocs
|
|
||||||
prune_libtool_files --all
|
|
||||||
use python && python_optimize
|
|
||||||
|
|
||||||
insinto /etc/sssd
|
|
||||||
insopts -m600
|
|
||||||
doins "${S}"/src/examples/sssd-example.conf
|
|
||||||
|
|
||||||
insinto /etc/logrotate.d
|
|
||||||
insopts -m644
|
|
||||||
newins "${S}"/src/examples/logrotate sssd
|
|
||||||
|
|
||||||
newconfd "${FILESDIR}"/sssd.conf sssd
|
|
||||||
|
|
||||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_test() {
|
|
||||||
default
|
|
||||||
}
|
|
||||||
|
|
||||||
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"
|
|
||||||
elog "features. Please see howto in http://fedorahosted.org/sssd/wiki/HOWTO_Configure_1_0_2"
|
|
||||||
}
|
|
@ -1,207 +0,0 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
|
||||||
|
|
||||||
WANT_AUTOMAKE="1.13"
|
|
||||||
|
|
||||||
inherit python-single-r1 multilib pam linux-info autotools multilib-minimal systemd toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="System Security Services Daemon provides access to identity and authentication"
|
|
||||||
HOMEPAGE="http://fedorahosted.org/sssd/"
|
|
||||||
SRC_URI="http://fedorahosted.org/released/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
|
|
||||||
IUSE="acl augeas autofs +locator netlink nfsv4 nls +manpages python samba selinux sudo ssh test"
|
|
||||||
|
|
||||||
COMMON_DEP="
|
|
||||||
>=virtual/pam-0-r1[${MULTILIB_USEDEP}]
|
|
||||||
>=dev-libs/popt-1.16
|
|
||||||
dev-libs/glib:2
|
|
||||||
>=dev-libs/ding-libs-0.2
|
|
||||||
>=sys-libs/talloc-2.0.7
|
|
||||||
>=sys-libs/tdb-1.2.9
|
|
||||||
>=sys-libs/tevent-0.9.16
|
|
||||||
>=sys-libs/ldb-1.1.17-r1:=
|
|
||||||
>=net-nds/openldap-2.4.30[sasl]
|
|
||||||
>=dev-libs/libpcre-8.30
|
|
||||||
>=app-crypt/mit-krb5-1.10.3
|
|
||||||
locator? (
|
|
||||||
>=app-crypt/mit-krb5-1.12.2[${MULTILIB_USEDEP}]
|
|
||||||
>=net-dns/c-ares-1.10.0-r1[${MULTILIB_USEDEP}]
|
|
||||||
)
|
|
||||||
>=sys-apps/keyutils-1.5
|
|
||||||
>=net-dns/c-ares-1.7.4
|
|
||||||
>=dev-libs/nss-3.12.9
|
|
||||||
selinux? (
|
|
||||||
>=sys-libs/libselinux-2.1.9
|
|
||||||
>=sys-libs/libsemanage-2.1
|
|
||||||
)
|
|
||||||
>=net-dns/bind-tools-9.9[gssapi]
|
|
||||||
>=dev-libs/cyrus-sasl-2.1.25-r3[kerberos]
|
|
||||||
>=sys-apps/dbus-1.6
|
|
||||||
acl? ( net-fs/cifs-utils[acl] )
|
|
||||||
augeas? ( app-admin/augeas )
|
|
||||||
nfsv4? ( net-libs/libnfsidmap )
|
|
||||||
nls? ( >=sys-devel/gettext-0.18 )
|
|
||||||
virtual/libintl
|
|
||||||
netlink? ( dev-libs/libnl:3 )
|
|
||||||
samba? ( >=net-fs/samba-4.0 )
|
|
||||||
"
|
|
||||||
|
|
||||||
RDEPEND="${COMMON_DEP}
|
|
||||||
>=sys-libs/glibc-2.17[nscd]
|
|
||||||
selinux? ( >=sec-policy/selinux-sssd-2.20120725-r9 )
|
|
||||||
"
|
|
||||||
DEPEND="${COMMON_DEP}
|
|
||||||
test? ( dev-libs/check )
|
|
||||||
manpages? (
|
|
||||||
>=dev-libs/libxslt-1.1.26
|
|
||||||
app-text/docbook-xml-dtd:4.4
|
|
||||||
)"
|
|
||||||
|
|
||||||
CONFIG_CHECK="~KEYS"
|
|
||||||
|
|
||||||
MULTILIB_WRAPPED_HEADERS=(
|
|
||||||
/usr/include/ipa_hbac.h
|
|
||||||
/usr/include/sss_idmap.h
|
|
||||||
/usr/include/sss_nss_idmap.h
|
|
||||||
/usr/include/wbclient_sssd.h
|
|
||||||
# --with-ifp
|
|
||||||
/usr/include/sss_sifp.h
|
|
||||||
/usr/include/sss_sifp_dbus.h
|
|
||||||
)
|
|
||||||
|
|
||||||
pkg_setup(){
|
|
||||||
use python && python-single-r1_pkg_setup
|
|
||||||
linux-info_pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
eautoreconf
|
|
||||||
|
|
||||||
multilib_copy_sources
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local native_dbus_cflags=$($(tc-getPKG_CONFIG) --cflags dbus-1)
|
|
||||||
|
|
||||||
multilib-minimal_src_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_configure() {
|
|
||||||
# set initscript to sysv because the systemd option needs systemd to
|
|
||||||
# be installed. We provide our own systemd file anyway.
|
|
||||||
local myconf=(
|
|
||||||
--localstatedir="${EPREFIX}"/var
|
|
||||||
--enable-nsslibdir="${EPREFIX}"/$(get_libdir)
|
|
||||||
--with-plugin-path="${EPREFIX}"/usr/$(get_libdir)/sssd
|
|
||||||
--enable-pammoddir="${EPREFIX}"/$(getpam_mod_dir)
|
|
||||||
--with-ldb-lib-dir="${EPREFIX}"/usr/$(get_libdir)/samba/ldb
|
|
||||||
--without-nscd
|
|
||||||
--with-unicode-lib="glib2"
|
|
||||||
--disable-rpath
|
|
||||||
--disable-silent-rules
|
|
||||||
--sbindir=/usr/sbin
|
|
||||||
$(multilib_native_use_with samba)
|
|
||||||
$(multilib_native_use_enable acl cifs-idmap-plugin)
|
|
||||||
$(multilib_native_use_enable augeas config-lib)
|
|
||||||
$(multilib_native_use_with selinux)
|
|
||||||
$(multilib_native_use_with selinux semanage)
|
|
||||||
$(multilib_native_use_with python python-bindings)
|
|
||||||
$(use_enable locator krb5-locator-plugin)
|
|
||||||
$(multilib_native_use_with nfsv4 nfsv4-idmapd-plugin)
|
|
||||||
$(use_enable nls )
|
|
||||||
$(multilib_native_use_with netlink libnl)
|
|
||||||
$(multilib_native_use_with manpages)
|
|
||||||
$(multilib_native_use_with sudo)
|
|
||||||
$(multilib_native_use_with autofs)
|
|
||||||
$(multilib_native_use_with ssh)
|
|
||||||
--with-crypto="libcrypto"
|
|
||||||
--with-initscript="sysv"
|
|
||||||
|
|
||||||
KRB5_CONFIG=/usr/bin/${CHOST}-krb5-config
|
|
||||||
)
|
|
||||||
|
|
||||||
if ! multilib_is_native_abi; then
|
|
||||||
# work-around all the libraries that are used for CLI and server
|
|
||||||
myconf+=(
|
|
||||||
{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}}_{CFLAGS,LIBS}=' '
|
|
||||||
{PCRE,CARES,SYSTEMD_LOGIN,SASL,GLIB2,DBUS,CRYPTO}_{CFLAGS,LIBS}=' '
|
|
||||||
|
|
||||||
# use native include path for dbus (needed for build)
|
|
||||||
DBUS_CFLAGS="${native_dbus_cflags}"
|
|
||||||
|
|
||||||
# non-pkgconfig checks
|
|
||||||
ac_cv_lib_ldap_ldap_search=yes
|
|
||||||
)
|
|
||||||
|
|
||||||
use locator || myconf+=(
|
|
||||||
KRB5_CONFIG=/bin/true
|
|
||||||
)
|
|
||||||
fi
|
|
||||||
|
|
||||||
econf "${myconf[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_compile() {
|
|
||||||
if multilib_is_native_abi; then
|
|
||||||
default
|
|
||||||
else
|
|
||||||
emake libnss_sss.la pam_sss.la
|
|
||||||
use locator && emake sssd_krb5_locator_plugin.la
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_install() {
|
|
||||||
if multilib_is_native_abi; then
|
|
||||||
emake -j1 DESTDIR="${D}" "${_at_args[@]}" install
|
|
||||||
else
|
|
||||||
# easier than playing with automake...
|
|
||||||
dopammod .libs/pam_sss.so
|
|
||||||
|
|
||||||
into /
|
|
||||||
dolib .libs/libnss_sss.so*
|
|
||||||
|
|
||||||
if use locator; then
|
|
||||||
exeinto /usr/$(get_libdir)/krb5/plugins/libkrb5
|
|
||||||
doexe .libs/sssd_krb5_locator_plugin.so
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_install_all() {
|
|
||||||
einstalldocs
|
|
||||||
prune_libtool_files --all
|
|
||||||
use python && python_optimize
|
|
||||||
|
|
||||||
insinto /etc/sssd
|
|
||||||
insopts -m600
|
|
||||||
doins "${S}"/src/examples/sssd-example.conf
|
|
||||||
|
|
||||||
insinto /etc/logrotate.d
|
|
||||||
insopts -m644
|
|
||||||
newins "${S}"/src/examples/logrotate sssd
|
|
||||||
|
|
||||||
newconfd "${FILESDIR}"/sssd.conf sssd
|
|
||||||
|
|
||||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_test() {
|
|
||||||
default
|
|
||||||
}
|
|
||||||
|
|
||||||
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"
|
|
||||||
elog "features. Please see howto in http://fedorahosted.org/sssd/wiki/HOWTO_Configure_1_0_2"
|
|
||||||
}
|
|
@ -1,216 +0,0 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
|
||||||
|
|
||||||
inherit eutils multilib pam linux-info autotools multilib-minimal python-r1 systemd toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="System Security Services Daemon provides access to identity and authentication"
|
|
||||||
HOMEPAGE="http://fedorahosted.org/sssd/"
|
|
||||||
SRC_URI="http://fedorahosted.org/released/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
|
|
||||||
IUSE="acl augeas autofs +locator netlink nfsv4 nls +manpages python samba selinux sudo ssh test"
|
|
||||||
|
|
||||||
COMMON_DEP="
|
|
||||||
>=virtual/pam-0-r1[${MULTILIB_USEDEP}]
|
|
||||||
>=dev-libs/popt-1.16
|
|
||||||
dev-libs/glib:2
|
|
||||||
>=dev-libs/ding-libs-0.2
|
|
||||||
>=sys-libs/talloc-2.0.7
|
|
||||||
>=sys-libs/tdb-1.2.9
|
|
||||||
>=sys-libs/tevent-0.9.16
|
|
||||||
>=sys-libs/ldb-1.1.17-r1:=
|
|
||||||
>=net-nds/openldap-2.4.30[sasl]
|
|
||||||
>=dev-libs/libpcre-8.30
|
|
||||||
>=app-crypt/mit-krb5-1.10.3
|
|
||||||
locator? (
|
|
||||||
>=app-crypt/mit-krb5-1.12.2[${MULTILIB_USEDEP}]
|
|
||||||
>=net-dns/c-ares-1.10.0-r1[${MULTILIB_USEDEP}]
|
|
||||||
)
|
|
||||||
>=sys-apps/keyutils-1.5
|
|
||||||
>=net-dns/c-ares-1.7.4
|
|
||||||
>=dev-libs/nss-3.12.9
|
|
||||||
selinux? (
|
|
||||||
>=sys-libs/libselinux-2.1.9
|
|
||||||
>=sys-libs/libsemanage-2.1
|
|
||||||
)
|
|
||||||
>=net-dns/bind-tools-9.9[gssapi]
|
|
||||||
>=dev-libs/cyrus-sasl-2.1.25-r3[kerberos]
|
|
||||||
>=sys-apps/dbus-1.6
|
|
||||||
acl? ( net-fs/cifs-utils[acl] )
|
|
||||||
augeas? ( app-admin/augeas )
|
|
||||||
nfsv4? ( net-libs/libnfsidmap )
|
|
||||||
nls? ( >=sys-devel/gettext-0.18 )
|
|
||||||
virtual/libintl
|
|
||||||
netlink? ( dev-libs/libnl:3 )
|
|
||||||
samba? ( >=net-fs/samba-4.0 )
|
|
||||||
"
|
|
||||||
|
|
||||||
RDEPEND="${COMMON_DEP}
|
|
||||||
>=sys-libs/glibc-2.17[nscd]
|
|
||||||
selinux? ( >=sec-policy/selinux-sssd-2.20120725-r9 )
|
|
||||||
"
|
|
||||||
DEPEND="${COMMON_DEP}
|
|
||||||
test? ( dev-libs/check )
|
|
||||||
manpages? (
|
|
||||||
>=dev-libs/libxslt-1.1.26
|
|
||||||
app-text/docbook-xml-dtd:4.4
|
|
||||||
)"
|
|
||||||
|
|
||||||
CONFIG_CHECK="~KEYS"
|
|
||||||
|
|
||||||
MULTILIB_WRAPPED_HEADERS=(
|
|
||||||
/usr/include/ipa_hbac.h
|
|
||||||
/usr/include/sss_idmap.h
|
|
||||||
/usr/include/sss_nss_idmap.h
|
|
||||||
/usr/include/wbclient_sssd.h
|
|
||||||
# --with-ifp
|
|
||||||
/usr/include/sss_sifp.h
|
|
||||||
/usr/include/sss_sifp_dbus.h
|
|
||||||
)
|
|
||||||
|
|
||||||
pkg_setup(){
|
|
||||||
linux-info_pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# bug #553678
|
|
||||||
epatch "${FILESDIR}"/${P}-fix-init.patch
|
|
||||||
|
|
||||||
eautoreconf
|
|
||||||
|
|
||||||
multilib_copy_sources
|
|
||||||
|
|
||||||
# Maybe run it before eautoreconf?
|
|
||||||
epatch_user
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local native_dbus_cflags=$($(tc-getPKG_CONFIG) --cflags dbus-1)
|
|
||||||
|
|
||||||
multilib-minimal_src_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_configure() {
|
|
||||||
# set initscript to sysv because the systemd option needs systemd to
|
|
||||||
# be installed. We provide our own systemd file anyway.
|
|
||||||
local myconf=()
|
|
||||||
if [[ "${PYTHON_TARGETS}" == *python2* ]]; then
|
|
||||||
myconf+=($(multilib_native_use_with python python2-bindings))
|
|
||||||
fi
|
|
||||||
if [[ "${PYTHON_TARGETS}" == *python3* ]]; then
|
|
||||||
myconf+=($(multilib_native_use_with python python3-bindings))
|
|
||||||
fi
|
|
||||||
|
|
||||||
myconf+=(
|
|
||||||
--localstatedir="${EPREFIX}"/var
|
|
||||||
--enable-nsslibdir="${EPREFIX}"/$(get_libdir)
|
|
||||||
--with-plugin-path="${EPREFIX}"/usr/$(get_libdir)/sssd
|
|
||||||
--enable-pammoddir="${EPREFIX}"/$(getpam_mod_dir)
|
|
||||||
--with-ldb-lib-dir="${EPREFIX}"/usr/$(get_libdir)/samba/ldb
|
|
||||||
--without-nscd
|
|
||||||
--with-unicode-lib="glib2"
|
|
||||||
--disable-rpath
|
|
||||||
--disable-silent-rules
|
|
||||||
--sbindir=/usr/sbin
|
|
||||||
$(multilib_native_use_with samba)
|
|
||||||
$(multilib_native_use_enable acl cifs-idmap-plugin)
|
|
||||||
$(multilib_native_use_enable augeas config-lib)
|
|
||||||
$(multilib_native_use_with selinux)
|
|
||||||
$(multilib_native_use_with selinux semanage)
|
|
||||||
$(use_enable locator krb5-locator-plugin)
|
|
||||||
$(multilib_native_use_with nfsv4 nfsv4-idmapd-plugin)
|
|
||||||
$(use_enable nls )
|
|
||||||
$(multilib_native_use_with netlink libnl)
|
|
||||||
$(multilib_native_use_with manpages)
|
|
||||||
$(multilib_native_use_with sudo)
|
|
||||||
$(multilib_native_use_with autofs)
|
|
||||||
$(multilib_native_use_with ssh)
|
|
||||||
--with-crypto="libcrypto"
|
|
||||||
--with-initscript="sysv"
|
|
||||||
|
|
||||||
KRB5_CONFIG=/usr/bin/${CHOST}-krb5-config
|
|
||||||
)
|
|
||||||
|
|
||||||
if ! multilib_is_native_abi; then
|
|
||||||
# work-around all the libraries that are used for CLI and server
|
|
||||||
myconf+=(
|
|
||||||
{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}}_{CFLAGS,LIBS}=' '
|
|
||||||
{PCRE,CARES,SYSTEMD_LOGIN,SASL,GLIB2,DBUS,CRYPTO}_{CFLAGS,LIBS}=' '
|
|
||||||
|
|
||||||
# use native include path for dbus (needed for build)
|
|
||||||
DBUS_CFLAGS="${native_dbus_cflags}"
|
|
||||||
|
|
||||||
# non-pkgconfig checks
|
|
||||||
ac_cv_lib_ldap_ldap_search=yes
|
|
||||||
)
|
|
||||||
|
|
||||||
use locator || myconf+=(
|
|
||||||
KRB5_CONFIG=/bin/true
|
|
||||||
)
|
|
||||||
fi
|
|
||||||
|
|
||||||
econf "${myconf[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_compile() {
|
|
||||||
if multilib_is_native_abi; then
|
|
||||||
default
|
|
||||||
else
|
|
||||||
emake libnss_sss.la pam_sss.la
|
|
||||||
use locator && emake sssd_krb5_locator_plugin.la
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_install() {
|
|
||||||
if multilib_is_native_abi; then
|
|
||||||
emake -j1 DESTDIR="${D}" "${_at_args[@]}" install
|
|
||||||
else
|
|
||||||
# easier than playing with automake...
|
|
||||||
dopammod .libs/pam_sss.so
|
|
||||||
|
|
||||||
into /
|
|
||||||
dolib .libs/libnss_sss.so*
|
|
||||||
|
|
||||||
if use locator; then
|
|
||||||
exeinto /usr/$(get_libdir)/krb5/plugins/libkrb5
|
|
||||||
doexe .libs/sssd_krb5_locator_plugin.so
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_install_all() {
|
|
||||||
einstalldocs
|
|
||||||
prune_libtool_files --all
|
|
||||||
|
|
||||||
insinto /etc/sssd
|
|
||||||
insopts -m600
|
|
||||||
doins "${S}"/src/examples/sssd-example.conf
|
|
||||||
|
|
||||||
insinto /etc/logrotate.d
|
|
||||||
insopts -m644
|
|
||||||
newins "${S}"/src/examples/logrotate sssd
|
|
||||||
|
|
||||||
newconfd "${FILESDIR}"/sssd.conf sssd
|
|
||||||
|
|
||||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_test() {
|
|
||||||
default
|
|
||||||
}
|
|
||||||
|
|
||||||
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"
|
|
||||||
elog "features. Please see howto in http://fedorahosted.org/sssd/wiki/HOWTO_Configure_1_0_2"
|
|
||||||
}
|
|
@ -95,16 +95,6 @@ src_configure() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
multilib_src_configure() {
|
multilib_src_configure() {
|
||||||
# set initscript to sysv because the systemd option needs systemd to
|
|
||||||
# be installed. We provide our own systemd file anyway.
|
|
||||||
local myconf=()
|
|
||||||
if [[ "${PYTHON_TARGETS}" == *python2* ]]; then
|
|
||||||
myconf+=($(multilib_native_use_with python python2-bindings))
|
|
||||||
fi
|
|
||||||
if [[ "${PYTHON_TARGETS}" == *python3* ]]; then
|
|
||||||
myconf+=($(multilib_native_use_with python python3-bindings))
|
|
||||||
fi
|
|
||||||
|
|
||||||
myconf+=(
|
myconf+=(
|
||||||
--localstatedir="${EPREFIX}"/var
|
--localstatedir="${EPREFIX}"/var
|
||||||
--enable-nsslibdir="${EPREFIX}"/$(get_libdir)
|
--enable-nsslibdir="${EPREFIX}"/$(get_libdir)
|
||||||
@ -131,8 +121,9 @@ multilib_src_configure() {
|
|||||||
$(multilib_native_use_with ssh)
|
$(multilib_native_use_with ssh)
|
||||||
--with-crypto="libcrypto"
|
--with-crypto="libcrypto"
|
||||||
--with-initscript="sysv"
|
--with-initscript="sysv"
|
||||||
|
--without-python2-bindings
|
||||||
KRB5_CONFIG=/usr/bin/${CHOST}-krb5-config
|
--without-python3-bindings
|
||||||
|
KRB5_CONFIG=${ROOT}/usr/bin/${CHOST}-krb5-config
|
||||||
)
|
)
|
||||||
|
|
||||||
if ! multilib_is_native_abi; then
|
if ! multilib_is_native_abi; then
|
||||||
@ -170,7 +161,7 @@ multilib_src_compile() {
|
|||||||
|
|
||||||
multilib_src_install() {
|
multilib_src_install() {
|
||||||
if multilib_is_native_abi; then
|
if multilib_is_native_abi; then
|
||||||
emake -j1 DESTDIR="${D}" "${_at_args[@]}" install
|
emake -j1 DESTDIR="${D}" sysconfdir="/usr/share" "${_at_args[@]}" install
|
||||||
else
|
else
|
||||||
# easier than playing with automake...
|
# easier than playing with automake...
|
||||||
dopammod .libs/pam_sss.so
|
dopammod .libs/pam_sss.so
|
||||||
@ -189,17 +180,13 @@ multilib_src_install_all() {
|
|||||||
einstalldocs
|
einstalldocs
|
||||||
prune_libtool_files --all
|
prune_libtool_files --all
|
||||||
|
|
||||||
insinto /etc/sssd
|
insinto /usr/share/sssd
|
||||||
insopts -m600
|
insopts -m600
|
||||||
doins "${S}"/src/examples/sssd-example.conf
|
doins "${S}"/src/examples/sssd-example.conf
|
||||||
|
|
||||||
insinto /etc/logrotate.d
|
|
||||||
insopts -m644
|
|
||||||
newins "${S}"/src/examples/logrotate sssd
|
|
||||||
|
|
||||||
newconfd "${FILESDIR}"/sssd.conf sssd
|
|
||||||
|
|
||||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||||
|
systemd_dotmpfilesd "${FILESDIR}/tmpfiles.d/sssd.conf"
|
||||||
|
rm -rf "${D}/etc/rc.d"
|
||||||
}
|
}
|
||||||
|
|
||||||
multilib_src_test() {
|
multilib_src_test() {
|
||||||
|
@ -1,133 +0,0 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python2_7 )
|
|
||||||
|
|
||||||
AUTOTOOLS_IN_SOURCE_BUILD=1
|
|
||||||
AUTOTOOLS_AUTORECONF=1
|
|
||||||
AUTOTOOLS_PRUNE_LIBTOOL_FILES=all
|
|
||||||
|
|
||||||
inherit python-single-r1 multilib pam linux-info autotools-utils systemd
|
|
||||||
|
|
||||||
DESCRIPTION="System Security Services Daemon provides access to identity and authentication"
|
|
||||||
HOMEPAGE="http://fedorahosted.org/sssd/"
|
|
||||||
SRC_URI="http://fedorahosted.org/released/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
|
||||||
IUSE="autofs doc +locator netlink nls +manpages python selinux sudo ssh test"
|
|
||||||
|
|
||||||
COMMON_DEP="
|
|
||||||
virtual/pam
|
|
||||||
>=dev-libs/popt-1.16
|
|
||||||
dev-libs/glib:2
|
|
||||||
>=dev-libs/ding-libs-0.2
|
|
||||||
>=sys-libs/talloc-2.0.7
|
|
||||||
>=sys-libs/tdb-1.2.9
|
|
||||||
>=sys-libs/tevent-0.9.16
|
|
||||||
>=sys-libs/ldb-1.1.17-r1:=
|
|
||||||
>=net-nds/openldap-2.4.30[sasl]
|
|
||||||
>=dev-libs/libpcre-8.30
|
|
||||||
>=app-crypt/mit-krb5-1.10.3
|
|
||||||
>=sys-apps/keyutils-1.5
|
|
||||||
>=net-dns/c-ares-1.7.4
|
|
||||||
>=dev-libs/nss-3.12.9
|
|
||||||
selinux? (
|
|
||||||
>=sys-libs/libselinux-2.1.9
|
|
||||||
>=sys-libs/libsemanage-2.1
|
|
||||||
>=sec-policy/selinux-sssd-2.20120725-r9
|
|
||||||
)
|
|
||||||
>=net-dns/bind-tools-9.9[gssapi]
|
|
||||||
>=dev-libs/cyrus-sasl-2.1.25-r3[kerberos]
|
|
||||||
>=sys-apps/dbus-1.6
|
|
||||||
nls? ( >=sys-devel/gettext-0.18 )
|
|
||||||
virtual/libintl
|
|
||||||
netlink? ( dev-libs/libnl:3 )
|
|
||||||
"
|
|
||||||
|
|
||||||
RDEPEND="${COMMON_DEP}
|
|
||||||
|| ( <=sys-libs/glibc-2.16.9999 >=sys-libs/glibc-2.17[nscd] )
|
|
||||||
"
|
|
||||||
DEPEND="${COMMON_DEP}
|
|
||||||
test? ( dev-libs/check )
|
|
||||||
manpages? (
|
|
||||||
>=dev-libs/libxslt-1.1.26
|
|
||||||
app-text/docbook-xml-dtd:4.4
|
|
||||||
)
|
|
||||||
doc? ( app-doc/doxygen )"
|
|
||||||
|
|
||||||
CONFIG_CHECK="~KEYS"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}"/${P}*.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
pkg_setup(){
|
|
||||||
use python && python-single-r1_pkg_setup
|
|
||||||
linux-info_pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
autotools-utils_src_prepare
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure(){
|
|
||||||
local myeconfargs=(
|
|
||||||
--localstatedir="${EPREFIX}"/var
|
|
||||||
--enable-nsslibdir="${EPREFIX}"/$(get_libdir)
|
|
||||||
--with-plugin-path="${EPREFIX}"/usr/$(get_libdir)/sssd
|
|
||||||
--enable-pammoddir="${EPREFIX}"/$(getpam_mod_dir)
|
|
||||||
--with-ldb-lib-dir="${EPREFIX}"/usr/$(get_libdir)/samba/ldb
|
|
||||||
--without-nscd
|
|
||||||
--with-unicode-lib="glib2"
|
|
||||||
--disable-rpath
|
|
||||||
--disable-silent-rules
|
|
||||||
--sbindir=/usr/sbin
|
|
||||||
$(use_with selinux)
|
|
||||||
$(use_with selinux semanage)
|
|
||||||
$(use_with python python-bindings)
|
|
||||||
$(use_enable locator krb5-locator-plugin)
|
|
||||||
$(use_enable nls )
|
|
||||||
$(use_with netlink libnl)
|
|
||||||
$(use_with manpages)
|
|
||||||
$(use_with sudo)
|
|
||||||
$(use_with autofs)
|
|
||||||
$(use_with ssh)
|
|
||||||
--with-crypto="libcrypto"
|
|
||||||
--with-initscript="sysv"
|
|
||||||
)
|
|
||||||
|
|
||||||
autotools-utils_src_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install(){
|
|
||||||
autotools-utils_src_install
|
|
||||||
use python && python_optimize
|
|
||||||
|
|
||||||
insinto /etc/sssd
|
|
||||||
insopts -m600
|
|
||||||
doins "${S}"/src/examples/sssd-example.conf
|
|
||||||
|
|
||||||
insinto /etc/logrotate.d
|
|
||||||
insopts -m644
|
|
||||||
newins "${S}"/src/examples/logrotate sssd
|
|
||||||
|
|
||||||
newconfd "${FILESDIR}"/sssd.conf sssd
|
|
||||||
|
|
||||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
autotools-utils_src_test
|
|
||||||
}
|
|
||||||
|
|
||||||
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"
|
|
||||||
elog "features. Please see howto in http://fedorahosted.org/sssd/wiki/HOWTO_Configure_1_0_2"
|
|
||||||
}
|
|
@ -1,133 +0,0 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
# $Id$
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python2_7 )
|
|
||||||
|
|
||||||
AUTOTOOLS_IN_SOURCE_BUILD=1
|
|
||||||
AUTOTOOLS_AUTORECONF=1
|
|
||||||
AUTOTOOLS_PRUNE_LIBTOOL_FILES=all
|
|
||||||
|
|
||||||
inherit python-single-r1 multilib pam linux-info autotools-utils systemd
|
|
||||||
|
|
||||||
DESCRIPTION="System Security Services Daemon provides access to identity and authentication"
|
|
||||||
HOMEPAGE="http://fedorahosted.org/sssd/"
|
|
||||||
SRC_URI="http://fedorahosted.org/released/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
|
||||||
IUSE="autofs doc +locator netlink nls +manpages python selinux sudo ssh test"
|
|
||||||
|
|
||||||
COMMON_DEP="
|
|
||||||
virtual/pam
|
|
||||||
>=dev-libs/popt-1.16
|
|
||||||
dev-libs/glib:2
|
|
||||||
>=dev-libs/ding-libs-0.2
|
|
||||||
>=sys-libs/talloc-2.0.7
|
|
||||||
>=sys-libs/tdb-1.2.9
|
|
||||||
>=sys-libs/tevent-0.9.16
|
|
||||||
>=sys-libs/ldb-1.1.17-r1:=
|
|
||||||
>=net-nds/openldap-2.4.30[sasl]
|
|
||||||
>=dev-libs/libpcre-8.30
|
|
||||||
>=app-crypt/mit-krb5-1.10.3
|
|
||||||
>=sys-apps/keyutils-1.5
|
|
||||||
>=net-dns/c-ares-1.7.4
|
|
||||||
>=dev-libs/nss-3.12.9
|
|
||||||
selinux? (
|
|
||||||
>=sys-libs/libselinux-2.1.9
|
|
||||||
>=sys-libs/libsemanage-2.1
|
|
||||||
>=sec-policy/selinux-sssd-2.20120725-r9
|
|
||||||
)
|
|
||||||
>=net-dns/bind-tools-9.9[gssapi]
|
|
||||||
>=dev-libs/cyrus-sasl-2.1.25-r3[kerberos]
|
|
||||||
>=sys-apps/dbus-1.6
|
|
||||||
nls? ( >=sys-devel/gettext-0.18 )
|
|
||||||
virtual/libintl
|
|
||||||
netlink? ( dev-libs/libnl:3 )
|
|
||||||
"
|
|
||||||
|
|
||||||
RDEPEND="${COMMON_DEP}
|
|
||||||
|| ( <=sys-libs/glibc-2.16.9999 >=sys-libs/glibc-2.17[nscd] )
|
|
||||||
"
|
|
||||||
DEPEND="${COMMON_DEP}
|
|
||||||
test? ( dev-libs/check )
|
|
||||||
manpages? (
|
|
||||||
>=dev-libs/libxslt-1.1.26
|
|
||||||
app-text/docbook-xml-dtd:4.4
|
|
||||||
)
|
|
||||||
doc? ( app-doc/doxygen )"
|
|
||||||
|
|
||||||
CONFIG_CHECK="~KEYS"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}"/${PN}-1.9.6-fix-init.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
pkg_setup(){
|
|
||||||
use python && python-single-r1_pkg_setup
|
|
||||||
linux-info_pkg_setup
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
autotools-utils_src_prepare
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure(){
|
|
||||||
local myeconfargs=(
|
|
||||||
--localstatedir="${EPREFIX}"/var
|
|
||||||
--enable-nsslibdir="${EPREFIX}"/$(get_libdir)
|
|
||||||
--with-plugin-path="${EPREFIX}"/usr/$(get_libdir)/sssd
|
|
||||||
--enable-pammoddir="${EPREFIX}"/$(getpam_mod_dir)
|
|
||||||
--with-ldb-lib-dir="${EPREFIX}"/usr/$(get_libdir)/samba/ldb
|
|
||||||
--without-nscd
|
|
||||||
--with-unicode-lib="glib2"
|
|
||||||
--disable-rpath
|
|
||||||
--disable-silent-rules
|
|
||||||
--sbindir=/usr/sbin
|
|
||||||
$(use_with selinux)
|
|
||||||
$(use_with selinux semanage)
|
|
||||||
$(use_with python python-bindings)
|
|
||||||
$(use_enable locator krb5-locator-plugin)
|
|
||||||
$(use_enable nls )
|
|
||||||
$(use_with netlink libnl)
|
|
||||||
$(use_with manpages)
|
|
||||||
$(use_with sudo)
|
|
||||||
$(use_with autofs)
|
|
||||||
$(use_with ssh)
|
|
||||||
--with-crypto="libcrypto"
|
|
||||||
--with-initscript="sysv"
|
|
||||||
)
|
|
||||||
|
|
||||||
autotools-utils_src_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install(){
|
|
||||||
autotools-utils_src_install
|
|
||||||
use python && python_optimize
|
|
||||||
|
|
||||||
insinto /etc/sssd
|
|
||||||
insopts -m600
|
|
||||||
doins "${S}"/src/examples/sssd-example.conf
|
|
||||||
|
|
||||||
insinto /etc/logrotate.d
|
|
||||||
insopts -m644
|
|
||||||
newins "${S}"/src/examples/logrotate sssd
|
|
||||||
|
|
||||||
newconfd "${FILESDIR}"/sssd.conf sssd
|
|
||||||
|
|
||||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
autotools-utils_src_test
|
|
||||||
}
|
|
||||||
|
|
||||||
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"
|
|
||||||
elog "features. Please see howto in http://fedorahosted.org/sssd/wiki/HOWTO_Configure_1_0_2"
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user