/[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.16 - (show annotations) (download)
Tue Jul 7 01:16:42 2009 UTC (10 years, 6 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.15: +1 -1 lines
FILE REMOVED
Remove old.
(Portage version: 2.2_rc33/cvs/Linux i686)

1 # Copyright 1999-2008 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.15 2008/11/02 12:10:30 jmbsvicetto 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