Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/sssd/
Date: Fri, 05 Oct 2018 09:33:52
Message-Id: 1538732021.f7509b8c2c86600ad4580a85e7dd3f3138910d63.zlogene@gentoo
1 commit: f7509b8c2c86600ad4580a85e7dd3f3138910d63
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 5 09:33:25 2018 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 5 09:33:41 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7509b8c
7
8 sys-auth/sssd: Version bump (v1.16.13)
9
10 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
11 Package-Manager: Portage-2.3.49, Repoman-2.3.11
12
13 sys-auth/sssd/Manifest | 1 +
14 sys-auth/sssd/sssd-1.16.3.ebuild | 234 +++++++++++++++++++++++++++++++++++++++
15 2 files changed, 235 insertions(+)
16
17 diff --git a/sys-auth/sssd/Manifest b/sys-auth/sssd/Manifest
18 index 2c4a7245a93..4f0610f4a08 100644
19 --- a/sys-auth/sssd/Manifest
20 +++ b/sys-auth/sssd/Manifest
21 @@ -3,3 +3,4 @@ DIST sssd-1.12.4.tar.gz 4226841 BLAKE2B 496f6fcf2fc22b4d121a36ac81552c66716f4dd2
22 DIST sssd-1.12.5.tar.gz 4300869 BLAKE2B 608a6963b69410fac7bb9f12eea7bdf6f7ec690847f18e33ec3e4e8b77eebb15fee6f4c6073490c859874c93d3f1e8da1771c5f23069771403725bc4956c49a2 SHA512 573947c58dc53b92b6b60390375a70f3842e0bfd22c696e60dd84b8dd671bc508f30f3a0952135b0c6a1e555d43493f59ce60f780a5130696cada06cc467fa6c
23 DIST sssd-1.13.0.tar.gz 4417697 BLAKE2B 52602ab021241ae80222d59ebc1eb216f9df4145b4103c040f2606013c847961e8ddbfe58deb005f3c162e4af22377d97fc4a2a53de8f71b5086cfd43703138c SHA512 c11303557180d6491933f5732ed831d1725d33e7444d92d5a20ba24a35d77845711d8427d869fe526fbdea482944269469f5bbbb779e3006998fbe09403ebf7f
24 DIST sssd-1.13.1.tar.gz 4517171 BLAKE2B 4c02d44de2c1fdfdc545e49bdf9f46a26223e095bb3d7db20399f5677b014ce1c60730dc52f9669ce10b8ee14e9a162d91af676b05af8433f872e75234954b2f SHA512 93d7f9230e6464c3346abad374e7b4a17a148a5d6e37736a4d1aaf9c99dce6065e0b1eed329c8de997c7cf902728077dd31ec4920a8d192fc67cc27f16723346
25 +DIST sssd-1.16.3.tar.gz 6217114 BLAKE2B eefaf8de466d0d76e9a4b60aefef6eb63c17a55b9a1f2e07e973a61d71cbe5432e92357656a1eb353d45bbc2fa92290cef45898d0b315d4a4c4074652ff25a23 SHA512 6165923f652f624bbe3ddc625ae682c4867eb7a20652d0cf74bbb8dda2307c917d3189ede26fd21a4fb5fd5926149271a65fa09f3affe928029ed99e6422b728
26
27 diff --git a/sys-auth/sssd/sssd-1.16.3.ebuild b/sys-auth/sssd/sssd-1.16.3.ebuild
28 new file mode 100644
29 index 00000000000..b8ffd727f2e
30 --- /dev/null
31 +++ b/sys-auth/sssd/sssd-1.16.3.ebuild
32 @@ -0,0 +1,234 @@
33 +# Copyright 1999-2018 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5,3_6,3_7} )
39 +
40 +inherit autotools flag-o-matic linux-info multilib-minimal pam python-r1 systemd toolchain-funcs
41 +
42 +DESCRIPTION="System Security Services Daemon provides access to identity and authentication"
43 +HOMEPAGE="https://pagure.io/SSSD/sssd"
44 +SRC_URI="http://releases.pagure.org/SSSD/${PN}/${P}.tar.gz"
45 +KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
46 +
47 +LICENSE="GPL-3"
48 +SLOT="0"
49 +IUSE="acl autofs +locator +netlink nfsv4 nls +manpages python samba selinux sudo ssh test"
50 +
51 +COMMON_DEP="
52 + >=virtual/pam-0-r1[${MULTILIB_USEDEP}]
53 + >=dev-libs/popt-1.16
54 + dev-libs/glib:2
55 + >=dev-libs/ding-libs-0.2
56 + >=sys-libs/talloc-2.0.7
57 + >=sys-libs/tdb-1.2.9
58 + >=sys-libs/tevent-0.9.16
59 + >=sys-libs/ldb-1.1.17-r1:=
60 + >=net-nds/openldap-2.4.30[sasl]
61 + >=dev-libs/libpcre-8.30
62 + >=app-crypt/mit-krb5-1.10.3
63 + dev-libs/jansson
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.5 )
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 + if [[ "${PYTHON_TARGETS}" == *python2* ]]; then
135 + myconf+=($(multilib_native_use_with python python2-bindings))
136 + fi
137 + if [[ "${PYTHON_TARGETS}" == *python3* ]]; then
138 + myconf+=($(multilib_native_use_with python python3-bindings))
139 + fi
140 + #Work around linker dependency problem.
141 + append-ldflags "-Wl,--allow-shlib-undefined"
142 +
143 + myconf+=(
144 + --localstatedir="${EPREFIX}"/var
145 + --enable-nsslibdir="${EPREFIX}"/$(get_libdir)
146 + --with-plugin-path="${EPREFIX}"/usr/$(get_libdir)/sssd
147 + --enable-pammoddir="${EPREFIX}"/$(getpam_mod_dir)
148 + --with-ldb-lib-dir="${EPREFIX}"/usr/$(get_libdir)/samba/ldb
149 + --with-os=gentoo
150 + --with-nscd
151 + --with-unicode-lib="glib2"
152 + --disable-rpath
153 + --disable-silent-rules
154 + --sbindir=/usr/sbin
155 + --without-kcm
156 + $(use_with samba libwbclient)
157 + --with-secrets
158 + $(multilib_native_use_with samba)
159 + $(multilib_native_use_enable acl cifs-idmap-plugin)
160 + $(multilib_native_use_with selinux)
161 + $(multilib_native_use_with selinux semanage)
162 + $(use_enable locator krb5-locator-plugin)
163 + $(multilib_native_use_with nfsv4 nfsv4-idmapd-plugin)
164 + $(use_enable nls )
165 + $(multilib_native_use_with netlink libnl)
166 + $(multilib_native_use_with manpages)
167 + $(multilib_native_use_with sudo)
168 + $(multilib_native_use_with autofs)
169 + $(multilib_native_use_with ssh)
170 + --with-crypto="nss"
171 + --with-initscript="sysv"
172 +
173 + KRB5_CONFIG=/usr/bin/${CHOST}-krb5-config
174 + )
175 +
176 + if ! multilib_is_native_abi; then
177 + # work-around all the libraries that are used for CLI and server
178 + myconf+=(
179 + {POPT,TALLOC,TDB,TEVENT,LDB}_{CFLAGS,LIBS}=' '
180 + # ldb headers are fine since native needs it
181 + # ldb lib fails... but it does not seem to bother
182 + {DHASH,COLLECTION,INI_CONFIG_V{0,1,1_1}}_{CFLAGS,LIBS}=' '
183 + {PCRE,CARES,SYSTEMD_LOGIN,SASL,GLIB2,DBUS,CRYPTO}_{CFLAGS,LIBS}=' '
184 +
185 + # use native include path for dbus (needed for build)
186 + DBUS_CFLAGS="${native_dbus_cflags}"
187 +
188 + # non-pkgconfig checks
189 + ac_cv_lib_ldap_ldap_search=yes
190 + --without-secrets
191 + --without-libwbclient
192 + --without-kcm
193 + --with-crypto=""
194 + )
195 +
196 + use locator || myconf+=(
197 + KRB5_CONFIG=/bin/true
198 + )
199 + fi
200 +
201 + econf "${myconf[@]}"
202 +}
203 +
204 +multilib_src_compile() {
205 + if multilib_is_native_abi; then
206 + default
207 + else
208 + emake libnss_sss.la pam_sss.la
209 + use locator && emake sssd_krb5_locator_plugin.la
210 + fi
211 +}
212 +
213 +multilib_src_install() {
214 + if multilib_is_native_abi; then
215 + emake -j1 DESTDIR="${D}" "${_at_args[@]}" install
216 + else
217 + # easier than playing with automake...
218 + dopammod .libs/pam_sss.so
219 +
220 + into /
221 + dolib .libs/libnss_sss.so*
222 +
223 + if use locator; then
224 + exeinto /usr/$(get_libdir)/krb5/plugins/libkrb5
225 + doexe .libs/sssd_krb5_locator_plugin.so
226 + fi
227 + fi
228 +}
229 +
230 +multilib_src_install_all() {
231 + einstalldocs
232 + prune_libtool_files --all
233 +
234 + insinto /etc/sssd
235 + insopts -m600
236 + doins "${S}"/src/examples/sssd-example.conf
237 +
238 + insinto /etc/logrotate.d
239 + insopts -m644
240 + newins "${S}"/src/examples/logrotate sssd
241 +
242 + newconfd "${FILESDIR}"/sssd.conf sssd
243 + newinitd "${FILESDIR}"/sssd sssd
244 +
245 + keepdir /var/lib/sss/db
246 + keepdir /var/lib/sss/deskprofile
247 + keepdir /var/lib/sss/gpo_cache
248 + keepdir /var/lib/sss/keytabs
249 + keepdir /var/lib/sss/mc
250 + keepdir /var/lib/sss/pipes/private
251 + keepdir /var/lib/sss/pubconf/krb5.include.d
252 + keepdir /var/lib/sss/secrets
253 + keepdir /var/log/sssd
254 +
255 + systemd_dounit "${FILESDIR}/${PN}.service"
256 +}
257 +
258 +multilib_src_test() {
259 + default
260 +}
261 +
262 +pkg_postinst(){
263 + elog "You must set up sssd.conf (default installed into /etc/sssd)"
264 + elog "and (optionally) configuration in /etc/pam.d in order to use SSSD"
265 + elog "features. Please see howto in http://fedorahosted.org/sssd/wiki/HOWTO_Configure_1_0_2"
266 +}