/[gentoo-x86]/net-misc/chrony/chrony-1.21.ebuild
Gentoo

Contents of /net-misc/chrony/chrony-1.21.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Mar 12 10:39:01 2007 UTC (12 years, 8 months ago) by tove
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Cleaning
(Portage version: 2.1.2.2)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/chrony/chrony-1.21.ebuild,v 1.3 2006/04/26 18:30:53 squinky86 Exp $
4
5 inherit eutils toolchain-funcs
6
7 DESCRIPTION="NTP client and server programs"
8 HOMEPAGE="http://chrony.sunsite.dk/"
9 SRC_URI="http://chrony.sunsite.dk/download/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~amd64 ~hppa ~mips ~ppc ~sparc ~x86"
14 IUSE="readline"
15
16 DEPEND="readline? ( >=sys-libs/readline-4.1-r4 )"
17
18 src_unpack() {
19 unpack ${A} ; cd "${S}"
20 epatch "${FILESDIR}"/${PN}-1.20-conf.c-gentoo.diff
21 epatch "${FILESDIR}"/${PN}-1.20-chrony.conf.example-gentoo.diff
22 epatch "${FILESDIR}"/${P}-addrfilt.c.diff
23 epatch "${FILESDIR}"/${P}-io_linux.h.diff
24
25 # Allow Hz=200 detection (#21058, Alexander Papaspyrou)
26 # epatch "${FILESDIR}"/${PN}-1.20-sys_linux.c-gentoo.diff
27
28 sed -i "s:/etc/chrony:/etc/chrony/chrony:g" \
29 chrony.conf.5 faq.txt chrony.texi || die "sed failed"
30 }
31
32 src_compile() {
33 export CC="$(tc-getCC)"
34 econf $(use_enable readline) || die "configure failed"
35 emake all || die "make failed"
36 emake docs || die "make docs failed"
37 }
38
39 src_install() {
40 dobin chronyc || die "dobin failed"
41 dosbin chronyd || die "dosbin failed"
42
43 dodoc chrony.txt README examples/chrony.{conf,keys}.example || die "dodoc failed"
44 dohtml chrony.html || die "dohtml failed"
45 doman *.{1,5,8}
46 doinfo chrony.info*
47
48 exeinto /etc/init.d
49 newexe "${FILESDIR}"/chronyd.rc chronyd || die "newexe failed"
50 insinto /etc/conf.d
51 newins "${FILESDIR}"/chronyd.conf chronyd || die "newins failed"
52 dosed "s:the documentation directory:/usr/share/doc/${PF}/:" /etc/init.d/chronyd
53
54 keepdir /var/{lib,log}/chrony /etc/chrony
55 }

  ViewVC Help
Powered by ViewVC 1.1.20