/[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.15 - (hide annotations) (download)
Sun Nov 2 12:10:30 2008 UTC (11 years, 5 months ago) by jmbsvicetto
Branch: MAIN
Changes since 1.14: +6 -6 lines
Removing eradicator as a maintainer since he was retired.
Quoted some vars.
(Portage version: 2.2_rc12/cvs/Linux 2.6.27-gentoo x86_64)

1 jmbsvicetto 1.15 # Copyright 1999-2008 Gentoo Foundation
2 woodchip 1.1 # Distributed under the terms of the GNU General Public License v2
3 jmbsvicetto 1.15 # $Header: /var/cvsroot/gentoo-x86/net-nds/yp-tools/yp-tools-2.8.ebuild,v 1.14 2005/08/11 18:26:19 eradicator Exp $
4 eradicator 1.12
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 eradicator 1.14 SRC_URI="ftp://ftp.kernel.org/pub/linux/utils/net/NIS/OLD/${P}.tar.bz2"
10 woodchip 1.1
11 vapier 1.6 LICENSE="GPL-2"
12 woodchip 1.1 SLOT="0"
13 agriffis 1.13 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 jmbsvicetto 1.15 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 jmbsvicetto 1.15 rm -d "${D}/bin/ypdomainname"
43     rm -d "${D}/bin/nisdomainname"
44     rm -d "${D}/bin/domainname"
45 woodchip 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20