blob: fa5424a0c9bf082b01810e91713c701d19e216ca (
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
39
40
41
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/clockspeed/clockspeed-0.62-r3.ebuild,v 1.6 2004/09/08 17:14:35 blubb Exp $
inherit eutils
DESCRIPTION="A simple Network Time Protocol (NTP) client"
HOMEPAGE="http://cr.yp.to/clockspeed.html"
SRC_URI="http://cr.yp.to/clockspeed/${P}.tar.gz"
LICENSE="as-is"
SLOT="0"
KEYWORDS="x86 -ppc sparc ~amd64"
IUSE="static selinux"
DEPEND="sys-apps/groff"
RDEPEND=" selinux? ( sec-policy/selinux-clockspeed )"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${PV}-gentoo.patch
sed -i "s:@CFLAGS@:${CFLAGS}:" conf-cc
use static && LDFLAGS="${LDFLAGS} -static"
sed -i "s:@LDFLAGS@:${LDFLAGS}:" conf-ld
}
src_compile() {
emake || die
}
src_install() {
dobin clockspeed clockadd clockview sntpclock taiclock taiclockd
dosbin ${FILESDIR}/ntpclockset
doman clockspeed.1 clockadd.1 clockview.1 sntpclock.1 taiclock.1 taiclockd.1
dodoc BLURB CHANGES README THANKS TODO
insinto /var/lib/clockspeed
doins leapsecs.dat
}
|