Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/chrony/
Date: Sat, 29 Jul 2017 09:55:11
Message-Id: 1501321330.1a82ebc7ed3bb40ecffc32321514bfdd8dadb373.jer@gentoo
1 commit: 1a82ebc7ed3bb40ecffc32321514bfdd8dadb373
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 29 09:42:10 2017 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 29 09:42:10 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a82ebc7
7
8 net-misc/chrony: Version bump.
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.3
11
12 net-misc/chrony/Manifest | 1 +
13 net-misc/chrony/chrony-3.2_pre1.ebuild | 121 +++++++++++++++++++++++++++++++++
14 2 files changed, 122 insertions(+)
15
16 diff --git a/net-misc/chrony/Manifest b/net-misc/chrony/Manifest
17 index 4f3027bdfbd..76498c3c4d8 100644
18 --- a/net-misc/chrony/Manifest
19 +++ b/net-misc/chrony/Manifest
20 @@ -2,3 +2,4 @@ DIST chrony-2.2.1.tar.gz 340514 SHA256 4776fa8e80d698723e9a88eb882170951f6c45860
21 DIST chrony-2.3.tar.gz 355113 SHA256 58bffb523012fb0fa87cc0d94d6e36de9689fe9556519cbd0d1ba254af92ccb2 SHA512 2a9cda6c2bc931438b798bd037614196bdb1533d12432467a690d57095c74013c80c92fcaadbd43fd5b0c816872822527a1ade3014add458d669d7813d5fa080 WHIRLPOOL 06864181ac74b2cf13baf7d9098404f8540c26db41035fe38005fbfea8e12f2de179008f5b1a2544e24ebb7e4cca712421746690edb7f36b90416ad87901e920
22 DIST chrony-2.4.1.tar.gz 390641 SHA256 0fd59e0ef625b4459e3a9c7f221c52f56596582bce31abfae5f7369702edb6e0 SHA512 7772065103ad95706f80374d88ba452b76cf8e29689abf22b38e7eb5ad2fcc491593e11702400daa8bf908218614df21b08ff15ab2d3d2347876119cd80abc4d WHIRLPOOL ed2c2ac8e11371e009d3e96553bb73e58b410bb38e6123a9e39a3451e5dc6860d981d45e67b4e2dc47b39f616f95146feb35efd15dbaa90932f07837172c440a
23 DIST chrony-3.1.tar.gz 424109 SHA256 9d9107dcdb7768a03dc129d33b2a7a25f1eea2f5620bc85eb00cfea07c1b6075 SHA512 4ba3a75c3634050bb63ba9ee80d9be7a295f44ce4d195a050e4be4738bd7dd807fe37f2289d7ead4a75272bd5ebadbd03c233c67f859e9b68871fca5a6671427 WHIRLPOOL d1b499bbcdd74a049c972c183d4b88365db4c6512d8011ca8b87f15c4e0d1bc882bde4f742591f5cfe49e820a5884f6b1960d132d5787be02a36bd57b9e2605f
24 +DIST chrony-3.2-pre1.tar.gz 431211 SHA256 3c6fa2fe71ba670955498dcecab6a57c0b4ed8bc5a761629e96cd6038946942f SHA512 8ce54f246c3e11e72d90ba03e6f39894445eed314b26113c4a98b5746a00c1886291bf1bb20db68318c3310350b36ea6c88fe05607ae82e551ee93aea6e3fcb6 WHIRLPOOL 1fdf2b0d66b048b448e184b947416bd5ac10996633a41b77749f787ac88b2e605925174483ba8b52f398a1adc8c79b56a2c75d759d187066981dad8045c32eb2
25
26 diff --git a/net-misc/chrony/chrony-3.2_pre1.ebuild b/net-misc/chrony/chrony-3.2_pre1.ebuild
27 new file mode 100644
28 index 00000000000..7df999b0de1
29 --- /dev/null
30 +++ b/net-misc/chrony/chrony-3.2_pre1.ebuild
31 @@ -0,0 +1,121 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +inherit eutils systemd toolchain-funcs
37 +
38 +DESCRIPTION="NTP client and server programs"
39 +HOMEPAGE="https://chrony.tuxfamily.org/"
40 +SRC_URI="https://download.tuxfamily.org/${PN}/${P/_/-}.tar.gz"
41 +LICENSE="GPL-2"
42 +SLOT="0"
43 +
44 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64"
45 +IUSE="caps +cmdmon html ipv6 libedit +ntp +phc pps readline +refclock +rtc seccomp selinux +adns"
46 +REQUIRED_USE="
47 + ?? ( libedit readline )
48 +"
49 +
50 +CDEPEND="
51 + caps? ( sys-libs/libcap )
52 + libedit? ( dev-libs/libedit )
53 + readline? ( >=sys-libs/readline-4.1-r4:= )
54 + seccomp? ( sys-libs/libseccomp )
55 +"
56 +DEPEND="
57 + ${CDEPEND}
58 + html? ( dev-ruby/asciidoctor )
59 + pps? ( net-misc/pps-tools )
60 +"
61 +RDEPEND="
62 + ${CDEPEND}
63 + selinux? ( sec-policy/selinux-chronyd )
64 +"
65 +
66 +RESTRICT=test
67 +
68 +S="${WORKDIR}/${P/_/-}"
69 +
70 +src_prepare() {
71 + sed -i \
72 + -e 's:/etc/chrony\.:/etc/chrony/chrony.:g' \
73 + -e 's:/var/run:/run:g' \
74 + conf.c doc/*.man.in examples/* || die
75 +
76 + default
77 +}
78 +
79 +src_configure() {
80 + tc-export CC
81 +
82 + local CHRONY_EDITLINE
83 + # ./configure legend:
84 + # --disable-readline : disable line editing entirely
85 + # --without-readline : do not use sys-libs/readline (enabled by default)
86 + # --without-editline : do not use dev-libs/libedit (enabled by default)
87 + if ! use readline && ! use libedit; then
88 + CHRONY_EDITLINE='--disable-readline'
89 + else
90 + CHRONY_EDITLINE+=" $(usex readline '' --without-readline)"
91 + CHRONY_EDITLINE+=" $(usex libedit '' --without-editline)"
92 + fi
93 +
94 + # not an autotools generated script
95 + local CHRONY_CONFIGURE="
96 + ./configure \
97 + $(use_enable seccomp scfilter) \
98 + $(usex adns '' --disable-asyncdns) \
99 + $(usex caps '' --disable-linuxcaps) \
100 + $(usex cmdmon '' --disable-cmdmon) \
101 + $(usex ipv6 '' --disable-ipv6) \
102 + $(usex ntp '' --disable-ntp) \
103 + $(usex phc '' --disable-phc) \
104 + $(usex pps '' --disable-pps) \
105 + $(usex refclock '' --disable-refclock) \
106 + $(usex rtc '' --disable-rtc) \
107 + ${CHRONY_EDITLINE} \
108 + ${EXTRA_ECONF} \
109 + --docdir=/usr/share/doc/${PF} \
110 + --chronysockdir=/run/chrony \
111 + --mandir=/usr/share/man \
112 + --prefix=/usr \
113 + --sysconfdir=/etc/chrony \
114 + --disable-sechash \
115 + --without-nss \
116 + --without-tomcrypt
117 + "
118 +
119 + # print the ./configure call to aid in future debugging
120 + einfo ${CHRONY_CONFIGURE}
121 + bash ${CHRONY_CONFIGURE} || die
122 +}
123 +
124 +src_compile() {
125 + emake all docs $(usex html '' 'ADOC=true')
126 +}
127 +
128 +src_install() {
129 + default
130 +
131 + newinitd "${FILESDIR}"/chronyd.init-r1 chronyd
132 + newconfd "${FILESDIR}"/chronyd.conf chronyd
133 +
134 + insinto /etc/${PN}
135 + newins examples/chrony.conf.example1 chrony.conf
136 +
137 + docinto examples
138 + dodoc examples/*.example*
139 +
140 + if use html; then
141 + docinto html
142 + dodoc doc/*.html
143 + fi
144 +
145 + keepdir /var/{lib,log}/chrony
146 +
147 + insinto /etc/logrotate.d
148 + newins "${FILESDIR}"/chrony-2.4-r1.logrotate chrony
149 +
150 + systemd_newunit "${FILESDIR}"/chronyd.service-r2 chronyd.service
151 + systemd_enable_ntpunit 50-chrony chronyd.service
152 +}