[leaf-commits] src/bering-uclibc4/source/busybox ntpd, NONE, 1.1 ntpd.default, NONE, 1.1 buildtool.cfg, 1.3, 1.4 buildtool.mk, 1.3, 1.4

KP Kirchd?rfer <[email protected]>
Newsgroups gmane.linux.leaf.cvs
Message-ID <[email protected]>
Update of /cvsroot/leaf/src/bering-uclibc4/source/busybox
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv32345

Modified Files:
	buildtool.cfg buildtool.mk 
Added Files:
	ntpd ntpd.default 
Log Message:
enable traceroute and ntpd applet


--- NEW FILE: ntpd.default ---
# This file controls the activity of ntpd

# ntpd control (yes means start daemon).
NTPDRUN=yes

# ntpd options 
# -l activates server mode
# -p peer (can be more than one)
NTPDOPTS='-l -p 0.pool.ntp.org -p 1.pool.ntp.org'

Index: buildtool.mk
===================================================================
RCS file: /cvsroot/leaf/src/bering-uclibc4/source/busybox/buildtool.mk,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** buildtool.mk	7 Aug 2010 22:45:49 -0000	1.3
--- buildtool.mk	2 Oct 2010 12:36:27 -0000	1.4
***************
*** 23,26 ****
--- 23,29 ----
  $(BUSYBOX_DIR)/.build: $(BUSYBOX_DIR)/.source
  	mkdir -p $(BUSYBOX_BUILD_DIR)
+ 	mkdir -p $(BUSYBOX_BUILD_DIR)/etc/init.d
+ 	mkdir -p $(BUSYBOX_BUILD_DIR)/etc/default
+ 	
  	cp .config $(BUSYBOX_DIR)/
  #	make CROSS_COMPILER_PREFIX="$(BT_STAGING_DIR)/bin/i386-linux-"  -C $(BUSYBOX_DIR) dep
***************
*** 29,34 ****
  	$(BT_STRIP) $(BT_STRIP_BINOPTS) $(BUSYBOX_DIR)/busybox
  	cp -a $(BUSYBOX_DIR)/busybox $(BUSYBOX_BUILD_DIR)
! #	cp -a $(BUSYBOX_DIR)/busybox.links $(BUSYBOX_BUILD_DIR)
  	cp -a $(BUSYBOX_BUILD_DIR)/* $(BT_STAGING_DIR)/bin
  	touch $(BUSYBOX_DIR)/.build
  
--- 32,40 ----
  	$(BT_STRIP) $(BT_STRIP_BINOPTS) $(BUSYBOX_DIR)/busybox
  	cp -a $(BUSYBOX_DIR)/busybox $(BUSYBOX_BUILD_DIR)
! 	cp -a ntpd $(BUSYBOX_BUILD_DIR)/etc/init.d
! 	cp -a ntpd.default $(BUSYBOX_BUILD_DIR)/etc/default/ntpd
  	cp -a $(BUSYBOX_BUILD_DIR)/* $(BT_STAGING_DIR)/bin
+ 	cp -a $(BUSYBOX_BUILD_DIR)/etc/init.d/* $(BT_STAGING_DIR)/etc/init.d
+ 	cp -a $(BUSYBOX_BUILD_DIR)/etc/default/* $(BT_STAGING_DIR)/etc/default
  	touch $(BUSYBOX_DIR)/.build
  

Index: buildtool.cfg
===================================================================
RCS file: /cvsroot/leaf/src/bering-uclibc4/source/busybox/buildtool.cfg,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** buildtool.cfg	7 Aug 2010 22:45:49 -0000	1.3
--- buildtool.cfg	2 Oct 2010 12:36:27 -0000	1.4
***************
*** 45,46 ****
--- 45,58 ----
  	revision = HEAD
  </File>
+ 
+ <File ntpd>
+ 	Server = cvs4-sourceforge
+ 	directory = busybox
+ 	revision = HEAD
+ </File>
+ 
+ <File ntpd.default>
+ 	Server = cvs4-sourceforge
+ 	directory = busybox
+ 	revision = HEAD
+ </File>

--- NEW FILE: ntpd ---
#! /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,S25 3,S25 4,S25 5,S25 0,K25 1,K25 6,K25"

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/ntpd
NAME=ntpd
DESC="BusyBox ntpd"

test -x $DAEMON || exit 0

# read our control file
. /etc/default/ntpd


set -e

case "$1" in
  start)
	echo -n "Starting $DESC "
	if [ "$NTPDRUN" = "yes" ]; then
	start-stop-daemon --start --quiet --exec $DAEMON -- $NTPDOPTS
	echo 
	fi
	;;
  stop)
	echo -n "Stopping $DESC "
	start-stop-daemon --stop --oknodo --quiet --exec $DAEMON 2>/dev/null
	echo 
	;;
  restart|force-reload)
	echo -n "Restarting $DESC "
	start-stop-daemon --stop --oknodo --quiet --exec $DAEMON 2>/dev/null
	sleep 1
	if [ "$NTPDRUN" = "yes" ]; then
	start-stop-daemon --start --quiet --exec $DAEMON -- $NTPDOPTS
	echo 
	fi
	;;
  *)
	N=/etc/init.d/$NAME
	echo "Usage: $N {start|stop|restart|force-reload}" >&2
	exit 1
	;;
esac

exit 0


------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.