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

Contents of /net-misc/chrony/chrony-1.24-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Fri Jul 15 04:06:59 2011 UTC (8 years, 6 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Old.

(Portage version: 2.2.0_alpha45/cvs/Linux x86_64)

1 # Copyright 1999-2010 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.24-r2.ebuild,v 1.7 2010/10/14 16:35:47 ranger Exp $
4
5 EAPI=2
6
7 inherit eutils toolchain-funcs
8
9 DESCRIPTION="NTP client and server programs"
10 HOMEPAGE="http://chrony.tuxfamily.org/"
11 SRC_URI="http://download.tuxfamily.org/${PN}/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 hppa ~mips ppc sparc x86"
16 IUSE="caps readline"
17
18 RDEPEND="
19 readline? ( >=sys-libs/readline-4.1-r4 )
20 caps? ( sys-libs/libcap )
21 "
22 DEPEND="${RDEPEND}"
23
24 src_prepare() {
25 epatch "${FILESDIR}"/${PN}-1.21-hppa.patch
26 sed -i "s:/etc/chrony\.:/etc/chrony/chrony.:g" \
27 examples/* chrony*.{1,5,8} faq.txt chrony.texi || die "sed failed"
28 }
29
30 src_configure() {
31 tc-export CC
32 local myconf
33 use readline || myconf+=" --disable-readline"
34 #use ipv6 || myconf+=" --disable-ipv6"
35 use caps || myconf+=" --disable-linuxcaps"
36 # selfwritten configure
37 ./configure \
38 --prefix=/usr \
39 --sysconfdir=/etc/chrony \
40 --infodir=/usr/share/info \
41 --mandir=/usr/share/man \
42 --docdir=/usr/share/doc/${PF} \
43 ${myconf} ${EXTRA_ECONF} || die "configure failed"
44 }
45
46 src_compile() {
47 emake all || die "make failed"
48 emake docs || die "make docs failed"
49 }
50
51 src_install() {
52 emake DESTDIR="${D}" install || die
53 rm "${D}"/usr/share/doc/${PF}/COPYING || die
54 dodoc examples/chrony.{conf,keys}.example || die
55 doinfo chrony.info* || die
56
57 newinitd "${FILESDIR}"/chronyd.rc chronyd || die
58 dosed "s:the documentation directory:/usr/share/doc/${PF}/:" \
59 /etc/init.d/chronyd || die "doc sed failed"
60 newconfd "${FILESDIR}"/chronyd.conf chronyd || die
61
62 keepdir /var/{lib,log}/chrony /etc/chrony
63
64 insinto /etc/logrotate.d
65 newins "${FILESDIR}"/chrony.logrotate chrony
66 }

  ViewVC Help
Powered by ViewVC 1.1.20