/[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.3 - (show annotations) (download)
Sun Nov 2 12:10:30 2008 UTC (11 years, 3 months ago) by jmbsvicetto
Branch: MAIN
Changes since 1.2: +8 -8 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-r1.ebuild,v 1.2 2005/08/11 18:26:19 eradicator Exp $
4
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/OLD/${P}.tar.bz2"
12
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