[Pkg-ocaml-maint-commits] r4466 - in /trunk/packages/ocamlnet/trunk/debian: changelog control etc/ etc/netcgi_apache.conf etc/netcgi_apache.load libapache2-mod-ocamlnet.README.Debian libapache2-mod-ocamlnet.dirs.in libapache2-mod-ocamlnet.install.in

zack at users.alioth.debian.org zack at users.alioth.debian.org
Sat Sep 8 15:27:16 UTC 2007


Author: zack
Date: Sat Sep  8 15:27:16 2007
New Revision: 4466

URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/?sc=1&rev=4466
Log:
* ship a new binary package: "libapache2-mod-ocamlnet" containing the
  modules to access the Apache API and the Apache module mod_netcgi_apache
  that bridges Apache with OCamlnet
* debian/etc/
  - new dir containing the configuration snippets for the mod_netcgi_apache

Added:
    trunk/packages/ocamlnet/trunk/debian/etc/
    trunk/packages/ocamlnet/trunk/debian/etc/netcgi_apache.conf
    trunk/packages/ocamlnet/trunk/debian/etc/netcgi_apache.load
    trunk/packages/ocamlnet/trunk/debian/libapache2-mod-ocamlnet.README.Debian
    trunk/packages/ocamlnet/trunk/debian/libapache2-mod-ocamlnet.dirs.in
    trunk/packages/ocamlnet/trunk/debian/libapache2-mod-ocamlnet.install.in
Modified:
    trunk/packages/ocamlnet/trunk/debian/changelog
    trunk/packages/ocamlnet/trunk/debian/control

