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

Contents of /net-nds/yp-tools/yp-tools-2.12.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Jun 26 14:14:14 2014 UTC (5 years, 8 months ago) by kensington
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +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-2013 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.12.ebuild,v 1.2 2013/09/08 13:55:50 maekke 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 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
16 IUSE="nls"
17
18 src_configure() {
19 local myconf="--sysconfdir=/etc/yp"
20 if ! use nls
21 then
22 myconf="${myconf} --disable-nls"
23 mkdir intl
24 touch intl/libintl.h
25 export CPPFLAGS="${CPPFLAGS} -I${S}"
26
27 for i in lib/nicknames.c src/*.c
28 do
29 cp ${i} ${i}.orig
30 sed 's:<libintl.h>:<intl/libintl.h>:' \
31 ${i}.orig > ${i}
32 done
33 fi
34 econf ${myconf} || die "econf failed"
35 }
36
37 src_install() {
38 emake 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 -f \
43 "${D}/bin/ypdomainname" \
44 "${D}/bin/nisdomainname" \
45 "${D}/bin/domainname"
46 }

  ViewVC Help
Powered by ViewVC 1.1.20