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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Apr 21 03:56:54 2015 UTC (4 years, 7 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump (bug #545918).

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

1 # Copyright 1999-2015 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.31-r1.ebuild,v 1.1 2015/01/30 11:26:16 jer 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 LICENSE="GPL-2"
12 SLOT="0"
13
14 KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~sparc ~x86"
15 IUSE="caps ipv6 libedit readline +rtc selinux"
16 REQUIRED_USE="?? ( libedit readline )"
17
18 CDEPEND="
19 caps? ( sys-libs/libcap )
20 libedit? ( dev-libs/libedit )
21 readline? ( >=sys-libs/readline-4.1-r4 )
22 "
23 DEPEND="
24 ${CDEPEND}
25 sys-apps/texinfo
26 "
27 RDEPEND="
28 ${CDEPEND}
29 selinux? ( sec-policy/selinux-chronyd )
30 "
31
32 RESTRICT=test
33
34 S="${WORKDIR}/${P/_/-}"
35
36 src_prepare() {
37 sed -i \
38 -e 's:/etc/chrony\.:/etc/chrony/chrony.:g' \
39 -e 's:/var/run:/run:g' \
40 conf.c chrony.texi.in chrony.txt examples/* FAQ || die
41 }
42
43 src_configure() {
44 tc-export CC
45
46 local CHRONY_EDITLINE
47 # ./configure legend:
48 # --disable-readline : disable line editing entirely
49 # --without-readline : do not use sys-libs/readline (enabled by default)
50 # --without-editline : do not use dev-libs/libedit (enabled by default)
51 if ! use readline && ! use libedit; then
52 CHRONY_EDITLINE='--disable-readline'
53 else
54 CHRONY_EDITLINE+=" $(usex readline '' --without-readline)"
55 CHRONY_EDITLINE+=" $(usex libedit '' --without-editline)"
56 fi
57
58 # not an autotools generated script
59 local CHRONY_CONFIGURE="
60 ./configure \
61 $(usex caps '' --disable-linuxcaps) \
62 $(usex ipv6 '' --disable-ipv6) \
63 $(usex rtc '' --disable-rtc) \
64 ${CHRONY_EDITLINE} \
65 ${EXTRA_ECONF} \
66 --docdir=/usr/share/doc/${PF} \
67 --infodir=/usr/share/info \
68 --mandir=/usr/share/man \
69 --prefix=/usr \
70 --sysconfdir=/etc/chrony \
71 --without-nss \
72 --without-tomcrypt
73 "
74
75 # print the ./configure call to aid in future debugging
76 einfo ${CHRONY_CONFIGURE}
77 sh ${CHRONY_CONFIGURE} || die
78 }
79
80 src_compile() {
81 emake all docs
82 }
83
84 src_install() {
85 default
86 rm "${D}"/usr/share/doc/${PF}/COPYING || die
87 doinfo chrony.info*
88
89 newinitd "${FILESDIR}"/chronyd.init chronyd
90 newconfd "${FILESDIR}"/chronyd.conf chronyd
91
92 insinto /etc/${PN}
93 newins examples/chrony.conf.example chrony.conf
94 newins examples/chrony.keys.example chrony.keys
95
96 keepdir /var/{lib,log}/chrony
97
98 insinto /etc/logrotate.d
99 newins "${FILESDIR}"/chrony.logrotate chrony
100
101 systemd_newunit "${FILESDIR}"/chronyd.service-r2 chronyd.service
102 systemd_enable_ntpunit 50-chrony chronyd.service
103 }

  ViewVC Help
Powered by ViewVC 1.1.20