From 2f45a43d1b30b7f9b01a325be5b5db1044e134c5 Mon Sep 17 00:00:00 2001
From: Stephen L Johnson <sjohnson@monsters.org>
Date: Tue, 17 Dec 2002 21:59:55 +0000
Subject: [PATCH] Removing Make install method for a complete revamp

---
 Makefile  | 253 ------------------------------------------------------
 build     |   2 +-
 config.mk |  41 ---------
 httpd.in  |  28 ------
 spong.mk  |  92 --------------------
 5 files changed, 1 insertion(+), 415 deletions(-)
 delete mode 100644 Makefile
 delete mode 100644 config.mk
 delete mode 100644 httpd.in
 delete mode 100644 spong.mk

diff --git a/Makefile b/Makefile
deleted file mode 100644
index b38949c..0000000
--- a/Makefile
+++ /dev/null
@@ -1,253 +0,0 @@
-# $Id: Makefile,v 1.9 2001/06/27 18:34:58 supermathie Exp $
-#
-# Makefile for Spong (Version 2.6f and up).
-#
-# Presently you can put this in the directory with the build script
-# and run:
-#
-#	make server	
-#	make client SYSTEM=OS
-#
-# and if ./config/spong.conf.OS exists it will build a spong client
-# installation in ./OS-client.
-#
-# Default for SYSTEM is defined in config.mk
-
-include config.mk
-include spong.mk
-
-#---- Targets
-
-default:	help
-
-help:
-#	@echo "Try 'make client SYSTEM=<OS>' where <OS> is in the list: "
-#	@echo "	$(OS)"
-#	@echo "Default OS is $(SYSTEM)"
-
-	@echo "'make server'  installs the server for the default platform"
-	@echo "               defined in config.mk"
-	@echo
-	@echo "'make client'  installs the client for the default platform"
-	@echo "               in ./client-<OS>"
-	@echo
-	@echo "'make client SYSTEM=<OS>'  will build clients for other platforms"
-
-#---- Clients [ this is incredibly ugly, GH. ]
-#
-# A better way might be to use a client.mk include file :) and use the
-# server part below ...  We'd need to redefine the lists above.
-#
-
-server: beroot bindir etcdir libdir webdir cgidir tmpdir vardir
-
-beroot:
-	@[ `whoami` = root ] || false
-	@echo " Yer root"
-
-client:	$(SYSTEM)-client
-
-$(SYSTEM)-test:
-	@[ -f ./config/spong.conf.$(SYSTEM) ] || \
-	( echo "No such system $(SYSTEM)" && false )
-	mkdir -p $(SYSTEM)-client/lib/Spong
-
-$(SYSTEM)-client:	$(SYSTEM)-test clientdir clientlib clientetc clientbin
-	-find $(SYSTEM)-client -name CVS -exec rm -rf '{}' \;
-
-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
-	[ -d ./$(SYSTEM)-client/tmp ] || mkdir ./$(SYSTEM)-client/tmp
-
-clientlib:
-	mkdir -p ./$(SYSTEM)-client/lib/Spong
-	for f in $(CLIENT_LIBS) ; do cp ./src/lib/Spong/$$f $(SYSTEM)-client/lib/Spong/; done
-	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) ./$(SYSTEM)-client/lib
-	chgrp -R $(ADMGROUP) ./$(SYSTEM)-client/lib
-
-clientbin:	$(SYSTEM)-client/bin/spong-client
-
-$(SYSTEM)-client/bin/%:	./src/%.pl
-	sed -e "s%@@PERL@@%$(PERL)%g" \
-	-e "s%@@BINDIR@@%$(BINDIR)%g" \
-	-e "s%@@LIBDIR@@%$(LIBDIR)%g" \
-	-e "s%@@ETCDIR@@%$(ETCDIR)%g" \
-	-e "s%@@WWWDIR@@%$(WWWDIR)%g" \
-	$< > $@
-	chmod +x ./$(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) ./$(SYSTEM)-client/etc
-	chgrp -R $(ADMGROUP) ./$(SYSTEM)-client/etc
-
-client-install:
-
-
-# Server [ much nicer :) ]
-
-cvsclean:
-	find $(BINDIR) $(ETCDIR) $(LIBDIR) $(CGIDIR) $(WWWDIR) \
-	-type d -name CVS -exec rm -rf '{}' \;
-
-# --- daemons ---
-
-bindir:		$(BINDIR) daemons
-
-daemons:	$(DAEMONS)
-
-$(BINDIR):
-	mkdir -p $@
-
-daemons:	$(DAEMONS)
-
-$(BINDIR)/%:	./src/%.pl
-	sed -e "s%@@PERL@@%$(PERL)%g" \
-	-e "s%@@BINDIR@@%$(BINDIR)%g" \
-	-e "s%@@LIBDIR@@%$(LIBDIR)%g" \
-	-e "s%@@ETCDIR@@%$(ETCDIR)%g" \
-	-e "s%@@WWWDIR@@%$(WWWDIR)%g" \
-	$< > $@
-	chmod -R 755 $(BINDIR)
-	chown -R $(ADMUSER) $(BINDIR)
-	chgrp -R $(ADMGROUP) $(BINDIR)
-
-# --- configs ---
-
-etcdir:		$(ETCDIR) configs etcown
-
-$(ETCDIR):
-	mkdir -p $@
-	chmod 751 $(ETCDIR)
-etcown:
-	chown -R $(ADMUSER) $(ETCDIR)
-	chgrp -R $(ADMGROUP) $(ETCDIR)
-
-configs:	$(CONFIGS)
-
-$(ETCDIR)/spong.conf:	./config/spong.conf ./config/spong.conf.$(SYSTEM)
-	cat $< > $@.dist
-	cat ./config/spong.conf.$(SYSTEM) >> $@.dist
-	chmod 644 $@.dist
-	[ -f $@ ] || mv $@.dist $@
-	touch $@
-
-$(ETCDIR)/%:	./config/%
-	cat $< > $@.dist
-	[ -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
-
-$(LIBDIR):
-	mkdir -p $@
-
-library:	$(LIBDIR)/Spong
-
-$(LIBDIR)/Spong:	./src/lib/Spong
-	cp -rp ./src/lib/Spong $(LIBDIR)/Spong/
-	chmod -R ugo+rwX,go-w $(LIBDIR)/Spong/
-	chown -R $(ADMUSER) $(LIBDIR)
-	chgrp -R $(ADMGROUP) $(LIBDIR)
-
-# --- webpages ---
-
-webdir:		$(WWWDIR) webpages
-
-$(WWWDIR):
-	mkdir -p $@
-	mkdir $@/html
-	chown $(WEBUSER) $@ $@/html
-	chgrp $(WEBGROUP) $@ $@/html
-
-webpages:	$(WEBDIRS) $(WEBPAGES)
-
-# $(WEBDIRS). Must create WEBDIR first and other directories must be
-# Subdirectories.
-$(WWWDIR)/docs:	./www/docs
-	cp -rp $< $@
-	chmod -R ugo+rwX,go-w $@
-	chown -R $(WEBUSER) $@
-	chgrp -R $(WEBGROUP) $@
-
-$(WWWDIR)/gifs:	./www/gifs
-	cp -rp $< $@
-	chmod -R ugo+rwX,go-w $@
-	chown -R $(WEBUSER) $@
-	chgrp -R $(WEBGROUP) $@
-
-$(WWWDIR)/html/%:	./www/html/%
-	sed -e "s%__DIR__%$(DOCROOT)%g" $< > $@
-	chmod ugo+rwX,go-w $@
-	chown $(WEBUSER) $@
-	chgrp $(WEBGROUP) $@
-
-# --- cgiscripts ---
-
-cgidir:		$(CGIDIR) cgiscripts cgiown
-
-$(CGIDIR):
-	mkdir -p $@
-cgiown:
-	chown -R $(ADMUSER) $(CGIDIR)
-	chgrp -R $(ADMGROUP) $(CGIDIR)
-
-cgiscripts:	$(CGISCRIPTS)
-
-$(CGIDIR)/%:	./src/%.pl
-	sed -e "s%@@PERL@@%$(PERL)%g" \
-	-e "s%@@BINDIR@@%$(BINDIR)%g" \
-	-e "s%@@LIBDIR@@%$(LIBDIR)%g" \
-	-e "s%@@ETCDIR@@%$(ETCDIR)%g" \
-	-e "s%@@WWWDIR@@%$(WWWDIR)%g" \
-	-e "s%@@VER@@%$(SPONGVER)%g" \
-	$< > $@
-	chmod 0755 $@
-	chown $(WEBUSER) $@
-	chgrp $(WEBGROUP) $@
-
-# --- misc install directories ---
-
-tmpdir:	$(TMPDIR)
-
-$(TMPDIR):
-	[ -d $@ ] || mkdir -p $@
-	chmod ugo+rwX,go-w $@
-	chown $(ADMUSER) $@
-	chgrp $(ADMGROUP) $@
-
-vardir:	$(VARDIR) $(VARDIR)/archives $(DBDIR)
-
-$(VARDIR):
-	[ -d $@ ] || mkdir -p $@
-	chmod ugo+rwX,go-w $@
-	chown $(ADMUSER) $@
-	chgrp $(ADMGROUP) $@
-
-$(DBDIR):
-	[ -d $@ ] || mkdir -p $@
-	chmod ugo+rwX,go-w $@
-	chown $(ADMUSER) $@
-	chgrp $(ADMGROUP) $@
-
-$(VARDIR)/archives:
-	[ -d $@ ] || mkdir -p $@
-	chmod ugo+rwX,go-w $@
-	chown $(ADMUSER) $@
-	chgrp $(ADMGROUP) $@
diff --git a/build b/build
index 097bfcc..06ce275 100755
--- a/build
+++ b/build
@@ -244,7 +244,7 @@ sub help {
 
 If your OS is not listed above, then you will need to create a
 config/spong.conf.<os> file for your OS before building this package.  Once
-you have done that, please send that file to ed-hill@uiowa.edu so that I can
+you have done that, please send that file to sjohnson@monsters.org so that I can
 include it with the distribution.
 
 _EOF_
diff --git a/config.mk b/config.mk
deleted file mode 100644
index 4991a8a..0000000
--- a/config.mk
+++ /dev/null
@@ -1,41 +0,0 @@
-# $Id: config.mk,v 1.6 2001/12/10 19:44:20 sljohnson Exp $
-#
-# Test include for ./Makefile
-# Rename this "config.mk" for testing.
-#
-#---- Default OS
-SYSTEM=linux
-
-#---- Modifiable Variables from Build Script ------------------
-
-PERL=/usr/bin/perl
-
-PREFIX=/usr/local/spong
-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
-# Apache configuration
-DOMAIN=example.com
-SERVER=www.$(DOMAIN)
-VSERVER=spong.$(DOMAIN)
-ALIASES=spong
-ADMIN=admin@$(DOMAIN)
-
-
-#DOCROOT=/www
-
-WEBUSER=nobody
-WEBGROUP=nobody
-ADMUSER=spong
-ADMGROUP=spong
diff --git a/httpd.in b/httpd.in
deleted file mode 100644
index 422a42e..0000000
--- a/httpd.in
+++ /dev/null
@@ -1,28 +0,0 @@
-# NameVirtualHost @@SERVER@@
-
-<VirtualHost @@VSERVER@@>
-   ServerAdmin @@ADMIN@@
-   ServerName @@VSERVER@@
-   ServerAlias @@ALIASES@@
-#   User nobody
-#   Group nobody
-
-   DocumentRoot @@WWWDIR@@
-   ScriptAlias  /cgi/ @@CGIDIR@@
-   DirectoryIndex /cgi/www-spong
-
-   <Directory @@WWWDIR@@>
-      Options Indexes FollowSymLinks
-      <Limit GET POST>
-        allow from all 
-      </Limit>
-   </Directory>
-
-   <Directory @@CGIDIR@@/images>
-      Options None
-      <Limit GET>
-        allow from all 
-      </Limit>
-   </Directory>
-
-</VirtualHost>
diff --git a/spong.mk b/spong.mk
deleted file mode 100644
index e02dbf0..0000000
--- a/spong.mk
+++ /dev/null
@@ -1,92 +0,0 @@
-# $Id: spong.mk,v 1.7 2001/10/29 18:58:34 sljohnson Exp $
-#
-#
-# Spong version
-
-SPONGVER=2.7.5
-
-#---- Operating system list [ should match ./config/spong.conf.$OS ]
-
-OS=aix bsdi freebsd hpux irix linux osf1 solaris
-
-#---- Arrays from build script
-#
-# I don't think I'm using these at the moment but it still helps to track 
-# spong version differences 
-
-BINLIST= \
-	spong spong-server spong-network spong-client spong-message \
-	spong-ack spong-cleanup spong-status
-
-LIBLIST= \
-	Ack AckList History HistoryList Host HostList Info Service \
-	ServiceList Log Logger
-
-CGILIST= www-spong www-spong-ack wap-spong
-
-#---- New "Arrays"
-
-DAEMONS= \
-	$(BINDIR)/spong-ack \
-	$(BINDIR)/spong-cleanup \
-	$(BINDIR)/spong-client \
-	$(BINDIR)/spong-message \
-	$(BINDIR)/spong-network \
-	$(BINDIR)/spong-server \
-	$(BINDIR)/spong-status \
-	$(BINDIR)/spong
-
-# For client
-# CCONFIGS= spong.conf spong.hosts spong.groups spong.message
-CCONFIGS= spong.conf
-
-CONFIGS= \
-	$(ETCDIR)/spong.conf \
-	$(ETCDIR)/spong.hosts \
-	$(ETCDIR)/spong.groups \
-	$(ETCDIR)/spong.message
-
-# For server, LIBRARY is lib/Spong/
-# For client, LIBRARY is lib/Spong/Client + CLIENT_LIBS in lib/Spong
-
-CLIENT_LIBS=Daemon.pm Status.pm Log.pm Logger.pm SafeExec.pm
-
-WEBDIRS = \
-	$(WWWDIR)/docs \
-	$(WWWDIR)/gifs \
-	$(WWWDIR)/docs
-#
-# This is somewhat ridiculous.  We really only want to munge help.html
-# but:
-#   1. If we install $(WWWDIR)/html then help.html is up-to-date.
-#   2. If we have a target $(WWWDIR)/%: it hides $(WWWDIR)/html/%:
-# Need to talk to Stephen about completely redoing the documentation
-# part of this.
-
-WEBPAGES = \
-	$(WWWDIR)/html/cpu.html \
-	$(WWWDIR)/html/disk.html \
-	$(WWWDIR)/html/dns.html \
-	$(WWWDIR)/html/ftp.html \
-	$(WWWDIR)/html/help.html \
-	$(WWWDIR)/html/history.html \
-	$(WWWDIR)/html/home.html \
-	$(WWWDIR)/html/host.html \
-	$(WWWDIR)/html/http.html \
-	$(WWWDIR)/html/imap.html \
-	$(WWWDIR)/html/jobs.html \
-	$(WWWDIR)/html/lan.html \
-	$(WWWDIR)/html/logs.html \
-	$(WWWDIR)/html/nntp.html \
-	$(WWWDIR)/html/ping.html \
-	$(WWWDIR)/html/pop3.html \
-	$(WWWDIR)/html/procs.html \
-	$(WWWDIR)/html/service.html \
-	$(WWWDIR)/html/smtp.html \
-	$(WWWDIR)/html/unix.html
-
-CGISCRIPTS= \
-	$(CGIDIR)/www-spong \
-	$(CGIDIR)/www-spong-ack \
-	$(CGIDIR)/wap-spong
-
-- 
2.30.2