From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B7705139085 for ; Tue, 17 Jan 2017 16:54:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 190F5E0F2F; Tue, 17 Jan 2017 16:54:58 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D9DD9E0CB8 for ; Tue, 17 Jan 2017 16:54:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5AD53340F43 for ; Tue, 17 Jan 2017 16:54:56 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 79896265F for ; Tue, 17 Jan 2017 16:54:53 +0000 (UTC) From: "Jeroen Roovers" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jeroen Roovers" Message-ID: <1484672088.c31f34c2210433c4ce08de57a7387eeadd33dc23.jer@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/chrony/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/chrony/Manifest net-misc/chrony/chrony-3.0.ebuild X-VCS-Directories: net-misc/chrony/ X-VCS-Committer: jer X-VCS-Committer-Name: Jeroen Roovers X-VCS-Revision: c31f34c2210433c4ce08de57a7387eeadd33dc23 X-VCS-Branch: master Date: Tue, 17 Jan 2017 16:54:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: c4d650bf-2863-4a74-b578-770e69965181 X-Archives-Hash: d6ae07e3ca09fa6b6a25d84c4a4de894 commit: c31f34c2210433c4ce08de57a7387eeadd33dc23 Author: Jeroen Roovers gentoo org> AuthorDate: Tue Jan 17 16:54:03 2017 +0000 Commit: Jeroen Roovers gentoo org> CommitDate: Tue Jan 17 16:54:48 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c31f34c2 net-misc/chrony: Version bump. Package-Manager: Portage-2.3.3, Repoman-2.3.1 net-misc/chrony/Manifest | 1 + net-misc/chrony/chrony-3.0.ebuild | 120 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 121 insertions(+) diff --git a/net-misc/chrony/Manifest b/net-misc/chrony/Manifest index 7ea1340..1b95a52 100644 --- a/net-misc/chrony/Manifest +++ b/net-misc/chrony/Manifest @@ -4,3 +4,4 @@ DIST chrony-2.4.1.tar.gz 390641 SHA256 0fd59e0ef625b4459e3a9c7f221c52f56596582bc DIST chrony-2.4.tar.gz 390077 SHA256 8d04e7cda2333289c2104b731d39c3c1db94816e43bae35d7ee4e7ae8af6391f SHA512 29bbeba05fb9897d438cddca7dd4e573a1e9da0d583bd737185088e8b777fdfba4056d091d2bbab78824de284b6244a8de7ada8f62be316e815a3d8ae6145485 WHIRLPOOL 7ad8b17ee8c29afa6734b7f096bb56bc08cfb200747141f0fa77e6a37daab118e1c571b8869abcab7e4893ae3eaae6a6d783425058bbaf8508cbd8de215cb49d DIST chrony-3.0-pre2.tar.gz 418066 SHA256 de91ec4deed5e7c40954c3ef6f59987f3384f30f224f1cb121a67b3874e5f830 SHA512 ffa729c7574c3ae5efea5eba70336e0c7cab8ff7fbef8588f016be91cfcf4413fec2515c874d672ebc6ed191fa15ae7c2f4ecef3a96e426b21f50cd782abbdeb WHIRLPOOL 1dca26084f967a0b0332156671ed2ca21219f775a4e497aec9801c89836e4bafc01efb0ad33667526ba9360ebd2d0222f1f293389f9de427bc1978f7c72301a4 DIST chrony-3.0-pre3.tar.gz 419006 SHA256 81584f0afd7befbd7e5d0dbdfad6703738d5ee44a032200589e52689194dd717 SHA512 b471d6de2ce02e1c5a83a9989cbc80fba14dfeb9122b9810fd45ade40c597ba748fd278181292628bb922f1c6ebd52daf3df2aacf20ac63029728f2e4cf94c45 WHIRLPOOL e4dc45132b1f88f477460b2aa6d72e736b315ae839afb284dc2171a815c3ea4efd09a117682f935a1b1dd7808a2916f030cd25270e0b99bcfb8054923007e8ca +DIST chrony-3.0.tar.gz 421433 SHA256 a0387b91a20f047856a56d6541a1cf920c91b53b32f74c123bcb70f1a5d2cd6d SHA512 253361219e4699815dad703cf5ebfba5902aeb331650c4f0caa0278388312dcfbbf3423c0f3a4a5849c135eeb02dbd93776fbff602160e0dcf98857c1b6f7f67 WHIRLPOOL 8b82ffece89e9773554ed5c4525c4ed596316a0502ea02517c343a85a54b28d22d82a6a06033e40d4bcdf2fecb9c45b4a3c71c88fd1b1dadd7cbe62bb94d246f diff --git a/net-misc/chrony/chrony-3.0.ebuild b/net-misc/chrony/chrony-3.0.ebuild new file mode 100644 index 00000000..d34419a --- /dev/null +++ b/net-misc/chrony/chrony-3.0.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit eutils systemd toolchain-funcs + +DESCRIPTION="NTP client and server programs" +HOMEPAGE="http://chrony.tuxfamily.org/" +SRC_URI="http://download.tuxfamily.org/${PN}/${P/_/-}.tar.gz" +LICENSE="GPL-2" +SLOT="0" + +KEYWORDS="~alpha ~amd64 ~hppa ~ppc64" +IUSE="caps +cmdmon html ipv6 libedit +ntp +phc pps readline +refclock +rtc selinux +adns" +REQUIRED_USE=" + ?? ( libedit readline ) +" + +CDEPEND=" + caps? ( sys-libs/libcap ) + libedit? ( dev-libs/libedit ) + readline? ( >=sys-libs/readline-4.1-r4:= ) +" +DEPEND=" + ${CDEPEND} + html? ( dev-ruby/asciidoctor ) + pps? ( net-misc/pps-tools ) +" +RDEPEND=" + ${CDEPEND} + selinux? ( sec-policy/selinux-chronyd ) +" + +RESTRICT=test + +S="${WORKDIR}/${P/_/-}" + +src_prepare() { + sed -i \ + -e 's:/etc/chrony\.:/etc/chrony/chrony.:g' \ + -e 's:/var/run:/run:g' \ + conf.c doc/*.man.in examples/* || die + + default +} + +src_configure() { + tc-export CC + + local CHRONY_EDITLINE + # ./configure legend: + # --disable-readline : disable line editing entirely + # --without-readline : do not use sys-libs/readline (enabled by default) + # --without-editline : do not use dev-libs/libedit (enabled by default) + if ! use readline && ! use libedit; then + CHRONY_EDITLINE='--disable-readline' + else + CHRONY_EDITLINE+=" $(usex readline '' --without-readline)" + CHRONY_EDITLINE+=" $(usex libedit '' --without-editline)" + fi + + # not an autotools generated script + local CHRONY_CONFIGURE=" + ./configure \ + $(usex caps '' --disable-linuxcaps) \ + $(usex cmdmon '' --disable-cmdmon) \ + $(usex ipv6 '' --disable-ipv6) \ + $(usex ntp '' --disable-ntp) \ + $(usex phc '' --disable-phc) \ + $(usex pps '' --disable-pps) \ + $(usex rtc '' --disable-rtc) \ + $(usex refclock '' --disable-refclock) \ + $(usex adns '' --disable-asyncdns) \ + ${CHRONY_EDITLINE} \ + ${EXTRA_ECONF} \ + --docdir=/usr/share/doc/${PF} \ + --chronysockdir=/run/chrony \ + --mandir=/usr/share/man \ + --prefix=/usr \ + --sysconfdir=/etc/chrony \ + --disable-sechash \ + --without-nss \ + --without-tomcrypt + " + + # print the ./configure call to aid in future debugging + einfo ${CHRONY_CONFIGURE} + bash ${CHRONY_CONFIGURE} || die +} + +src_compile() { + emake all docs $(usex html '' 'ADOC=true') +} + +src_install() { + default + + newinitd "${FILESDIR}"/chronyd.init-r1 chronyd + newconfd "${FILESDIR}"/chronyd.conf chronyd + + insinto /etc/${PN} + newins examples/chrony.conf.example1 chrony.conf + + docinto examples + dodoc examples/*.example* + + if use html; then + docinto html + dodoc doc/*.html + fi + + keepdir /var/{lib,log}/chrony + + insinto /etc/logrotate.d + newins "${FILESDIR}"/chrony-2.4-r1.logrotate chrony + + systemd_newunit "${FILESDIR}"/chronyd.service-r2 chronyd.service + systemd_enable_ntpunit 50-chrony chronyd.service +}