commit: 97f8b8c6dbf5002dfbba5a4913aee7d55f0b4605
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 6 09:27:32 2016 +0000
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Sun Nov 6 09:32:22 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97f8b8c6
net-misc/chrony: Drop USE=pps preference now that it has a dependency. Update
live ebuild.
Package-Manager: portage-2.3.2
net-misc/chrony/chrony-2.4-r1.ebuild | 7 ++++---
net-misc/chrony/chrony-9999.ebuild | 26 ++++++++++++++++----------
2 files changed, 20 insertions(+), 13 deletions(-)
diff --git a/net-misc/chrony/chrony-2.4-r1.ebuild
b/net-misc/chrony/chrony-2.4-r1.ebuild
index c2601db..954f266 100644
--- a/net-misc/chrony/chrony-2.4-r1.ebuild
+++ b/net-misc/chrony/chrony-2.4-r1.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
-EAPI=5
+EAPI=6
inherit eutils systemd toolchain-funcs
DESCRIPTION="NTP client and server programs"
@@ -12,7 +12,7 @@ LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
-IUSE="caps +cmdmon html ipv6 libedit +ntp +phc +pps readline +refclock +rtc
selinux +adns"
+IUSE="caps +cmdmon html ipv6 libedit +ntp +phc pps readline +refclock +rtc
selinux +adns"
REQUIRED_USE="
?? ( libedit readline )
"
@@ -41,6 +41,8 @@ src_prepare() {
-e 's:/etc/chrony\.:/etc/chrony/chrony.:g' \
-e 's:/var/run:/run:g' \
conf.c doc/*.man.in examples/* || die
+
+ default
}
src_configure() {
@@ -89,7 +91,6 @@ src_configure() {
src_compile() {
emake all docs $(usex html '' 'ADOC=true')
-
}
src_install() {
diff --git a/net-misc/chrony/chrony-9999.ebuild
b/net-misc/chrony/chrony-9999.ebuild
index 13709c0..b744729 100644
--- a/net-misc/chrony/chrony-9999.ebuild
+++ b/net-misc/chrony/chrony-9999.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-EAPI=5
+EAPI=6
inherit eutils git-r3 systemd toolchain-funcs
DESCRIPTION="NTP client and server programs"
@@ -12,7 +12,7 @@ LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
-IUSE="caps +cmdmon ipv6 libedit +ntp +phc +pps readline +refclock +rtc selinux
+adns"
+IUSE="caps +cmdmon html ipv6 libedit +ntp +phc pps readline +refclock +rtc
selinux +adns"
REQUIRED_USE="
?? ( libedit readline )
"
@@ -20,11 +20,12 @@ REQUIRED_USE="
CDEPEND="
caps? ( sys-libs/libcap )
libedit? ( dev-libs/libedit )
+ pps? ( net-misc/pps-tools )
readline? ( >=sys-libs/readline-4.1-r4:= )
"
DEPEND="
${CDEPEND}
- sys-apps/texinfo
+ html? ( dev-ruby/asciidoctor )
"
RDEPEND="
${CDEPEND}
@@ -39,7 +40,9 @@ src_prepare() {
sed -i \
-e 's:/etc/chrony\.:/etc/chrony/chrony.:g' \
-e 's:/var/run:/run:g' \
- conf.c chrony.texi.in examples/* || die
+ conf.c doc/*.man.in examples/* || die
+
+ default
}
src_configure() {
@@ -73,7 +76,6 @@ src_configure() {
${EXTRA_ECONF} \
--docdir=/usr/share/doc/${PF} \
--chronysockdir=/run/chrony \
- --infodir=/usr/share/info \
--mandir=/usr/share/man \
--prefix=/usr \
--sysconfdir=/etc/chrony \
@@ -88,26 +90,30 @@ src_configure() {
}
src_compile() {
- emake all docs
+ emake all docs $(usex html '' 'ADOC=true')
}
src_install() {
default
- doinfo chrony.info*
-
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.2.logrotate chrony
+ newins "${FILESDIR}"/chrony-2.4-r1.logrotate chrony
systemd_newunit "${FILESDIR}"/chronyd.service-r2 chronyd.service
systemd_enable_ntpunit 50-chrony chronyd.service