Commit fbdcddd1 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Release 1.6 of lyskomd.

parent 3ffb738d
Sun Mar 6 02:13:55 1994 Per Cederqvist (ceder@lysator.liu.se)
* Release 1.6.
* doc/ADMINISTRATION: Talked about start_kom, stop_kom and the
program updateLysKOM.
* INSTALL: Updated/rewritten for LysKOM 1.6.
* scripts/mkmi.m4 (LK_STD): Now takes an optional argument: what
`all' should depend on. Defaults to `libraries'.
* Makefile.src (LK_STD): Make `all' depend on includes,
stamp-depend, libraries and binaries.
(stamp-depend): New target.
(depend): No longer depends on includes.
(dodistclean): Remove stamp-depend.
(dist): Remove stamp-* from the distribution.
* src/Makefile.src (LK_STD): Make `all' depend on includes,
libraries and binaries.
* scripts/Depend.make, scripts/Parallell-depend.make,
scripts/RCS-depend.make, scripts/Single-depend.make,
scripts/install-includes.make, scripts/sub-binaries.make,
scripts/sub-clean.make, scripts/sub-depend.make,
scripts/sub-includes.make, scripts/sub-install.make,
scripts/sub-libraries.make: Removed.
* doc/man/Makefile.src (doinstall): mkinstalldirs before trying to
install the man-pages.
......
#
# $Id: Makefile.in,v 1.6 1993/11/22 18:34:37 ceder Exp $
# $Id: Makefile.in,v 1.7 1994/03/06 22:56:24 ceder Exp $
# Copyright (C) 1991 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -23,84 +22,128 @@
# Please mail bug reports to bug-lyskom@lysator.liu.se.
#
# Begin LK_STD
srcdir = @srcdir@
VPATH = @srcdir@
@STDLYSKOM@
SHELL = /bin/sh
SUBDIRS = doc scripts src # config # junk
SERVER-VER = 1.5
all: msg includes stamp-depend libraries binaries end-msg
all: msg includes libraries binaries end-msg
AWK = @AWK@
CC = @CC@
CFLAGS = @CFLAGS@
ALL_CFLAGS = @INCLUDE_CURRENT@ -I@srcdir@ -I@BUILDTOPDIR@/include \
-I@BUILDTOPDIR@/include/server $(DEFS) $(CFLAGS)
@ALL_DESCEND@
DEPENDFLAG = @DEPENDFLAG@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
LEX = @LEX@
MKDIR = mkdir
RANLIB = @RANLIB@
RM = rm -f
SED = @SED@
SYMLINK = @LN_S@
TOUCHLIB = @RANLIB@
YACC = @YACC@
INCLUDEDIR = @BUILDTOPDIR@/include
LIBDIR = @BUILDTOPDIR@/lib
prefix = /usr/lyskom
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
dbdir = $(exec_prefix)/db
etcdir = $(exec_prefix)/etc
coredir = $(exec_prefix)/cores
DEFS = @DEFS@
LDFLAGS = @LDFLAGS@
SCRIPTDIR = @SRCTOPDIR@/scripts
.c.o:
$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
# END section from LK_STD
SUBDIRS = doc scripts src run-support
SERVER-VER = 1.6
doincludes:;
dolibraries:;
dobinaries:;
doinstall:;
dodepend:;
dopure: dorealclean
$(RM) configure
dorealclean: dodistclean;
dodistclean: doclean
$(RM) $(GENERIC-DISTCLEAN) config.status
$(RM) lib/lib*.a
rmdir lib
doclean: domostlyclean;
domostlyclean:
$(RM) $(GENERIC-MOSTLYCLEAN)
includes: $(INCLUDEDIR)
depend: $(INCLUDEDIR) msg includes
libraries: lib
lib:
mkdir lib
configure: configure.in
autoconf
$(srcdir)/configure: configure.in
autoconf $(srcdir)/configure.in > $(srcdir)/configure
# Make depend must be run once before we start to compile, but since
# it takes a long time we don't want to run it everytime somebody says
# "make". If you make big changes you should run "make depend".
stamp-depend:
$(MAKE) depend
touch stamp-depend
distribution: distclean configure
find . -name '#*#' -print
.PHONY: dist
dist: $(srcdir)/configure
[ ! -f $(srcdir)/Makefile ]
cd $(srcdir); ./mkmi
-$(RM) -r lyskom-$(SERVER-VER)
$(MKDIR) lyskom-$(SERVER-VER)
cp README-serverrelease lyskom-$(SERVER-VER)/README
cp COPYING INSTALL configure configure.in Build Makefile.in \
lyskom-$(SERVER-VER)/
$(MKDIR) lyskom-$(SERVER-VER)/src
cp src/Makefile.in lyskom-$(SERVER-VER)/src/
$(MKDIR) lyskom-$(SERVER-VER)/src/libraries
cp src/libraries/Makefile.in lyskom-$(SERVER-VER)/src/libraries/
$(MKDIR) lyskom-$(SERVER-VER)/doc
for i in "" /src /src/libraries /doc /scripts; do\
$(MKDIR) lyskom-$(SERVER-VER)$$i||exit 1;\
done
if [ -f $(srcdir)/README-serverrelease ] ;then \
cp $(srcdir)/README-serverrelease lyskom-$(SERVER-VER)/README;\
else\
cp $(srcdir)/README lyskom-$(SERVER-VER)/README;\
fi
for i in COPYING INSTALL configure configure.in Build Makefile.in \
Makefile.src mkmi; \
do cp $(srcdir)/$$i lyskom-$(SERVER-VER)/||exit 1; done
cp $(srcdir)/src/Makefile.in lyskom-$(SERVER-VER)/src/
cp $(srcdir)/src/Makefile.src lyskom-$(SERVER-VER)/src/
cp $(srcdir)/src/libraries/Makefile.in \
lyskom-$(SERVER-VER)/src/libraries/
cp $(srcdir)/src/libraries/Makefile.src \
lyskom-$(SERVER-VER)/src/libraries/
for i in ADMINISTRATION Makefile.in misc_items prot-A.txt \
server-async.extend server.extend what-is-unread.swe; \
server-async.extend server.extend what-is-unread.swe \
server-config.extend Makefile.src; \
do \
cp doc/$$i lyskom-$(SERVER-VER)/doc/$i; \
cp $(srcdir)/doc/$$i lyskom-$(SERVER-VER)/doc/$i||exit 1;\
done
cp -r doc/man lyskom-$(SERVER-VER)/doc/man
cp -r scripts lyskom-$(SERVER-VER)/scripts
$(RM) lyskom-$(SERVER-VER)/scripts/import.make
cp -r run-support lyskom-$(SERVER-VER)/run-support
cp -r src/libraries/libansi lyskom-$(SERVER-VER)/src/libraries
cp -r src/libraries/libcommon lyskom-$(SERVER-VER)/src/libraries
cp -r src/libraries/libisc-new lyskom-$(SERVER-VER)/src/libraries
cp -r src/libraries/libmisc lyskom-$(SERVER-VER)/src/libraries
cp -r src/libraries/regex lyskom-$(SERVER-VER)/src/libraries
cp -r src/server lyskom-$(SERVER-VER)/src
cp -r src/include lyskom-$(SERVER-VER)/src/include
cp -r $(srcdir)/doc/man lyskom-$(SERVER-VER)/doc/man
for i in mkmi.m4 Makefile.src Makefile.in; do\
cp $(srcdir)/scripts/$$i lyskom-$(SERVER-VER)/scripts/||exit 1; \
done
cp -r $(srcdir)/run-support lyskom-$(SERVER-VER)/run-support
for i in libansi libcommon libisc-new libmisc regex ; do \
cp -r $(srcdir)/src/libraries/$$i \
lyskom-$(SERVER-VER)/src/libraries \
|| exit 1 ; \
done
cp -r $(srcdir)/src/server lyskom-$(SERVER-VER)/src
cp -r $(srcdir)/src/include lyskom-$(SERVER-VER)/src/include
$(RM) -r lyskom-$(SERVER-VER)/src/include/ansi
cp -r db-crypt lyskom-$(SERVER-VER)
cp -r db-nocrypt lyskom-$(SERVER-VER)
find lyskom-$(SERVER-VER) -name CVS -print -exec rm -rf "{}" \; -prune
cp -r $(srcdir)/db-crypt lyskom-$(SERVER-VER)
cp -r $(srcdir)/db-nocrypt lyskom-$(SERVER-VER)
find lyskom-$(SERVER-VER) \
\( -name CVS -o -name '*~' -o -name '#*#' -o -name 'lib*.a' \
-o -name '*.o' -o -name '.#*' -o -name core \
-o -name Makefile.in2 -o -name 'stamp-*' \) \
-print -exec rm -rf "{}" \; -prune
tar cvf lyskom-$(SERVER-VER).tar lyskom-$(SERVER-VER)
$(RM) lyskom-$(SERVER-VER).tar.gz
gzip lyskom-$(SERVER-VER).tar
gzip -9v lyskom-$(SERVER-VER).tar
$(RM) -r lyskom-$(SERVER-VER)
.PHONY: msg
msg:
@date
@echo
.PHONY: end-msg
end-msg:
@echo
@echo Finished at
......@@ -108,3 +151,135 @@ end-msg:
$(INCLUDEDIR):
mkdir $(INCLUDEDIR)
.PHONY: includes
includes:
@for i in DuMmY $(SUBDIRS); do \
if test -f $$i/Makefile ; then \
echo making includes in directory $$i; \
if (cd ./$$i; $(MAKE) includes); \
then true; else exit 1; fi ; \
else true; fi; \
done
.PHONY: libraries
libraries:
@for i in DuMmY $(SUBDIRS); do \
if test -f $$i/Makefile ; then \
echo making libraries in directory $$i; \
if (cd ./$$i; $(MAKE) libraries); \
then true; else exit 1; fi ; \
else true; fi; \
done
.PHONY: binaries
binaries:
@for i in DuMmY $(SUBDIRS); do \
if test -f $$i/Makefile ; then \
echo making binaries in directory $$i; \
if (cd ./$$i; $(MAKE) binaries); \
then true; else exit 1; fi ; \
else true; fi; \
done
.PHONY: install
install:
$(SCRIPTDIR)/mkinstalldirs $(prefix) $(exec_prefix) $(bindir) $(dbdir)\
$(etcdir) $(coredir)
chmod 700 $(dbdir)
if [ ! -f $(dbdir)/lyskomd-data ] && [ ! -f $(dbdir)/lyskomd-texts ];\
then cp $(srcdir)/db-crypt/db/lyskomd-data $(dbdir)/lyskomd-data && \
cp $(srcdir)/db-crypt/db/lyskomd-texts $(dbdir)/lyskomd-texts ;\
else true; fi
@for i in DuMmY $(SUBDIRS); do \
if test -f $$i/Makefile ; then \
echo making install in directory $$i; \
if (cd ./$$i; $(MAKE) install); \
then true; else exit 1; fi ; \
else true; fi; \
done
dependencies:
touch dependencies
.PHONY: depend
depend:
@for i in DuMmY $(SUBDIRS); do \
if test -f $$i/Makefile ; then \
echo making depend in directory $$i; \
if (cd ./$$i; $(MAKE) depend); \
then true; else exit 1; fi ; \
else true; fi; \
done
# Output from LK_CLEAN
GENERIC-MOSTLYCLEAN = *.o lib*.a core Makefile.in2
GENERIC-PURE = Makefile.in configure
GENERIC-DISTCLEAN = *~ .\#* TAGS dependencies Makefile
.PHONY: mostlyclean
mostlyclean: domostlyclean
@for i in DuMmY $(SUBDIRS); do \
if test -f $$i/Makefile ; then \
echo making mostlyclean in directory $$i; \
if (cd ./$$i; $(MAKE) mostlyclean); \
then true; else exit 1; fi ; \
else true; fi; \
done
.PHONY: clean
clean: doclean
@for i in DuMmY $(SUBDIRS); do \
if test -f $$i/Makefile ; then \
echo making clean in directory $$i; \
if (cd ./$$i; $(MAKE) clean); \
then true; else exit 1; fi ; \
else true; fi; \
done
.PHONY: distclean
distclean: dodistclean
@for i in DuMmY $(SUBDIRS); do \
if test -f $$i/Makefile ; then \
echo making distclean in directory $$i; \
if (cd ./$$i; $(MAKE) distclean); \
then true; else exit 1; fi ; \
else true; fi; \
done
.PHONY: realclean
realclean: dorealclean
@for i in DuMmY $(SUBDIRS); do \
if test -f $$i/Makefile ; then \
echo making realclean in directory $$i; \
if (cd ./$$i; $(MAKE) realclean); \
then true; else exit 1; fi ; \
else true; fi; \
done
.PHONY: pure
pure: dopure
@for i in DuMmY $(SUBDIRS); do \
if test -f $$i/Makefile ; then \
echo making pure in directory $$i; \
if (cd ./$$i; $(MAKE) pure); \
then true; else exit 1; fi ; \
else true; fi; \
done
dopure: dorealclean
$(RM) $(GENERIC-PURE)
dorealclean: dodistclean
dodistclean: doclean
$(RM) $(GENERIC-DISTCLEAN) config.status
$(RM) lib/lib*.a stamp-depend
rmdir lib
doclean: domostlyclean
domostlyclean:
$(RM) $(GENERIC-MOSTLYCLEAN)
# End output from LK_CLEAN
Att g|ra inf|r varje server-release: (Denna lista {r ej n|dv{ndigtvis
fullst{ndig).
*** Se till att updateLysKOM beter sig som en riktigt tomte. Bakgrund och
hela k|ret.
*** mkmi.m4 (eller kanske mkmi) borde substituera bort $-tecknen s}
att keyword expansion ej sker. Borde l{gga till nya
keyword-expansionstecken.
Fixa versionsnumret i:
doc/ADMINISTRATION
......@@ -11,9 +18,11 @@ Skriv en rad i:
ChangeLog
Checka in allt.
G|r:
make distribution
make dist
G|r:
......
This diff is collapsed.
......@@ -29,7 +29,7 @@ is to be run on the database, the LysKOM server *must* be stopped, or
unrepairable damage may result. See below for a description on how to
stop the server.
There is a shell script called updateLysKOM which is used to ensure
There is a program called updateLysKOM which is used to ensure
continuous operation. This script is run with certain intervals and
if the LysKOM server has died for some reason, updateLysKOM restarts
it. If the server is still running properly, updateLysKOM sends a
......@@ -46,3 +46,14 @@ a small memory leak in the server (typically, less than 10 memory
blocks leaks per server run). We know about it, so there is no need
to send bug reports to us about that (unless you have found where the
leak is).
To prevent updateLysKOM from restarting a server, create a file
named /usr/lyskom/etc/status. The file should contain a valid mail
address on the first line. The shell script stop_kom will create such
a file. UpdateLysKOM will not restart the server as long as that file
exists. In addition, if the file is between 1 and 2 hours old an
email will be sent to the mail address found in the file. If the file
is older than that, mail will be sent to ceder. FIXME///+++<<<>>>
The shell script start_kom will remove the status file and run
updateLysKOM.
#
# $Id: Makefile.in,v 1.2 1993/10/10 11:38:33 ceder Exp $
# $Id: Makefile.in,v 1.3 1994/03/06 22:56:52 ceder Exp $
# Copyright (C) 1991 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -22,26 +22,169 @@
#
# Please mail bug reports to bug-lyskom@lysator.liu.se.
#
# Begin LK_STD
srcdir = @srcdir@
VPATH = @srcdir@
SHELL = /bin/sh
all: libraries
AWK = @AWK@
CC = @CC@
CFLAGS = @CFLAGS@
ALL_CFLAGS = @INCLUDE_CURRENT@ -I@srcdir@ -I@BUILDTOPDIR@/include \
-I@BUILDTOPDIR@/include/server $(DEFS) $(CFLAGS)
DEPENDFLAG = @DEPENDFLAG@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
LEX = @LEX@
MKDIR = mkdir
RANLIB = @RANLIB@
RM = rm -f
SED = @SED@
SYMLINK = @LN_S@
TOUCHLIB = @RANLIB@
YACC = @YACC@
INCLUDEDIR = @BUILDTOPDIR@/include
LIBDIR = @BUILDTOPDIR@/lib
prefix = /usr/lyskom
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
dbdir = $(exec_prefix)/db
etcdir = $(exec_prefix)/etc
coredir = $(exec_prefix)/cores
DEFS = @DEFS@
LDFLAGS = @LDFLAGS@
SCRIPTDIR = @SRCTOPDIR@/scripts
.c.o:
$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
# END section from LK_STD
SUBDIRS = man
.PHONY: includes
includes:
@for i in DuMmY $(SUBDIRS); do \
if test -f $$i/Makefile ; then \
echo making includes in directory $$i; \
if (cd ./$$i; $(MAKE) includes); \
then true; else exit 1; fi ; \
else true; fi; \
done
.PHONY: libraries
libraries:
@for i in DuMmY $(SUBDIRS); do \
if test -f $$i/Makefile ; then \
echo making libraries in directory $$i; \
if (cd ./$$i; $(MAKE) libraries); \
then true; else exit 1; fi ; \
else true; fi; \
done
.PHONY: binaries
binaries:
@for i in DuMmY $(SUBDIRS); do \
if test -f $$i/Makefile ; then \
echo making binaries in directory $$i; \
if (cd ./$$i; $(MAKE) binaries); \
then true; else exit 1; fi ; \
else true; fi; \
done
.PHONY: install
install:
@for i in DuMmY $(SUBDIRS); do \
if test -f $$i/Makefile ; then \
echo making install in directory $$i; \
if (cd ./$$i; $(MAKE) install); \
then true; else exit 1; fi ; \
else true; fi; \
done
dependencies:
touch dependencies
all:;
depend:;
includes:;
libraries:;
binaries:;
.PHONY: depend
depend:
@for i in DuMmY $(SUBDIRS); do \
if test -f $$i/Makefile ; then \
echo making depend in directory $$i; \
if (cd ./$$i; $(MAKE) depend); \
then true; else exit 1; fi ; \
else true; fi; \
done
@CLEAN@
@INSTALL_DESCEND@
# Output from LK_CLEAN
GENERIC-MOSTLYCLEAN = *.o lib*.a core Makefile.in2
GENERIC-PURE = Makefile.in configure
GENERIC-DISTCLEAN = *~ .\#* TAGS dependencies Makefile
.PHONY: mostlyclean
mostlyclean: domostlyclean
@for i in DuMmY $(SUBDIRS); do \
if test -f $$i/Makefile ; then \
echo making mostlyclean in directory $$i; \
if (cd ./$$i; $(MAKE) mostlyclean); \
then true; else exit 1; fi ; \
else true; fi; \
done
.PHONY: clean
clean: doclean
@for i in DuMmY $(SUBDIRS); do \
if test -f $$i/Makefile ; then \
echo making clean in directory $$i; \
if (cd ./$$i; $(MAKE) clean); \
then true; else exit 1; fi ; \
else true; fi; \
done
.PHONY: distclean
distclean: dodistclean
@for i in DuMmY $(SUBDIRS); do \
if test -f $$i/Makefile ; then \
echo making distclean in directory $$i; \
if (cd ./$$i; $(MAKE) distclean); \
then true; else exit 1; fi ; \
else true; fi; \
done
.PHONY: realclean
realclean: dorealclean
@for i in DuMmY $(SUBDIRS); do \
if test -f $$i/Makefile ; then \
echo making realclean in directory $$i; \
if (cd ./$$i; $(MAKE) realclean); \
then true; else exit 1; fi ; \
else true; fi; \
done
.PHONY: pure
pure: dopure
@for i in DuMmY $(SUBDIRS); do \
if test -f $$i/Makefile ; then \
echo making pure in directory $$i; \
if (cd ./$$i; $(MAKE) pure); \
then true; else exit 1; fi ; \
else true; fi; \
done
dopure: dorealclean
$(RM) $(GENERIC-PURE)
dorealclean: dodistclean
doinstall:;
dopure: dorealclean;
dorealclean: dodistclean;
dodistclean: doclean
$(RM) $(GENERIC-DISTCLEAN)
doclean: domostlyclean;
doclean: domostlyclean
domostlyclean:
$(RM) $(GENERIC-MOSTLYCLEAN)
# End output from LK_CLEAN
#
# $Id: Makefile.in,v 1.3 1994/02/24 10:38:51 ceder Exp $
# $Id: Makefile.in,v 1.4 1994/03/06 22:57:02 ceder Exp $
# Copyright (C) 1991 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -22,35 +22,186 @@
#
# Please mail bug reports to bug-lyskom@lysator.liu.se.
#
@STDLYSKOM@
# Begin LK_STD
srcdir = @srcdir@
VPATH = @srcdir@
SHELL = /bin/sh
man5dir = \$(prefix)/man/man5\\
man8dir = \$(prefix)/man/man8\\
man5ext = .5\\
man8ext = .8\\
all: libraries
AWK = @AWK@
CC = @CC@
CFLAGS = @CFLAGS@
ALL_CFLAGS = @INCLUDE_CURRENT@ -I@srcdir@ -I@BUILDTOPDIR@/include \
-I@BUILDTOPDIR@/include/server $(DEFS) $(CFLAGS)
DEPENDFLAG = @DEPENDFLAG@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
LEX = @LEX@
MKDIR = mkdir
RANLIB = @RANLIB@
RM = rm -f
SED = @SED@
SYMLINK = @LN_S@
TOUCHLIB = @RANLIB@
YACC = @YACC@