Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/chrony: ChangeLog chrony-2.0_pre1.ebuild
Date: Fri, 30 Jan 2015 12:24:58
Message-Id: 20150130122453.3759E10AEA@oystercatcher.gentoo.org
1 jer 15/01/30 12:24:53
2
3 Modified: ChangeLog
4 Added: chrony-2.0_pre1.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key A792A613)
9
10 Revision Changes Path
11 1.150 net-misc/chrony/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/chrony/ChangeLog?rev=1.150&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/chrony/ChangeLog?rev=1.150&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/chrony/ChangeLog?r1=1.149&r2=1.150
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/chrony/ChangeLog,v
20 retrieving revision 1.149
21 retrieving revision 1.150
22 diff -u -r1.149 -r1.150
23 --- ChangeLog 30 Jan 2015 11:26:16 -0000 1.149
24 +++ ChangeLog 30 Jan 2015 12:24:53 -0000 1.150
25 @@ -1,6 +1,11 @@
26 # ChangeLog for net-misc/chrony
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-misc/chrony/ChangeLog,v 1.149 2015/01/30 11:26:16 jer Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/chrony/ChangeLog,v 1.150 2015/01/30 12:24:53 jer Exp $
30 +
31 +*chrony-2.0_pre1 (30 Jan 2015)
32 +
33 + 30 Jan 2015; Jeroen Roovers <jer@g.o> +chrony-2.0_pre1.ebuild:
34 + Version bump.
35
36 *chrony-1.31-r1 (30 Jan 2015)
37
38
39
40
41 1.1 net-misc/chrony/chrony-2.0_pre1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/chrony/chrony-2.0_pre1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/chrony/chrony-2.0_pre1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: chrony-2.0_pre1.ebuild
47 ===================================================================
48 # Copyright 1999-2015 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-misc/chrony/chrony-2.0_pre1.ebuild,v 1.1 2015/01/30 12:24:53 jer Exp $
51
52 EAPI=5
53 inherit eutils systemd toolchain-funcs
54
55 DESCRIPTION="NTP client and server programs"
56 HOMEPAGE="http://chrony.tuxfamily.org/"
57 SRC_URI="http://download.tuxfamily.org/${PN}/${P/_/-}.tar.gz"
58 LICENSE="GPL-2"
59 SLOT="0"
60
61 KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~sparc ~x86"
62 IUSE="caps ipv6 libedit readline +rtc selinux"
63 REQUIRED_USE="?? ( libedit readline )"
64
65 CDEPEND="
66 caps? ( sys-libs/libcap )
67 libedit? ( dev-libs/libedit )
68 readline? ( >=sys-libs/readline-4.1-r4 )
69 "
70 DEPEND="
71 ${CDEPEND}
72 sys-apps/texinfo
73 "
74 RDEPEND="
75 ${CDEPEND}
76 selinux? ( sec-policy/selinux-chronyd )
77 "
78
79 RESTRICT=test
80
81 S="${WORKDIR}/${P/_/-}"
82
83 src_prepare() {
84 sed -i \
85 -e 's:/etc/chrony\.:/etc/chrony/chrony.:g' \
86 -e 's:/var/run:/run:g' \
87 conf.c chrony.texi.in chrony.txt examples/* FAQ || die
88 }
89
90 src_configure() {
91 tc-export CC
92
93 local CHRONY_EDITLINE
94 # ./configure legend:
95 # --disable-readline : disable line editing entirely
96 # --without-readline : do not use sys-libs/readline (enabled by default)
97 # --without-editline : do not use dev-libs/libedit (enabled by default)
98 if ! use readline && ! use libedit; then
99 CHRONY_EDITLINE='--disable-readline'
100 else
101 CHRONY_EDITLINE+=" $(usex readline '' --without-readline)"
102 CHRONY_EDITLINE+=" $(usex libedit '' --without-editline)"
103 fi
104
105 # not an autotools generated script
106 local CHRONY_CONFIGURE="
107 ./configure \
108 $(usex caps '' --disable-linuxcaps) \
109 $(usex ipv6 '' --disable-ipv6) \
110 $(usex rtc '' --disable-rtc) \
111 ${CHRONY_EDITLINE} \
112 ${EXTRA_ECONF} \
113 --docdir=/usr/share/doc/${PF} \
114 --infodir=/usr/share/info \
115 --mandir=/usr/share/man \
116 --prefix=/usr \
117 --sysconfdir=/etc/chrony \
118 --without-nss \
119 --without-tomcrypt
120 "
121
122 # print the ./configure call to aid in future debugging
123 einfo ${CHRONY_CONFIGURE}
124 sh ${CHRONY_CONFIGURE} || die
125 }
126
127 src_compile() {
128 emake all docs
129 }
130
131 src_install() {
132 default
133 rm "${D}"/usr/share/doc/${PF}/COPYING || die
134 doinfo chrony.info*
135
136 newinitd "${FILESDIR}"/chronyd.init chronyd
137 newconfd "${FILESDIR}"/chronyd.conf chronyd
138
139 insinto /etc/${PN}
140 newins examples/chrony.conf.example3 chrony.conf
141 newins examples/chrony.keys.example chrony.keys
142
143 dodoc examples/*.example*
144
145 keepdir /var/{lib,log}/chrony
146
147 insinto /etc/logrotate.d
148 newins "${FILESDIR}"/chrony.logrotate chrony
149
150 systemd_newunit "${FILESDIR}"/chronyd.service-r2 chronyd.service
151 systemd_enable_ntpunit 50-chrony chronyd.service
152 }