-# $Id: Makefile,v 1.12 2005/09/13 15:32:21 willamowius Exp $
+# $Id: Makefile,v 1.13 2005/09/15 11:58:02 willamowius 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 vardir
+server: beroot checkuser bindir etcdir libdir webdir cgidir tmpdir vardir
beroot:
+ @echo "Testing for root permissions: "
@[ `whoami` = root ] || false
- @echo " Yer root"
+ @echo "OK, you are root"
+
+checkuser:
+ @echo "Testing if user $(ADMUSER) and group $(ADMGROUP) exist: "
+ @touch /tmp/spong.tst ; chown $(ADMUSER):$(ADMGROUP) /tmp/spong.tst
+ @rm /tmp/spong.tst
+ @echo "OK, user and group exist"
client: $(SYSTEM)-client
library: $(LIBDIR)/Spong
$(LIBDIR)/Spong: ./src/lib/Spong
+ mkdir -p $(LIBDIR)/Spong
cp -rp ./src/lib/Spong $(LIBDIR)/Spong/
chmod -R ugo+rwX,go-w $(LIBDIR)/Spong/
chown -R $(ADMUSER) $(LIBDIR)