caa7e470fe
This is an update of ocamlnet to its newest version, 3.6. Changes are: * Netsys_sem: a new abstraction for emulating anonymous semaphores on systems that only provide named semaphores, like OS X. All users of semaphores inside Ocamlnet now base on Netsys_sem. * reimplementing Netstring_str for the case the Str engine is used. It is now thread-safe without having to use mutexes. * The default is now -disable-pcre * The module Netstring_pcre has been moved to a library of its own, namely netstring-pcre. It is only installed if -enable-pcre * Nethttp.Header.best_media_type: improved (patch by Christopher Zimmemann) * Netsys_mem.alloc_memory_pages: one can now mark the memory pages as executable * src/netsys/configure: disabling POSIX semaphore check for win32 * Fixes for OpenBSD (by Christopher Zimmermann) * Netcgi connectors (SCGI, AJP, FCGI): unifying the ~sockaddr and ~port arguments. ~port now also assumes a loopback binding. (Suggested by Christopher Zimmermann). * Allowing posix_spawn again for MacOS. It turns out the number of file actions is limited. If we are above the limit, posix_spawn is not used. * Ssl_exts: adding function for returning the fingerprint of a certificate * Https_client: new verify callback for additional certificate checks
46 lines
1.3 KiB
Makefile
46 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.7 2012/08/20 08:11:58 wiz Exp $
|
|
#
|
|
|
|
DISTNAME= ocamlnet-3.6
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://download.camlcity.org/download/
|
|
|
|
MAINTAINER= jaapb@kerguelen.org
|
|
HOMEPAGE= http://projects.camlcity.org/projects/ocamlnet.html
|
|
COMMENT= Library focusing on application-level network protocols (OCaml)
|
|
LICENSE= zlib AND gnu-gpl-v2
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib
|
|
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= -without-nethttpd -without-rpc-auth-dh -disable-gtk2 \
|
|
-disable-tcl -disable-apache -enable-pcre
|
|
USE_TOOLS+= gmake
|
|
BUILD_TARGET= all
|
|
|
|
PLIST_VARS= opt ssl
|
|
.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \
|
|
(${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64")
|
|
BUILD_TARGET+= opt
|
|
PLIST.opt= yes
|
|
.endif
|
|
|
|
SUBPKGDIRS= equeue netcgi2-plex netplex pop rpc-ssl equeue-ssl \
|
|
netclient netshm rpc shell netcamlbox netgssapi \
|
|
netstring rpc-auth-local smtp netcgi2 netmulticore \
|
|
netsys rpc-generator
|
|
|
|
INSTALLATION_DIRS= lib/ocaml/site-lib
|
|
|
|
pre-install:
|
|
.for i in ${SUBPKGDIRS};
|
|
${RM} -rf ${DESTDIR}/${PREFIX}/lib/ocaml/site-lib/${i}
|
|
.endfor
|
|
|
|
.include "options.mk"
|
|
.include "../../devel/pcre-ocaml/buildlink3.mk"
|
|
.include "../../lang/ocaml/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|