From 6d85977a41c14913dc67eae88c241b551cc5deb9 Mon Sep 17 00:00:00 2001 From: Jan Willamowius Date: Thu, 15 Sep 2005 11:58:02 +0000 Subject: [PATCH] create libdir, better test for root permissions, test if spong user and group exist --- Makefile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 4bb6a81..da8d78f 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -# $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). # @@ -39,11 +39,18 @@ help: # 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 @@ -161,6 +168,7 @@ $(LIBDIR): 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) -- 2.30.2