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

Contents of /sys-auth/nss-ldapd/nss-pam-ldapd-0.8.10.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Jul 24 06:58:43 2012 UTC (7 years, 5 months ago) by prometheanfire
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
recovering from cvs mistakes

(Portage version: 2.1.10.65/cvs/Linux x86_64)

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-ldapd/nss-pam-ldapd-0.8.10.ebuild,v 1.1 2012/07/24 06:34:33 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 RDEPEND="${DEPEND}"
24
25 pkg_setup() {
26 enewgroup nslcd
27 enewuser nslcd -1 -1 -1 nslcd
28 }
29
30 src_configure() {
31 # nss libraries always go in /lib on Gentoo
32 myconf="--enable-warnings
33 --with-ldap-lib=openldap
34 --with-ldap-conf-file=/etc/nslcd.conf
35 --with-nslcd-pidfile=/var/run/nslcd/nslcd.pid
36 --with-nslcd-socket=/var/run/nslcd/socket
37 --libdir=/$(get_libdir)
38 $(use_enable debug)
39 $(use_enable kerberos)
40 $(use_enable pam)"
41
42 if use x86-fbsd; then
43 myconf+=" --with-nss-flavour=freebsd"
44 else
45 myconf+=" --with-nss-flavour=glibc"
46 fi
47
48 econf ${myconf}
49 }
50
51 src_install() {
52 emake DESTDIR="${D}" install
53
54 dodoc NEWS ChangeLog AUTHORS README
55
56 # for socket and pid file
57 keepdir /var/run/nslcd
58
59 # init script
60 newinitd "${FILESDIR}"/nslcd-init nslcd
61
62 # make an example copy
63 insinto /usr/share/nss-pam-ldapd
64 doins nslcd.conf
65
66 fperms o-r /etc/nslcd.conf
67 }
68
69 pkg_postinst() {
70 elog
71 elog "For this to work you must configure /etc/nslcd.conf"
72 elog "This configuration is similar to pam_ldap's /etc/ldap.conf"
73 elog
74 elog "In order to use nss-pam-ldapd, nslcd needs to be running. You can"
75 elog "start it like this:"
76 elog " # /etc/init.d/nslcd start"
77 elog
78 elog "You can add it to the default runlevel like so:"
79 elog " # rc-update add nslcd default"
80 elog
81 elog "If you are upgrading, keep in mind that /etc/nss-ldapd.conf"
82 elog " is now named /etc/nslcd.conf"
83 elog
84 }

  ViewVC Help
Powered by ViewVC 1.1.20