/[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.12 - (hide annotations) (download)
Mon Nov 22 18:49:17 2004 UTC (15 years, 4 months ago) by eradicator
Branch: MAIN
Changes since 1.11: +4 -3 lines
Cleanup old versions.

1 agriffis 1.8 # Copyright 1999-2004 Gentoo Foundation
2 woodchip 1.1 # Distributed under the terms of the GNU General Public License v2
3 eradicator 1.12 # $Header: /var/cvsroot/gentoo-x86/net-nds/yp-tools/yp-tools-2.8.ebuild,v 1.11 2004/10/04 22:05:42 pvdabeel Exp $
4    
5     IUSE="nls"
6 woodchip 1.1
7     DESCRIPTION="Network Information Service tools"
8 vapier 1.6 HOMEPAGE="http://www.linux-nis.org/nis/"
9 woodchip 1.1 SRC_URI="ftp://ftp.kernel.org/pub/linux/utils/net/NIS/${P}.tar.bz2"
10    
11 vapier 1.6 LICENSE="GPL-2"
12 woodchip 1.1 SLOT="0"
13 eradicator 1.12 KEYWORDS="alpha amd64 ~ia64 ppc ppc64 sparc x86"
14 vapier 1.6
15 eradicator 1.9 DEPEND="virtual/libc"
16 woodchip 1.1
17     src_compile() {
18     local myconf="--sysconfdir=/etc/yp"
19 vapier 1.6 if ! use nls
20 woodchip 1.1 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 agriffis 1.5 econf ${myconf} || die "econf failed"
34 woodchip 1.1 make || die
35     }
36    
37     src_install() {
38     make DESTDIR=${D} install || die
39 vapier 1.6 dodoc AUTHORS ChangeLog NEWS README THANKS TODO
40 woodchip 1.1 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