1 |
commit: 260b44215dc84bfc71a753b949ff70860efb22ea |
2 |
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 1 07:25:24 2019 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 1 07:25:24 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=260b4421 |
7 |
|
8 |
sys-auth/sssd: Version bump (v2.2.2) |
9 |
|
10 |
Package-Manager: Portage-2.3.76, Repoman-2.3.16 |
11 |
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org> |
12 |
|
13 |
sys-auth/sssd/Manifest | 1 + |
14 |
sys-auth/sssd/sssd-2.2.2.ebuild | 230 ++++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 231 insertions(+) |
16 |
|
17 |
diff --git a/sys-auth/sssd/Manifest b/sys-auth/sssd/Manifest |
18 |
index 41e24f35e74..33eb6cb32af 100644 |
19 |
--- a/sys-auth/sssd/Manifest |
20 |
+++ b/sys-auth/sssd/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST sssd-1.16.3.tar.gz 6217114 BLAKE2B eefaf8de466d0d76e9a4b60aefef6eb63c17a55b9a1f2e07e973a61d71cbe5432e92357656a1eb353d45bbc2fa92290cef45898d0b315d4a4c4074652ff25a23 SHA512 6165923f652f624bbe3ddc625ae682c4867eb7a20652d0cf74bbb8dda2307c917d3189ede26fd21a4fb5fd5926149271a65fa09f3affe928029ed99e6422b728 |
23 |
DIST sssd-2.1.0.tar.gz 6463331 BLAKE2B 9226370dc384c58841d944bdf9b067d953bf138ee7a289f01a4b8bb5d09beee3b9f21609989123d8f4f9fc13237670d61e32dcb194555ddc6785c598ce78d08c SHA512 12a7e5b89d462350af3c43e15b24a437dd985ac4a2e419d5e52cc0d05c6eacb9319d39b23681595ef860120cd1ae6e5fb265054afeddcb05d3d5f5de5d6ffa63 |
24 |
DIST sssd-2.2.0.tar.gz 6642715 BLAKE2B e6c16ca69effe59769fc166c02203faee445ebe2bf551c6a1460bdee2474ccbce1a38b3aa59b1ae4a79bb170696a784b800a9299025bf6a58bc9aeb94b946338 SHA512 9ebd8784e1f0c72cb808bbc153c0b0aa9bf507938f78336a260073a89b49350dc2c6172653509738ea7a50bb9da596725e1d6c92f99c7a03308aa42f6378dbbb |
25 |
+DIST sssd-2.2.2.tar.gz 6767578 BLAKE2B e0eedaf1da1de953903730c96479af0709ee14dd83eca82a11316dc96c29573b5f3de5965f386d5c12a69e7d98b6168c9d197bbd46ac51f0122feababe52dfe1 SHA512 4cce8fdbcc05d1469dad5ba987cb0f9bc33702b37f85e8e248975461bb50b0740fec92ff213bdb640b506405be7ead936ff253ab02d4a27205ddf20cc0e54801 |
26 |
|
27 |
diff --git a/sys-auth/sssd/sssd-2.2.2.ebuild b/sys-auth/sssd/sssd-2.2.2.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..e89158a5090 |
30 |
--- /dev/null |
31 |
+++ b/sys-auth/sssd/sssd-2.2.2.ebuild |
32 |
@@ -0,0 +1,230 @@ |
33 |
+# Copyright 1999-2019 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+inherit autotools flag-o-matic linux-info multilib-minimal pam systemd toolchain-funcs |
39 |
+ |
40 |
+DESCRIPTION="System Security Services Daemon provides access to identity and authentication" |
41 |
+HOMEPAGE="https://pagure.io/SSSD/sssd" |
42 |
+SRC_URI="http://releases.pagure.org/SSSD/${PN}/${P}.tar.gz" |
43 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
44 |
+ |
45 |
+LICENSE="GPL-3" |
46 |
+SLOT="0" |
47 |
+IUSE="acl autofs +locator +netlink nfsv4 nls +manpages samba selinux sudo ssh test" |
48 |
+ |
49 |
+COMMON_DEP=" |
50 |
+ >=sys-libs/pam-0-r1[${MULTILIB_USEDEP}] |
51 |
+ >=dev-libs/popt-1.16 |
52 |
+ dev-libs/glib:2 |
53 |
+ >=dev-libs/ding-libs-0.2 |
54 |
+ >=sys-libs/talloc-2.0.7 |
55 |
+ >=sys-libs/tdb-1.2.9 |
56 |
+ >=sys-libs/tevent-0.9.16 |
57 |
+ >=sys-libs/ldb-1.1.17-r1:= |
58 |
+ >=net-nds/openldap-2.4.30[sasl] |
59 |
+ net-libs/http-parser |
60 |
+ >=dev-libs/libpcre-8.30 |
61 |
+ >=app-crypt/mit-krb5-1.10.3 |
62 |
+ dev-libs/jansson |
63 |
+ net-misc/curl |
64 |
+ locator? ( |
65 |
+ >=app-crypt/mit-krb5-1.12.2[${MULTILIB_USEDEP}] |
66 |
+ >=net-dns/c-ares-1.10.0-r1[${MULTILIB_USEDEP}] |
67 |
+ ) |
68 |
+ >=sys-apps/keyutils-1.5:= |
69 |
+ >=net-dns/c-ares-1.7.4 |
70 |
+ >=dev-libs/nss-3.12.9 |
71 |
+ selinux? ( |
72 |
+ >=sys-libs/libselinux-2.1.9 |
73 |
+ >=sys-libs/libsemanage-2.1 |
74 |
+ ) |
75 |
+ >=net-dns/bind-tools-9.9[gssapi] |
76 |
+ >=dev-libs/cyrus-sasl-2.1.25-r3[kerberos] |
77 |
+ >=sys-apps/dbus-1.6 |
78 |
+ acl? ( net-fs/cifs-utils[acl] ) |
79 |
+ nfsv4? ( || ( >=net-fs/nfs-utils-2.3.1-r2 net-libs/libnfsidmap ) ) |
80 |
+ nls? ( >=sys-devel/gettext-0.18 ) |
81 |
+ virtual/libintl |
82 |
+ netlink? ( dev-libs/libnl:3 ) |
83 |
+ samba? ( >=net-fs/samba-4.10.2[winbind] ) |
84 |
+ " |
85 |
+ |
86 |
+RDEPEND="${COMMON_DEP} |
87 |
+ >=sys-libs/glibc-2.17[nscd] |
88 |
+ selinux? ( >=sec-policy/selinux-sssd-2.20120725-r9 ) |
89 |
+ " |
90 |
+DEPEND="${COMMON_DEP} |
91 |
+ test? ( dev-libs/check ) |
92 |
+ manpages? ( |
93 |
+ >=dev-libs/libxslt-1.1.26 |
94 |
+ app-text/docbook-xml-dtd:4.4 |
95 |
+ )" |
96 |
+ |
97 |
+CONFIG_CHECK="~KEYS" |
98 |
+ |
99 |
+MULTILIB_WRAPPED_HEADERS=( |
100 |
+ /usr/include/ipa_hbac.h |
101 |
+ /usr/include/sss_idmap.h |
102 |
+ /usr/include/sss_nss_idmap.h |
103 |
+ /usr/include/wbclient_sssd.h |
104 |
+ # --with-ifp |
105 |
+ /usr/include/sss_sifp.h |
106 |
+ /usr/include/sss_sifp_dbus.h |
107 |
+ # from 1.15.3 |
108 |
+ /usr/include/sss_certmap.h |
109 |
+) |
110 |
+ |
111 |
+pkg_setup(){ |
112 |
+ linux-info_pkg_setup |
113 |
+} |
114 |
+ |
115 |
+src_prepare() { |
116 |
+ sed -i 's:#!/sbin/runscript:#!/sbin/openrc-run:' \ |
117 |
+ "${S}"/src/sysv/gentoo/sssd.in || die "sed sssd.in" |
118 |
+ |
119 |
+ default |
120 |
+ eautoreconf |
121 |
+ multilib_copy_sources |
122 |
+} |
123 |
+ |
124 |
+src_configure() { |
125 |
+ local native_dbus_cflags=$($(tc-getPKG_CONFIG) --cflags dbus-1) |
126 |
+ |
127 |
+ multilib-minimal_src_configure |
128 |
+} |
129 |
+ |
130 |
+multilib_src_configure() { |
131 |
+ # set initscript to sysv because the systemd option needs systemd to |
132 |
+ # be installed. We provide our own systemd file anyway. |
133 |
+ local myconf=() |
134 |
+ #Work around linker dependency problem. |
135 |
+ append-ldflags "-Wl,--allow-shlib-undefined" |
136 |
+ |
137 |
+ myconf+=( |
138 |
+ --localstatedir="${EPREFIX}"/var |
139 |
+ --enable-nsslibdir="${EPREFIX}"/$(get_libdir) |
140 |
+ --with-plugin-path="${EPREFIX}"/usr/$(get_libdir)/sssd |
141 |
+ --enable-pammoddir="${EPREFIX}"/$(getpam_mod_dir) |
142 |
+ --with-ldb-lib-dir="${EPREFIX}"/usr/$(get_libdir)/samba/ldb |
143 |
+ --with-os=gentoo |
144 |
+ --with-nscd |
145 |
+ --with-unicode-lib="glib2" |
146 |
+ --disable-rpath |
147 |
+ --disable-silent-rules |
148 |
+ --sbindir=/usr/sbin |
149 |
+ --without-kcm |
150 |
+ $(use_with samba libwbclient) |
151 |
+ --with-secrets |
152 |
+ $(multilib_native_use_with samba) |
153 |
+ $(multilib_native_use_enable acl cifs-idmap-plugin) |
154 |
+ $(multilib_native_use_with selinux) |
155 |
+ $(multilib_native_use_with selinux semanage) |
156 |
+ $(use_enable locator krb5-locator-plugin) |
157 |
+ $(multilib_native_use_with nfsv4 nfsv4-idmapd-plugin) |
158 |
+ $(use_enable nls ) |
159 |
+ $(multilib_native_use_with netlink libnl) |
160 |
+ $(multilib_native_use_with manpages) |
161 |
+ $(multilib_native_use_with sudo) |
162 |
+ $(multilib_native_use_with autofs) |
163 |
+ $(multilib_native_use_with ssh) |
164 |
+ --with-crypto="nss" |
165 |
+ --with-initscript="sysv" |
166 |
+ --without-python2-bindings |
167 |
+ --without-python3-bindings |
168 |
+ |
169 |
+ KRB5_CONFIG=/usr/bin/${CHOST}-krb5-config |
170 |
+ ) |
171 |
+ |
172 |
+ if ! multilib_is_native_abi; then |
173 |
+ # work-around all the libraries that are used for CLI and server |
174 |
+ myconf+=( |
175 |
+ {POPT,TALLOC,TDB,TEVENT,LDB}_{CFLAGS,LIBS}=' ' |
176 |
+ # ldb headers are fine since native needs it |
177 |
+ # ldb lib fails... but it does not seem to bother |
178 |
+ {DHASH,COLLECTION,INI_CONFIG_V{0,1,1_1}}_{CFLAGS,LIBS}=' ' |
179 |
+ {PCRE,CARES,SYSTEMD_LOGIN,SASL,GLIB2,DBUS,CRYPTO}_{CFLAGS,LIBS}=' ' |
180 |
+ |
181 |
+ # use native include path for dbus (needed for build) |
182 |
+ DBUS_CFLAGS="${native_dbus_cflags}" |
183 |
+ |
184 |
+ # non-pkgconfig checks |
185 |
+ ac_cv_lib_ldap_ldap_search=yes |
186 |
+ --without-secrets |
187 |
+ --without-libwbclient |
188 |
+ --without-kcm |
189 |
+ --with-crypto="" |
190 |
+ ) |
191 |
+ |
192 |
+ use locator || myconf+=( |
193 |
+ KRB5_CONFIG=/bin/true |
194 |
+ ) |
195 |
+ fi |
196 |
+ |
197 |
+ econf "${myconf[@]}" |
198 |
+} |
199 |
+ |
200 |
+multilib_src_compile() { |
201 |
+ if multilib_is_native_abi; then |
202 |
+ default |
203 |
+ else |
204 |
+ emake libnss_sss.la pam_sss.la |
205 |
+ use locator && emake sssd_krb5_locator_plugin.la |
206 |
+ fi |
207 |
+} |
208 |
+ |
209 |
+multilib_src_install() { |
210 |
+ if multilib_is_native_abi; then |
211 |
+ emake -j1 DESTDIR="${D}" "${_at_args[@]}" install |
212 |
+ else |
213 |
+ # easier than playing with automake... |
214 |
+ dopammod .libs/pam_sss.so |
215 |
+ |
216 |
+ into / |
217 |
+ dolib.so .libs/libnss_sss.so* |
218 |
+ |
219 |
+ if use locator; then |
220 |
+ exeinto /usr/$(get_libdir)/krb5/plugins/libkrb5 |
221 |
+ doexe .libs/sssd_krb5_locator_plugin.so |
222 |
+ fi |
223 |
+ fi |
224 |
+} |
225 |
+ |
226 |
+multilib_src_install_all() { |
227 |
+ einstalldocs |
228 |
+ find "${ED}" -type f -name '*.la' -delete || die |
229 |
+ |
230 |
+ insinto /etc/sssd |
231 |
+ insopts -m600 |
232 |
+ doins "${S}"/src/examples/sssd-example.conf |
233 |
+ |
234 |
+ insinto /etc/logrotate.d |
235 |
+ insopts -m644 |
236 |
+ newins "${S}"/src/examples/logrotate sssd |
237 |
+ |
238 |
+ newconfd "${FILESDIR}"/sssd.conf sssd |
239 |
+ newinitd "${FILESDIR}"/sssd sssd |
240 |
+ |
241 |
+ keepdir /var/lib/sss/db |
242 |
+ keepdir /var/lib/sss/deskprofile |
243 |
+ keepdir /var/lib/sss/gpo_cache |
244 |
+ keepdir /var/lib/sss/keytabs |
245 |
+ keepdir /var/lib/sss/mc |
246 |
+ keepdir /var/lib/sss/pipes/private |
247 |
+ keepdir /var/lib/sss/pubconf/krb5.include.d |
248 |
+ keepdir /var/lib/sss/secrets |
249 |
+ keepdir /var/log/sssd |
250 |
+ |
251 |
+ systemd_dounit "${FILESDIR}/${PN}.service" |
252 |
+} |
253 |
+ |
254 |
+multilib_src_test() { |
255 |
+ default |
256 |
+} |
257 |
+ |
258 |
+pkg_postinst(){ |
259 |
+ elog "You must set up sssd.conf (default installed into /etc/sssd)" |
260 |
+ elog "and (optionally) configuration in /etc/pam.d in order to use SSSD" |
261 |
+ elog "features. Please see howto in https://docs.pagure.org/SSSD.sssd/design_pages/smartcard_authentication_require.html" |
262 |
+} |