diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2008-06-18 21:55:26 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2008-06-18 21:55:26 +0000 |
commit | d0ee27a410abf1bf33492b9e45cf26ba39d01a4c (patch) | |
tree | 51702402afb2eb33c5752c27189ce5a2d82e4b83 /net-misc/openrdate | |
parent | Version bump, removed some older versions (diff) | |
download | gentoo-2-d0ee27a410abf1bf33492b9e45cf26ba39d01a4c.tar.gz gentoo-2-d0ee27a410abf1bf33492b9e45cf26ba39d01a4c.tar.bz2 gentoo-2-d0ee27a410abf1bf33492b9e45cf26ba39d01a4c.zip |
Initial commit. Ebuild by Robin H. Johnson <robbat2@gentoo.org>.
(Portage version: 2.1.5.6)
Diffstat (limited to 'net-misc/openrdate')
-rw-r--r-- | net-misc/openrdate/ChangeLog | 11 | ||||
-rw-r--r-- | net-misc/openrdate/Manifest | 7 | ||||
-rw-r--r-- | net-misc/openrdate/files/openrdate-1.1.3-rename.patch | 29 | ||||
-rw-r--r-- | net-misc/openrdate/files/openrdate-confd | 13 | ||||
-rw-r--r-- | net-misc/openrdate/files/openrdate-initd | 27 | ||||
-rw-r--r-- | net-misc/openrdate/metadata.xml | 8 | ||||
-rw-r--r-- | net-misc/openrdate/openrdate-1.1.3.ebuild | 31 |
7 files changed, 126 insertions, 0 deletions
diff --git a/net-misc/openrdate/ChangeLog b/net-misc/openrdate/ChangeLog new file mode 100644 index 000000000000..07d18fba7a76 --- /dev/null +++ b/net-misc/openrdate/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for net-misc/openrdate +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/openrdate/ChangeLog,v 1.1 2008/06/18 21:55:25 robbat2 Exp $ + +*openrdate-1.1.3 (18 Jun 2008) + + 18 Jun 2008; Robin H. Johnson <robbat2@gentoo.org> + +files/openrdate-1.1.3-rename.patch, +files/openrdate-confd, + +files/openrdate-initd, +metadata.xml, +openrdate-1.1.3.ebuild: + Initial commit. Ebuild by Robin H. Johnson <robbat2@gentoo.org>. + diff --git a/net-misc/openrdate/Manifest b/net-misc/openrdate/Manifest new file mode 100644 index 000000000000..1c24dca7bf6b --- /dev/null +++ b/net-misc/openrdate/Manifest @@ -0,0 +1,7 @@ +AUX openrdate-1.1.3-rename.patch 670 RMD160 48970f24339c19c7d89bc60730214a5ffc1a856e SHA1 aa816d5530d1a8cbf79b1086690ff7ded81c2340 SHA256 4e3647ca891ff78a4f1ef479ff330684589167a29a53a95dd6a2a1fcf8ee12bf +AUX openrdate-confd 575 RMD160 47b717d6fe364b9d70e1d736332ec0b76ee2cc80 SHA1 f40077ad87c880f80033bddf078f21bef0652e22 SHA256 ed1a4ca2456b0a56bb92c53f3111ede854ea76045a79c2ce21cf374b69443719 +AUX openrdate-initd 649 RMD160 bf1b1a5230bb6818c9cd42dabe006638a44b29af SHA1 7040d4d8dca228c53756ea13d21190b1c2e0ae8e SHA256 65c126c6c6f92d727070464b485194815e2c6423cb2e6f4bddc4b381d820e8c6 +DIST openrdate-1.1.3.tar.gz 92841 RMD160 64f69ab5901b53fa591903983d8f50aa7a3de626 SHA1 15c3a4a24ee989c836f2683b55fd6a585f1e52ab SHA256 0f8a034107fc7593f28e77b276f964c1309343b4702ecdf0d61bb3e57ad0cb5f +EBUILD openrdate-1.1.3.ebuild 828 RMD160 9821b6efbbc069e14a3f065ad0787959d7b90998 SHA1 387799edfaf18734053a585b7302eba7c0392720 SHA256 bb1114f8d5d7689cee726fc25a5972685c0f04823d0cad84c1b9895421006785 +MISC ChangeLog 401 RMD160 da43f946f31e1a1ea51b0ac80ff0e69c5098fde5 SHA1 4fd689b89549275aaf7672e927dcc7c1f1777a20 SHA256 e8fce9af7e9cf197784981270c15f333b5f31905ad134d4d7c4e0e3228e96aa4 +MISC metadata.xml 223 RMD160 ffa99612cf27469c417944deed0e0c9155e64331 SHA1 607c637402dd253406aa6ee684471a702c5d1a99 SHA256 d6bb9ba68629616062b4433ab3b8fb01dfcafae5bb47804d9e06cdd6c66daa44 diff --git a/net-misc/openrdate/files/openrdate-1.1.3-rename.patch b/net-misc/openrdate/files/openrdate-1.1.3-rename.patch new file mode 100644 index 000000000000..5f4774c3be4e --- /dev/null +++ b/net-misc/openrdate/files/openrdate-1.1.3-rename.patch @@ -0,0 +1,29 @@ +Name the binary 'openrdate' as so not to conflict with the pre-existing ancient +rdate. + +Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> + +diff -Nuar openrdate-1.1.3.orig/Makefile.am openrdate-1.1.3/Makefile.am +--- openrdate-1.1.3.orig/Makefile.am 2007-11-10 21:15:31.000000000 -0800 ++++ openrdate-1.1.3/Makefile.am 2008-06-18 14:27:40.001963783 -0700 +@@ -1,15 +1,15 @@ + SUBDIRS = src + +-bin_PROGRAMS = rdate ++bin_PROGRAMS = openrdate + +-rdate_SOURCES= \ ++openrdate_SOURCES= \ + src/rdate.c + +-rdate_LDADD= \ ++openrdate_LDADD= \ + src/librdate.a + + man_MANS= \ +- docs/rdate.8 ++ docs/openrdate.8 + + EXTRA_DIST= \ +- docs/rdate.8 ++ $(man_MANS) diff --git a/net-misc/openrdate/files/openrdate-confd b/net-misc/openrdate/files/openrdate-confd new file mode 100644 index 000000000000..3ff1afc9d16a --- /dev/null +++ b/net-misc/openrdate/files/openrdate-confd @@ -0,0 +1,13 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/openrdate/files/openrdate-confd,v 1.1 2008/06/18 21:55:26 robbat2 Exp $ + +# the NTP or RFC868/time 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. +# "-n" says that we are using an NTP server instead of a RFC868/time server. +# "-c" is for leap seconds, which is needed on NTP servers. +OPENRDATE_OPTS="-n -c" diff --git a/net-misc/openrdate/files/openrdate-initd b/net-misc/openrdate/files/openrdate-initd new file mode 100644 index 000000000000..6ab3f2d21968 --- /dev/null +++ b/net-misc/openrdate/files/openrdate-initd @@ -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/openrdate/files/openrdate-initd,v 1.1 2008/06/18 21:55:26 robbat2 Exp $ + +depend() { + before cron + need net + use dns +} + +checkconfig() { + if [ -z "${RDATE_SERVER}" ] ; then + eerror "Please edit /etc/conf.d/openrdate" + eerror "I need to know what server to use!" + return 1 + fi + return 0 +} + +start() { + checkconfig || return $? + + ebegin "Setting clock via openrdate" + /usr/bin/openrdate -s ${OPENRDATE_OPTS} ${RDATE_SERVER} > /dev/null + eend $? "Failed to set clock via openrdate" +} diff --git a/net-misc/openrdate/metadata.xml b/net-misc/openrdate/metadata.xml new file mode 100644 index 000000000000..5d9f5be9d49d --- /dev/null +++ b/net-misc/openrdate/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> + <email>robbat2@gentoo.org</email> +</maintainer> +</pkgmetadata> diff --git a/net-misc/openrdate/openrdate-1.1.3.ebuild b/net-misc/openrdate/openrdate-1.1.3.ebuild new file mode 100644 index 000000000000..2d27468d92cb --- /dev/null +++ b/net-misc/openrdate/openrdate-1.1.3.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/openrdate/openrdate-1.1.3.ebuild,v 1.1 2008/06/18 21:55:25 robbat2 Exp $ + +inherit autotools + +DESCRIPTION="use TCP or UDP to retrieve the current time of another machine" +HOMEPAGE="http://sourceforge.net/projects/openrdate/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64 ~ppc" +IUSE="" + +DEPEND="virtual/libc" +RDEPEND="${DEPEND}" + +src_unpack() { + unpack ${A} + epatch "${FILESDIR}"/${PN}-1.1.3-rename.patch + cd "${S}" + eautomake + mv docs/{,open}rdate.8 +} + +src_install(){ + emake -j1 DESTDIR="${D}" install || die "make install failed" + newinitd "${FILESDIR}"/openrdate-initd openrdate + newconfd "${FILESDIR}"/openrdate-confd openrdate +} |