summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2008-01-16 02:38:44 +0000
committerAlec Warner <antarus@gentoo.org>2008-01-16 02:38:44 +0000
commitb0e41d5193435f98f1963c123b9c4d62350c6f37 (patch)
tree4afaf56685c40551afca11624aef22136350525c /net-nds
parentMarking epix-1.2.1 ppc for bug 205779 (diff)
downloadgentoo-2-b0e41d5193435f98f1963c123b9c4d62350c6f37.tar.gz
gentoo-2-b0e41d5193435f98f1963c123b9c4d62350c6f37.tar.bz2
gentoo-2-b0e41d5193435f98f1963c123b9c4d62350c6f37.zip
Update syntax issues in -r2 (no functional changes) -r3 fixes problems on recent glibc versions.
(Portage version: 2.1.3.19)
Diffstat (limited to 'net-nds')
-rw-r--r--net-nds/nis-utils/files/digest-nis-utils-1.4.1-r33
-rw-r--r--net-nds/nis-utils/files/nis-utils-glibc-internal-fix.patch11
-rw-r--r--net-nds/nis-utils/nis-utils-1.4.1-r2.ebuild6
-rw-r--r--net-nds/nis-utils/nis-utils-1.4.1-r3.ebuild40
4 files changed, 57 insertions, 3 deletions
diff --git a/net-nds/nis-utils/files/digest-nis-utils-1.4.1-r3 b/net-nds/nis-utils/files/digest-nis-utils-1.4.1-r3
new file mode 100644
index 000000000000..06db85fa6478
--- /dev/null
+++ b/net-nds/nis-utils/files/digest-nis-utils-1.4.1-r3
@@ -0,0 +1,3 @@
+MD5 b4b38d8b006d5ed6cb3e72ce0f354dba nis-utils-1.4.1.tar.bz2 387397
+RMD160 c7cd0d289080efb7a08ae2e668163a0158ddfcb5 nis-utils-1.4.1.tar.bz2 387397
+SHA256 bf559b3c48c4521fe79bf86efa9e20ab65ec9d85966a6a9268040af2f00ff6d1 nis-utils-1.4.1.tar.bz2 387397
diff --git a/net-nds/nis-utils/files/nis-utils-glibc-internal-fix.patch b/net-nds/nis-utils/files/nis-utils-glibc-internal-fix.patch
new file mode 100644
index 000000000000..2b5b5bbdb4a0
--- /dev/null
+++ b/net-nds/nis-utils/files/nis-utils-glibc-internal-fix.patch
@@ -0,0 +1,11 @@
+--- src/nisping/nisping.c 1998-12-05 08:01:56.000000000 -0800
++++ src/nisping/nisping.c 2008-01-15 17:26:43.894021748 -0800
+@@ -104,7 +104,7 @@
+ if (flags & MASTER_ONLY)
+ server_len = 1;
+
+- status = __nisbind_create (&dbp, server, server_len, flags);
++ status = __nisbind_create (&dbp, server, server_len, ~0, ~0, flags);
+ if (status != NIS_SUCCESS)
+ return status;
+
diff --git a/net-nds/nis-utils/nis-utils-1.4.1-r2.ebuild b/net-nds/nis-utils/nis-utils-1.4.1-r2.ebuild
index 49ce8316d54a..2b9a0eb165d8 100644
--- a/net-nds/nis-utils/nis-utils-1.4.1-r2.ebuild
+++ b/net-nds/nis-utils/nis-utils-1.4.1-r2.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-nds/nis-utils/nis-utils-1.4.1-r2.ebuild,v 1.2 2006/12/02 23:44:43 beandog Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-nds/nis-utils/nis-utils-1.4.1-r2.ebuild,v 1.3 2008/01/16 02:38:43 antarus Exp $
inherit eutils
@@ -19,7 +19,7 @@ RESTRICT="test"
src_unpack() {
unpack ${A}
- cd ${S}
+ cd "${S}"
epatch "${FILESDIR}/${PN}-gmp-fixes.patch"
}
diff --git a/net-nds/nis-utils/nis-utils-1.4.1-r3.ebuild b/net-nds/nis-utils/nis-utils-1.4.1-r3.ebuild
new file mode 100644
index 000000000000..66a3b2534752
--- /dev/null
+++ b/net-nds/nis-utils/nis-utils-1.4.1-r3.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-nds/nis-utils/nis-utils-1.4.1-r3.ebuild,v 1.1 2008/01/16 02:38:43 antarus Exp $
+
+inherit eutils versionator
+
+DESCRIPTION="NIS+ utilities"
+HOMEPAGE="http://www.linux-nis.org/"
+SRC_URI="mirror://kernel/linux/utils/net/NIS+/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="nls"
+
+DEPEND="dev-libs/gmp"
+
+RESTRICT="test"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${PN}-gmp-fixes.patch"
+
+ # nisping.c calls internal glibc functions, patch it if glibc is > 2.5
+ has_version '>=sys-apps/glibc-2.6' && \
+ epatch "${FILESDIR}/${PN}-glibc-internal-fix.patch"
+}
+
+src_compile() {
+ econf $(use_enable nls) || die "Configure failed"
+ emake || die "Make Failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "Install Failed"
+ mv "${D}"/usr/etc "${D}"/
+ dodoc AUTHORS ChangeLog INSTALL NEWS README THANKS TODO
+ newinitd "${FILESDIR}"/keyserv.rc keyserv
+}