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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Thu Aug 11 18:26:19 2005 UTC (14 years, 6 months ago) by eradicator
Branch: MAIN
Changes since 1.1: +2 -2 lines
Version bump.
(Portage version: 2.0.51.22-r2)

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

  ViewVC Help
Powered by ViewVC 1.1.20