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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Sun Dec 22 10:15:41 2013 UTC (6 years, 3 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Add unit file, drop old

(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)

1 jer 1.1 # Copyright 1999-2009 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 pacho 1.2 # $Header: /var/cvsroot/gentoo-x86/net-nds/yp-tools/yp-tools-2.10.ebuild,v 1.1 2009/11/18 03:06:12 jer Exp $
4 jer 1.1
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     }
21    
22     src_configure() {
23     local myconf="--sysconfdir=/etc/yp"
24     if ! use nls
25     then
26     myconf="${myconf} --disable-nls"
27     mkdir intl
28     touch intl/libintl.h
29     export CPPFLAGS="${CPPFLAGS} -I${S}"
30    
31     for i in lib/nicknames.c src/*.c
32     do
33     cp ${i} ${i}.orig
34     sed 's:<libintl.h>:<intl/libintl.h>:' \
35     ${i}.orig > ${i}
36     done
37     fi
38     econf ${myconf} || die "econf failed"
39     }
40    
41     src_install() {
42     emake DESTDIR="${D}" install || die
43     dodoc AUTHORS ChangeLog NEWS README THANKS TODO
44     insinto /etc/yp ; doins etc/nicknames
45     # This messes up boot so we remove it
46     rm -f \
47     "${D}/bin/ypdomainname" \
48     "${D}/bin/nisdomainname" \
49     "${D}/bin/domainname"
50     }

  ViewVC Help
Powered by ViewVC 1.1.20