/[gentoo-x86]/net-misc/netkit-rwho/netkit-rwho-0.17-r4.ebuild
Gentoo

Contents of /net-misc/netkit-rwho/netkit-rwho-0.17-r4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Mon May 25 09:58:42 2015 UTC (4 years, 6 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +7 -6 lines
Fix by Andrew Miller to use printf instead of echo -n #529974 by Diego Elio Pettenò.

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key D2E96200)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/netkit-rwho/netkit-rwho-0.17-r4.ebuild,v 1.7 2014/07/18 19:45:52 jer Exp $
4
5 EAPI=5
6
7 inherit eutils toolchain-funcs
8
9 DESCRIPTION="Netkit - ruptime/rwho/rwhod"
10 HOMEPAGE="http://www.hcs.harvard.edu/~dholland/computers/netkit.html"
11 SRC_URI="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/${P}.tar.gz
12 https://dev.gentoo.org/~jer/${P}-patches.tar.bz2"
13
14 LICENSE="BSD"
15 SLOT="0"
16 KEYWORDS="alpha amd64 arm ~mips ppc s390 sh sparc x86"
17 IUSE=""
18
19 src_prepare() {
20 epatch "${WORKDIR}"/000{1,2,3,4}-*.patch
21 epatch "${FILESDIR}"/${P}-printf.patch #529974
22 }
23
24 src_configure() {
25 # Not an autotools build system
26 ./configure --with-c-compiler=$(tc-getCC) || die
27 sed -i \
28 -e "s:-O2::" \
29 -e "s:-Wpointer-arith::" \
30 MCONFIG || die
31 }
32
33 src_install() {
34 keepdir /var/spool/rwho
35
36 into /usr
37 dobin ruptime/ruptime rwho/rwho
38 dosbin rwhod/rwhod
39
40 doman ruptime/ruptime.1 rwho/rwho.1 rwhod/rwhod.8
41 dodoc README ChangeLog
42
43 newinitd "${FILESDIR}"/${P}-rc rwhod
44 newconfd "${FILESDIR}"/${P}-confd rwhod
45
46 exeinto /etc/cron.monthly
47 doexe "${FILESDIR}"/${P}-cron
48 }

  ViewVC Help
Powered by ViewVC 1.1.20