From aa40528ab5c8981ec33b1403ce34937098d67a31 Mon Sep 17 00:00:00 2001 From: Jeroen Roovers Date: Fri, 31 Dec 2010 18:40:32 +0000 Subject: Respect LDFLAGS (bug #337620), CC. Fix some includes. Remove empty DEPEND. (Portage version: 2.2.0_alpha10/cvs/Linux i686) --- net-misc/netkit-rusers/ChangeLog | 10 ++++-- .../files/netkit-rusers-0.17-include.patch | 30 ++++++++++++++++ .../netkit-rusers/netkit-rusers-0.17-r1.ebuild | 42 ++++++++++++++++++++++ 3 files changed, 80 insertions(+), 2 deletions(-) create mode 100644 net-misc/netkit-rusers/files/netkit-rusers-0.17-include.patch create mode 100644 net-misc/netkit-rusers/netkit-rusers-0.17-r1.ebuild (limited to 'net-misc/netkit-rusers') diff --git a/net-misc/netkit-rusers/ChangeLog b/net-misc/netkit-rusers/ChangeLog index 7a3964559a34..43744b87b266 100644 --- a/net-misc/netkit-rusers/ChangeLog +++ b/net-misc/netkit-rusers/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-misc/netkit-rusers -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/netkit-rusers/ChangeLog,v 1.6 2009/09/23 19:40:07 patrick Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/netkit-rusers/ChangeLog,v 1.7 2010/12/31 18:40:32 jer Exp $ + +*netkit-rusers-0.17-r1 (31 Dec 2010) + + 31 Dec 2010; Jeroen Roovers +netkit-rusers-0.17-r1.ebuild, + +files/netkit-rusers-0.17-include.patch: + Respect LDFLAGS (bug #337620), CC. Fix some includes. Remove empty DEPEND. 23 Sep 2009; Patrick Lauer netkit-rusers-0.17.ebuild: Remove virtual/libc diff --git a/net-misc/netkit-rusers/files/netkit-rusers-0.17-include.patch b/net-misc/netkit-rusers/files/netkit-rusers-0.17-include.patch new file mode 100644 index 000000000000..9dccf5442c41 --- /dev/null +++ b/net-misc/netkit-rusers/files/netkit-rusers-0.17-include.patch @@ -0,0 +1,30 @@ +--- ./rup/err.c.orig 1997-04-06 00:13:31.000000000 +0200 ++++ ./rup/err.c 2010-12-31 19:29:41.000000000 +0100 +@@ -8,6 +8,7 @@ + #include + #include + #include ++#include /* exit() */ + + void err(int eval, const char *fmt, ...) { + va_list ap; +--- ./rpc.rusersd/rusers_proc.c.orig 2000-07-23 05:11:56.000000000 +0200 ++++ ./rpc.rusersd/rusers_proc.c 2010-12-31 19:27:50.000000000 +0100 +@@ -40,6 +40,7 @@ + #include + #include + #include ++#include /* time() */ + #ifdef XIDLE + #include + #include +--- ./rusers/rusers.c.orig 1999-12-12 20:32:05.000000000 +0100 ++++ ./rusers/rusers.c 2010-12-31 19:30:33.000000000 +0100 +@@ -44,6 +44,7 @@ + #include + #include + #include ++#include /* ctime() */ + + #include "../version.h" + diff --git a/net-misc/netkit-rusers/netkit-rusers-0.17-r1.ebuild b/net-misc/netkit-rusers/netkit-rusers-0.17-r1.ebuild new file mode 100644 index 000000000000..485b8e796ab1 --- /dev/null +++ b/net-misc/netkit-rusers/netkit-rusers-0.17-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/netkit-rusers/netkit-rusers-0.17-r1.ebuild,v 1.1 2010/12/31 18:40:32 jer Exp $ + +EAPI="2" + +inherit eutils toolchain-funcs + +DESCRIPTION="Netkit - rup rpc.rusersd rusers" +HOMEPAGE="http://www.hcs.harvard.edu/~dholland/computers/netkit.html" +SRC_URI="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/${P}.tar.gz" + +SLOT="0" +LICENSE="BSD" +KEYWORDS="~amd64 ~x86" +IUSE="" + +src_prepare() { + epatch "${FILESDIR}"/${P}-include.patch + sed -i configure -e '/^LDFLAGS=/d' || die "sed configure" +} + +src_configure() { + ./configure --with-c-compiler=$(tc-getCC) || die + sed -i MCONFIG -e "s:-O2::" -e "s:-Wpointer-arith::" || die "sed MCONFIG" +} + +src_compile() { + # see bug #244867 for parallel make issues + emake -j1 || die +} + +src_install() { + into /usr + dobin rup/rup + doman rup/rup.1 + dobin rpc.rusersd/rusersd + doman rpc.rusersd/rpc.rusersd.8 + dobin rusers/rusers + doman rusers/rusers.1 + dodoc README ChangeLog +} -- cgit v1.2.3-65-gdbad