summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2013-08-28 12:25:07 +0000
committerJeroen Roovers <jer@gentoo.org>2013-08-28 12:25:07 +0000
commit03faf13437098d1740322c93b325403bfa4a1fd5 (patch)
treec4d4f3be1057b4d3a0377b0f114cfca44d3e0a13 /net-misc/chrony
parentStable for x86, wrt bug #480376 (diff)
downloadgentoo-2-03faf13437098d1740322c93b325403bfa4a1fd5.tar.gz
gentoo-2-03faf13437098d1740322c93b325403bfa4a1fd5.tar.bz2
gentoo-2-03faf13437098d1740322c93b325403bfa4a1fd5.zip
Old.
(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key A792A613)
Diffstat (limited to 'net-misc/chrony')
-rw-r--r--net-misc/chrony/ChangeLog6
-rw-r--r--net-misc/chrony/chrony-1.27-r1.ebuild76
-rw-r--r--net-misc/chrony/files/chronyd.rc67
3 files changed, 5 insertions, 144 deletions
diff --git a/net-misc/chrony/ChangeLog b/net-misc/chrony/ChangeLog
index 4109e0289dfe..1093df8c066d 100644
--- a/net-misc/chrony/ChangeLog
+++ b/net-misc/chrony/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-misc/chrony
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/chrony/ChangeLog,v 1.112 2013/08/28 12:10:16 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/chrony/ChangeLog,v 1.113 2013/08/28 12:25:07 jer Exp $
+
+ 28 Aug 2013; Jeroen Roovers <jer@gentoo.org> -chrony-1.27-r1.ebuild,
+ -files/chronyd.rc:
+ Old.
28 Aug 2013; Agostino Sarubbo <ago@gentoo.org> chrony-1.29.ebuild:
Stable for sparc, wrt bug #480364
diff --git a/net-misc/chrony/chrony-1.27-r1.ebuild b/net-misc/chrony/chrony-1.27-r1.ebuild
deleted file mode 100644
index 63d2c7fd1f99..000000000000
--- a/net-misc/chrony/chrony-1.27-r1.ebuild
+++ /dev/null
@@ -1,76 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/chrony/chrony-1.27-r1.ebuild,v 1.6 2013/05/25 07:42:23 ago Exp $
-
-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="amd64 ~arm hppa ~mips ppc sparc x86"
-IUSE="caps ipv6 +readline +rtc"
-
-DEPEND="
- caps? ( sys-libs/libcap )
- readline? ( >=sys-libs/readline-4.1-r4 )
-"
-RDEPEND="${REPEND}"
-
-DOCS=( examples/chrony.{conf,keys}.example )
-
-src_prepare() {
- sed -i \
- -e 's:/etc/chrony\.:/etc/chrony/chrony.:g' \
- examples/* chrony*.{1,5,8} faq.txt chrony.texi || die
- sed -i \
- -e 's:/var/run:/run:g' \
- conf.c chrony.texi chrony.txt \
- examples/chrony.conf.example || die
-}
-
-src_configure() {
- tc-export CC
-
- # not an autotools generated script
- ./configure \
- $( use caps || echo --disable-linuxcaps ) \
- $( use ipv6 || echo --disable-ipv6 ) \
- $( use readline || echo --disable-readline ) \
- $( use rtc || echo --disable-rtc ) \
- ${EXTRA_ECONF} \
- --docdir=/usr/share/doc/${PF} \
- --infodir=/usr/share/info \
- --mandir=/usr/share/man \
- --prefix=/usr \
- --sysconfdir=/etc/chrony \
- --without-nss \
- --without-tomcrypt \
- || die
-}
-
-src_compile() {
- emake all docs
-}
-
-src_install() {
- default
- rm "${D}"/usr/share/doc/${PF}/COPYING || die
- doinfo chrony.info*
-
- newinitd "${FILESDIR}"/chronyd.init chronyd
- newconfd "${FILESDIR}"/chronyd.conf chronyd
-
- keepdir /var/{lib,log}/chrony /etc/chrony
-
- insinto /etc/logrotate.d
- newins "${FILESDIR}"/chrony.logrotate chrony
-
- # systemd stuff
- systemd_dounit "${FILESDIR}"/chronyd.service
- insinto $(systemd_get_utildir)/ntp-units.d/
- doins "${FILESDIR}"/50-chrony.list
-}
diff --git a/net-misc/chrony/files/chronyd.rc b/net-misc/chrony/files/chronyd.rc
deleted file mode 100644
index 32dfd424e081..000000000000
--- a/net-misc/chrony/files/chronyd.rc
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/chrony/files/chronyd.rc,v 1.10 2010/03/23 09:09:50 tove Exp $
-
-depend() {
- need net
- use dns
-}
-
-checkconfig() {
- # Note that /etc/chrony/chrony.keys is *NOT* checked. This
- # is because the user may have specified another key
- # file, and we don't want to force the user to use that
- # exact name for the key file.
- if [ ! -f "${CFGFILE}" ] ; then
- eerror "Please create ${CFGFILE} and the"
- eerror "chrony key file (usually /etc/chrony/chrony.keys)"
- eerror "by using the"
- eerror ""
- eerror " chrony.conf.example"
- eerror " chrony.keys.example"
- eerror ""
- eerror "files (from the documentation directory)"
- eerror "as templates."
- return 1
- else
- # Actually, I tried it, and chrony seems to ignore the pidfile
- # option. I'm going to leave it here anyway, since you never
- # know if it might be handy
- PIDFILE=`awk '/^ *pidfile/{print $2}' "${CFGFILE}"`
- fi
- return 0
-}
-
-setxtrarg() {
- if [ -c /dev/rtc ]; then
- grep -q '^rtcfile' "${CFGFILE}" && ARGS="${ARGS} -s"
- fi
- grep -q '^dumponexit$' "${CFGFILE}" && ARGS="${ARGS} -r"
- return 0
-}
-
-start() {
- checkconfig || return $?
- setxtrarg
-
- [ -n "${PIDFILE}" ] || PIDFILE=/var/run/chronyd.pid
-
- ebegin "Starting chronyd"
- start-stop-daemon --start --quiet \
- --exec /usr/sbin/chronyd \
- --pidfile "${PIDFILE}" \
- -- -f "${CFGFILE}" ${ARGS}
- eend $? "Failed to start chronyd"
-}
-
-stop() {
- checkconfig || return $?
-
- [ -n "${PIDFILE}" ] || PIDFILE=/var/run/chronyd.pid
-
- ebegin "Stopping chronyd"
- start-stop-daemon --stop --quiet \
- --pidfile "${PIDFILE}"
- eend $? "Failed to stop chronyd"
-}