]> git.etc.gen.nz Git - spong.git/commitdiff
updated install to build /var directory in spong installation dir
authorStephen L Johnson <sjohnson@monsters.org>
Fri, 14 Jul 2000 04:01:43 +0000 (04:01 +0000)
committerStephen L Johnson <sjohnson@monsters.org>
Fri, 14 Jul 2000 04:01:43 +0000 (04:01 +0000)
build

diff --git a/build b/build
index d6f37d47557c37519e7babceb4376acd188e3389..2334beaac5f9693359585b7a01ec5bcccddcb11b 100755 (executable)
--- a/build
+++ b/build
@@ -13,6 +13,7 @@ $ETCDIR   = "$PREFIX/etc";
 $LIBDIR   = "$PREFIX/lib";
 $WWWDIR   = "$PREFIX/www";
 $CGIDIR   = "$PREFIX/cgi-bin";
+$VARDIR   = "$PREFIX/var";      # Directory where spong will put data
 
 $WEBUSER  = "nobody";
 
@@ -26,6 +27,7 @@ $IETCDIR  = "$IPREFIX/etc";
 $ILIBDIR  = "$IPREFIX/lib";
 $IWWWDIR  = "$IPREFIX/www";
 $ICGIDIR  = "$IPREFIX/cgi-bin";
+$IVARDIR  = "$IPREFIX/var";      # Directory where spong will put data
 
 # -----------------------------------------------------------------------------
 # You really really shouldn't need to change anything below this point (I hope)
@@ -126,6 +128,11 @@ sub install {
    ssystem( "mkdir -p $IETCDIR" ) if ! -d $IETCDIR;
    ssystem( "cp etc/* $IETCDIR/" );
 
+   ssystem( "mkdir -p $IVARDIR" ) if ! -d $IVARDIR;
+   ssystem( "mkdir -p $IVARDIR/database" );
+   ssystem( "mkdir -p $IVARDIR/archives" );
+   ssystem( "mkdir -p $IVARDIR/misc" );
+
    # TODO - Clean this up...
 
    ssystem( "mkdir -p $ILIBDIR" ) if ! -d $ILIBDIR;