-# $Id: Makefile,v 1.5 2000/10/18 18:19:35 sljohnson Exp $
+# $Id: Makefile,v 1.6 2000/11/15 17:28:09 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) ./$(SYSTEM)-client/lib
+ chgrp -R $(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) ./$(SYSTEM)-client/bin/*
+ chgrp $(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) ./$(SYSTEM)-client/etc
+ chgrp -R $(ADMGROUP) ./$(SYSTEM)-client/etc
client-install:
-e "s%@@WWWDIR@@%$(WWWDIR)%g" \
$< > $@
chmod -R 755 $(BINDIR)
- chown -R $(ADMUSER).$(ADMGROUP) $(BINDIR)
+ chown -R $(ADMUSER) $(BINDIR)
+ chgrp -R $(ADMGROUP) $(BINDIR)
# --- configs ---
mkdir -p $@
chmod 751 $(ETCDIR)
etcown:
- chown -R $(ADMUSER).$(ADMGROUP) $(ETCDIR)
+ chown -R $(ADMUSER) $(ETCDIR)
+ chgrp -R $(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) $(LIBDIR)
+ chgrp -R $(ADMGROUP) $(LIBDIR)
# --- webpages ---
$(WWWDIR):
mkdir -p $@
mkdir $@/html
- chown $(WEBUSER).$(WEBGROUP) $@ $@/html
+ chown $(WEBUSER) $@ $@/html
+ chgrp $(WEBGROUP) $@ $@/html
webpages: $(WEBDIRS) $(WEBPAGES)
$(WWWDIR)/docs: ./www/docs
cp -rp $< $@
chmod -R ugo+rwX,go-w $@
- chown -R $(WEBUSER).$(WEBGROUP) $@
+ chown -R $(WEBUSER) $@
+ chgrp -R $(WEBGROUP) $@
+
$(WWWDIR)/gifs: ./www/gifs
cp -rp $< $@
chmod -R ugo+rwX,go-w $@
- chown -R $(WEBUSER).$(WEBGROUP) $@
+ chown -R $(WEBUSER) $@
+ chgrp -R $(WEBGROUP) $@
+
$(WWWDIR)/html/%: ./www/html/%
sed -e "s%__DIR__%$(DOCROOT)%g" $< > $@
chmod ugo+rwX,go-w $@
- chown $(WEBUSER).$(WEBGROUP) $@
+ chown $(WEBUSER) $@
+ chgrp $(WEBGROUP) $@
# --- cgiscripts ---
$(CGIDIR):
mkdir -p $@
cgiown:
- chown -R $(ADMUSER).$(ADMGROUP) $(CGIDIR)
+ chown -R $(ADMUSER) $(CGIDIR)
+ chgrp -R $(ADMGROUP) $(CGIDIR)
cgiscripts: $(CGISCRIPTS)
-e "s%@@LIBDIR@@%$(LIBDIR)%g" \
-e "s%@@ETCDIR@@%$(ETCDIR)%g" \
-e "s%@@WWWDIR@@%$(WWWDIR)%g" \
+ -e "s%@@VER@@%$(SPONGVER)%g" \
$< > $@
- chown $(WEBUSER).$(WEBGROUP) $(CGIDIR)/*
+ chmod 0755 $@
+ chown $(WEBUSER) $@
+ chgrp $(WEBGROUP) $@
# --- misc install directories ---
$(TMPDIR):
[ -d $@ ] || mkdir -p $@
chmod ugo+rwX,go-w $@
- chown $(ADMUSER).$(ADMGROUP) $@
+ chown $(ADMUSER) $@
+ chgrp $(ADMGROUP) $@
vardir: $(VARDIR) $(VARDIR)/archives $(DBDIR)
$(VARDIR):
[ -d $@ ] || mkdir -p $@
chmod ugo+rwX,go-w $@
- chown $(ADMUSER).$(ADMGROUP) $@
+ chown $(ADMUSER) $@
+ chgrp $(ADMGROUP) $@
$(DBDIR):
[ -d $@ ] || mkdir -p $@
chmod ugo+rwX,go-w $@
- chown $(ADMUSER).$(ADMGROUP) $@
+ chown $(ADMUSER) $@
+ chgrp $(ADMGROUP) $@
$(VARDIR)/archives:
[ -d $@ ] || mkdir -p $@
chmod ugo+rwX,go-w $@
- chown $(ADMUSER).$(ADMGROUP) $@
+ chown $(ADMUSER) $@
+ chgrp $(ADMGROUP) $@
-# $Id: spong.mk,v 1.4 2000/10/18 18:19:35 sljohnson Exp $
+# $Id: spong.mk,v 1.5 2000/11/15 17:28:09 sljohnson Exp $
#
+#
+# Spong version
+
+SPONGVER=2.7.0
+
#---- Operating system list [ should match ./config/spong.conf.$OS ]
OS=aix bsdi freebsd hpux irix linux osf1 solaris
LIBLIST= \
Ack AckList History HistoryList Host HostList Info Service \
- ServiceList
+ ServiceList Log Logger
CGILIST= www-spong www-spong-ack wap-spong
# For server, LIBRARY is lib/Spong/
# For client, LIBRARY is lib/Spong/Client + CLIENT_LIBS in lib/Spong
-CLIENT_LIBS=Daemon.pm Status.pm
+CLIENT_LIBS=Daemon.pm Status.pm Log.pm Logger.pm
WEBDIRS = \
$(WWWDIR)/docs \