Modified: trunk/packages/ocamlnet/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/ocamlnet/trunk/debian/changelog?rev=4466&op=diff
==============================================================================
--- trunk/packages/ocamlnet/trunk/debian/changelog (original)
+++ trunk/packages/ocamlnet/trunk/debian/changelog Sat Sep  8 15:27:16 2007
@@ -1,11 +1,14 @@
 ocamlnet (2.2.8.1-2) UNRELEASED; urgency=low
 
   * build the apache connector (closes: #430970)
+  * ship a new binary package: "libapache2-mod-ocamlnet" containing the
+    modules to access the Apache API and the Apache module mod_netcgi_apache
+    that bridges Apache with OCamlnet
   * debian/control
     - add build deps on apache2-mpm-worker and apache2-prefork-dev to build
       the Apache connector
-
-  see debian/TODO ...
+  * debian/etc/
+    - new dir containing the configuration snippets for the mod_netcgi_apache
 
  -- Stefano Zacchiroli <zack at debian.org>  Sat, 08 Sep 2007 14:52:00 +0200
 

Modified: trunk/packages/ocamlnet/trunk/debian/control
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/ocamlnet/trunk/debian/control?rev=4466&op=diff
==============================================================================
--- trunk/packages/ocamlnet/trunk/debian/control (original)
+++ trunk/packages/ocamlnet/trunk/debian/control Sat Sep  8 15:27:16 2007
@@ -245,6 +245,39 @@
  This package contains the development stuff you need to use the
  nethttpd library in your programs.
 
+Package: libapache2-mod-ocamlnet
+Architecture: any
+Section: net
+Depends: apache2.2-common, libocamlnet-ocaml-dev (= ${binary:Version}), ${shlibds:Depends}, ${misc:Depends}
+Description: OCaml application-level Internet libraries - netcgi2 Apache2 connector
+ Ocamlnet is a collection of OCaml libraries focusing focus on
+ application-level Internet protocols and conventions.
+ .
+ Ocamlnet consists of the following libraries:
+  * netstring: processing of strings that occur in network context
+  * netcgi1 and netcgi2: portable web applications
+  * nethttpd: is a web server component (HTTP server implementation)
+  * netplex: generic server framework
+  * rpc: OncRPC implementation
+  * netclient: clients for HTTP, FTP, and Telnet
+  * equeue: event queue used for many protocol implementations
+  * shell: external commands invocation
+  * netshm: shared memory for IPC purposes
+  * netsys: bindings for system functions
+  * smtp and pop: two further client implementations
+ .
+ A number of ideas and concepts are used throughout the libraries:
+  * netchannels are a way to abstract sequential I/O channels
+  * event queues provided by equeue and unixqueue make asynchronous
+    protocol interpreters possible
+ .
+  Homepage: http://ocamlnet.sourceforge.net/
+ .
+ This package contains the connector between Apache 2 and netcgi2. The
+ connector comes as an Apache 2 module and an OCaml library to access the
+ Apache API. Using the connector you can write web application in OCaml and
+ have Apache serves them directly as OCaml compiled modules.
+
 Package: libocamlnet-ocaml-doc
 Architecture: all
 Section: doc

Added: trunk/packages/ocamlnet/trunk/debian/etc/netcgi_apache.conf
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/ocamlnet/trunk/debian/etc/netcgi_apache.conf?rev=4466&op=file
==============================================================================
--- trunk/packages/ocamlnet/trunk/debian/etc/netcgi_apache.conf (added)
+++ trunk/packages/ocamlnet/trunk/debian/etc/netcgi_apache.conf Sat Sep  8 15:27:16 2007
@@ -1,0 +1,24 @@
+
+# To load extra libraries ("y/x.cma" is relative to the OCaml standard library
+# directory, see netcgi_apache.load for examples of this):
+#
+# NetcgiLoad y/x.cma
+
+# To telll apache that scripts available at some location have to be handled by
+# netcgi_apache module:
+#
+# <Location /caml-bin>
+#   SetHandler ocaml-bytecode
+#   NetcgiHandler Netcgi_apache.bytecode
+#   Options ExecCGI
+#   Allow from all
+# </Location>
+#
+# Or to do the same specifying that some extensions have to be handled by
+# netcgi_apache:
+# 
+# NetcgiHandler Netcgi_apache.bytecode
+# AddHandler ocaml-bytecode .cma
+
+# See `ocamlc -where`/netcgi_apache/netcgi_apache.mli for more information.
+

Added: trunk/packages/ocamlnet/trunk/debian/etc/netcgi_apache.load
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/ocamlnet/trunk/debian/etc/netcgi_apache.load?rev=4466&op=file
==============================================================================
--- trunk/packages/ocamlnet/trunk/debian/etc/netcgi_apache.load (added)
+++ trunk/packages/ocamlnet/trunk/debian/etc/netcgi_apache.load Sat Sep  8 15:27:16 2007
@@ -1,0 +1,7 @@
+LoadModule netcgi_module /usr/lib/apache2/modules/mod_netcgi_apache.so
+NetcgiLoad pcre/pcre.cma
+NetcgiLoad netsys/netsys.cma
+NetcgiLoad netstring/netstring.cma
+NetcgiLoad str.cma
+NetcgiLoad netcgi2/netcgi.cma
+NetcgiLoad netcgi2-apache/netcgi_apache.cma

Added: trunk/packages/ocamlnet/trunk/debian/libapache2-mod-ocamlnet.README.Debian
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/ocamlnet/trunk/debian/libapache2-mod-ocamlnet.README.Debian?rev=4466&op=file
==============================================================================
--- trunk/packages/ocamlnet/trunk/debian/libapache2-mod-ocamlnet.README.Debian (added)
+++ trunk/packages/ocamlnet/trunk/debian/libapache2-mod-ocamlnet.README.Debian Sat Sep  8 15:27:16 2007
@@ -1,0 +1,18 @@
+Netcgi Apache "mod" connector for Debian
+========================================
+
+"libapache2-mod-ocamlnet" ships the Apache module "mod_netcgi_apache", a bridge
+between Apache and OCamlnet.
+
+The module is configurable as other Apache modules, namely via the files
+/etc/apache2/mods-available/netcgi_apache.load and
+/etc/apache2/mods-available/netcgi_apache.conf and via the a2enmod / a2dismod
+tools; see the corresponding manpages for more information about the latter
+tools.
+
+More information on how to configure the Apache module and how to use the
+Netcgi2 connector can be found in `ocamlc
+-where`/netcgi_apache/netcgi_apache.mli (which at the time of writing expands
+to /usr/lib/ocaml/3.10/netcgi_apache/netcgi_apache.mli).
+
+ -- Stefano Zacchiroli <zack at debian.org>  Sat, 08 Sep 2007 17:18:13 +0200

Added: trunk/packages/ocamlnet/trunk/debian/libapache2-mod-ocamlnet.dirs.in
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/ocamlnet/trunk/debian/libapache2-mod-ocamlnet.dirs.in?rev=4466&op=file
==============================================================================
--- trunk/packages/ocamlnet/trunk/debian/libapache2-mod-ocamlnet.dirs.in (added)
+++ trunk/packages/ocamlnet/trunk/debian/libapache2-mod-ocamlnet.dirs.in Sat Sep  8 15:27:16 2007
@@ -1,0 +1,3 @@
+etc/apache2/mods-available
+usr/lib/apache2/modules
+ at OCamlStdlibDir@

Added: trunk/packages/ocamlnet/trunk/debian/libapache2-mod-ocamlnet.install.in
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/ocamlnet/trunk/debian/libapache2-mod-ocamlnet.install.in?rev=4466&op=file
==============================================================================
--- trunk/packages/ocamlnet/trunk/debian/libapache2-mod-ocamlnet.install.in (added)
+++ trunk/packages/ocamlnet/trunk/debian/libapache2-mod-ocamlnet.install.in Sat Sep  8 15:27:16 2007
@@ -1,0 +1,3 @@
+debian/tmp/usr/lib/ocaml/@OCamlABI@/netcgi_apache		@OCamlStdlibDir@
+src/netcgi2-apache/mod_netcgi_apache.so				usr/lib/apache2/modules
+debian/etc/netcgi_apache.*					etc/apache2/mods-available




More information about the Pkg-ocaml-maint-commits mailing list