summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2010-09-15 15:28:03 +0000
committerJeroen Roovers <jer@gentoo.org>2010-09-15 15:28:03 +0000
commit7f47385c07fe395dbfe59cf59ac2a51436766a3c (patch)
tree410c34f531d503cde8bdd7b97b86d4398b8a5346 /net-misc/netkit-rwho
parentBump #336352, disable bzip2 support #337014 (diff)
downloadgentoo-2-7f47385c07fe395dbfe59cf59ac2a51436766a3c.tar.gz
gentoo-2-7f47385c07fe395dbfe59cf59ac2a51436766a3c.tar.bz2
gentoo-2-7f47385c07fe395dbfe59cf59ac2a51436766a3c.zip
Respect LDFLAGS (bug #337404), CC. Die when appropriate. Remove useless (R)DEPEND.
(Portage version: 2.2_rc81/cvs/Linux i686)
Diffstat (limited to 'net-misc/netkit-rwho')
-rw-r--r--net-misc/netkit-rwho/ChangeLog10
-rw-r--r--net-misc/netkit-rwho/netkit-rwho-0.17-r4.ebuild51
2 files changed, 59 insertions, 2 deletions
diff --git a/net-misc/netkit-rwho/ChangeLog b/net-misc/netkit-rwho/ChangeLog
index 4ce36c9338f2..3ae1dcbb246b 100644
--- a/net-misc/netkit-rwho/ChangeLog
+++ b/net-misc/netkit-rwho/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-misc/netkit-rwho
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/netkit-rwho/ChangeLog,v 1.22 2009/09/23 19:40:31 patrick Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/netkit-rwho/ChangeLog,v 1.23 2010/09/15 15:28:03 jer Exp $
+
+*netkit-rwho-0.17-r4 (15 Sep 2010)
+
+ 15 Sep 2010; Jeroen Roovers <jer@gentoo.org> +netkit-rwho-0.17-r4.ebuild:
+ Respect LDFLAGS (bug #337404), CC. Die when appropriate. Remove useless
+ (R)DEPEND.
23 Sep 2009; Patrick Lauer <patrick@gentoo.org>
netkit-rwho-0.17-r3.ebuild:
diff --git a/net-misc/netkit-rwho/netkit-rwho-0.17-r4.ebuild b/net-misc/netkit-rwho/netkit-rwho-0.17-r4.ebuild
new file mode 100644
index 000000000000..de555ab9d9d6
--- /dev/null
+++ b/net-misc/netkit-rwho/netkit-rwho-0.17-r4.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/netkit-rwho/netkit-rwho-0.17-r4.ebuild,v 1.1 2010/09/15 15:28:03 jer Exp $
+
+EAPI="2"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Netkit - ruptime/rwho/rwhod"
+HOMEPAGE="http://www.hcs.harvard.edu/~dholland/computers/netkit.html"
+SRC_URI="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/${P}.tar.gz
+ mirror://gentoo/${PN}-0.17-patches.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~s390 ~sh ~sparc ~x86"
+IUSE=""
+
+src_prepare() {
+ epatch "${WORKDIR}"/${P}-tiny-packet-dos.patch
+ epatch "${WORKDIR}"/${P}-gentoo.diff
+ epatch "${WORKDIR}"/${P}-debian.patch
+ sed -i configure \
+ -e '/^LDFLAGS=/d' \
+ || die "sed configure"
+}
+
+src_configure() {
+ # Not an autotools build system
+ ./configure --with-c-compiler=$(tc-getCC) || die "configure failed"
+ sed -i MCONFIG \
+ -e "s:-O2::" \
+ -e "s:-Wpointer-arith::" \
+ || die "sed MCONFIG"
+}
+
+src_install() {
+ keepdir /var/spool/rwho
+
+ into /usr
+ dobin ruptime/ruptime rwho/rwho || die "dobin failed"
+ dosbin rwhod/rwhod || die "dosbin failed"
+ doman ruptime/ruptime.1 rwho/rwho.1 rwhod/rwhod.8
+ dodoc README ChangeLog
+
+ newinitd "${FILESDIR}"/${P}-rc rwhod
+ newconfd "${FILESDIR}"/${P}-confd rwhod
+
+ exeinto /etc/cron.monthly
+ doexe "${FILESDIR}"/${P}-cron
+}