KLone on NetBSD 4.0

babongo edited this page Oct 9, 2012 · 1 revision

Bootstrap Klone 2.x/3.x on NetBSD 4.x

NOTE All tests have been run on a 4.0_RC3/i386 box. On other platforms change i386 in PKG_PATH to your platform id (alpha, ia64, mac68k, etc.).

Set the PKG_PATH environment variable and install GNU make and wget if not already installed (must be root):

# export PKG_PATH=ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/4.0_2007Q2/All
# pkg_add -v wget
# pkg_add -v gmake

The PKG_PATH above applies to 4.0_RC3, when final 4.0 will come out the URL will probably be:

# export PKG_PATH=ftp://ftp.netbsd.org/pub/NetBSD/packages/4.0/i386/All

Create the top-level Makefile in an empty directory:

$ mkdir klone2
$ cd klone2
$ vi Makefile
... (Makefile follows) ...
WEBAPP_DIR = $(CURDIR)/webapp 
include klapp.mk
klapp.mk: ; wget -O $@ -c http://koanlogic.com/klone/klapp-2.0.0.mk

Then set the MAKE variable to the path of the just installed GNU make binary and run it:

$ export MAKE=/usr/pkg/bin/gmake
$ gmake

Run KLone and fetch the index page:

$ ./kloned
$ wget http://localhost:8080/