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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.16 - (show annotations) (download)
Tue May 3 20:47:14 2005 UTC (14 years, 8 months ago) by eradicator
Branch: MAIN
CVS Tags: HEAD
Changes since 1.15: +1 -1 lines
FILE REMOVED
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.7-r1.ebuild,v 1.15 2005/04/01 16:37:04 agriffis Exp $
4
5 DESCRIPTION="NIS Tools"
6 HOMEPAGE="http://www.linux-nis.org/nis/"
7 SRC_URI="mirror://kernel/linux/utils/net/NIS/${P}.tar.bz2"
8
9 LICENSE="GPL-2"
10 SLOT="0"
11 KEYWORDS="x86 ppc sparc alpha ia64"
12 IUSE="nls"
13
14 DEPEND="virtual/libc"
15
16 src_compile() {
17 local myconf="--sysconfdir=/etc/yp"
18 if ! use nls
19 then
20 myconf="${myconf} --disable-nls"
21 mkdir intl
22 touch intl/libintl.h
23 export CPPFLAGS="${CPPFLAGS} -I${S}"
24
25 for i in lib/nicknames.c src/*.c
26 do
27 cp ${i} ${i}.orig
28 sed 's:<libintl.h>:<intl/libintl.h>:' \
29 ${i}.orig > ${i}
30 done
31 fi
32 econf ${myconf} || die "econf failed"
33 make || die
34 }
35
36 src_install() {
37 make DESTDIR=${D} install || die
38 dodoc AUTHORS ChangeLog NEWS README THANKS TODO
39 insinto /etc/yp ; doins etc/nicknames
40 # This messes up boot so we remove it
41 rm -d ${D}/bin/ypdomainname
42 rm -d ${D}/bin/nisdomainname
43 rm -d ${D}/bin/domainname
44 }

  ViewVC Help
Powered by ViewVC 1.1.20