Gentoo Archives: gentoo-commits

From: "Patrick McLean (chutzpah)" <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-auth/nss-pam-ldapd: nss-pam-ldapd-0.9.5.ebuild ChangeLog
Date: Mon, 30 Mar 2015 19:01:46
Message-Id: 20150330190139.C981414DD9@oystercatcher.gentoo.org
1 chutzpah 15/03/30 19:01:38
2
3 Modified: ChangeLog
4 Added: nss-pam-ldapd-0.9.5.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0xE3F69979BB4B8928DA78E3D17CBF44EF)
9
10 Revision Changes Path
11 1.20 sys-auth/nss-pam-ldapd/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/nss-pam-ldapd/ChangeLog?rev=1.20&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/nss-pam-ldapd/ChangeLog?rev=1.20&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/nss-pam-ldapd/ChangeLog?r1=1.19&r2=1.20
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-auth/nss-pam-ldapd/ChangeLog,v
20 retrieving revision 1.19
21 retrieving revision 1.20
22 diff -u -r1.19 -r1.20
23 --- ChangeLog 11 Mar 2015 22:32:36 -0000 1.19
24 +++ ChangeLog 30 Mar 2015 19:01:38 -0000 1.20
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-auth/nss-pam-ldapd
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-auth/nss-pam-ldapd/ChangeLog,v 1.19 2015/03/11 22:32:36 chutzpah Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/nss-pam-ldapd/ChangeLog,v 1.20 2015/03/30 19:01:38 chutzpah Exp $
30 +
31 +*nss-pam-ldapd-0.9.5 (30 Mar 2015)
32 +
33 + 30 Mar 2015; Patrick McLean <chutzpah@g.o> +nss-pam-ldapd-0.9.5.ebuild:
34 + Version bump.
35
36 11 Mar 2015; Patrick McLean <chutzpah@g.o>
37 nss-pam-ldapd-0.9.4-r2.ebuild:
38
39
40
41 1.1 sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.9.5.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.9.5.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.9.5.ebuild?rev=1.1&content-type=text/plain
45
46 Index: nss-pam-ldapd-0.9.5.ebuild
47 ===================================================================
48 # Copyright 1999-2015 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.9.5.ebuild,v 1.1 2015/03/30 19:01:38 chutzpah Exp $
51
52 EAPI=5
53
54 PYTHON_COMPAT=(python2_7)
55 inherit eutils prefix user python-r1 multilib multilib-minimal
56
57 DESCRIPTION="NSS module for name lookups using LDAP"
58 HOMEPAGE="http://arthurdejong.org/nss-pam-ldapd/"
59 SRC_URI="http://arthurdejong.org/${PN}/${P}.tar.gz"
60
61 LICENSE="LGPL-2.1"
62 SLOT="0"
63 KEYWORDS=""
64 IUSE="debug kerberos +pam sasl test +utils"
65
66 COMMON_DEP="
67 net-nds/openldap[${MULTILIB_USEDEP}]
68 sasl? ( dev-libs/cyrus-sasl[${MULTILIB_USEDEP}] )
69 kerberos? ( virtual/krb5[${MULTILIB_USEDEP}] )
70 pam? ( virtual/pam[${MULTILIB_USEDEP}] )
71 utils? ( ${PYTHON_DEPS} )
72 !sys-auth/nss_ldap
73 !sys-auth/pam_ldap"
74 RDEPEND="${COMMON_DEP}"
75 DEPEND="${COMMON_DEP}
76 test? (
77 ${PYTHON_DEPS}
78 dev-python/pylint[${PYTHON_USEDEP}]
79 )
80 sys-devel/automake"
81
82 REQUIRED_USE="
83 utils? ( ${PYTHON_REQUIRED_USE} )
84 test? ( ${PYTHON_REQUIRED_USE} )"
85
86 pkg_setup() {
87 enewgroup nslcd
88 enewuser nslcd -1 -1 -1 nslcd
89 }
90
91 src_prepare() {
92 epatch "${FILESDIR}"/${PN}-0.9.4-disable-py3-only-linters.patch
93 epatch_user
94 use utils && python_setup
95 }
96
97 multilib_src_configure() {
98 local -a myconf
99
100 myconf=(
101 --disable-utils
102 --enable-warnings
103 --with-ldap-lib=openldap
104 --with-ldap-conf-file=/etc/nslcd.conf
105 --with-nslcd-pidfile=/run/nslcd/nslcd.pid
106 --with-nslcd-socket=/run/nslcd/socket
107 $(usex x86-fbsd '--with-nss-flavour=' '--with-nss-flavour=' 'freebsd' 'glibc')
108 $(use_enable debug)
109 $(use_enable kerberos)
110 $(use_enable pam)
111 $(use_enable sasl)
112 )
113
114 # nss libraries always go in /lib on Gentoo
115 if multilib_is_native_abi ; then
116 myconf+=("--with-pam-seclib-dir=${EPREFIX}/$(get_libdir)/security")
117 myconf+=("--libdir=${EPREFIX}/$(get_libdir)")
118 else
119 myconf+=("--with-pam-seclib-dir=/$(get_libdir)/security")
120 myconf+=("--libdir=/$(get_libdir)")
121 fi
122
123 ECONF_SOURCE="${S}" econf "${myconf[@]}"
124 }
125
126 multilib_src_install_all() {
127 local script
128
129 newinitd "${FILESDIR}"/nslcd-init-r1 nslcd
130
131 insinto /usr/share/nss-pam-ldapd
132 doins nslcd.conf
133
134 fperms o-r /etc/nslcd.conf
135
136 if use utils; then
137 python_moduleinto nslcd
138 python_foreach_impl && python_domodule utils/*.py
139
140 for script in chsh getent; do
141 python_foreach_impl python_newscript utils/${script}.py ${script}.ldap
142 done
143 fi
144 }
145
146 multilib_src_test() {
147 python_foreach_impl emake check
148 }
149
150 pkg_postinst() {
151 echo
152 elog "For this to work you must configure /etc/nslcd.conf"
153 elog "This configuration is similar to pam_ldap's /etc/ldap.conf"
154 echo
155 elog "In order to use nss-pam-ldapd, nslcd needs to be running. You can"
156 elog "start it like this:"
157 elog " # /etc/init.d/nslcd start"
158 echo
159 elog "You can add it to the default runlevel like so:"
160 elog " # rc-update add nslcd default"
161 elog
162 elog "If you are upgrading, keep in mind that /etc/nss-ldapd.conf"
163 elog " is now named /etc/nslcd.conf"
164 echo
165 }