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

Contents of /net-nds/yp-tools/yp-tools-2.9.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (hide annotations) (download)
Sat Aug 28 00:43:41 2010 UTC (9 years, 7 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
Old.

(Portage version: 2.2_rc69/cvs/Linux i686)

1 jer 1.9 # Copyright 1999-2009 Gentoo Foundation
2 eradicator 1.1 # Distributed under the terms of the GNU General Public License v2
3 jer 1.11 # $Header: /var/cvsroot/gentoo-x86/net-nds/yp-tools/yp-tools-2.9.ebuild,v 1.10 2009/09/23 19:40:57 patrick 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     SRC_URI="ftp://ftp.kernel.org/pub/linux/utils/net/NIS/${P}.tar.bz2"
12    
13     LICENSE="GPL-2"
14     SLOT="0"
15 jer 1.9 KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86"
16 eradicator 1.1
17 patrick 1.10 DEPEND=""
18 eradicator 1.1
19     src_unpack() {
20     unpack ${A}
21 jmbsvicetto 1.8 cd "${S}"
22     epatch "${FILESDIR}/${PN}-2.8-bsd.patch"
23 eradicator 1.1 }
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 jmbsvicetto 1.8 make DESTDIR="${D}" install || die
47 eradicator 1.1 dodoc AUTHORS ChangeLog NEWS README THANKS TODO
48     insinto /etc/yp ; doins etc/nicknames
49     # This messes up boot so we remove it
50 jmbsvicetto 1.8 rm -d "${D}/bin/ypdomainname"
51     rm -d "${D}/bin/nisdomainname"
52     rm -d "${D}/bin/domainname"
53 eradicator 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20