/[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.14 - (show annotations) (download)
Thu Aug 11 18:26:19 2005 UTC (14 years, 7 months ago) by eradicator
Branch: MAIN
Changes since 1.13: +2 -2 lines
Version bump.
(Portage version: 2.0.51.22-r2)

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

  ViewVC Help
Powered by ViewVC 1.1.20