/[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.1 - (show annotations) (download)
Tue May 3 20:47:14 2005 UTC (14 years, 9 months ago) by eradicator
Branch: MAIN
Add support for BSD rpc.yppasswd thanks to Torsten Krah <tkrah@fachschaft.imn.htwk-leipzig.de>.  Closes bug #84851.
(Portage version: 2.0.51.21)

1 # Copyright 1999-2005 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.13 2005/04/01 16:37:04 agriffis 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/${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