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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sat Mar 29 08:11:16 2008 UTC (11 years, 9 months ago) by tove
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Cleaning
(Portage version: 2.1.4.4)

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-r1.ebuild,v 1.8 2006/11/03 20:58:05 iluxa Exp $
4
5 inherit eutils toolchain-funcs
6
7 PATCH_VER=1
8 PATCHDIR="${WORKDIR}/patch"
9
10 DESCRIPTION="NTP client and server programs"
11 HOMEPAGE="http://chrony.sunsite.dk/"
12 SRC_URI="http://chrony.sunsite.dk/download/${P}.tar.gz
13 mirror://gentoo/${P}-patches-${PATCH_VER}.tar.bz2"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="~amd64 hppa mips ppc sparc x86"
18 IUSE="readline"
19
20 DEPEND="readline? ( >=sys-libs/readline-4.1-r4 )"
21
22 src_unpack() {
23 unpack ${A} ; cd "${S}"
24 epatch "${FILESDIR}"/${PN}-1.20-conf.c-gentoo.diff
25 epatch "${FILESDIR}"/${PN}-1.20-chrony.conf.example-gentoo.diff
26 epatch "${FILESDIR}"/${P}-makefile.diff
27
28 # patches from chrony git repo: <http://chrony.sunsite.dk/git>
29 EPATCH_MULTI_MSG="Applying patches from upstream..." \
30 EPATCH_EXCLUDE="chrony-1.21-quash_compile_warnings.diff" \
31 EPATCH_FORCE="yes" \
32 EPATCH_SUFFIX="diff" epatch "${PATCHDIR}"
33
34 # Allow Hz=200 detection (#21058, Alexander Papaspyrou)
35 # epatch "${FILESDIR}"/${PN}-1.20-sys_linux.c-gentoo.diff
36
37 sed -i "s:#if defined(__i386__) || defined(__sh__):& || defined(__x86_64__):" \
38 io_linux.h || die "amd64 fix"
39 sed -i "s:/etc/chrony:/etc/chrony/chrony:g" \
40 chrony*.{1,5,8} faq.txt chrony.texi || die "sed failed"
41 epatch "${FILESDIR}"/${P}-hppa.patch
42 }
43
44 src_compile() {
45 export CC="$(tc-getCC)"
46 econf $(use_enable readline) || die "configure failed"
47 emake all || die "make failed"
48 emake docs || die "make docs failed"
49 }
50
51 src_install() {
52 dobin chronyc || die "dobin failed"
53 dosbin chronyd || die "dosbin failed"
54
55 dodoc chrony.txt README examples/chrony.{conf,keys}.example || die "dodoc failed"
56 dohtml chrony.html || die "dohtml failed"
57 doman *.{1,5,8}
58 doinfo chrony.info*
59
60 newinitd "${FILESDIR}"/chronyd.rc chronyd || die "newinitd failed"
61 dosed "s:the documentation directory:/usr/share/doc/${PF}/:" \
62 /etc/init.d/chronyd || die "doc sed failed"
63 newconfd "${FILESDIR}"/chronyd.conf chronyd || die "newconfd failed"
64
65 keepdir /var/{lib,log}/chrony /etc/chrony
66 }

  ViewVC Help
Powered by ViewVC 1.1.20