Update of /cvsroot/leaf/src/bering-uclibc/apps/openntpd
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv29032
Added Files:
buildtool.cfg buildtool.mk ntpd.conf openntpd-3.9p1.tar.gz
openntpd-user.patch openntpd.default openntpd.init
Log Message:
a very small and fast ntp v4 daemon
--- NEW FILE: openntpd.init ---
#! /bin/sh
#
# skeleton example file to build /etc/init.d/ scripts.
# This file should be used to construct scripts for /etc/init.d.
#
# Written by Miquel van Smoorenburg <[EMAIL PROTECTED]>.
# Modified for Debian
# by Ian Murdock <[EMAIL PROTECTED]>.
#
# Version: @(#)skeleton 1.9 26-Feb-2001 [EMAIL PROTECTED]
#
RCDLINKS="2,S20 3,S20 4,S20 5,S20 0,K20 1,K20 6,K20"
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/openntpd
NAME=openntpd
DESC=openntpd
test -x $DAEMON || exit 0
# Include openntpd defaults if available
if [ -f /etc/default/openntpd ] ; then
. /etc/default/openntpd
fi
set -e
case "$1" in
start)
echo -n "Starting $DESC: "
start-stop-daemon --start --quiet --exec $DAEMON -- $DAEMON_OPTS
echo "$NAME."
;;
stop)
echo -n "Stopping $DESC: "
start-stop-daemon --stop --oknodo --quiet --exec $DAEMON 2>/dev/null
echo "$NAME."
;;
restart|force-reload)
echo -n "Restarting $DESC: "
start-stop-daemon --stop --oknodo --quiet --exec $DAEMON 2>/dev/null
sleep 1
start-stop-daemon --start --quiet --exec $DAEMON -- $DAEMON_OPTS
echo "$NAME."
;;
*)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0
--- NEW FILE: openntpd.default ---
# Uncomment to set the system time when starting in case the offset
# between the local clock and the servers is more than 180 seconds.
# For other options, see man ntpd(8).
DAEMON_OPTS="-s"
--- NEW FILE: openntpd-user.patch ---
diff -urN openntpd-3.9p1.orig/ntpd.h openntpd-3.9p1/ntpd.h
--- openntpd-3.9p1.orig/ntpd.h 2006-05-14 07:29:21.000000000 +0200
+++ openntpd-3.9p1/ntpd.h 2006-09-05 17:19:22.000000000 +0200
@@ -31,7 +31,7 @@
#include "ntp.h"
#ifndef NTPD_USER
-#define NTPD_USER "_ntp"
+#define NTPD_USER "root"
#endif
#define CONFFILE SYSCONFDIR "/ntpd.conf"
--- NEW FILE: openntpd-3.9p1.tar.gz ---
(This appears to be a binary file; contents omitted.)
--- NEW FILE: buildtool.mk ---
# makefile for openntp
include $(MASTERMAKEFILE)
OPENNTP_DIR:=openntpd-3.9p1
OPENNTP_TARGET_DIR:=$(BT_BUILD_DIR)/openntp
$(OPENNTP_DIR)/.source:
zcat $(OPENNTP_SOURCE) | tar -xvf -
cat $(OPENNTP_PATCH1) | patch -d $(OPENNTP_DIR) -p1
touch $(OPENNTP_DIR)/.source
source: $(OPENNTP_DIR)/.source
$(OPENNTP_DIR)/.configured: $(OPENNTP_DIR)/.source
(cd $(OPENNTP_DIR) ; CC=$(TARGET_CC) LD=$(TARGET_LD)
CFLAGS="$(BT_COPT_FLAGS)" \
./configure \
--prefix=/usr \
--host=$(GNU_HOST_NAME) \
--build=$(GNU_HOST_NAME) \
--without-ssl-dir \
--with-builtin-arc4random \
--sysconfdir=/etc/openntpd);
touch $(OPENNTP_DIR)/.configured
#--with-ssl-dir=PATH
#--without-privsep-user \
$(OPENNTP_DIR)/.build: $(OPENNTP_DIR)/.configured
mkdir -p $(OPENNTP_TARGET_DIR)
mkdir -p $(OPENNTP_TARGET_DIR)/etc/default
mkdir -p $(OPENNTP_TARGET_DIR)/etc/init.d
mkdir -p $(OPENNTP_TARGET_DIR)/etc/openntpd
mkdir -p $(OPENNTP_TARGET_DIR)/usr/sbin
make -C $(OPENNTP_DIR) all
-$(BT_STRIP) $(BT_STRIP_BINOPTS) $(OPENNTP_DIR)/ntpd
cp -a $(OPENNTP_DIR)/ntpd $(OPENNTP_TARGET_DIR)/usr/sbin/openntpd
cp -a openntpd.default $(OPENNTP_TARGET_DIR)/etc/default/openntpd
cp -a openntpd.init $(OPENNTP_TARGET_DIR)/etc/init.d/openntpd
cp -a ntpd.conf $(OPENNTP_TARGET_DIR)/etc/openntpd/
cp -a $(OPENNTP_TARGET_DIR)/* $(BT_STAGING_DIR)/
touch $(OPENNTP_DIR)/.build
build: $(OPENNTP_DIR)/.build
clean:
make -C $(OPENNTP_DIR) clean
rm -rf $(OPENNTP_TARGET_DIR)
-rm $(OPENNTP_DIR)/.build
-rm $(OPENNTP_DIR)/.configured
srcclean: clean
rm -rf $(OPENNTP_DIR)
--- NEW FILE: ntpd.conf ---
# $OpenBSD: ntpd.conf,v 1.7 2004/07/20 17:38:35 henning Exp $
# sample ntpd configuration file, see ntpd.conf(5)
# Addresses to listen on (ntpd does not listen by default)
#listen on *
#listen on 127.0.0.1
#listen on ::1
# sync to a single server
#server ntp.example.org
# use a random selection of 8 public stratum 2 servers
# see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers
servers pool.ntp.org
--- NEW FILE: buildtool.cfg ---
<File buildtool.mk>
Server = cvs-sourceforge
Revision = HEAD
Directory = openntpd
</File>
<File openntpd-3.9p1.tar.gz>
Server = cvs-sourceforge
Revision = HEAD
Directory = openntpd
Envname = OPENNTP_SOURCE
</File>
<File openntpd-user.patch>
Server = cvs-sourceforge
Revision = HEAD
Directory = openntpd
Envname = OPENNTP_PATCH1
</File>
<File openntpd.default>
Server = cvs-sourceforge
Revision = HEAD
Directory = openntpd
</File>
<File openntpd.init>
Server = cvs-sourceforge
Revision = HEAD
Directory = openntpd
</File>
<File ntpd.conf>
Server = cvs-sourceforge
Revision = HEAD
Directory = openntpd
</File>
<Package>
<openntpd>
Version = 3.9p1
Revision = 1
Help <<EOF
small and fast NTP v4 daemon
Homepage: http://www.openntpd.org/
LEAF package by __PACKAGER__, __BUILDDATE__
EOF
<Permissions>
Files = 644
Directories = 755
</Permissions>
<Owner>
Files = root:root
Directories = root:root
</Owner>
<Contents>
<File>
Filename = etc/default/openntpd
Source = etc/default/openntpd
Description = openntpd daemon configuration
Type = conf
Type = local
Type = binary
</File>
<File>
Filename = etc/init.d/openntpd
Source = etc/init.d/openntpd
Description = openntpd init file
Type = binary
Permissions = 755
</File>
<File>
Filename = usr/sbin/openntpd
Source = usr/sbin/openntpd
Type = binary
Permissions = 755
</File>
<File>
Filename = etc/openntpd/ntpd.conf
Source = etc/openntpd/ntpd.conf
Description = openntpd configuration
Type = conf
Type = local
Type = binary
</File>
</Contents>
</openntpd>
</Package>
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
leaf-cvs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-cvs-commits