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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Thu Jun 26 14:14:14 2014 UTC (5 years, 6 months ago) by kensington
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0x06B1F38DCA45A1EC!)

1 # Copyright 1999-2009 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.9-r1.ebuild,v 1.6 2009/12/15 19:08:59 armin76 Exp $
4
5 EAPI="2"
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 KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86"
16 IUSE="nls"
17
18 src_prepare() {
19 epatch "${FILESDIR}/${PN}-2.8-bsd.patch"
20 epatch "${FILESDIR}/${PN}-2.9-strip.patch"
21 }
22
23 src_configure() {
24 local myconf="--sysconfdir=/etc/yp"
25 if ! use nls
26 then
27 myconf="${myconf} --disable-nls"
28 mkdir intl
29 touch intl/libintl.h
30 export CPPFLAGS="${CPPFLAGS} -I${S}"
31
32 for i in lib/nicknames.c src/*.c
33 do
34 cp ${i} ${i}.orig
35 sed 's:<libintl.h>:<intl/libintl.h>:' \
36 ${i}.orig > ${i}
37 done
38 fi
39 econf ${myconf} || die "econf failed"
40 }
41
42 src_install() {
43 emake DESTDIR="${D}" install || die
44 dodoc AUTHORS ChangeLog NEWS README THANKS TODO
45 insinto /etc/yp ; doins etc/nicknames
46 # This messes up boot so we remove it
47 rm -f \
48 "${D}/bin/ypdomainname" \
49 "${D}/bin/nisdomainname" \
50 "${D}/bin/domainname"
51 }

  ViewVC Help
Powered by ViewVC 1.1.20