diff options
author | Jeroen Roovers <jer@gentoo.org> | 2010-12-31 18:40:32 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2010-12-31 18:40:32 +0000 |
commit | aa40528ab5c8981ec33b1403ce34937098d67a31 (patch) | |
tree | d2e229aac020761bbcb0f0201d6ec298d37b724b /net-misc/netkit-rusers | |
parent | Version bump, no longer uses gnome-vfs, requires at least python-2.5 and othe... (diff) | |
download | gentoo-2-aa40528ab5c8981ec33b1403ce34937098d67a31.tar.gz gentoo-2-aa40528ab5c8981ec33b1403ce34937098d67a31.tar.bz2 gentoo-2-aa40528ab5c8981ec33b1403ce34937098d67a31.zip |
Respect LDFLAGS (bug #337620), CC. Fix some includes. Remove empty DEPEND.
(Portage version: 2.2.0_alpha10/cvs/Linux i686)
Diffstat (limited to 'net-misc/netkit-rusers')
-rw-r--r-- | net-misc/netkit-rusers/ChangeLog | 10 | ||||
-rw-r--r-- | net-misc/netkit-rusers/files/netkit-rusers-0.17-include.patch | 30 | ||||
-rw-r--r-- | net-misc/netkit-rusers/netkit-rusers-0.17-r1.ebuild | 42 |
3 files changed, 80 insertions, 2 deletions
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 <jer@gentoo.org> +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 <patrick@gentoo.org> 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 <stdio.h> + #include <stdarg.h> + #include <err.h> ++#include <stdlib.h> /* 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 <sys/socket.h> + #include <sys/param.h> + #include <sys/stat.h> ++#include <time.h> /* time() */ + #ifdef XIDLE + #include <setjmp.h> + #include <X11/Xlib.h> +--- ./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 <utmp.h> + #include <stdlib.h> + #include <unistd.h> ++#include <time.h> /* 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 +} |