/[gentoo-x86]/net-nds/yp-tools/yp-tools-2.8.ebuild
Gentoo

Contents of /net-nds/yp-tools/yp-tools-2.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Jul 11 02:57:12 2003 UTC (16 years, 8 months ago) by woodchip
Branch: MAIN
Branch point for: RELEASE-1_4
bump.

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3
4 IUSE="nls"
5
6 S=${WORKDIR}/${P}
7 DESCRIPTION="Network Information Service tools"
8 SRC_URI="ftp://ftp.kernel.org/pub/linux/utils/net/NIS/${P}.tar.bz2"
9 HOMEPAGE="http://www.linux-nis.org/nis"
10
11 SLOT="0"
12 LICENSE="GPL-2"
13 KEYWORDS="~x86 ~sparc ~alpha ~ppc"
14 DEPEND="virtual/glibc"
15
16 src_compile() {
17 local myconf="--sysconfdir=/etc/yp"
18 if [ -z "`use nls`" ]
19 then
20 myconf="${myconf} --disable-nls"
21 mkdir intl
22 touch intl/libintl.h
23 export CPPFLAGS="${CPPFLAGS} -I${S}"
24
25 for i in lib/nicknames.c src/*.c
26 do
27 cp ${i} ${i}.orig
28 sed 's:<libintl.h>:<intl/libintl.h>:' \
29 ${i}.orig > ${i}
30 done
31 fi
32 econf ${myconf}
33 make || die
34 }
35
36 src_install() {
37 make DESTDIR=${D} install || die
38 dodoc AUTHORS ChangeLog COPYING NEWS README THANKS TODO
39 insinto /etc/yp ; doins etc/nicknames
40 # This messes up boot so we remove it
41 rm -d ${D}/bin/ypdomainname
42 rm -d ${D}/bin/nisdomainname
43 rm -d ${D}/bin/domainname
44 }

  ViewVC Help
Powered by ViewVC 1.1.20