From: Robin H. Johnson Date: Tue, 10 Apr 2007 09:57:25 +0000 (+0000) Subject: Bug #173218, clean up init.d script timeout, patch thanks to Yang Zhao . Package-Manager: portage-2.1.2.3 --- diff --git a/net-misc/rdate/ChangeLog b/net-misc/rdate/ChangeLog index 3a41afb3bac4..dab1c656d963 100644 --- a/net-misc/rdate/ChangeLog +++ b/net-misc/rdate/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-misc/rdate -# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/rdate/ChangeLog,v 1.35 2006/11/13 10:38:19 robbat2 Exp $ +# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/rdate/ChangeLog,v 1.36 2007/04/10 09:57:25 robbat2 Exp $ + +*rdate-1.4-r3 (10 Apr 2007) + + 10 Apr 2007; Robin H. Johnson + +files/rdate-initd-1.4-r3, +rdate-1.4-r3.ebuild: + Bug #173218, clean up init.d script timeout, patch thanks to Yang Zhao + . *rdate-1.4-r2 (13 Nov 2006) diff --git a/net-misc/rdate/Manifest b/net-misc/rdate/Manifest index 3ff46295ef05..255a557d709a 100644 --- a/net-misc/rdate/Manifest +++ b/net-misc/rdate/Manifest @@ -10,6 +10,10 @@ AUX rdate-initd-1.4-r2 707 RMD160 eaa1b83c075d05061419f16fadbcedb42bd23512 SHA1 MD5 a40ed3583bc14a23439aaf929c023ae8 files/rdate-initd-1.4-r2 707 RMD160 eaa1b83c075d05061419f16fadbcedb42bd23512 files/rdate-initd-1.4-r2 707 SHA256 dd8c40e2af527cec8b23fdf7f88490242661db3e26012124d5ad27158db49309 files/rdate-initd-1.4-r2 707 +AUX rdate-initd-1.4-r3 639 RMD160 d2911de431699f500ba5ef84d09a0907df965a55 SHA1 4c1d1c9b4f4c0a5da10fc2d07716f30898ac39c1 SHA256 64947ef6add9817eefcfc37967d0f1bc757461645ebe180e9da68396222772a8 +MD5 aca4bc65cf02837e473f9c641eb90335 files/rdate-initd-1.4-r3 639 +RMD160 d2911de431699f500ba5ef84d09a0907df965a55 files/rdate-initd-1.4-r3 639 +SHA256 64947ef6add9817eefcfc37967d0f1bc757461645ebe180e9da68396222772a8 files/rdate-initd-1.4-r3 639 DIST rdate-1.4.tar.gz 11500 RMD160 13cfa099f6c36c589cea8325d64cce85578dfa07 SHA1 bad85e74a1523f8548105d7700ed63e9886b9979 SHA256 c8b4a026fa13f22bffe96fe0800b6ac67de72e9f62dfe5b74f1910a9179da4ee DIST rdate-990821.tar.gz 3519 RMD160 37d3efe08cba578f624c7ad688864ac446230b47 SHA1 daf3f44874c598746a5d6e0f00c2c04137319c6a SHA256 d705ee014e368a90b94ff6b95d2c52d840e43059a31c731fc09c73928bbf034f EBUILD rdate-0.990821-r1.ebuild 928 RMD160 4ab2b0ad0b18c20a8a9075760407ae2623fb5fe5 SHA1 2c3d2e5fa94422bcb82d7ec1eee0da408bc6cab9 SHA256 8f1619d8f405adda7725e19b5fe352b66bf3f49e477e29c2a67de76dc0dd9e80 @@ -32,14 +36,18 @@ EBUILD rdate-1.4-r2.ebuild 821 RMD160 653b3bdf728eca404db094e92b57b5e768729cb9 S MD5 8a6e9ac03cb3cb3dbc9bdac1222e5d53 rdate-1.4-r2.ebuild 821 RMD160 653b3bdf728eca404db094e92b57b5e768729cb9 rdate-1.4-r2.ebuild 821 SHA256 bea163fcc0a1a299faa31d2ac01b949a8dd0ff023e3e644592773d906c6e7a7c rdate-1.4-r2.ebuild 821 +EBUILD rdate-1.4-r3.ebuild 821 RMD160 374f8ad60d6f192f636b9eaf0fd65d428b1814a9 SHA1 60f12ae00582e4a35c75ae1835058ae6f4e0e62c SHA256 abf9a20cce3b5e6b1cde3ee3e7933ae865d9c20282c649b05381b054d72eb4a8 +MD5 1e9f95dabed20b9d7ff0befd82595406 rdate-1.4-r3.ebuild 821 +RMD160 374f8ad60d6f192f636b9eaf0fd65d428b1814a9 rdate-1.4-r3.ebuild 821 +SHA256 abf9a20cce3b5e6b1cde3ee3e7933ae865d9c20282c649b05381b054d72eb4a8 rdate-1.4-r3.ebuild 821 EBUILD rdate-1.4.ebuild 731 RMD160 67ec7130ae846bc26814a625e78804b77e1783a0 SHA1 e1ce34f6d62878c4d367175fcc7b311a542c2a82 SHA256 10673fa152b99d0069d8d10ca485b7a0b4836d93b6e998cd4396cc80bdb8f6f6 MD5 6dc24db864531b91dad260466fd9352a rdate-1.4.ebuild 731 RMD160 67ec7130ae846bc26814a625e78804b77e1783a0 rdate-1.4.ebuild 731 SHA256 10673fa152b99d0069d8d10ca485b7a0b4836d93b6e998cd4396cc80bdb8f6f6 rdate-1.4.ebuild 731 -MISC ChangeLog 4833 RMD160 a65b1b79f382f3f08074a44dd2f6a7fe6cb18afd SHA1 6b224ddcdff11d1f8c25fc97bcc9cf675ad7d47c SHA256 296ed8d11891d699d74889c7f2f8893b05730825a955eef798c5f04a1fa9bf62 -MD5 1984663e97e59144f9a1e43a39315b80 ChangeLog 4833 -RMD160 a65b1b79f382f3f08074a44dd2f6a7fe6cb18afd ChangeLog 4833 -SHA256 296ed8d11891d699d74889c7f2f8893b05730825a955eef798c5f04a1fa9bf62 ChangeLog 4833 +MISC ChangeLog 5063 RMD160 b25c2cb425d14c2f71ad47721d1ed0adfdccde63 SHA1 7b23832b6e9d5452ad966bd2c313c5edbd02576b SHA256 e0451a219aded7cd0d07a980d715ffe40aa345b79ac396bb19698f48383c5c36 +MD5 f5fe55a58a398bcac5f3ae84cd210938 ChangeLog 5063 +RMD160 b25c2cb425d14c2f71ad47721d1ed0adfdccde63 ChangeLog 5063 +SHA256 e0451a219aded7cd0d07a980d715ffe40aa345b79ac396bb19698f48383c5c36 ChangeLog 5063 MISC metadata.xml 223 RMD160 ffa99612cf27469c417944deed0e0c9155e64331 SHA1 607c637402dd253406aa6ee684471a702c5d1a99 SHA256 d6bb9ba68629616062b4433ab3b8fb01dfcafae5bb47804d9e06cdd6c66daa44 MD5 21cd68602737d7c996bceabf6e62c468 metadata.xml 223 RMD160 ffa99612cf27469c417944deed0e0c9155e64331 metadata.xml 223 @@ -62,3 +70,6 @@ SHA256 7abc07f96a2bdb9196cb0e68b9820e464c0b39a2b4932caa8ecf3373e1508603 files/di MD5 aa180f3f481db1e1a2242c01b36e8c44 files/digest-rdate-1.4-r2 226 RMD160 3818fa745aa4d780b7f8a337ef4b37d9b50af71e files/digest-rdate-1.4-r2 226 SHA256 7abc07f96a2bdb9196cb0e68b9820e464c0b39a2b4932caa8ecf3373e1508603 files/digest-rdate-1.4-r2 226 +MD5 aa180f3f481db1e1a2242c01b36e8c44 files/digest-rdate-1.4-r3 226 +RMD160 3818fa745aa4d780b7f8a337ef4b37d9b50af71e files/digest-rdate-1.4-r3 226 +SHA256 7abc07f96a2bdb9196cb0e68b9820e464c0b39a2b4932caa8ecf3373e1508603 files/digest-rdate-1.4-r3 226 diff --git a/net-misc/rdate/files/digest-rdate-1.4-r3 b/net-misc/rdate/files/digest-rdate-1.4-r3 new file mode 100644 index 000000000000..2d2acdae5828 --- /dev/null +++ b/net-misc/rdate/files/digest-rdate-1.4-r3 @@ -0,0 +1,3 @@ +MD5 b2e5bbfa10ec480076750fd78fe7f7a5 rdate-1.4.tar.gz 11500 +RMD160 13cfa099f6c36c589cea8325d64cce85578dfa07 rdate-1.4.tar.gz 11500 +SHA256 c8b4a026fa13f22bffe96fe0800b6ac67de72e9f62dfe5b74f1910a9179da4ee rdate-1.4.tar.gz 11500 diff --git a/net-misc/rdate/files/rdate-initd-1.4-r3 b/net-misc/rdate/files/rdate-initd-1.4-r3 new file mode 100644 index 000000000000..4f0db2f6d451 --- /dev/null +++ b/net-misc/rdate/files/rdate-initd-1.4-r3 @@ -0,0 +1,27 @@ +#!/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-1.4-r3,v 1.1 2007/04/10 09:57:25 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 + return 0 +} + +start() { + checkconfig || return $? + + ebegin "Setting clock via rdate" + /usr/bin/rdate -s ${RDATE_OPTS} -t ${RDATE_TIMEOUT} ${RDATE_SERVER} > /dev/null + eend $? "Failed to set clock" +} diff --git a/net-misc/rdate/rdate-1.4-r3.ebuild b/net-misc/rdate/rdate-1.4-r3.ebuild new file mode 100644 index 000000000000..c111d8e4247d --- /dev/null +++ b/net-misc/rdate/rdate-1.4-r3.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/rdate/rdate-1.4-r3.ebuild,v 1.1 2007/04/10 09:57:25 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/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +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-1.4-r3 rdate + newconfd ${FILESDIR}/rdate-confd rdate +}