mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
net-misc/chrony: Old.
Package-Manager: Portage-2.3.13, Repoman-2.3.4
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
DIST chrony-2.2.1.tar.gz 340514 SHA256 4776fa8e80d698723e9a88eb882170951f6c45860545d84ae9f9d8b9bbd73796 SHA512 caa18a22e7e64186f24f474e02862296bfa74c99671bc98e926caf27b88ce3580282543594602e76ad4be9b7f9623350888def893a7c1d96a7370d13a636442f WHIRLPOOL 77500bc25496dc15f17bce60023b86330205945999011b243272db26a924ac67193da70089c59e19bea7666c05059c8c4c1975ca19057775ec2dd8e468ab8dce
|
||||
DIST chrony-2.3.tar.gz 355113 SHA256 58bffb523012fb0fa87cc0d94d6e36de9689fe9556519cbd0d1ba254af92ccb2 SHA512 2a9cda6c2bc931438b798bd037614196bdb1533d12432467a690d57095c74013c80c92fcaadbd43fd5b0c816872822527a1ade3014add458d669d7813d5fa080 WHIRLPOOL 06864181ac74b2cf13baf7d9098404f8540c26db41035fe38005fbfea8e12f2de179008f5b1a2544e24ebb7e4cca712421746690edb7f36b90416ad87901e920
|
||||
DIST chrony-2.4.1.tar.gz 390641 SHA256 0fd59e0ef625b4459e3a9c7f221c52f56596582bce31abfae5f7369702edb6e0 SHA512 7772065103ad95706f80374d88ba452b76cf8e29689abf22b38e7eb5ad2fcc491593e11702400daa8bf908218614df21b08ff15ab2d3d2347876119cd80abc4d WHIRLPOOL ed2c2ac8e11371e009d3e96553bb73e58b410bb38e6123a9e39a3451e5dc6860d981d45e67b4e2dc47b39f616f95146feb35efd15dbaa90932f07837172c440a
|
||||
DIST chrony-3.1.tar.gz 424109 SHA256 9d9107dcdb7768a03dc129d33b2a7a25f1eea2f5620bc85eb00cfea07c1b6075 SHA512 4ba3a75c3634050bb63ba9ee80d9be7a295f44ce4d195a050e4be4738bd7dd807fe37f2289d7ead4a75272bd5ebadbd03c233c67f859e9b68871fca5a6671427 WHIRLPOOL d1b499bbcdd74a049c972c183d4b88365db4c6512d8011ca8b87f15c4e0d1bc882bde4f742591f5cfe49e820a5884f6b1960d132d5787be02a36bd57b9e2605f
|
||||
|
||||
@@ -1,113 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
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 ~arm hppa ~mips ppc ppc64 sparc x86"
|
||||
IUSE="caps +cmdmon 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}
|
||||
sys-apps/texinfo
|
||||
"
|
||||
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 chrony.texi.in examples/* || die
|
||||
}
|
||||
|
||||
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 \
|
||||
--infodir=/usr/share/info \
|
||||
--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
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
dodoc examples/*.example*
|
||||
|
||||
keepdir /var/{lib,log}/chrony
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}"/chrony-2.2.logrotate chrony
|
||||
|
||||
systemd_newunit "${FILESDIR}"/chronyd.service-r2 chronyd.service
|
||||
systemd_enable_ntpunit 50-chrony chronyd.service
|
||||
}
|
||||
@@ -1,121 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
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 ~arm ~hppa ~ppc ~ppc64 ~x86"
|
||||
IUSE="caps +cmdmon html ipv6 libedit +ntp +phc pps readline +refclock +rtc seccomp selinux +adns"
|
||||
REQUIRED_USE="
|
||||
?? ( libedit readline )
|
||||
"
|
||||
|
||||
CDEPEND="
|
||||
caps? ( sys-libs/libcap )
|
||||
libedit? ( dev-libs/libedit )
|
||||
readline? ( >=sys-libs/readline-4.1-r4:= )
|
||||
seccomp? ( sys-libs/libseccomp )
|
||||
"
|
||||
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 \
|
||||
$(use_enable seccomp scfilter) \
|
||||
$(usex adns '' --disable-asyncdns) \
|
||||
$(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 refclock '' --disable-refclock) \
|
||||
$(usex rtc '' --disable-rtc) \
|
||||
${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
|
||||
}
|
||||
Reference in New Issue
Block a user