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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sun Feb 9 12:38:50 2014 UTC (5 years, 11 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Old.

(Portage version: 2.2.8-r1/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.29-r1.ebuild,v 1.8 2013/12/23 16:00:02 ago Exp $
4
5 EAPI=5
6 inherit eutils systemd toolchain-funcs
7
8 DESCRIPTION="NTP client and server programs"
9 HOMEPAGE="http://chrony.tuxfamily.org/"
10 SRC_URI="http://download.tuxfamily.org/${PN}/${P/_/-}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 ~arm hppa ~mips ppc sparc x86"
15 IUSE="caps ipv6 +readline +rtc selinux"
16
17 RDEPEND="
18 caps? ( sys-libs/libcap )
19 readline? ( >=sys-libs/readline-4.1-r4 )
20 selinux? ( sec-policy/selinux-chronyd )
21 "
22 DEPEND="
23 ${RDEPEND}
24 sys-apps/texinfo
25 "
26
27 S="${WORKDIR}/${P/_/-}"
28 DOCS=( examples/chrony.{conf,keys}.example )
29
30 src_prepare() {
31 sed -i \
32 -e 's:/etc/chrony\.:/etc/chrony/chrony.:g' \
33 -e 's:/var/run:/run:g' \
34 conf.c chrony.texi.in chrony.txt examples/* faq.txt || die
35 }
36
37 src_configure() {
38 tc-export CC
39
40 # not an autotools generated script
41 ./configure \
42 $(usex caps '' --disable-linuxcaps) \
43 $(usex ipv6 '' --disable-ipv6) \
44 $(usex readline '' --disable-readline) \
45 $(usex rtc '' --disable-rtc) \
46 --docdir=/usr/share/doc/${PF} \
47 --infodir=/usr/share/info \
48 --mandir=/usr/share/man \
49 --prefix=/usr \
50 --sysconfdir=/etc/chrony \
51 --without-nss \
52 --without-tomcrypt \
53 ${EXTRA_ECONF} \
54 || die
55 }
56
57 src_compile() {
58 emake all docs
59 }
60
61 src_install() {
62 default
63 rm "${D}"/usr/share/doc/${PF}/COPYING || die
64 doinfo chrony.info*
65
66 newinitd "${FILESDIR}"/chronyd.init chronyd
67 newconfd "${FILESDIR}"/chronyd.conf chronyd
68
69 keepdir /var/{lib,log}/chrony /etc/chrony
70
71 insinto /etc/logrotate.d
72 newins "${FILESDIR}"/chrony.logrotate chrony
73
74 systemd_newunit "${FILESDIR}"/chronyd.service-r1 chronyd.service
75 systemd_enable_ntpunit 50-chrony chronyd.service
76 }

  ViewVC Help
Powered by ViewVC 1.1.20