Update of /cvsroot/leaf/src/bering-uclibc/apps/weblet
In directory sc8-pr-cvs1:/tmp/cvs-serv18246/weblet
Modified Files:
buildtool.cfg buildtool.mk weblet.skel.tgz
Log Message:
weblet:
- fixed minor bug in stylesheet definition
- moved stylesheet definition to separate file
- updated link-section on main page
- added "plugin" section (used by lrpstat)
- removed file stat.sh
lrpstat:
- added plugin file for weblet
Index: buildtool.cfg
===================================================================
RCS file: /cvsroot/leaf/src/bering-uclibc/apps/weblet/buildtool.cfg,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** buildtool.cfg 5 Sep 2003 17:51:27 -0000 1.1
--- buildtool.cfg 8 Sep 2003 13:23:23 -0000 1.2
***************
*** 8,12 ****
Server = cvs-sourceforge
Revision = HEAD
! Directory = weblet
</File>
--- 8,12 ----
Server = cvs-sourceforge
Revision = HEAD
! Directory = mini_httpd
</File>
***************
*** 41,45 ****
<Package>
<weblet>
! Version = 1.2.0
Revision = 1
--- 41,45 ----
<Package>
<weblet>
! Version = 1.2.1
Revision = 1
***************
*** 54,71 ****
something similar.
! Basic server configuration is in /etc/sh-httpd.conf,
and the LRP specific CGI
pages use /etc/weblet.conf for configuration of things
like error/warning
threasholds.
- You need to add a line to /etc/inetd.conf to enable
the web server, and I
- suggest making a user entry just for the web server.
If you make this user
- a member of the adm group, you will be able to read
your log files remotely.
-
- I have somewhat arbitrarily created the sh-httpd user
with a UID=50, and GID=4
- (adm group). If you choose to run the server as a
different user, you may have
- to change ownership of the web files/directories.
-
For full documentation, see the weblet package home
page at:
http://lrp.steinkuehler.net
This is the modified version for 2.4 kernel and
without javascript by ericw
LRP package by __PACKAGER__, __BUILDDATE__
--- 54,64 ----
something similar.
! Basic server configuration is in /etc/sh-httpd.conf,
and the LEAF specific CGI
pages use /etc/weblet.conf for configuration of things
like error/warning
threasholds.
For full documentation, see the weblet package home
page at:
http://lrp.steinkuehler.net
+
This is the modified version for 2.4 kernel and
without javascript by ericw
LRP package by __PACKAGER__, __BUILDDATE__
***************
*** 181,185 ****
<File>
! Filename =
var/sh-www/cgi-bin/showplugins.sh
Permissions = 755
Owner = 50:4
--- 174,178 ----
<File>
! Filename =
var/sh-www/cgi-bin/showplugins
Permissions = 755
Owner = 50:4
***************
*** 270,273 ****
--- 263,271 ----
<File>
+ Filename = var/sh-www/weblet.css
+ Owner = 50:4
+ </File>
+
+ <File>
Filename = var/sh-www/images/ok.gif
Owner = 50:4
***************
*** 287,294 ****
Owner = 50:4
</File>
!
</Contents>
</weblet>
-
</Package>
--- 285,297 ----
Owner = 50:4
</File>
! <File>
! Type = link
! Filename =
var/sh-www/cgi-bin/viewlogs-www
! Target = var/sh-www/cgi-bin/viewlogs
! Owner = 50:4
! Permissions = 755
! </File>
</Contents>
</weblet>
</Package>
Index: buildtool.mk
===================================================================
RCS file: /cvsroot/leaf/src/bering-uclibc/apps/weblet/buildtool.mk,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** buildtool.mk 5 Sep 2003 17:51:27 -0000 1.1
--- buildtool.mk 8 Sep 2003 13:23:23 -0000 1.2
***************
*** 1,295 ****
! <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 = mini_httpd
! </File>
!
! <File tcputils_0.6.2.orig.tar.gz>
! Server = cvs-sourceforge
! Revision = HEAD
! Directory = tcputils
! envname = TCP_UTILS_SOURCE
! </File>
!
! <File tcputils_0.6.2-4.diff.gz>
! Server = cvs-sourceforge
! Revision = HEAD
! Directory = tcputils
! envname = TCP_UTILS_PATCH1
! </File>
!
! <File parsefw-src-0.2.tar.gz>
! Server = cvs-sourceforge
! Revision = HEAD
! Directory = parsefw
! envname = PARSEFW_SOURCE
! </File>
!
! <File weblet.skel.tgz>
! Server = cvs-sourceforge
! Revision = HEAD
! Directory = weblet
! </File>
!
!
! <Package>
! <weblet>
! Version = 1.2.0
! Revision = 1
- Help <<EOF
- LEAF status via a small web server
! This is a small shell-script based web server and some
web pages that let you
! check on the status of your LRP router using a web
broweser. While I have
! tried to make the server fairly secure, you should
probably not allow access
! to this server via the internet unless you are
'tunneling' through ssh or
! something similar.
! Basic server configuration is in /etc/sh-httpd.conf,
and the LRP specific CGI
! pages use /etc/weblet.conf for configuration of things
like error/warning
! threasholds.
- You need to add a line to /etc/inetd.conf to enable
the web server, and I
- suggest making a user entry just for the web server.
If you make this user
- a member of the adm group, you will be able to read
your log files remotely.
- I have somewhat arbitrarily created the sh-httpd user
with a UID=50, and GID=4
- (adm group). If you choose to run the server as a
different user, you may have
- to change ownership of the web files/directories.
! For full documentation, see the weblet package home
page at:
! http://lrp.steinkuehler.net
! This is the modified version for 2.4 kernel and
without javascript by ericw
! LRP package by __PACKAGER__, __BUILDDATE__
! EOF
! Skeleton=weblet.skel.tgz
!
! <Permissions>
! Files = 644
! Directories = 755
! </Permissions>
!
! <Owner>
! Files = root:root
! Directories = root:root
! </Owner>
!
! <Contents>
! <File>
! Filename = usr/bin/getpeername
! Source = usr/bin/getpeername
! Type = binary
! Permissions = 755
! </File>
! <File>
! Filename = var/sh-www/cgi-bin/parsefw
! Source = usr/bin/parsefw
! Type = binary
! Permissions = 755
! Owner = 50:4
!
! </File>
!
! <File>
! Filename = etc/sh-httpd.conf
! Type = conf
! Description = shell-script web server
configuration
! </File>
!
! <File>
! Filename = etc/weblet.conf
! Type = conf
! Description = LRP web page configuration
! </File>
!
! <File>
! Filename = var/sh-www/plugins
! Type = directory
! Owner = 50:4
! </File>
!
! <File>
! Filename = var/sh-www/cgi-bin
! Type = directory
! Owner = 50:4
! </File>
!
! <File>
! Filename = var/sh-www/images
! Type = directory
! Owner = 50:4
! </File>
!
! <File>
! Filename = var/sh-www
! Type = directory
! Type = list
! Owner = 50:4
! </File>
!
!
! <File>
! Filename = var/sh-log
! Type = directory
! Type = list
! Owner = 50:4
! </File>
!
! <File>
! Filename = var/sh-www/data
! Type = directory
! Owner = 50:4
! </File>
!
! <File>
! Filename = var/sh-log/*
! Type = exclude
! </File>
!
! <File>
! Filename = var/sh-www/data/*
! Type = exclude
! </File>
! <File>
! Filename = var/sh-www/plugins/*
! Type = exclude
! </File>
!
! <File>
! Filename =
etc/cron.daily/savelog-sh-httpd
! Permissions = 755
! </File>
!
! <File>
! Filename = usr/sbin/sh-httpd
! Permissions = 755
! </File>
!
! <File>
! Filename = var/sh-www
! Permissions = 755
! </File>
!
! <File>
! Filename =
var/sh-www/cgi-bin/showplugins.sh
! Permissions = 755
! Owner = 50:4
! </File>
!
! <File>
! Filename =
var/sh-www/cgi-bin/weblet.functions
! Permissions = 755
! Owner = 50:4
! </File>
!
! <File>
! Filename = var/sh-www/cgi-bin/viewmasq
! Permissions = 755
! Owner = 50:4
! </File>
!
! <File>
! Filename =
var/sh-www/cgi-bin/viewlogs-www -> viewlogs
! Permissions = 755
! Owner = 50:4
! </File>
!
! <File>
! Filename = var/sh-www/cgi-bin/viewlogs
! Permissions = 755
! Owner = 50:4
! </File>
!
! <File>
! Filename = var/sh-www/cgi-bin/viewsys
! Permissions = 755
! Owner = 50:4
! </File>
!
! <File>
! Filename = var/sh-www/cgi-bin/viewfw
! Permissions = 755
! Owner = 50:4
! </File>
!
! <File>
! Filename = var/sh-www/cgi-bin/viewnet
! Permissions = 755
! Owner = 50:4
! </File>
!
! <File>
! Filename = var/sh-www/cgi-bin/checkdisk
! Permissions = 755
! Owner = 50:4
! </File>
!
! <File>
! Filename = var/sh-www/cgi-bin/checkfw
! Permissions = 755
! Owner = 50:4
! </File>
!
! <File>
! Filename = var/sh-www/cgi-bin/checkmem
! Permissions = 755
! Owner = 50:4
! </File>
!
! <File>
! Filename = var/sh-www/cgi-bin/hitsexport
! Permissions = 755
! Owner = 50:4
! </File>
!
! <File>
! Filename = var/sh-www/cgi-bin/viewhits
! Permissions = 755
! Owner = 50:4
! </File>
!
! <File>
! Filename =
var/sh-www/cgi-bin/viewshorewall
! Permissions = 755
! Owner = 50:4
! </File>
!
! <File>
! Filename = var/sh-www/index.html
! Owner = 50:4
! </File>
!
! <File>
! Filename = var/sh-www/images/ok.gif
! Owner = 50:4
! </File>
! <File>
! Filename = var/sh-www/images/warn.gif
! Owner = 50:4
! </File>
!
! <File>
! Filename = var/sh-www/images/error.gif
! Owner = 50:4
! </File>
! <File>
! Filename = var/sh-www/images/lrpbkg.gif
! Owner = 50:4
! </File>
! </Contents>
! </weblet>
- </Package>
--- 1,71 ----
! #############################################################
! #
! # weblet
! #
! #############################################################
+ include $(MASTERMAKEFILE)
+ TCP_UTILS_DIR:=tcputils-0.6.2
+ PARSEFW_DIR:=parsefw-0.2
! WEBLET_TARGET_DIR:=$(BT_BUILD_DIR)/weblet
! export CC=$(TARGET_CC)
! STRIP_OPTIONS=-s --remove-section=.note --remove-section=.comment
! source:
! zcat $(TCP_UTILS_SOURCE) | tar -xvf -
! zcat $(TCP_UTILS_PATCH) | patch -d $(TCP_UTILS_DIR) -p1
! zcat $(PARSEFW_SOURCE) | tar -xvf -
! perl -i -p -e 's,COPT\s*=\s*-g\s*-O2,COPT = -Os,' $(TCP_UTILS_DIR)/Makefile
! perl -i -p -e 's,prefix\s*=\s*/usr/local,prefix = /usr,'
$(TCP_UTILS_DIR)/Makefile
! perl -i -p -e
's,NETLIBS\s*=\s*-lsocket\s*-lnsl,#NETLIBS\s*=\s*-lsocket\s*-lnsl,'
$(TCP_UTILS_DIR)/Makefile
! perl -i -p -e 's,INCLUDE-FLAGS\s*=.*,INCLUDE-FLAGS =
-I$(BT_STAGING_DIR)/include -I$(BT_STAGING_DIR)/usr/include ,'
$(TCP_UTILS_DIR)/Makefile
! perl -i -p -e 's,LDFLAGS\s*=\s*${COPT},LDFLAGS = -s ${COPT},'
$(TCP_UTILS_DIR)/Makefile
! build:
! $(MAKE) CC=$(TARGET_CC) -C $(TCP_UTILS_DIR) getpeername
! ( cd $(PARSEFW_DIR) && \
! ./configure --host=i486-pc-linux-gnu --prefix=/usr );
! perl -i -p -e 's,-O1,-Os,' $(PARSEFW_DIR)/src/Makefile
! cp $(PARSEFW_DIR)/include/parsefw.h $(PARSEFW_DIR)/src
! $(MAKE) CC=$(TARGET_CC) -C $(PARSEFW_DIR)
! -$(BT_STRIP) $(STRIP_OPTIONS) $(TCP_UTILS_DIR)/getpeername
! -$(BT_STRIP) $(STRIP_OPTIONS) $(PARSEFW_DIR)/src/parsefw
! -mkdir -p $(WEBLET_TARGET_DIR)
! -mkdir -p $(BT_STAGING_DIR)/usr/bin
! -cp $(TCP_UTILS_DIR)/getpeername $(WEBLET_TARGET_DIR)/
! -cp $(PARSEFW_DIR)/src/parsefw $(WEBLET_TARGET_DIR)/
!
! -cp $(WEBLET_TARGET_DIR)/* $(BT_STAGING_DIR)/usr/bin
!
! # mv $(WEBLET_TARGET_DIR)/usr/bin/mini_httpd
$(WEBLET_TARGET_DIR)/usr/bin/mini_httpd.ssl
! #
! # $(MAKE) CC=$(TARGET_CC) -C $(WEBLET_DIR) clean
! # perl -i -p -e 's,^\s*SSL_TREE,#SSL_TREE,' $(WEBLET_DIR)/Makefile
! # perl -i -p -e 's,^\s*SSL_DEFS,#SSL_DEFS,' $(WEBLET_DIR)/Makefile
! # perl -i -p -e 's,^\s*SSL_INC,#SSL_INC,' $(WEBLET_DIR)/Makefile
! # perl -i -p -e 's,^\s*SSL_LIBS,#SSL_LIBS,' $(WEBLET_DIR)/Makefile
! # $(MAKE) CC=$(TARGET_CC) -C $(WEBLET_DIR)
! # $(MAKE) CC=$(TARGET_CC) -C $(WEBLET_DIR) install
! #
! # cp mini_httpd $(WEBLET_TARGET_DIR)/etc/init.d/
! # cp mini_httpds $(WEBLET_TARGET_DIR)/etc/init.d/
! # -$(BT_STRIP) $(STRIP_OPTIONS) $(WEBLET_TARGET_DIR)/usr/bin/mini_httpd.ssl
! # -$(BT_STRIP) $(STRIP_OPTIONS) $(WEBLET_TARGET_DIR)/usr/bin/mini_httpd
! # -cp -a $(WEBLET_TARGET_DIR)/usr/bin/* $(BT_STAGING_DIR)/usr/bin/
! # -cp -a $(WEBLET_TARGET_DIR)/etc/init.d/* $(BT_STAGING_DIR)/etc/init.d/
+ clean:
+ rm -rf $(WEBLET_TARGET_DIR)
+ $(MAKE) -C $(PARSEFW_DIR) clean
+ $(MAKE) -C $(TCP_UTILS_DIR) clean
+ rm -f $(PARSEFW_DIR)/config.cache
+
Index: weblet.skel.tgz
===================================================================
RCS file: /cvsroot/leaf/src/bering-uclibc/apps/weblet/weblet.skel.tgz,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
Binary files /tmp/cvsSeyxtl and /tmp/cvseGfwDw differ
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Leaf-cvs-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-cvs-commits