summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2008-06-18 21:55:26 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2008-06-18 21:55:26 +0000
commit0d1b5853dfc4b36753fac063ab7c830b3d8ea6c4 (patch)
tree6195349f2aad8adb42997f25fbb9421faed69b87 /net-misc/openrdate
parentVersion bump, removed some older versions (diff)
downloadhistorical-0d1b5853dfc4b36753fac063ab7c830b3d8ea6c4.tar.gz
historical-0d1b5853dfc4b36753fac063ab7c830b3d8ea6c4.tar.bz2
historical-0d1b5853dfc4b36753fac063ab7c830b3d8ea6c4.zip
Initial commit. Ebuild by Robin H. Johnson <robbat2@gentoo.org>.
Package-Manager: portage-2.1.5.6
Diffstat (limited to 'net-misc/openrdate')
-rw-r--r--net-misc/openrdate/ChangeLog11
-rw-r--r--net-misc/openrdate/Manifest7
-rw-r--r--net-misc/openrdate/files/openrdate-1.1.3-rename.patch29
-rw-r--r--net-misc/openrdate/files/openrdate-confd13
-rw-r--r--net-misc/openrdate/files/openrdate-initd27
-rw-r--r--net-misc/openrdate/metadata.xml8
-rw-r--r--net-misc/openrdate/openrdate-1.1.3.ebuild31
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..45b65b346938
--- /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 583 RMD160 36b9dea01ad9214e973128418bb7f993647691f0 SHA1 27a73ed24946fe84b3086547dc4e68d75084c289 SHA256 530a3c700359d7fee40b7ea1707650929c5e2ba230f81a00cb4233ea34f11b27
+AUX openrdate-initd 650 RMD160 a5c4fdfddd5c23dabe30b446d41e2fe9dccf501f SHA1 512ba6d1a2883fc7be7e9f3d0dd5118c426f7fa8 SHA256 07577b36ccc71ea23a7a8cd4cb649db1f051ae48b5493d24c9ba75c1a3e8fc13
+DIST openrdate-1.1.3.tar.gz 92841 RMD160 64f69ab5901b53fa591903983d8f50aa7a3de626 SHA1 15c3a4a24ee989c836f2683b55fd6a585f1e52ab SHA256 0f8a034107fc7593f28e77b276f964c1309343b4702ecdf0d61bb3e57ad0cb5f
+EBUILD openrdate-1.1.3.ebuild 834 RMD160 bde2ff4278d6f1bb35e7f22f24d7f3b1d6925104 SHA1 53303e59c0a254383f2c9b7a772ca6d85a86da82 SHA256 87c8a0a1285fd6f3b50320d87144687fa8f4103861c4c70a420185b4c38ca2c6
+MISC ChangeLog 492 RMD160 f6fe749ee9f1e873e543de7804f0313acf272322 SHA1 08c12a78948577776ae7e1a95dc305ce7bd64fea SHA256 2238efae8b92038f1b2ad80fb2c305b3730e95fed847475ec5280e1ed19b32ef
+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
+}