Gentoo Archives: gentoo-commits

From: Markos Chandras <hwoarang@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/sssd/
Date: Wed, 04 Nov 2015 21:09:11
Message-Id: 1446671150.43fc3df65ef6ee2aa2490ac4f7429c950b0d8c97.hwoarang@gentoo
1 commit: 43fc3df65ef6ee2aa2490ac4f7429c950b0d8c97
2 Author: Markos Chandras <hwoarang <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 4 20:59:49 2015 +0000
4 Commit: Markos Chandras <hwoarang <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 4 21:05:50 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43fc3df6
7
8 sys-auth/sssd: Version bump
9
10 Package-Manager: portage-2.2.23
11
12 sys-auth/sssd/Manifest | 1 +
13 sys-auth/sssd/sssd-1.13.1.ebuild | 213 +++++++++++++++++++++++++++++++++++++++
14 2 files changed, 214 insertions(+)
15
16 diff --git a/sys-auth/sssd/Manifest b/sys-auth/sssd/Manifest
17 index 758c1b1..494cfe7 100644
18 --- a/sys-auth/sssd/Manifest
19 +++ b/sys-auth/sssd/Manifest
20 @@ -2,5 +2,6 @@ DIST sssd-1.12.1.tar.gz 4088341 SHA256 18b2d7e93e77435708feaf3ff65656f89e5a531ae
21 DIST sssd-1.12.4.tar.gz 4226841 SHA256 ea3be3a40b20284bd3126481dd0747cd07e39d5ef7ef7026d4902d96fc3e9edf SHA512 817141378d4c535ee1018c4246c77a61b963ab10c026e6983e1be90860fa68698dd60cd27ab7ac77da096057f8c71cba90387cf3329e9d43e98a23163f8bb233 WHIRLPOOL 7ee273fcb2e2311f9239face618be1d2eb88c4b6df177ce61854e3465fe6e484753b55a7e864f3b6e4beb2ebea43ae348a06d3ea29eb2560a2ebe3c8a8d0ffed
22 DIST sssd-1.12.5.tar.gz 4300869 SHA256 243d8db7c72ecb21aa9db8a09fe9f9b10049dbdb35a1cc2f55e214f21e3ce256 SHA512 573947c58dc53b92b6b60390375a70f3842e0bfd22c696e60dd84b8dd671bc508f30f3a0952135b0c6a1e555d43493f59ce60f780a5130696cada06cc467fa6c WHIRLPOOL 6614d32f0808b97e55b33f996e12207b4960b6f694a7321235e26b7760aa84acad7dd68c2019857ce08d32585f9157e28d2a4be6f944f1eeaaf2f6b84c807638
23 DIST sssd-1.13.0.tar.gz 4417697 SHA256 bd1dd95165bca02a08fbd0ea8ac6aa296bc339798d6c6566aee823c536718a5a SHA512 c11303557180d6491933f5732ed831d1725d33e7444d92d5a20ba24a35d77845711d8427d869fe526fbdea482944269469f5bbbb779e3006998fbe09403ebf7f WHIRLPOOL 0ef934e4e22d1c5a8d1e5f649de29e162717e421a341839cecc9ac089d022a30f843463966dc572619b959fd4e850d651bf372e2d511dba24994f790f1006a55
24 +DIST sssd-1.13.1.tar.gz 4517171 SHA256 ff6425d455a5cae2359e32c8627832e67b5cc0bbec4081a16d926b6e1b431ae7 SHA512 93d7f9230e6464c3346abad374e7b4a17a148a5d6e37736a4d1aaf9c99dce6065e0b1eed329c8de997c7cf902728077dd31ec4920a8d192fc67cc27f16723346 WHIRLPOOL 1b169a5ada95968508314e0f5f466a3c5655839e106a875ecf0f6001aaafe1c2228a6e79c10d9d23392fa54c375f5514c2f2d52b414d57b089de521b3f3cac77
25 DIST sssd-1.9.6.tar.gz 3180066 SHA256 ca96e8d98eb4113396b13d9601dbdd20f4b2f2613d0f29a0157ffd05e3748601 SHA512 32d6056db1a17fe348f0b932d4242ce3b3dc615d4d93ebf580f5f9a3e16985324d9955e092803cf9a2bf35724feab0450737f516e9ce003f6812a0debf54ba15 WHIRLPOOL e496d63a042b39dd5d269a7d24b9a535c73a47741a4429e78e2a9d1282515747a83251338d6c94d75b2de06a415bfed18f7223864b1b4e9a824a25d41afa6a59
26 DIST sssd-1.9.7.tar.gz 3485351 SHA256 ed2b7e9835143404cbc0e3e105607b7c554f568e4af024b5db0f10ca4f809c7e SHA512 1c73078f2127c1359c13601900e39dcb7527c5ca1346dfbb2fdcf07d98d3542f7b79aed8acc9dd289ab1a679f0b5477e08a9f1d58da4847ada53bdb4f3f606e2 WHIRLPOOL 691164b8edbcdc5acba024a00ead18e1769175cf6f9c3e49f065d31c84b55b315e569fbf04a841c9cd67ce76531f26875a97e0c553b462aecee29aa9428493be
27
28 diff --git a/sys-auth/sssd/sssd-1.13.1.ebuild b/sys-auth/sssd/sssd-1.13.1.ebuild
29 new file mode 100644
30 index 0000000..07a3c49
31 --- /dev/null
32 +++ b/sys-auth/sssd/sssd-1.13.1.ebuild
33 @@ -0,0 +1,213 @@
34 +# Copyright 1999-2015 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +# $Id$
37 +
38 +EAPI=5
39 +
40 +PYTHON_COMPAT=( python{2_7,3_3,3_4} )
41 +
42 +inherit eutils multilib pam linux-info autotools multilib-minimal python-r1 systemd toolchain-funcs
43 +
44 +DESCRIPTION="System Security Services Daemon provides access to identity and authentication"
45 +HOMEPAGE="http://fedorahosted.org/sssd/"
46 +SRC_URI="http://fedorahosted.org/released/${PN}/${P}.tar.gz"
47 +
48 +LICENSE="GPL-3"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
51 +IUSE="acl augeas autofs +locator netlink nfsv4 nls +manpages python samba selinux sudo ssh test"
52 +
53 +COMMON_DEP="
54 + >=virtual/pam-0-r1[${MULTILIB_USEDEP}]
55 + >=dev-libs/popt-1.16
56 + dev-libs/glib:2
57 + >=dev-libs/ding-libs-0.2
58 + >=sys-libs/talloc-2.0.7
59 + >=sys-libs/tdb-1.2.9
60 + >=sys-libs/tevent-0.9.16
61 + >=sys-libs/ldb-1.1.17-r1:=
62 + >=net-nds/openldap-2.4.30[sasl]
63 + >=dev-libs/libpcre-8.30
64 + >=app-crypt/mit-krb5-1.10.3
65 + locator? (
66 + >=app-crypt/mit-krb5-1.12.2[${MULTILIB_USEDEP}]
67 + >=net-dns/c-ares-1.10.0-r1[${MULTILIB_USEDEP}]
68 + )
69 + >=sys-apps/keyutils-1.5
70 + >=net-dns/c-ares-1.7.4
71 + >=dev-libs/nss-3.12.9
72 + selinux? (
73 + >=sys-libs/libselinux-2.1.9
74 + >=sys-libs/libsemanage-2.1
75 + )
76 + >=net-dns/bind-tools-9.9[gssapi]
77 + >=dev-libs/cyrus-sasl-2.1.25-r3[kerberos]
78 + >=sys-apps/dbus-1.6
79 + acl? ( net-fs/cifs-utils[acl] )
80 + augeas? ( app-admin/augeas )
81 + nfsv4? ( net-libs/libnfsidmap )
82 + nls? ( >=sys-devel/gettext-0.18 )
83 + virtual/libintl
84 + netlink? ( dev-libs/libnl:3 )
85 + samba? ( >=net-fs/samba-4.0 )
86 + "
87 +
88 +RDEPEND="${COMMON_DEP}
89 + >=sys-libs/glibc-2.17[nscd]
90 + selinux? ( >=sec-policy/selinux-sssd-2.20120725-r9 )
91 + "
92 +DEPEND="${COMMON_DEP}
93 + test? ( dev-libs/check )
94 + manpages? (
95 + >=dev-libs/libxslt-1.1.26
96 + app-text/docbook-xml-dtd:4.4
97 + )"
98 +
99 +CONFIG_CHECK="~KEYS"
100 +
101 +MULTILIB_WRAPPED_HEADERS=(
102 + /usr/include/ipa_hbac.h
103 + /usr/include/sss_idmap.h
104 + /usr/include/sss_nss_idmap.h
105 + /usr/include/wbclient_sssd.h
106 + # --with-ifp
107 + /usr/include/sss_sifp.h
108 + /usr/include/sss_sifp_dbus.h
109 +)
110 +
111 +pkg_setup(){
112 + linux-info_pkg_setup
113 +}
114 +
115 +src_prepare() {
116 + eautoreconf
117 +
118 + multilib_copy_sources
119 +
120 + # Maybe run it before eautoreconf?
121 + epatch_user
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 +
141 + myconf+=(
142 + --localstatedir="${EPREFIX}"/var
143 + --enable-nsslibdir="${EPREFIX}"/$(get_libdir)
144 + --with-plugin-path="${EPREFIX}"/usr/$(get_libdir)/sssd
145 + --enable-pammoddir="${EPREFIX}"/$(getpam_mod_dir)
146 + --with-ldb-lib-dir="${EPREFIX}"/usr/$(get_libdir)/samba/ldb
147 + --without-nscd
148 + --with-unicode-lib="glib2"
149 + --disable-rpath
150 + --enable-silent-rules
151 + --sbindir=/usr/sbin
152 + $(multilib_native_use_with samba)
153 + $(multilib_native_use_enable acl cifs-idmap-plugin)
154 + $(multilib_native_use_enable augeas config-lib)
155 + $(multilib_native_use_with selinux)
156 + $(multilib_native_use_with selinux semanage)
157 + $(use_enable locator krb5-locator-plugin)
158 + $(multilib_native_use_with nfsv4 nfsv4-idmapd-plugin)
159 + $(use_enable nls )
160 + $(multilib_native_use_with netlink libnl)
161 + $(multilib_native_use_with manpages)
162 + $(multilib_native_use_with sudo)
163 + $(multilib_native_use_with autofs)
164 + $(multilib_native_use_with ssh)
165 + --with-crypto="libcrypto"
166 + --with-initscript="sysv"
167 +
168 + KRB5_CONFIG=/usr/bin/${CHOST}-krb5-config
169 + )
170 +
171 + if ! multilib_is_native_abi; then
172 + # work-around all the libraries that are used for CLI and server
173 + myconf+=(
174 + {POPT,TALLOC,TDB,TEVENT,LDB}_{CFLAGS,LIBS}=' '
175 + # ldb headers are fine since native needs it
176 + # ldb lib fails... but it does not seem to bother
177 + {DHASH,COLLECTION,INI_CONFIG_V{0,1,1_1}}_{CFLAGS,LIBS}=' '
178 + {PCRE,CARES,SYSTEMD_LOGIN,SASL,GLIB2,DBUS,CRYPTO}_{CFLAGS,LIBS}=' '
179 +
180 + # use native include path for dbus (needed for build)
181 + DBUS_CFLAGS="${native_dbus_cflags}"
182 +
183 + # non-pkgconfig checks
184 + ac_cv_lib_ldap_ldap_search=yes
185 + )
186 +
187 + use locator || myconf+=(
188 + KRB5_CONFIG=/bin/true
189 + )
190 + fi
191 +
192 + econf "${myconf[@]}"
193 +}
194 +
195 +multilib_src_compile() {
196 + if multilib_is_native_abi; then
197 + default
198 + else
199 + emake libnss_sss.la pam_sss.la
200 + use locator && emake sssd_krb5_locator_plugin.la
201 + fi
202 +}
203 +
204 +multilib_src_install() {
205 + if multilib_is_native_abi; then
206 + emake -j1 DESTDIR="${D}" "${_at_args[@]}" install
207 + else
208 + # easier than playing with automake...
209 + dopammod .libs/pam_sss.so
210 +
211 + into /
212 + dolib .libs/libnss_sss.so*
213 +
214 + if use locator; then
215 + exeinto /usr/$(get_libdir)/krb5/plugins/libkrb5
216 + doexe .libs/sssd_krb5_locator_plugin.so
217 + fi
218 + fi
219 +}
220 +
221 +multilib_src_install_all() {
222 + einstalldocs
223 + prune_libtool_files --all
224 +
225 + insinto /etc/sssd
226 + insopts -m600
227 + doins "${S}"/src/examples/sssd-example.conf
228 +
229 + insinto /etc/logrotate.d
230 + insopts -m644
231 + newins "${S}"/src/examples/logrotate sssd
232 +
233 + newconfd "${FILESDIR}"/sssd.conf sssd
234 +
235 + systemd_dounit "${FILESDIR}/${PN}.service"
236 +}
237 +
238 +multilib_src_test() {
239 + default
240 +}
241 +
242 +pkg_postinst(){
243 + elog "You must set up sssd.conf (default installed into /etc/sssd)"
244 + elog "and (optionally) configuration in /etc/pam.d in order to use SSSD"
245 + elog "features. Please see howto in http://fedorahosted.org/sssd/wiki/HOWTO_Configure_1_0_2"
246 +}