Update of /cvsroot/leaf/src/bering-uclibc/apps/webipv6 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7279
Added Files: buildtool.cfg buildtool.mk viewipv6 webipv6.plugin Log Message: source and buildtool setup for webipv6 plugin --- NEW FILE: buildtool.mk --- # makefile for webipv6 include $(MASTERMAKEFILE) WEBIPV6_DIR=. WEBIPV6_TARGET_DIR:=$(BT_BUILD_DIR)/webipv6 $(WEBIPV6_DIR)/.source: touch $(WEBIPV6_DIR)/.source source: $(WEBIPV6_DIR)/.source $(WEBIPV6_DIR)/.configured: $(WEBIPV6_DIR)/.source touch $(WEBIPV6_DIR)/.configured $(WEBIPV6_DIR)/.build: $(WEBIPV6_DIR)/.configured mkdir -p $(WEBIPV6_TARGET_DIR) mkdir -p $(WEBIPV6_TARGET_DIR)/var/sh-www/plugins mkdir -p $(WEBIPV6_TARGET_DIR)/var/sh-www/cgi-bin cp -a webipv6.plugin $(WEBIPV6_TARGET_DIR)/var/sh-www/plugins cp -a viewipv6 $(WEBIPV6_TARGET_DIR)/var/sh-www/cgi-bin cp -a $(WEBIPV6_TARGET_DIR)/* $(BT_STAGING_DIR) touch $(WEBIPV6_DIR)/.build build: $(WEBIPV6_DIR)/.build clean: rm -rf $(WEBIPV6_TARGET_DIR) rm $(WEBIPV6_DIR)/.build rm $(WEBIPV6_DIR)/.configured srcclean: clean rm -rf $(WEBIPV6_DIR) rm $(WEBIPV6_DIR)/.source --- NEW FILE: buildtool.cfg --- <Server cvs-sourceforge> Type = viewcvs Name = cvs.sourceforge.net/cgi-bin/viewcvs.cgi Serverpath = /leaf/src/bering-uclibc/apps </Server> <File buildtool.mk> Server = cvs-sourceforge Revision = HEAD Directory = webipv6 </File> <File viewipv6> Server = cvs-sourceforge Revision = HEAD Directory = webipv6 </File> <File webipv6.plugin> Server = cvs-sourceforge Revision = HEAD Directory = webipv6 </File> <Package> <webipv6> Version = 0.3 Revision = 1 Help <<EOF Weblet plugin - IPv6 Network Status LEAF package by __PACKAGER__, __BUILDDATE__ EOF <Permissions> Files = 644 Directories = 755 </Permissions> <Owner> Files = root:root Directories = root:root </Owner> <Contents> <File> Filename = var/sh-www/plugins/webipv6.plugin Source = var/sh-www/plugins/webipv6.plugin Type = binary Permissions = 644 Owner = 50:4 </File> <File> Filename = var/sh-www/cgi-bin/viewipv6 Source = var/sh-www/cgi-bin/viewipv6 Type = binary Permissions = 755 Owner = 50:4 </File> </Contents> </webipv6> </Package> --- NEW FILE: viewipv6 --- #!/bin/sh . ./weblet.functions IP=/sbin/ip # IFCFG=/sbin/ifconfig # ROUTE=/sbin/route # NETSTAT=/bin/netstat showif() { if [ -x $IP ]; then ipv6=0 iface="" $IP addr show | { while read type rest; do case $type in *:) [ $ipv6 = 1 ] && echo -e "$iface" iface="$type $rest" ipv6=0 ;; inet6) ipv6=1 iface="$iface\n $type $rest" ;; inet) ;; *) iface="$iface\n $type $rest" ;; esac done; [ $ipv6 = 1 ] && echo -e "$iface"; } else echo "Command not found" fi } showrte='echo Command not found ' [ -x $IP ] && showrte=`$IP -6 route show` htmlhead "view ipv6 network" b_head t_head "IPv6 Interfaces" cat <<-/IFCONTENT <tr> <td><div><PRE> $(showif) </PRE></div> </td> </tr> /IFCONTENT t_foot t_head "IPv6 Routes" cat <<- /ROUTECONTENT <tr> <td><div><PRE> $showrte </PRE></div> </td> </tr> /ROUTECONTENT t_foot b_foot htmlend --- NEW FILE: webipv6.plugin --- <a href="/cgi-bin/viewipv6" class="bold" target="_top">IPv6 Network Status</A> ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ leaf-cvs-commits mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-cvs-commits