/[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 - (show annotations) (download)
Sun Nov 2 12:10:30 2008 UTC (11 years, 4 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 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $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
5 IUSE="nls"
6
7 DESCRIPTION="Network Information Service tools"
8 HOMEPAGE="http://www.linux-nis.org/nis/"
9 SRC_URI="ftp://ftp.kernel.org/pub/linux/utils/net/NIS/OLD/${P}.tar.bz2"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86"
14
15 DEPEND="virtual/libc"
16
17 src_compile() {
18 local myconf="--sysconfdir=/etc/yp"
19 if ! use nls
20 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 econf ${myconf} || die "econf failed"
34 make || die
35 }
36
37 src_install() {
38 make DESTDIR="${D}" install || die
39 dodoc AUTHORS ChangeLog NEWS README THANKS TODO
40 insinto /etc/yp ; doins etc/nicknames
41 # This messes up boot so we remove it
42 rm -d "${D}/bin/ypdomainname"
43 rm -d "${D}/bin/nisdomainname"
44 rm -d "${D}/bin/domainname"
45 }

  ViewVC Help
Powered by ViewVC 1.1.20