diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2005-05-17 21:19:07 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2005-05-17 21:19:07 +0000 |
commit | 166f1211f10b504107e8382d91d6f415c589fb10 (patch) | |
tree | d889fd494f1781aa148b9d06222e932597ca91ce | |
parent | Security bump. Removed vulnerable versions. bug# 92926 (diff) | |
download | historical-166f1211f10b504107e8382d91d6f415c589fb10.tar.gz historical-166f1211f10b504107e8382d91d6f415c589fb10.tar.bz2 historical-166f1211f10b504107e8382d91d6f415c589fb10.zip |
Bug #57845, init scripts for rdate.
-rw-r--r-- | net-misc/rdate/ChangeLog | 10 | ||||
-rw-r--r-- | net-misc/rdate/Manifest | 14 | ||||
-rw-r--r-- | net-misc/rdate/files/digest-rdate-1.4-r1 | 1 | ||||
-rw-r--r-- | net-misc/rdate/files/rdate-confd | 17 | ||||
-rw-r--r-- | net-misc/rdate/files/rdate-initd | 35 | ||||
-rw-r--r-- | net-misc/rdate/rdate-1.4-r1.ebuild | 27 |
6 files changed, 97 insertions, 7 deletions
diff --git a/net-misc/rdate/ChangeLog b/net-misc/rdate/ChangeLog index bd78b3eb5541..510969c576b7 100644 --- a/net-misc/rdate/ChangeLog +++ b/net-misc/rdate/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-misc/rdate -# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/rdate/ChangeLog,v 1.22 2004/12/29 20:03:46 ciaranm Exp $ +# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/rdate/ChangeLog,v 1.23 2005/05/17 21:19:07 robbat2 Exp $ + +*rdate-1.4-r1 (17 May 2005) + + 17 May 2005; Robin H. Johnson <robbat2@gentoo.org> +files/rdate-confd, + +files/rdate-initd, +rdate-1.4-r1.ebuild: + Bug #57845, init scripts for rdate. 29 Dec 2004; Ciaran McCreesh <ciaranm@gentoo.org> : Change encoding to UTF-8 for GLEP 31 compliance diff --git a/net-misc/rdate/Manifest b/net-misc/rdate/Manifest index fd5a5a06d9d8..9af60279ad04 100644 --- a/net-misc/rdate/Manifest +++ b/net-misc/rdate/Manifest @@ -1,9 +1,13 @@ +MD5 5a0bdbfc32d6e2bb360d4537cf58daa0 rdate-0.990821-r1.ebuild 928 MD5 6dc24db864531b91dad260466fd9352a rdate-1.4.ebuild 731 -MD5 7b4796132c42957e6b29f75ae966716c ChangeLog 3306 +MD5 13af08e55ba1d43dd51363fdf2ccdc83 rdate-1.4-r1.ebuild 812 MD5 b383d0ee4555ed0768e69b822995c26c rdate-0.990821-r2.ebuild 908 -MD5 5a0bdbfc32d6e2bb360d4537cf58daa0 rdate-0.990821-r1.ebuild 928 +MD5 184b3596e0467bba4322cc560af18b20 ChangeLog 3491 MD5 7c1ddab6f6615da7960377e8fbf21199 rdate-0.990821.ebuild 690 -MD5 31320ec84600fa3b9fe2d885edc46b48 files/digest-rdate-0.990821 62 -MD5 7222ef09db66dfa05f4c3e27c247e8a2 files/digest-rdate-1.4 60 -MD5 31320ec84600fa3b9fe2d885edc46b48 files/digest-rdate-0.990821-r2 62 MD5 31320ec84600fa3b9fe2d885edc46b48 files/digest-rdate-0.990821-r1 62 +MD5 31320ec84600fa3b9fe2d885edc46b48 files/digest-rdate-0.990821-r2 62 +MD5 7222ef09db66dfa05f4c3e27c247e8a2 files/digest-rdate-1.4 60 +MD5 2af5147484859452c8653fd5faba78e5 files/rdate-confd 617 +MD5 00059cdcb91936a3a6b32daa9c54215b files/rdate-initd 837 +MD5 31320ec84600fa3b9fe2d885edc46b48 files/digest-rdate-0.990821 62 +MD5 7222ef09db66dfa05f4c3e27c247e8a2 files/digest-rdate-1.4-r1 60 diff --git a/net-misc/rdate/files/digest-rdate-1.4-r1 b/net-misc/rdate/files/digest-rdate-1.4-r1 new file mode 100644 index 000000000000..6e8143454063 --- /dev/null +++ b/net-misc/rdate/files/digest-rdate-1.4-r1 @@ -0,0 +1 @@ +MD5 b2e5bbfa10ec480076750fd78fe7f7a5 rdate-1.4.tar.gz 11500 diff --git a/net-misc/rdate/files/rdate-confd b/net-misc/rdate/files/rdate-confd new file mode 100644 index 000000000000..a2377031515d --- /dev/null +++ b/net-misc/rdate/files/rdate-confd @@ -0,0 +1,17 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/rdate/files/rdate-confd,v 1.1 2005/05/17 21:19:07 robbat2 Exp $ + +# the NTP server to get the date from +RDATE_SERVER="pool.ntp.org" + +# Options to pass to rdate +# "-s" is mandatory to set the system time, and +# is passed regardless of this variable. +RDATE_OPTS="-u" + +# How long to wait (in seconds) before giving up. +# Useful for when you boot and DNS/internet isn't +# really available but you have your net interface +# come up with say a static IP. +RDATE_TIMEOUT=10 diff --git a/net-misc/rdate/files/rdate-initd b/net-misc/rdate/files/rdate-initd new file mode 100644 index 000000000000..6b96bbc30c6f --- /dev/null +++ b/net-misc/rdate/files/rdate-initd @@ -0,0 +1,35 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/rdate/files/rdate-initd,v 1.1 2005/05/17 21:19:07 robbat2 Exp $ + +depend() { + before cron + need net + use dns +} + +checkconfig() { + if [ -z "${RDATE_SERVER}" ] ; then + eerror "Please edit /etc/conf.d/rdate" + eerror "I need to know what server to use!" + return 1 + fi + if [ -z "${RDATE_OPTS}" ] ; then + eerror "Please edit /etc/conf.d/rdate" + eerror "I need to know what options to use!" + return 1 + fi + return 0 +} + +start() { + checkconfig || return $? + + ebegin "Setting clock via rdate" + /usr/bin/rdate -s ${RDATE_OPTS} ${RDATE_SERVER} >/dev/null & + local pid=$! + (sleep ${RDATE_TIMEOUT:-30}; kill -9 ${pid} >&/dev/null) & + wait ${pid} + eend $? "Failed to set clock" +} diff --git a/net-misc/rdate/rdate-1.4-r1.ebuild b/net-misc/rdate/rdate-1.4-r1.ebuild new file mode 100644 index 000000000000..f147090d91de --- /dev/null +++ b/net-misc/rdate/rdate-1.4-r1.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/rdate/rdate-1.4-r1.ebuild,v 1.1 2005/05/17 21:19:07 robbat2 Exp $ + +inherit flag-o-matic + +DESCRIPTION="use TCP or UDP to retrieve the current time of another machine" +HOMEPAGE="http://www.freshmeat.net/projects/rdate/" +SRC_URI="ftp://people.redhat.com/sopwith/rdate-1.4.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~ia64 ~amd64 ~mips" +IUSE="ipv6" + +DEPEND="virtual/libc" + +src_compile() { + use ipv6 && append-flags "-DINET6" + emake RCFLAGS="${CFLAGS}" || die "emake failed" +} + +src_install(){ + make prefix="${D}/usr" install || die "make install failed" + newinitd ${FILESDIR}/rdate-initd rdate + newconfd ${FILESDIR}/rdate-confd rdate +} |