Update of /cvsroot/leaf/src/bering-uclibc/contrib/upnpbridge
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv24750
Modified Files:
buildtool.cfg buildtool.mk
Added Files:
upnpbridge.default upnpbridge.init
Log Message:
added an init.d script
--- NEW FILE: upnpbridge.default ---
# configuration for /etc/init.d/upnpbridge
# space separated list of interfaces to upnp bridge
INTERFACES="eth0 eth1"
Index: buildtool.cfg
===================================================================
RCS file: /cvsroot/leaf/src/bering-uclibc/contrib/upnpbridge/buildtool.cfg,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** buildtool.cfg 21 Aug 2006 09:59:26 -0000 1.2
--- buildtool.cfg 28 Aug 2006 21:34:50 -0000 1.3
***************
*** 1,4 ****
<File buildtool.mk>
! Server = cvs-contrib-sourceforge
Revision = HEAD
Directory = upnpbridge
--- 1,4 ----
<File buildtool.mk>
! Server = cvs-sourceforge
Revision = HEAD
Directory = upnpbridge
***************
*** 6,10 ****
<File upnpbridge.c>
! Server = cvs-contrib-sourceforge
Revision = HEAD
envname = UPNPBRIDGE_SOURCE
--- 6,10 ----
<File upnpbridge.c>
! Server = cvs-sourceforge
Revision = HEAD
envname = UPNPBRIDGE_SOURCE
***************
*** 12,19 ****
</File>
<Package>
<upnpbr>
Version = 1.0
! Revision = 1
Help <<EOF
--- 12,33 ----
</File>
+ <File upnpbridge.init>
+ Server = cvs-sourceforge
+ Revision = HEAD
+ envname = UPNPBRIDGE_INIT
+ Directory = upnpbridge
+ </File>
+
+ <File upnpbridge.default>
+ Server = cvs-sourceforge
+ Revision = HEAD
+ envname = UPNPBRIDGE_DEFAUL
+ Directory = upnpbridge
+ </File>
+
<Package>
<upnpbr>
Version = 1.0
! Revision = 2
Help <<EOF
***************
*** 38,41 ****
--- 52,69 ----
Permissions = 755
</File>
+ <File>
+ Filename = etc/init.d/upnpbridge
+ Source = etc/init.d/upnpbridge
+ Type = binary
+ Permissions = 755
+ </File>
+ <File>
+ Filename = etc/default/upnpbridge
+ Source = etc/default/upnpbridge
+ Type = binary
+ Type = conf
+ Type = local
+ Description = Upnpbridge configuration
+ </File>
</Contents>
</upnpbr>
Index: buildtool.mk
===================================================================
RCS file: /cvsroot/leaf/src/bering-uclibc/contrib/upnpbridge/buildtool.mk,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** buildtool.mk 20 Aug 2006 10:03:48 -0000 1.1
--- buildtool.mk 28 Aug 2006 21:34:50 -0000 1.2
***************
*** 15,21 ****
--- 15,25 ----
mkdir -p $(UPNPBRIDGE_TARGET_DIR)
mkdir -p $(UPNPBRIDGE_TARGET_DIR)/usr/sbin
+ mkdir -p $(UPNPBRIDGE_TARGET_DIR)/etc/init.d
+ mkdir -p $(UPNPBRIDGE_TARGET_DIR)/etc/default
(cd $(UPNPBRIDGE_DIR)/contrib; $(TARGET_CC) -Wall -Os -o upnpbridge
upnpbridge.c)
$(BT_STRIP) $(BT_STRIP_BINOPTS) $(UPNPBRIDGE_DIR)/upnpbridge
cp $(UPNPBRIDGE_DIR)/upnpbridge $(UPNPBRIDGE_TARGET_DIR)/usr/sbin
+ cp -a upnpbridge.init $(UPNPBRIDGE_TARGET_DIR)/etc/init.d/upnpbridge
+ cp -a upnpbridge.default $(UPNPBRIDGE_TARGET_DIR)/etc/default/upnpbridge
cp -a $(UPNPBRIDGE_TARGET_DIR)/* $(BT_STAGING_DIR)
touch $(UPNPBRIDGE_DIR)/.build
--- NEW FILE: upnpbridge.init ---
#! /bin/sh
RCDLINKS="2,S50 3,S50 4,S50 5,S50 0,K50 1,K50 6,K50"
PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/upnpbridge
NAME=upnpbridge
DESC=upnpbridge
CONFIGFILE=/etc/default/upnpbridge
if [ ! -f "$CONFIGFILE" ]
then
echo "warning: no configuration file $CONFIGFILE found"
exit
fi
. $CONFIGFILE
test -f $DAEMON || exit 0
set -e
case "$1" in
start)
echo -n "Starting $DESC: "
start-stop-daemon --start --quiet --exec $DAEMON $INTERFACES
echo "$NAME."
;;
stop)
echo -n "Stopping $DESC: "
start-stop-daemon --oknodo --stop --quiet --exec $DAEMON
echo "$NAME."
;;
restart|force-reload)
echo -n "Restarting $DESC: "
start-stop-daemon --stop --quiet --exec $DAEMON
sleep 1
start-stop-daemon --start --quiet --exec $DAEMON $INTERFACES
echo "$NAME."
;;
*)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0
-------------------------------------------------------------------------
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