summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2009-07-07 01:05:10 +0000
committerJeroen Roovers <jer@gentoo.org>2009-07-07 01:05:10 +0000
commit48fc8dec85ef7db7a6dd58ae3be9c61da5e28b07 (patch)
tree26ada145605c702f65499658bc88e54019fcccbb /net-nds/yp-tools
parentamd64 stable - 276589 (diff)
downloadgentoo-2-48fc8dec85ef7db7a6dd58ae3be9c61da5e28b07.tar.gz
gentoo-2-48fc8dec85ef7db7a6dd58ae3be9c61da5e28b07.tar.bz2
gentoo-2-48fc8dec85ef7db7a6dd58ae3be9c61da5e28b07.zip
Do not strip. Use emake instead of make. Use rm -f instead of rm -d (one command execution instead of three). Remove stupid DEPEND.
(Portage version: 2.2_rc33/cvs/Linux i686)
Diffstat (limited to 'net-nds/yp-tools')
-rw-r--r--net-nds/yp-tools/ChangeLog11
-rw-r--r--net-nds/yp-tools/files/yp-tools-2.9-strip.patch11
-rw-r--r--net-nds/yp-tools/yp-tools-2.9-r1.ebuild51
3 files changed, 71 insertions, 2 deletions
diff --git a/net-nds/yp-tools/ChangeLog b/net-nds/yp-tools/ChangeLog
index 8517ac804335..f3f09ff91966 100644
--- a/net-nds/yp-tools/ChangeLog
+++ b/net-nds/yp-tools/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-nds/yp-tools
-# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-nds/yp-tools/ChangeLog,v 1.34 2008/11/02 12:59:39 jmbsvicetto Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-nds/yp-tools/ChangeLog,v 1.35 2009/07/07 01:05:09 jer Exp $
+
+*yp-tools-2.9-r1 (07 Jul 2009)
+
+ 07 Jul 2009; Jeroen Roovers <jer@gentoo.org> +yp-tools-2.9-r1.ebuild,
+ +files/yp-tools-2.9-strip.patch:
+ Do not strip. Use emake instead of make. Use rm -f instead of rm -d (one
+ command execution instead of three). Remove stupid DEPEND.
02 Nov 2008; Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org>
metadata.xml:
diff --git a/net-nds/yp-tools/files/yp-tools-2.9-strip.patch b/net-nds/yp-tools/files/yp-tools-2.9-strip.patch
new file mode 100644
index 000000000000..f9eb6fc5d26c
--- /dev/null
+++ b/net-nds/yp-tools/files/yp-tools-2.9-strip.patch
@@ -0,0 +1,11 @@
+--- yp-tools-2.9/src/Makefile.in.orig 2004-06-21 14:17:42.000000000 +0200
++++ yp-tools-2.9/src/Makefile.in 2009-07-07 02:51:30.000000000 +0200
+@@ -144,7 +144,7 @@
+ GMSGFMT = @GMSGFMT@
+ INSTALL_DATA = @INSTALL_DATA@
+ #
+-INSTALL_PROGRAM = @INSTALL_PROGRAM@ -s -m 555
++INSTALL_PROGRAM = @INSTALL_PROGRAM@ -m 555
+ INSTALL_SCRIPT = @INSTALL_SCRIPT@
+ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+ INTLLIBS = @INTLLIBS@
diff --git a/net-nds/yp-tools/yp-tools-2.9-r1.ebuild b/net-nds/yp-tools/yp-tools-2.9-r1.ebuild
new file mode 100644
index 000000000000..2a8e64f21afa
--- /dev/null
+++ b/net-nds/yp-tools/yp-tools-2.9-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-nds/yp-tools/yp-tools-2.9-r1.ebuild,v 1.1 2009/07/07 01:05:09 jer Exp $
+
+EAPI="2"
+
+inherit eutils
+
+DESCRIPTION="Network Information Service tools"
+HOMEPAGE="http://www.linux-nis.org/nis/"
+SRC_URI="ftp://ftp.kernel.org/pub/linux/utils/net/NIS/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="nls"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-2.8-bsd.patch"
+ epatch "${FILESDIR}/${PN}-2.9-strip.patch"
+}
+
+src_configure() {
+ local myconf="--sysconfdir=/etc/yp"
+ if ! use nls
+ then
+ myconf="${myconf} --disable-nls"
+ mkdir intl
+ touch intl/libintl.h
+ export CPPFLAGS="${CPPFLAGS} -I${S}"
+
+ for i in lib/nicknames.c src/*.c
+ do
+ cp ${i} ${i}.orig
+ sed 's:<libintl.h>:<intl/libintl.h>:' \
+ ${i}.orig > ${i}
+ done
+ fi
+ econf ${myconf} || die "econf failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc AUTHORS ChangeLog NEWS README THANKS TODO
+ insinto /etc/yp ; doins etc/nicknames
+ # This messes up boot so we remove it
+ rm -f \
+ "${D}/bin/ypdomainname" \
+ "${D}/bin/nisdomainname" \
+ "${D}/bin/domainname"
+}