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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Wed Feb 15 13:21:06 2012 UTC (7 years, 9 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Old.

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

1 # Copyright 1999-2011 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.25.ebuild,v 1.8 2011/12/29 17:49:27 jer 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="ppc"
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 sed -i "s:/etc/chrony\.:/etc/chrony/chrony.:g" \
26 examples/* chrony*.{1,5,8} faq.txt chrony.texi || die "sed failed"
27 }
28
29 src_configure() {
30 tc-export CC
31 local myconf
32 use readline || myconf+=" --disable-readline"
33 #use ipv6 || myconf+=" --disable-ipv6"
34 use caps || myconf+=" --disable-linuxcaps"
35 # selfwritten configure
36 ./configure \
37 --prefix=/usr \
38 --sysconfdir=/etc/chrony \
39 --infodir=/usr/share/info \
40 --mandir=/usr/share/man \
41 --docdir=/usr/share/doc/${PF} \
42 ${myconf} ${EXTRA_ECONF} || die "configure failed"
43 }
44
45 src_compile() {
46 emake all || die "make failed"
47 emake docs || die "make docs failed"
48 }
49
50 src_install() {
51 emake DESTDIR="${D}" install || die
52 rm "${D}"/usr/share/doc/${PF}/COPYING || die
53 dodoc examples/chrony.{conf,keys}.example || die
54 doinfo chrony.info* || die
55
56 newinitd "${FILESDIR}"/chronyd.rc chronyd || die
57 dosed "s:the documentation directory:/usr/share/doc/${PF}/:" \
58 /etc/init.d/chronyd || die "doc sed failed"
59 newconfd "${FILESDIR}"/chronyd.conf chronyd || die
60
61 keepdir /var/{lib,log}/chrony /etc/chrony
62
63 insinto /etc/logrotate.d
64 newins "${FILESDIR}"/chrony.logrotate chrony
65 }

  ViewVC Help
Powered by ViewVC 1.1.20