1 message in com.perforce.perforce-userWebKeeper
FromSent OnAttachments
Raym...@orion.no12 May 1999 06:15 
Subject:WebKeeper
From:Raym...@orion.no (Raym@orion.no)
Date:05/12/1999 06:15:06 AM
List:com.perforce.perforce-user

I have modified WebKeeper so that it can generate directory listings. This makes WebKeeper usable for browsing a depot without any external "index" files.

The updated source files can be found under the public depot, http://public.perforce.com/public/index.html, under guest/raymond_wiker/webkeeper, if anyone is interested in looking at it. I will be away for a few days, but I'll be back on May 18th, if the recipe below is insufficient...

Note that the updated sources require a late-version of the Apache web server (I'm using 1.3.6).

Quick notes:

Tested on FreeBSD-3.1, using the default compilers (i.e, /usr/bin/cc, /usr/bin/c++, ...). Tested with both the 3.x and 2.2 versions of p4api.tar.

Place the mod_webkeep* files under $(SRCDIR)/modules/perforce in your Apache source tree. Unpack the P4 API files in $(SRCDIR)/Perforce. Add settings to $(SRCDIR)/Configuration; at a minimum, they should include something like

EXTRA_LIBS=-L$(SRCDIR)/Perforce -lclient -lrpc -lsupp EXTRA_INCLUDES=-I$(SRCDIR)/Perforce

[ ... ]

AddModule modules/webkeeper/mod_webkeep.o

Copy Makefile.tmpl from (e.g) modules/extra to modules/perforce. Run ./Configure from the Apache source directory. Edit modules/perforce/Makefile so that mod_webkeep2.o is added to OBJS:

OBJS=mod_webkeep.o mod_webkeep2.o

---- and insert the rule

.cc.o: $(CXX) -c $(INCLUDES) $(CXXFLAGS) $<

---- this is necessary for compiling and linking in the C++ file mod_webkeep2.cc.

Now do a "make" from the Apache source directory. Add WebKeeper configuration to httpd.conf (at my site, this is /usr/local/etc/apache/httpd.conf), and my settings are:

WebKeepPort orbit.orion.no:1666 WebKeepUser raymond WebKeepClient raw_foobar WebKeepAlias /Depot/ //depot/

At this point, you should be able to browse your source depot from http://your.web.server/Depot/

Have fun (or frustrations, but *hopefully* fun :-)

//Raymond.