OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 23-Nov-2008 09:40:43
Branch: HEAD Handle: 2008112308404201
Added files:
openpkg-src/openrdate openrdate.patch openrdate.spec
Log:
new package: openrdate 1.2 (Remote Date Client)
Summary:
Revision Changes Path
1.1 +47 -0 openpkg-src/openrdate/openrdate.patch
1.1 +85 -0 openpkg-src/openrdate/openrdate.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/openrdate/openrdate.patch
============================================================================
$ cvs diff -u -r0 -r1.1 openrdate.patch
--- /dev/null 2008-11-23 09:33:33 +0100
+++ openrdate.patch 2008-11-23 09:40:43 +0100
@@ -0,0 +1,47 @@
+Index: src/arc4random.c
+--- src/arc4random.c.orig 2008-11-22 00:22:49 +0100
++++ src/arc4random.c 2008-11-23 09:32:47 +0100
+@@ -46,6 +46,11 @@
+ #include <sys/time.h>
+ #include <sys/sysctl.h>
+
++#if !defined(CTL_KERN) || !defined(KERN_RANDOM)
++#undef __NO_SYSCTL__
++#define __NO_SYSCTL__
++#endif
++
+ #if defined __NO_SYSCTL__
+ #include <err.h>
+ #include <errno.h>
+@@ -61,14 +66,16 @@
+ #define _ARC4_LOCK() pthread_mutex_lock(&mux)
+ #define _ARC4_UNLOCK() pthread_mutex_unlock(&mux)
+ #else /* !__LINUX__ */
+-#include "thread_private.h"
++#define _ARC4_LOCK()
++#define _ARC4_UNLOCK()
+ #endif /* __LINUX__ */
+
+-#ifdef __GNUC__
++#ifdef __LINUX__
+ #define inline __inline
+ #define KERN_ARND KERN_RANDOM
+ #else /* !__GNUC__ */
+ #define inline
++#define KERN_ARND 0
+ #endif /* !__GNUC__ */
+
+ struct arc4_stream {
+Index: src/ntp.c
+--- src/ntp.c.orig 2007-11-11 07:04:33 +0100
++++ src/ntp.c 2008-11-23 09:30:53 +0100
+@@ -91,9 +91,7 @@
+ #define MILLION_L 1000000l /* For conversion to/from
timeval */
+ #define MILLION_D 1.0e6 /* Must be equal to MILLION_L */
+
+-#ifdef __GLIBC__
+ #define SA_LEN(x) sizeof(*x)
+-#endif
+
+ struct ntp_data {
+ u_char status;
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/openrdate/openrdate.spec
============================================================================
$ cvs diff -u -r0 -r1.1 openrdate.spec
--- /dev/null 2008-11-23 09:33:33 +0100
+++ openrdate.spec 2008-11-23 09:40:43 +0100
@@ -0,0 +1,85 @@
+##
+## openrdate.spec -- OpenPKG RPM Package Specification
+## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
+##
+## Permission to use, copy, modify, and distribute this software for
+## any purpose with or without fee is hereby granted, provided that
+## the above copyright notice and this permission notice appear in all
+## copies.
+##
+## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+## SUCH DAMAGE.
+##
+
+# package information
+Name: openrdate
+Summary: Remote Date Client
+URL: http://openrdate.sourceforge.net/
+Vendor: D. Mazieres, T. Roessler, N.M. Maclaren, T. Glaser, C. Zoulas,
D. Snyder
+Packager: OpenPKG Foundation e.V.
+Distribution: OpenPKG Community
+Class: EVAL
+Group: Network
+License: BSD
+Version: 1.2
+Release: 20081123
+
+# list of sources
+Source0:
http://switch.dl.sourceforge.net/openrdate/openrdate-%{version}.tar.gz
+Patch0: openrdate.patch
+
+# build information
+Prefix: %{l_prefix}
+BuildRoot: %{l_buildroot}
+BuildPreReq: OpenPKG, openpkg >= 20060823
+PreReq: OpenPKG, openpkg >= 20060823
+AutoReq: no
+AutoReqProv: no
+
+%description
+ openrdate is a good-old rdate(8) date- and time-setting software
+ implementing RFC 868 (inetd time) and RFC 2030 (SNTP/NTP) protocols.
+ It is derived from OpenBSD's rdate program.
+
+%track
+ prog openrdate = {
+ version = %{version}
+ url = http://prdownloads.sourceforge.net/openrdate/
+ regex = openrdate-(__VER__)\.tar\.gz
+ }
+
+%prep
+ %setup -q
+ %patch -p0
+
+%build
+ CC="%{l_cc}" \
+ CFLAGS="%{l_cflags -O}" \
+ CPPFLAGS="%{l_cppflags}" \
+ LDFLAGS="%{l_ldflags}" \
+ ./configure \
+ --prefix=%{l_prefix} \
+ --mandir=%{l_prefix}/man
+ %{l_make} %{l_mflags -O}
+
+%install
+ rm -rf $RPM_BUILD_ROOT
+ %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
+ strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
+
+%files -f files
+
+%clean
+ rm -rf $RPM_BUILD_ROOT
+
@@ .
______________________________________________________________________
OpenPKG http://openpkg.org
CVS Repository Commit List [email protected]