head	1.2;
access;
symbols
	RELEASE_7_1_0:1.1
	RELEASE_6_4_0:1.1
	RELEASE_5_EOL:1.1
	RELEASE_7_0_0:1.1
	RELEASE_6_3_0:1.1
	PRE_XORG_7:1.1;
locks; strict;
comment	@# @;


1.2
date	2009.01.30.04.56.00;	author beech;	state dead;
branches;
next	1.1;

1.1
date	2007.04.23.10.06.57;	author miwi;	state Exp;
branches;
next	;


desc
@@


1.2
log
@- Update to 1.1.0

- Changelog at http://www.ocsigen.org/install/ocsigen

PR:		ports/130508
Submitted by:	Jaap Boender <jaapb@@kerguelen.org> (maintainer)
@
text
@--- configure.orig	Thu Mar 15 12:27:54 2007
+++ configure	Mon Apr 23 10:17:10 2007
@@@@ -51,10 +51,13 @@@@
     libdir="/usr/local/lib"
     mandir="/usr/local/share/man/man1/"
     docdir="/usr/share/doc"
+    sysconfdir="/etc"
     name="ocsigen"
     prefix="/"
     ocsigen_user="www-data"
     ocsigen_group="www-data"
+    staticpagesdir="/var/www/$name"
+    uploaddir="/tmp"
 }
 
 set_defaults
@@@@ -132,6 +135,9 @@@@
 	echo "    --libdir $libdir"
 	echo "    --mandir $mandir"
 	echo "    --docdir $docdir"
+	echo "    --sysconfdir $sysconfdir"
+	echo "    --staticpagesdir $staticpagesdir"
+	echo "    --uploaddir $uploaddir"
 	echo "    --name $name"
 }
 
@@@@ -174,6 +180,15 @@@@
 --docdir dir
 	Install documentation in this directory
 
+--sysconfdir dir
+	Install system configuration files in this directory
+
+--staticpagesdir dir
+	Serve static pages from this directory
+
+--uploaddir dir
+	Put uploaded files in this directory
+
 --name name
 	The name of the server (and directory for the modules)
 
@@@@ -266,6 +281,21 @@@@
 			shift
 			shift
 			;;
+		--sysconfdir)
+			sysconfdir="$2"
+			shift
+			shift
+			;;
+		--staticpagesdir)
+			staticpagesdir="$2"
+			shift
+			shift
+			;;
+		--uploaddir)
+			uploaddir="$2"
+			shift
+			shift
+			;;
 		--name)
 			name="$2"
 			shift
@@@@ -293,6 +323,17 @@@@
 
 
 ######################################################################
+# Check camlp4o
+printf "%s" "Finding out which camlp4o to use... "
+if which camlp4o.byte >/dev/null 2>/dev/null; then
+    echo "camlp4o.byte"
+    camlp4o="camlp4o.byte"
+else
+    echo "camlp4o"
+    camlp4o="camlp4o" 
+fi
+
+######################################################################
 # Check ocamlfind
 
 printf "%s" "Checking for findlib... "
@@@@ -322,9 +363,10 @@@@
 ######################################################################
 # Check whether OCaml version is > 3.9
 version=`ocamlc -version`
-ocamlversion=`n1=${version:0:1}; \
-              n2=${version:2:2}; \
-              n3=${version:5}; \
+ocamlversion=`n1=${version%%.[0-9][0-9].[0-9]}; \
+              tail=${version##[0-9].}; \
+              n2=${tail%%.[0-9]}; \
+              n3=${tail##[0-9][0-9].}; \
               if [ $n1 = "3" ] && [ $n2 -le 9 ]; then \
                 echo "OLD"; \
               else \
@@@@ -380,6 +422,7 @@@@
 # ocamlfind will choose automatically the compiler.
 OCAMLFIND=ocamlfind
 CAMLP4=camlp4
+CAMLP4O="$camlp4o"
 CAMLLEX=ocamllex
 CAMLYACC=ocamlyacc
 CAMLCNAME=ocamlc
@@@@ -429,13 +472,13 @@@@
 LOGDIR = /var/log/\$(OCSIGENNAME)
 
 # Config files:
-CONFIGDIR = /etc/\$(OCSIGENNAME)
+CONFIGDIR = $sysconfdir
 
 # Where to put static pages:
-STATICPAGESDIR = /var/www/\$(OCSIGENNAME)
+STATICPAGESDIR = $staticpagesdir
 
 # Default directory for file upload:
-UPLOADDIR = /tmp
+UPLOADDIR = $uploaddir
 
 # Where to put Ocsigen documentation:
 DOCDIR = $docdir/\$(OCSIGENNAME)
@


1.1
log
@Ocsigen is a web programming framework for OCaml. It can be used as a web
server, serving static pages, but it is also possible to implement entire
web sites as OCaml modules.

WWW: http://www.ocsigen.org

PR:		ports/111759
Submitted by:	Jaap Boender <jaapb at kerguelen.org>
@
text
@@

