[leaf-commits] src/bering-uclibc4/source/radvd buildtool.cfg, NONE, 1.1 buildtool.mk, NONE, 1.1 radvd-1.7.tar.gz, NONE, 1.1 radvd.conf, NONE, 1.1 radvd.init, NONE, 1.1

KP Kirchd?rfer <[email protected]> Thu, 13 Jan 2011 17:42:06 +0000
Newsgroups gmane.linux.leaf.cvs
Message-ID <[email protected]>
Update of /cvsroot/leaf/src/bering-uclibc4/source/radvd
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv30173

Added Files:
	buildtool.cfg buildtool.mk radvd-1.7.tar.gz radvd.conf 
	radvd.init 
Log Message:
new upstream version 1.7

adds a lot more options and provides an option to check config syntax


--- NEW FILE: radvd-1.7.tar.gz ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: radvd.init ---
#! /bin/sh

RCDLINKS="0,K50 1,K50 2,S50 3,S50 4,S50 5,S50 6,K50"
PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/radvd
NAME=radvd
DESC=radvd
CONFIG=/etc/radvd.conf

test -x $DAEMON || exit 0

set -e

# Check for IPv6 support in kernel
if test \! -e /proc/sys/net/ipv6; then
  echo "IPv6 support must be enabled in the kernel for $DESC to work."
  exit
fi

# We must enable IPv6 forwarding for radvd to work
echo 1 > /proc/sys/net/ipv6/conf/all/forwarding

chkconfig() {
    if [ ! -e $CONFIG ]; then
	echo "$CONFIG does NOT exist." && exit 1
    elif [ ! -s $CONFIG ]; then
	echo "$CONFIG is empty." && exit 1
    fi
}

case "$1" in
  start)
	echo -n "Starting $DESC: "
	chkconfig
	if ! start-stop-daemon --oknodo --start --pidfile /var/run/$NAME.pid \
		--exec $DAEMON; then
	  echo "failed." && exit 1
	fi
	echo "$NAME."
	;;
  stop)
	echo -n "Stopping $DESC: "
	start-stop-daemon --oknodo --stop --pidfile /var/run/$NAME.pid \
		--exec $DAEMON
	echo "$NAME."
	;;
  reload|force-reload)
	echo "Reloading $DESC configuration files."
	start-stop-daemon --stop --signal 1 --quiet --pidfile \
	    /var/run/$NAME.pid --exec $DAEMON
	
	;;
  restart)
	echo -n "Restarting $DESC: "
	start-stop-daemon --stop --quiet --pidfile \
		/var/run/$NAME.pid --exec $DAEMON
	sleep 1
	start-stop-daemon --start --quiet --pidfile \
		/var/run/$NAME.pid --exec $DAEMON
	echo "$NAME."
	;;
  *)
	N=/etc/init.d/$NAME
	echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
	exit 1
	;;
esac

exit 0

--- NEW FILE: buildtool.mk ---
# makefile for radvd
include $(MASTERMAKEFILE)

RADVD_DIR:=radvd-1.7
RADVD_TARGET_DIR:=$(BT_BUILD_DIR)/radvd

$(RADVD_DIR)/.source:
	zcat $(RADVD_SOURCE) | tar -xvf -
#	zcat $(RADVD_PATCH1) | patch -d $(RADVD_DIR) -p1
	touch $(RADVD_DIR)/.source

source: $(RADVD_DIR)/.source
                        
$(RADVD_DIR)/.configured: $(RADVD_DIR)/.source
	(cd $(RADVD_DIR) ; CC=$(TARGET_CC) LD=$(TARGET_LD) CFLAGS="$(BT_COPT_FLAGS)" \
	./configure --sysconfdir=/etc --prefix=/usr --mandir=/usr/share/man )
	touch $(RADVD_DIR)/.configured
                                                                 
$(RADVD_DIR)/.build: $(RADVD_DIR)/.configured
	mkdir -p $(RADVD_TARGET_DIR)
	mkdir -p $(RADVD_TARGET_DIR)/etc/init.d	
	mkdir -p $(RADVD_TARGET_DIR)/usr/sbin
	make CC=$(TARGET_CC) -C $(RADVD_DIR)
	-$(BT_STRIP) $(BT_STRIP_BINOPTS) $(RADVD_DIR)/radvd
	cp -a $(RADVD_DIR)/radvd $(RADVD_TARGET_DIR)/usr/sbin
	cp -a radvd.conf $(RADVD_TARGET_DIR)/etc
	cp -a radvd.init $(RADVD_TARGET_DIR)/etc/init.d/radvd
	cp -a $(RADVD_TARGET_DIR)/* $(BT_STAGING_DIR)
	touch $(RADVD_DIR)/.build

build: $(RADVD_DIR)/.build
                                                                                         
clean:
	rm -rf $(RADVD_TARGET_DIR)
	$(MAKE) -C $(RADVD_DIR) clean
	rm -f $(RADVD_DIR)/.build
	rm -f $(RADVD_DIR)/.configured
                                                                                                                 
srcclean: clean
	rm -rf $(RADVD_DIR) 
	rm -f $(RADVD_DIR)/.source

--- NEW FILE: buildtool.cfg ---
<File buildtool.mk>
  Server = cvs4-sourceforge
  Revision = HEAD
  Directory = radvd
</File>
                  
<File radvd-1.7.tar.gz>
  Server = cvs4-sourceforge
  Revision = HEAD
  envname = RADVD_SOURCE
  Directory = radvd
</File>

<File radvd.init>
  Server = cvs4-sourceforge
  Revision = HEAD
  Directory = radvd
</File>

<File radvd.conf>
  Server = cvs4-sourceforge
  Revision = HEAD
  Directory = radvd
</File>

<Package>
	<radvd>
		Version = 1.7
		Revision = 1

		Help <<EOF
		Linux IPv6 Router Advertisement Daemon (radvd)
		Homepage: http://www.litech.org/radvd
		LEAF package by __PACKAGER__, __BUILDDATE__
		
		Radvd comes with a default configuration in /etc/radvd.conf that advertises
		site-local (fec0::/64) addresses on eth0. If you want to use other addresses
		or another interface, please change radvd.conf to your needs.
		
		Furthermore, radvd needs IPv6 forwarding enabled (setting 
		/proc/sys/net/ipv6/conf/all/forwarding to 1) so this is done in the init 
		script.
		
		If starting radvd fails, please have a look at /var/log/syslog, since radvd 
		doesn't output startup failures to the terminal.
		EOF
		
		<Permissions>
			Files = 644
			Directories = 755
		</Permissions>

		<Owner>
			Files = root:root
			Directories = root:root
		</Owner>
		
		<Contents>
			<File>          
				Source          = usr/sbin/radvd
				Filename        = usr/sbin/radvd
				Type            = binary
				Permissions = 755
			</File>		

			<File>          
				Source          = etc/init.d/radvd
				Filename        = etc/init.d/radvd
				Type            = binary
				Permissions = 755
			</File>		

			<File>          
				Source          = etc/radvd.conf
				Filename        = etc/radvd.conf
				Description	= radvd configuration file
				Type            = binary
				Type            = conf
				Type		= local
			</File>		
		</Contents>			
	</radvd>
</Package>

--- NEW FILE: radvd.conf ---
interface eth0
{
   AdvSendAdvert on;
   prefix fec0::/64
   {
   };
};   


------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl