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

1 jmbsvicetto 1.3 # Copyright 1999-2008 Gentoo Foundation
2 eradicator 1.1 # Distributed under the terms of the GNU General Public License v2
3 jer 1.4 # $Header: /var/cvsroot/gentoo-x86/net-nds/yp-tools/yp-tools-2.8-r1.ebuild,v 1.3 2008/11/02 12:10:30 jmbsvicetto 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 jmbsvicetto 1.3 cd "${S}"
22     epatch "${FILESDIR}/${P}-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.3 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.3 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