blob: 6c6c80b81f4adee9d19dcefbe49cc48001b54bfe (
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 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Your Name <your email>
# $Header: /var/cvsroot/gentoo-x86/net-misc/clockspeed/clockspeed-0.62-r1.ebuild,v 1.2 2001/05/01 22:24:04 pete Exp $
#P=
A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="a simple ntp client"
SRC_URI="http://cr.yp.to/clockspeed/clockspeed-0.62.tar.gz"
HOMEPAGE="http://cr.yp.to/"
DEPEND="virtual/glibc"
src_unpack() {
unpack ${A}
cd ${S}
patch -p1 < ${FILESDIR}/${PF}-gentoo.diff
cp -a conf-cc conf-cc.orig
sed "s/@CFLAGS@/${CFLAGS}/" < conf-cc.orig > conf-cc
}
src_compile() {
try make
}
src_install () {
dodir /etc /usr/bin /usr/sbin /usr/share/man/man1
insinto /etc
doins leapsecs.dat
into /usr
dobin clockspeed clockadd clockview sntpclock taiclock taiclockd
doman clockspeed.1 clockadd.1 clockview.1 sntpclock.1 taiclock.1 taiclockd.1
install -o root -g root -m 0700 ${FILESDIR}/ntpclockset-${PVR} ${D}/usr/sbin/ntpclockset
dodoc BLURB CHANGES README THANKS TODO
}
|