summaryrefslogtreecommitdiff
blob: 2e49b2b62bd0c50cfb71d85af7f6255c8e71f880 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright 2008-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/ntpclient/ntpclient-2007.365.ebuild,v 1.4 2009/07/30 20:07:32 solar Exp $

inherit eutils flag-o-matic toolchain-funcs

DESCRIPTION="A NTP (RFC-1305) client for unix-alike computers."
HOMEPAGE="http://doolittle.icarus.com/~larry/"
SRC_URI="http://doolittle.icarus.com/${PN}/${PN}_${PV/./_}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
IUSE=""

RDEPEND=""
DEPEND=""

S="${WORKDIR}/${PN}-2007"

src_unpack() {
	unpack ${A}
	cd "${S}"
	sed -i -e s/'-O2'// Makefile
	sed -i -e 's/LDFLAGS +=/LDLIBS +=/' Makefile
	sed -i -e s/__adjtimex/adjtimex/g ntpclient.c
}

src_compile() {
	tc-export CC
	emake || die "emake failed in src_compile"
}

src_install() {
	dodir /usr/bin
	dobin ntpclient
	dodoc README HOWTO rate.awk rate2.awk
}