Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-auth/nss-pam-ldapd: metadata.xml ChangeLog nss-pam-ldapd-0.9.3-r1.ebuild nss-pam-ldapd-0.8.14-r1.ebuild
Date: Mon, 26 May 2014 12:36:55
Message-Id: 20140526123652.00ABD2004E@flycatcher.gentoo.org
1 jlec 14/05/26 12:36:51
2
3 Modified: metadata.xml ChangeLog
4 Added: nss-pam-ldapd-0.9.3-r1.ebuild
5 nss-pam-ldapd-0.8.14-r1.ebuild
6 Log:
7 sys-auth/nss-pam-ldapd: Move rundir to /run; minor style enhancements
8
9 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)
10
11 Revision Changes Path
12 1.3 sys-auth/nss-pam-ldapd/metadata.xml
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/nss-pam-ldapd/metadata.xml?rev=1.3&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/nss-pam-ldapd/metadata.xml?rev=1.3&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/nss-pam-ldapd/metadata.xml?r1=1.2&r2=1.3
17
18 Index: metadata.xml
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sys-auth/nss-pam-ldapd/metadata.xml,v
21 retrieving revision 1.2
22 retrieving revision 1.3
23 diff -u -r1.2 -r1.3
24 --- metadata.xml 16 Mar 2014 18:57:47 -0000 1.2
25 +++ metadata.xml 26 May 2014 12:36:51 -0000 1.3
26 @@ -1,11 +1,11 @@
27 <?xml version="1.0" encoding="UTF-8"?>
28 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
29 <pkgmetadata>
30 - <maintainer>
31 - <email>prometheanfire@g.o</email>
32 - <name>Matthew Thode</name>
33 - </maintainer>
34 - <longdescription lang="en">
35 + <maintainer>
36 + <email>prometheanfire@g.o</email>
37 + <name>Matthew Thode</name>
38 + </maintainer>
39 + <longdescription lang="en">
40 Provides a Name Service Switch (NSS) module that allows your LDAP
41 server to provide user account, group, host name, alias, netgroup, and
42 basically any other information that you would normally get from /etc
43 @@ -17,4 +17,3 @@
44 connections, authentication, attribute translation, etc.
45 </longdescription>
46 </pkgmetadata>
47 -
48
49
50
51 1.15 sys-auth/nss-pam-ldapd/ChangeLog
52
53 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/nss-pam-ldapd/ChangeLog?rev=1.15&view=markup
54 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/nss-pam-ldapd/ChangeLog?rev=1.15&content-type=text/plain
55 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/nss-pam-ldapd/ChangeLog?r1=1.14&r2=1.15
56
57 Index: ChangeLog
58 ===================================================================
59 RCS file: /var/cvsroot/gentoo-x86/sys-auth/nss-pam-ldapd/ChangeLog,v
60 retrieving revision 1.14
61 retrieving revision 1.15
62 diff -u -r1.14 -r1.15
63 --- ChangeLog 16 Mar 2014 18:57:47 -0000 1.14
64 +++ ChangeLog 26 May 2014 12:36:51 -0000 1.15
65 @@ -1,6 +1,13 @@
66 # ChangeLog for sys-auth/nss-pam-ldapd
67 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
68 -# $Header: /var/cvsroot/gentoo-x86/sys-auth/nss-pam-ldapd/ChangeLog,v 1.14 2014/03/16 18:57:47 prometheanfire Exp $
69 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/nss-pam-ldapd/ChangeLog,v 1.15 2014/05/26 12:36:51 jlec Exp $
70 +
71 +*nss-pam-ldapd-0.9.3-r1 (26 May 2014)
72 +*nss-pam-ldapd-0.8.14-r1 (26 May 2014)
73 +
74 + 26 May 2014; Justin Lecher <jlec@g.o> +nss-pam-ldapd-0.8.14-r1.ebuild,
75 + +nss-pam-ldapd-0.9.3-r1.ebuild, +files/nslcd-init-r1, metadata.xml:
76 + Move rundir to /run; minor style enhancements
77
78 16 Mar 2014; Matthew Thode <prometheanfire@g.o> metadata.xml:
79 update metadata
80
81
82
83 1.1 sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.9.3-r1.ebuild
84
85 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.9.3-r1.ebuild?rev=1.1&view=markup
86 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.9.3-r1.ebuild?rev=1.1&content-type=text/plain
87
88 Index: nss-pam-ldapd-0.9.3-r1.ebuild
89 ===================================================================
90 # Copyright 1999-2014 Gentoo Foundation
91 # Distributed under the terms of the GNU General Public License v2
92 # $Header: /var/cvsroot/gentoo-x86/sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.9.3-r1.ebuild,v 1.1 2014/05/26 12:36:51 jlec Exp $
93
94 EAPI=5
95
96 inherit eutils multilib user
97
98 DESCRIPTION="NSS module for name lookups using LDAP"
99 HOMEPAGE="http://arthurdejong.org/nss-pam-ldapd/"
100 SRC_URI="http://arthurdejong.org/nss-pam-ldapd/${P}.tar.gz"
101
102 LICENSE="LGPL-2.1"
103 SLOT="0"
104 KEYWORDS=""
105 IUSE="debug kerberos sasl +pam"
106
107 DEPEND="
108 net-nds/openldap
109 sasl? ( dev-libs/cyrus-sasl )
110 kerberos? ( virtual/krb5 )
111 pam? ( virtual/pam )
112 !sys-auth/nss_ldap
113 !sys-auth/pam_ldap"
114 RDEPEND="${DEPEND}"
115
116 pkg_setup() {
117 enewgroup nslcd
118 enewuser nslcd -1 -1 -1 nslcd
119 }
120
121 src_prepare() {
122 # support user patches
123 epatch_user
124 }
125
126 src_configure() {
127 # nss libraries always go in /lib on Gentoo
128 myconf="
129 --enable-warnings
130 --with-ldap-lib=openldap
131 --with-ldap-conf-file=/etc/nslcd.conf
132 --with-nslcd-pidfile=/run/nslcd/nslcd.pid
133 --with-nslcd-socket=/run/nslcd/socket
134 --with-pam-seclib-dir=/$(get_libdir)/security
135 --libdir=/$(get_libdir)
136 $(use_enable debug)
137 $(use_enable kerberos)
138 $(use_enable pam)
139 $(use_enable sasl)"
140
141 if use x86-fbsd; then
142 myconf+=" --with-nss-flavour=freebsd"
143 else
144 myconf+=" --with-nss-flavour=glibc"
145 fi
146
147 econf ${myconf}
148 }
149
150 src_install() {
151 default
152
153 # for socket and pid file (not needed bug 452992)
154 #keepdir /run/nslcd
155
156 # init script
157 newinitd "${FILESDIR}"/nslcd-init-r1 nslcd
158
159 # make an example copy
160 insinto /usr/share/nss-pam-ldapd
161 doins nslcd.conf
162
163 fperms o-r /etc/nslcd.conf
164 }
165
166 pkg_postinst() {
167 echo
168 elog "For this to work you must configure /etc/nslcd.conf"
169 elog "This configuration is similar to pam_ldap's /etc/ldap.conf"
170 echo
171 elog "In order to use nss-pam-ldapd, nslcd needs to be running. You can"
172 elog "start it like this:"
173 elog " # /etc/init.d/nslcd start"
174 echo
175 elog "You can add it to the default runlevel like so:"
176 elog " # rc-update add nslcd default"
177 elog
178 elog "If you are upgrading, keep in mind that /etc/nss-ldapd.conf"
179 elog " is now named /etc/nslcd.conf"
180 echo
181 }
182
183
184
185 1.1 sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.8.14-r1.ebuild
186
187 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.8.14-r1.ebuild?rev=1.1&view=markup
188 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.8.14-r1.ebuild?rev=1.1&content-type=text/plain
189
190 Index: nss-pam-ldapd-0.8.14-r1.ebuild
191 ===================================================================
192 # Copyright 1999-2014 Gentoo Foundation
193 # Distributed under the terms of the GNU General Public License v2
194 # $Header: /var/cvsroot/gentoo-x86/sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.8.14-r1.ebuild,v 1.1 2014/05/26 12:36:51 jlec Exp $
195
196 EAPI=5
197
198 inherit multilib user
199
200 DESCRIPTION="NSS module for name lookups using LDAP"
201 HOMEPAGE="http://arthurdejong.org/nss-pam-ldapd/"
202 SRC_URI="http://arthurdejong.org/nss-pam-ldapd/${P}.tar.gz"
203
204 LICENSE="LGPL-2.1"
205 SLOT="0"
206 KEYWORDS="~x86 ~amd64"
207 IUSE="debug kerberos sasl +pam"
208
209 DEPEND="
210 net-nds/openldap
211 sasl? ( dev-libs/cyrus-sasl )
212 kerberos? ( virtual/krb5 )
213 pam? ( virtual/pam )
214 !sys-auth/nss_ldap
215 !sys-auth/pam_ldap"
216 RDEPEND="${DEPEND}"
217
218 pkg_setup() {
219 enewgroup nslcd
220 enewuser nslcd -1 -1 -1 nslcd
221 }
222
223 src_configure() {
224 # nss libraries always go in /lib on Gentoo
225 myconf="
226 --enable-warnings
227 --with-ldap-lib=openldap
228 --with-ldap-conf-file=/etc/nslcd.conf
229 --with-nslcd-pidfile=/run/nslcd/nslcd.pid
230 --with-nslcd-socket=/run/nslcd/socket
231 --with-pam-seclib-dir=/$(get_libdir)/security
232 --libdir=/$(get_libdir)
233 $(use_enable debug)
234 $(use_enable kerberos)
235 $(use_enable pam)
236 $(use_enable sasl)"
237
238 if use x86-fbsd; then
239 myconf+=" --with-nss-flavour=freebsd"
240 else
241 myconf+=" --with-nss-flavour=glibc"
242 fi
243
244 econf ${myconf}
245 }
246
247 src_install() {
248 default
249
250 # for socket and pid file (not needed bug 452992)
251 #keepdir /run/nslcd
252
253 # init script
254 newinitd "${FILESDIR}"/nslcd-init-r1 nslcd
255
256 # make an example copy
257 insinto /usr/share/nss-pam-ldapd
258 doins nslcd.conf
259
260 fperms o-r /etc/nslcd.conf
261 }
262
263 pkg_postinst() {
264 echo
265 elog "For this to work you must configure /etc/nslcd.conf"
266 elog "This configuration is similar to pam_ldap's /etc/ldap.conf"
267 echo
268 elog "In order to use nss-pam-ldapd, nslcd needs to be running. You can"
269 elog "start it like this:"
270 elog " # /etc/init.d/nslcd start"
271 echo
272 elog "You can add it to the default runlevel like so:"
273 elog " # rc-update add nslcd default"
274 elog
275 elog "If you are upgrading, keep in mind that /etc/nss-ldapd.conf"
276 elog " is now named /etc/nslcd.conf"
277 echo
278 }