-# $Id: Makefile,v 1.2 2000/10/09 04:45:59 sljohnson Exp $
+# $Id: Makefile,v 1.3 2000/10/17 02:43:57 sljohnson Exp $
#
# Makefile for Spong (Version 2.6f and up).
#
# server part below ... We'd need to redefine the lists above.
#
-server: beroot bindir etcdir libdir webdir cgidir tmpdir dbdir
+server: beroot bindir etcdir libdir webdir cgidir tmpdir vardir
beroot:
@[ `whoami` = root ] || false
$(SYSTEM)-client: $(SYSTEM)-test clientdir clientlib clientetc clientbin
find $(SYSTEM)-client -name CVS -exec rm -rf '{}' \;
-clientdir: $(SYSTEM)-client/lib/Spong
- mkdir -p ./$(SYSTEM)-client/lib/Spong
- mkdir ./$(SYSTEM)-client/etc
- mkdir ./$(SYSTEM)-client/bin
+clientdir: $(SYSTEM)-client/lib/Spong
+ [ -d ./$(SYSTEM)-client/lib/Spong ] || \
+ mkdir -p ./$(SYSTEM)-client/lib/Spong
+ [ -d ./$(SYSTEM)-client/etc ] || mkdir ./$(SYSTEM)-client/etc
+ [ -d ./$(SYSTEM)-client/bin ] || mkdir ./$(SYSTEM)-client/bin
clientlib:
mkdir -p ./$(SYSTEM)-client/lib/Spong
chmod +x ./$(SYSTEM)-client/bin/*
chown $(ADMUSER):$(ADMGROUP) ./$(SYSTEM)-client/bin/*
-clientetc:
+clientetc: ./config/spong.conf
for f in $(CCONFIGS) ; do cp ./config/$$f $(SYSTEM)-client/etc; done
cat ./config/spong.conf.$(SYSTEM) >> ./$(SYSTEM)-client/etc/spong.conf
chown -R $(ADMUSER):$(ADMGROUP) ./$(SYSTEM)-client/etc
+client-install:
+
+
# Server [ much nicer :) ]
cvsclean:
[ -f $@ ] || mv $@.dist $@
touch $@
+./config/spong.conf: ./config/spong.conf.in
+ ./utils/mkTarg $< > ./spong.conf.mk
+ make -f ./spong.conf.mk
+ rm -f ./spong.conf.mk
+
# --- library ---
libdir: $(LIBDIR) library
$< > $@
chown $(WEBUSER):$(WEBGROUP) $(CGIDIR)/*
+# --- misc install directories ---
+
tmpdir: $(TMPDIR)
$(TMPDIR):
[ -d $@ ] || mkdir -p $@
chmod ugo+rwX,go-w $@
- chown $(WEBUSER):$(WEBGROUP) $@
+ chown $(ADMUSER):$(ADMGROUP) $@
-dbdir: $(DBDIR)
+vardir: $(VARDIR) $(VARDIR)/archives $(DBDIR)
+
+$(VARDIR):
+ [ -d $@ ] || mkdir -p $@
+ chmod ugo+rwX,go-w $@
+ chown $(ADMUSER):$(ADMGROUP) $@
$(DBDIR):
[ -d $@ ] || mkdir -p $@
chmod ugo+rwX,go-w $@
- chown $(WEBUSER):$(WEBGROUP) $@
+ chown $(ADMUSER):$(ADMGROUP) $@
+
+$(VARDIR)/archives:
+ [ -d $@ ] || mkdir -p $@
+ chmod ugo+rwX,go-w $@
+ chown $(ADMUSER):$(ADMGROUP) $@
-# $Id: config.mk,v 1.1 2000/09/29 04:30:30 sljohnson Exp $
+# $Id: config.mk,v 1.2 2000/10/17 02:43:57 sljohnson Exp $
#
# Test include for ./Makefile
# Rename this "config.mk" for testing.
#---- Modifiable Variables from Build Script ------------------
-PERL=/usr/local/bin/perl
+PERL=/usr/in/perl
-PREFIX=/export/data/staff/guy/Apache/spong
+PREFIX=/usr/local/spong-test
BINDIR=$(PREFIX)/bin
ETCDIR=$(PREFIX)/etc
LIBDIR=$(PREFIX)/lib
+TMPDIR=$(PREFIX)/tmp
+VARDIR=$(PREFIX)/var
+
+DBDIR=$(VARDIR)/database
+
+SPONGSERVER=spong-server.example.com
#WEBDIR=./WEBDIR
WEBDIR=$(PREFIX)
WWWDIR=$(WEBDIR)/www
CGIDIR=$(WEBDIR)/cgi-bin
-TMPDIR=$(WEBDIR)/tmp
-DBDIR=$(WEBDIR)/database
-
# Apache configuration
-DOMAIN=bioinfo.sickkids.on.ca
-SERVER=kyle.$(DOMAIN)
-VSERVER=spong-27s.$(DOMAIN)
-ALIASES=spong-27s
-ADMIN=guy@$(DOMAIN)
+DOMAIN=example.com
+SERVER=www.$(DOMAIN)
+VSERVER=spong.$(DOMAIN)
+ALIASES=spong
+ADMIN=admin@$(DOMAIN)
#DOCROOT=/www
WEBUSER=nobody
WEBGROUP=nobody
-ADMUSER=guy
-ADMGROUP=jamie
+ADMUSER=spong
+ADMGROUP=spong