-# $Id: Makefile,v 1.3 2000/10/17 02:43:57 sljohnson Exp $
+# $Id: Makefile,v 1.4 2000/10/17 19:44:02 sljohnson Exp $
#
# Makefile for Spong (Version 2.6f and up).
#
cp -rp ./src/lib/Spong/Client $(SYSTEM)-client/lib/Spong/
chmod 644 $(SYSTEM)-client/lib/Spong/*
chmod 755 $(SYSTEM)-client/lib/Spong/Client
- chown -R $(ADMUSER):$(ADMGROUP) ./$(SYSTEM)-client/lib
+ chown -R $(ADMUSER).$(ADMGROUP) ./$(SYSTEM)-client/lib
clientbin: $(SYSTEM)-client/bin/spong-client
-e "s%@@WWWDIR@@%$(WWWDIR)%g" \
$< > $@
chmod +x ./$(SYSTEM)-client/bin/*
- chown $(ADMUSER):$(ADMGROUP) ./$(SYSTEM)-client/bin/*
+ chown $(ADMUSER).$(ADMGROUP) ./$(SYSTEM)-client/bin/*
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
+ chown -R $(ADMUSER).$(ADMGROUP) ./$(SYSTEM)-client/etc
client-install:
-e "s%@@WWWDIR@@%$(WWWDIR)%g" \
$< > $@
chmod -R 755 $(BINDIR)
- chown -R $(ADMUSER):$(ADMGROUP) $(BINDIR)
+ chown -R $(ADMUSER).$(ADMGROUP) $(BINDIR)
# --- configs ---
mkdir -p $@
chmod 751 $(ETCDIR)
etcown:
- chown -R $(ADMUSER):$(ADMGROUP) $(ETCDIR)
+ chown -R $(ADMUSER).$(ADMGROUP) $(ETCDIR)
configs: $(CONFIGS)
$(LIBDIR)/Spong: ./src/lib/Spong
cp -rp ./src/lib/Spong $(LIBDIR)/Spong/
chmod -R ugo+rwX,go-w $(LIBDIR)/Spong/
- chown -R $(ADMUSER):$(ADMGROUP) $(LIBDIR)
+ chown -R $(ADMUSER).$(ADMGROUP) $(LIBDIR)
# --- webpages ---
$(WWWDIR):
mkdir -p $@
mkdir $@/html
- chown $(WEBUSER):$(WEBGROUP) $@ $@/html
+ chown $(WEBUSER).$(WEBGROUP) $@ $@/html
webpages: $(WEBDIRS) $(WEBPAGES)
$(WWWDIR)/docs: ./www/docs
cp -rp $< $@
chmod -R ugo+rwX,go-w $@
- chown -R $(WEBUSER):$(WEBGROUP) $@
+ chown -R $(WEBUSER).$(WEBGROUP) $@
$(WWWDIR)/gifs: ./www/gifs
cp -rp $< $@
chmod -R ugo+rwX,go-w $@
- chown -R $(WEBUSER):$(WEBGROUP) $@
+ chown -R $(WEBUSER).$(WEBGROUP) $@
$(WWWDIR)/screens: ./www/screens
cp -rp $< $@
chmod -R ugo+rwX,go-w $@
- chown -R $(WEBUSER):$(WEBGROUP) $@
+ chown -R $(WEBUSER).$(WEBGROUP) $@
$(WWWDIR)/html/%: ./www/html/%
sed -e "s%__DIR__%$(DOCROOT)%g" $< > $@
chmod ugo+rwX,go-w $@
- chown $(WEBUSER):$(WEBGROUP) $@
+ chown $(WEBUSER).$(WEBGROUP) $@
# --- cgiscripts ---
$(CGIDIR):
mkdir -p $@
cgiown:
- chown -R $(ADMUSER):$(ADMGROUP) $(CGIDIR)
+ chown -R $(ADMUSER).$(ADMGROUP) $(CGIDIR)
cgiscripts: $(CGISCRIPTS)
-e "s%@@ETCDIR@@%$(ETCDIR)%g" \
-e "s%@@WWWDIR@@%$(WWWDIR)%g" \
$< > $@
- chown $(WEBUSER):$(WEBGROUP) $(CGIDIR)/*
+ chown $(WEBUSER).$(WEBGROUP) $(CGIDIR)/*
# --- misc install directories ---
$(TMPDIR):
[ -d $@ ] || mkdir -p $@
chmod ugo+rwX,go-w $@
- chown $(ADMUSER):$(ADMGROUP) $@
+ chown $(ADMUSER).$(ADMGROUP) $@
vardir: $(VARDIR) $(VARDIR)/archives $(DBDIR)
$(VARDIR):
[ -d $@ ] || mkdir -p $@
chmod ugo+rwX,go-w $@
- chown $(ADMUSER):$(ADMGROUP) $@
+ chown $(ADMUSER).$(ADMGROUP) $@
$(DBDIR):
[ -d $@ ] || mkdir -p $@
chmod ugo+rwX,go-w $@
- chown $(ADMUSER):$(ADMGROUP) $@
+ chown $(ADMUSER).$(ADMGROUP) $@
$(VARDIR)/archives:
[ -d $@ ] || mkdir -p $@
chmod ugo+rwX,go-w $@
- chown $(ADMUSER):$(ADMGROUP) $@
+ chown $(ADMUSER).$(ADMGROUP) $@