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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Wed Jun 5 14:26:12 2013 UTC (6 years, 7 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Old.

(Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key A792A613)

1 # Copyright 1999-2013 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.26.ebuild,v 1.8 2013/01/26 17:48:11 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="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 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 ${myconf} ${EXTRA_ECONF} \
38 --docdir=/usr/share/doc/${PF} \
39 --infodir=/usr/share/info \
40 --mandir=/usr/share/man \
41 --prefix=/usr \
42 --sysconfdir=/etc/chrony \
43 || 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 newconfd "${FILESDIR}"/chronyd.conf chronyd || die
59
60 keepdir /var/{lib,log}/chrony /etc/chrony
61
62 insinto /etc/logrotate.d
63 newins "${FILESDIR}"/chrony.logrotate chrony
64 }

  ViewVC Help
Powered by ViewVC 1.1.20