From: Stephen L Johnson Date: Fri, 14 Jul 2000 04:01:43 +0000 (+0000) Subject: updated install to build /var directory in spong installation dir X-Git-Tag: spong-2_7-alpha7~4 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43912a6be5d80c09f4aeee76772becda46b6f905;p=spong.git updated install to build /var directory in spong installation dir --- diff --git a/build b/build index d6f37d4..2334bea 100755 --- 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;