Added compilation instructions to README.

Pascal J. Bourguignon [2015-08-07 03:11]
Added compilation instructions to README.
Filename
ddns/Makefile
ddns/README
diff --git a/ddns/Makefile b/ddns/Makefile
index 5f6ce72..9e03672 100644
--- a/ddns/Makefile
+++ b/ddns/Makefile
@@ -38,16 +38,23 @@ CCL_EVAL       =  --eval
 CCL_LOAD       =  --load

 #CLISP          = /usr/local/bin/clisp
-CLISP          = /data/languages/clisp/bin/clisp
+#CLISP          = /data/languages/clisp/bin/clisp
+CLISP          = /usr/bin/clisp
 CLISP_LOAD     =
-CLISP_EVAL     = -repl -x
+CLISP_EVAL     = --quiet -repl -x

 LISP           = $(CLISP)
 LOAD           = $(CLISP_LOAD)
 EVAL           = $(CLISP_EVAL)


-all: server client
+all: compile
+
+compile:server client
+install:compile
+	install -m 755 ddns-server /usr/local/sbin/
+	install -m 755 ddns-client /usr/local/sbin/
+

 # server:
 # 	$(LISP) $(LOAD) generate-server.lisp
@@ -55,9 +62,9 @@ all: server client
 # 	$(LISP) $(LOAD) generate-client.lisp

 server:
-	$(CLISP) -ansi -x '(load "generate-server.lisp")'
+	$(CLISP) --quiet -ansi -x '(load "generate-server.lisp")'
 client:
-	$(CLISP) -ansi -x '(load "generate-client.lisp")'
+	$(CLISP) --quiet -ansi -x '(load "generate-client.lisp")'

 variables:
 	which clisp
diff --git a/ddns/README b/ddns/README
index 994b23c..5a05e77 100644
--- a/ddns/README
+++ b/ddns/README
@@ -1,12 +1,41 @@
-Current configuration:
+.. comment: -*- mode:rst;coding:utf-8 -*-
+
+Current configuration
+================================================================================

 On kuiper, /usr/local/sbin/ddns-client is run from root
 /etc/fcron/fcrontab.
-/root/dnskeys/

-5  *    * * *   root    /usr/local/sbin/ddns-client -- kuiper
+- /root/dnskeys/
+
+::
+   5  *    * * *   root    /usr/local/sbin/ddns-client -- kuiper


-On voyager, /home/ddns/bin/ddns-server is run from ddns in a screen
+On hubble, /home/ddns/bin/ddns-server is run from ddns in a screen
 launched from /etc/rc.local
-/home/ddns/dnskeys/
+
+- /home/ddns/dnskeys/
+
+Compilation
+================================================================================
+
+- clisp is used to compile the programs.
+  http://clisp.cons.org/
+
+- quicklisp is required to compile and donwload dependencies. If it's
+  not already installed in the user account compiling the program,
+  then you may install it with:  ::
+
+    pushd ~
+    wget https://beta.quicklisp.org/quicklisp.lisp
+    sum=( $(sha256sum quicklisp.lisp) )
+    if [ ${sum[0]} != 4a7a5c2aebe0716417047854267397e24a44d0cce096127411e9ce9ccfeb2c17 ] ; then
+       echo 'BAD QUICKLISP!'
+    fi
+    yes|clisp -norc -x '(load "quicklisp.lisp")' -x '(quicklisp-quickstart:install)' -x '(ql:add-to-init-file)'
+    popd
+
+- then you may compile the programs, and install them in /usr/local/sbin/: ::
+
+    make && make install
ViewGit