From: | "Robin H. Johnson (robbat2)" <robbat2@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-misc/openrdate/files: openrdate-initd openrdate-1.1.3-rename.patch openrdate-confd |
Date: | Wed, 18 Jun 2008 21:55:52 |
Message-Id: | E1K95cl-0001xx-1n@stork.gentoo.org |
1 | robbat2 08/06/18 21:55:27 |
2 | |
3 | Added: openrdate-initd openrdate-1.1.3-rename.patch |
4 | openrdate-confd |
5 | Log: |
6 | Initial commit. Ebuild by Robin H. Johnson <robbat2@g.o>. |
7 | (Portage version: 2.1.5.6) |
8 | |
9 | Revision Changes Path |
10 | 1.1 net-misc/openrdate/files/openrdate-initd |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/openrdate/files/openrdate-initd?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/openrdate/files/openrdate-initd?rev=1.1&content-type=text/plain |
14 | |
15 | Index: openrdate-initd |
16 | =================================================================== |
17 | #!/sbin/runscript |
18 | # Copyright 1999-2005 Gentoo Foundation |
19 | # Distributed under the terms of the GNU General Public License v2 |
20 | # $Header: /var/cvsroot/gentoo-x86/net-misc/openrdate/files/openrdate-initd,v 1.1 2008/06/18 21:55:26 robbat2 Exp $ |
21 | |
22 | depend() { |
23 | before cron |
24 | need net |
25 | use dns |
26 | } |
27 | |
28 | checkconfig() { |
29 | if [ -z "${RDATE_SERVER}" ] ; then |
30 | eerror "Please edit /etc/conf.d/openrdate" |
31 | eerror "I need to know what server to use!" |
32 | return 1 |
33 | fi |
34 | return 0 |
35 | } |
36 | |
37 | start() { |
38 | checkconfig || return $? |
39 | |
40 | ebegin "Setting clock via openrdate" |
41 | /usr/bin/openrdate -s ${OPENRDATE_OPTS} ${RDATE_SERVER} > /dev/null |
42 | eend $? "Failed to set clock via openrdate" |
43 | } |
44 | |
45 | |
46 | |
47 | 1.1 net-misc/openrdate/files/openrdate-1.1.3-rename.patch |
48 | |
49 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/openrdate/files/openrdate-1.1.3-rename.patch?rev=1.1&view=markup |
50 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/openrdate/files/openrdate-1.1.3-rename.patch?rev=1.1&content-type=text/plain |
51 | |
52 | Index: openrdate-1.1.3-rename.patch |
53 | =================================================================== |
54 | Name the binary 'openrdate' as so not to conflict with the pre-existing ancient |
55 | rdate. |
56 | |
57 | Signed-off-by: Robin H. Johnson <robbat2@g.o> |
58 | |
59 | diff -Nuar openrdate-1.1.3.orig/Makefile.am openrdate-1.1.3/Makefile.am |
60 | --- openrdate-1.1.3.orig/Makefile.am 2007-11-10 21:15:31.000000000 -0800 |
61 | +++ openrdate-1.1.3/Makefile.am 2008-06-18 14:27:40.001963783 -0700 |
62 | @@ -1,15 +1,15 @@ |
63 | SUBDIRS = src |
64 | |
65 | -bin_PROGRAMS = rdate |
66 | +bin_PROGRAMS = openrdate |
67 | |
68 | -rdate_SOURCES= \ |
69 | +openrdate_SOURCES= \ |
70 | src/rdate.c |
71 | |
72 | -rdate_LDADD= \ |
73 | +openrdate_LDADD= \ |
74 | src/librdate.a |
75 | |
76 | man_MANS= \ |
77 | - docs/rdate.8 |
78 | + docs/openrdate.8 |
79 | |
80 | EXTRA_DIST= \ |
81 | - docs/rdate.8 |
82 | + $(man_MANS) |
83 | |
84 | |
85 | |
86 | 1.1 net-misc/openrdate/files/openrdate-confd |
87 | |
88 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/openrdate/files/openrdate-confd?rev=1.1&view=markup |
89 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/openrdate/files/openrdate-confd?rev=1.1&content-type=text/plain |
90 | |
91 | Index: openrdate-confd |
92 | =================================================================== |
93 | # Copyright 1999-2005 Gentoo Foundation |
94 | # Distributed under the terms of the GNU General Public License v2 |
95 | # $Header: /var/cvsroot/gentoo-x86/net-misc/openrdate/files/openrdate-confd,v 1.1 2008/06/18 21:55:26 robbat2 Exp $ |
96 | |
97 | # the NTP or RFC868/time server to get the date from |
98 | RDATE_SERVER="pool.ntp.org" |
99 | |
100 | # Options to pass to rdate |
101 | # "-s" is mandatory to set the system time, and |
102 | # is passed regardless of this variable. |
103 | # "-n" says that we are using an NTP server instead of a RFC868/time server. |
104 | # "-c" is for leap seconds, which is needed on NTP servers. |
105 | OPENRDATE_OPTS="-n -c" |
106 | |
107 | |
108 | |
109 | -- |
110 | gentoo-commits@l.g.o mailing list |