Skip to content

Commit

Permalink
net-misc/chrony: Update live ebuild.
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.49, Repoman-2.3.10
  • Loading branch information
Jeroen Roovers committed Sep 5, 2018
1 parent 5261e1d commit 196da06
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions net-misc/chrony/chrony-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ IUSE="caps +cmdmon ipv6 libedit +ntp +phc pps readline +refclock +rtc seccomp se
REQUIRED_USE="
?? ( libedit readline )
"

CDEPEND="
caps? ( sys-libs/libcap )
libedit? ( dev-libs/libedit )
Expand All @@ -40,9 +41,8 @@ PATCHES=(
src_prepare() {
default
sed -i \
-e 's:/etc/chrony\.:/etc/chrony/chrony.:g' \
-e 's:/var/run:/run:g' \
conf.c doc/*.adoc examples/* || die
-e 's:/etc/chrony\.conf:/etc/chrony/chrony.conf:g' \
doc/* examples/* || die
}

src_configure() {
Expand Down Expand Up @@ -75,12 +75,13 @@ src_configure() {
$(usex rtc '' --disable-rtc) \
${CHRONY_EDITLINE} \
${EXTRA_ECONF} \
--docdir=/usr/share/doc/${PF} \
--chronysockdir=/run/chrony \
--disable-sechash \
--docdir=/usr/share/doc/${PF} \
--mandir=/usr/share/man \
--prefix=/usr \
--sysconfdir=/etc/chrony \
--disable-sechash \
--with-pidfile="${EPREFIX}/run/chrony/chronyd.pid"
--without-nss \
--without-tomcrypt
"
Expand All @@ -97,7 +98,7 @@ src_compile() {
src_install() {
default

newinitd "${FILESDIR}"/chronyd.init-r1 chronyd
newinitd "${FILESDIR}"/chronyd.init-r2 chronyd
newconfd "${FILESDIR}"/chronyd.conf chronyd

insinto /etc/${PN}
Expand Down

0 comments on commit 196da06

Please sign in to comment.