/[gentoo-x86]/sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.8.11-r1.ebuild
Gentoo

Contents of /sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.8.11-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Nov 7 18:02:07 2012 UTC (23 months, 3 weeks ago) by prometheanfire
Branch: MAIN
revbump of nss-pam-ldapd-0.8.11.ebuild to r1 for bug 442156

(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key 0x2471eb3e40ac5ac3)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.8.11.ebuild,v 1.1 2012/10/15 05:24:07 prometheanfire Exp $
4
5 EAPI=4
6
7 inherit multilib user
8
9 DESCRIPTION="NSS module for name lookups using LDAP"
10 HOMEPAGE="http://arthurdejong.org/nss-pam-ldapd/"
11 SRC_URI="http://arthurdejong.org/nss-pam-ldapd/${P}.tar.gz"
12
13 LICENSE="LGPL-2.1"
14 SLOT="0"
15 KEYWORDS="~x86 ~amd64"
16 IUSE="debug kerberos sasl +pam"
17
18 DEPEND="net-nds/openldap
19 sasl? ( dev-libs/cyrus-sasl )
20 kerberos? ( virtual/krb5 )
21 pam? ( virtual/pam )
22 !sys-auth/nss_ldap
23 !sys-auth/pam_ldap"
24 RDEPEND="${DEPEND}"
25
26 pkg_setup() {
27 enewgroup nslcd
28 enewuser nslcd -1 -1 -1 nslcd
29 }
30
31 src_configure() {
32 # nss libraries always go in /lib on Gentoo
33 myconf="--enable-warnings
34 --with-ldap-lib=openldap
35 --with-ldap-conf-file=/etc/nslcd.conf
36 --with-nslcd-pidfile=/var/run/nslcd/nslcd.pid
37 --with-nslcd-socket=/var/run/nslcd/socket
38 --with-pam-seclib-dir=/$(get_libdir)/security
39 --libdir=/$(get_libdir)
40 $(use_enable debug)
41 $(use_enable kerberos)
42 $(use_enable pam)
43 $(use_enable sasl)"
44
45 if use x86-fbsd; then
46 myconf+=" --with-nss-flavour=freebsd"
47 else
48 myconf+=" --with-nss-flavour=glibc"
49 fi
50
51 econf ${myconf}
52 }
53
54 src_install() {
55 emake DESTDIR="${D}" install
56
57 dodoc NEWS ChangeLog AUTHORS README
58
59 # for socket and pid file
60 keepdir /var/run/nslcd
61
62 # init script
63 newinitd "${FILESDIR}"/nslcd-init nslcd
64
65 # make an example copy
66 insinto /usr/share/nss-pam-ldapd
67 doins nslcd.conf
68
69 fperms o-r /etc/nslcd.conf
70 }
71
72 pkg_postinst() {
73 elog
74 elog "For this to work you must configure /etc/nslcd.conf"
75 elog "This configuration is similar to pam_ldap's /etc/ldap.conf"
76 elog
77 elog "In order to use nss-pam-ldapd, nslcd needs to be running. You can"
78 elog "start it like this:"
79 elog " # /etc/init.d/nslcd start"
80 elog
81 elog "You can add it to the default runlevel like so:"
82 elog " # rc-update add nslcd default"
83 elog
84 elog "If you are upgrading, keep in mind that /etc/nss-ldapd.conf"
85 elog " is now named /etc/nslcd.conf"
86 elog
87 }

  ViewVC Help
Powered by ViewVC 1.1.20