Lines 1-10
Link Here
|
1 |
# Copyright 1999-2008 Gentoo Foundation |
1 |
# Copyright 1999-2009 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
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.ebuild,v 1.8 2008/11/02 12:10:30 jmbsvicetto Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-nds/yp-tools/yp-tools-2.9.ebuild,v 1.8 2008/11/02 12:10:30 jmbsvicetto Exp $ |
4 |
|
4 |
|
5 |
IUSE="nls" |
5 |
inherit autotools eutils |
6 |
|
|
|
7 |
inherit eutils |
8 |
|
6 |
|
9 |
DESCRIPTION="Network Information Service tools" |
7 |
DESCRIPTION="Network Information Service tools" |
10 |
HOMEPAGE="http://www.linux-nis.org/nis/" |
8 |
HOMEPAGE="http://www.linux-nis.org/nis/" |
Lines 13-25
Link Here
|
13 |
LICENSE="GPL-2" |
11 |
LICENSE="GPL-2" |
14 |
SLOT="0" |
12 |
SLOT="0" |
15 |
KEYWORDS="alpha amd64 ~hppa ia64 ~mips ppc ppc64 sparc x86" |
13 |
KEYWORDS="alpha amd64 ~hppa ia64 ~mips ppc ppc64 sparc x86" |
|
|
14 |
IUSE="nls" |
16 |
|
15 |
|
17 |
DEPEND="virtual/libc" |
16 |
DEPEND="virtual/libc" |
|
|
17 |
RDEPEND="${DEPEND} \ |
18 |
nls? ( sys-devel/gettext )" |
18 |
|
19 |
|
19 |
src_unpack() { |
20 |
src_unpack() { |
20 |
unpack ${A} |
21 |
unpack ${A} |
21 |
cd "${S}" |
22 |
cd "${S}" |
|
|
23 |
|
22 |
epatch "${FILESDIR}/${PN}-2.8-bsd.patch" |
24 |
epatch "${FILESDIR}/${PN}-2.8-bsd.patch" |
|
|
25 |
sed -i 's/@INSTALL_PROGRAM@ -s/@INSTALL_PROGRAM@/g' src/Makefile.am || die "sed Makefile.am failed" |
26 |
|
27 |
eautoreconf |
23 |
} |
28 |
} |
24 |
|
29 |
|
25 |
src_compile() { |
30 |
src_compile() { |
Lines 38-51
Link Here
|
38 |
${i}.orig > ${i} |
43 |
${i}.orig > ${i} |
39 |
done |
44 |
done |
40 |
fi |
45 |
fi |
41 |
econf ${myconf} || die "econf failed" |
46 |
econf ${myconf} |
42 |
make || die |
47 |
emake || die "emake failed" |
43 |
} |
48 |
} |
44 |
|
49 |
|
45 |
src_install() { |
50 |
src_install() { |
46 |
make DESTDIR="${D}" install || die |
51 |
emake DESTDIR="${D}" install || die "emake install failed" |
47 |
dodoc AUTHORS ChangeLog NEWS README THANKS TODO |
52 |
dodoc AUTHORS ChangeLog NEWS README THANKS TODO || die "dodoc failed" |
48 |
insinto /etc/yp ; doins etc/nicknames |
53 |
insinto /etc/yp |
|
|
54 |
doins etc/nicknames || die "doins failed" |
55 |
|
49 |
# This messes up boot so we remove it |
56 |
# This messes up boot so we remove it |
50 |
rm -d "${D}/bin/ypdomainname" |
57 |
rm -d "${D}/bin/ypdomainname" |
51 |
rm -d "${D}/bin/nisdomainname" |
58 |
rm -d "${D}/bin/nisdomainname" |