summaryrefslogtreecommitdiff
blob: 064be7d791045a725a1676890a4609e2e066714c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/net-libs/nss_ldap/nss_ldap-113.ebuild,v 1.1 2000/08/26 20:41:56 achim Exp $

P=nss_ldap-113
A=nss_ldap-113.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="NSS LDAP Module"
HOMEPAGE="http://www.padl.com/nss_ldap.html"
SRC_URI="ftp://ftp.padl.com/pub/"${A}

src_unpack() {
  unpack ${A}
  cd ${S}
  sed -e "s/^NSFLAGS/#NSFLAGS/" \
      -e "s/-lsasl//" \
      -e "s/-O/${CFLAGS}/" Makefile.linux.openldap2 > Makefile
}

src_compile() {                           
  cd ${S}
  make
}

src_install() {                               
  cd ${S}
  into /
  dolib.so libnss_ldap-2.1.3.so
  into /usr
  doman *.1
  insinto /etc
  doins nsswitch.ldap
  insinto /usr/bin
  insopts -m755
  doins ldaptest.pl
  dodoc ldap.conf ANNOUNCE BUGS ChangeLog CONTRIBUTORS COPYING.LIB
  dodoc CVSVersionInfo.txt IRS README rfc*.txt nsswitch.test
}