/[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.9 - (hide annotations) (download)
Thu Jul 1 22:38:05 2004 UTC (15 years, 9 months ago) by eradicator
Branch: MAIN
Changes since 1.8: +2 -2 lines
virtual/glibc -> virtual/libc

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.9 # $Header: /var/cvsroot/gentoo-x86/net-nds/yp-tools/yp-tools-2.8.ebuild,v 1.8 2004/06/25 00:24:14 agriffis Exp $
4 woodchip 1.1
5     DESCRIPTION="Network Information Service tools"
6 vapier 1.6 HOMEPAGE="http://www.linux-nis.org/nis/"
7 woodchip 1.1 SRC_URI="ftp://ftp.kernel.org/pub/linux/utils/net/NIS/${P}.tar.bz2"
8    
9 vapier 1.6 LICENSE="GPL-2"
10 woodchip 1.1 SLOT="0"
11 kloeri 1.7 KEYWORDS="~x86 ~ppc ~sparc alpha ~amd64 ppc64 ~ia64"
12 vapier 1.6 IUSE="nls"
13    
14 eradicator 1.9 DEPEND="virtual/libc"
15 woodchip 1.1
16     src_compile() {
17     local myconf="--sysconfdir=/etc/yp"
18 vapier 1.6 if ! use nls
19 woodchip 1.1 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 agriffis 1.5 econf ${myconf} || die "econf failed"
33 woodchip 1.1 make || die
34     }
35    
36     src_install() {
37     make DESTDIR=${D} install || die
38 vapier 1.6 dodoc AUTHORS ChangeLog NEWS README THANKS TODO
39 woodchip 1.1 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