svn commit: r322352 - in head/devel/mongo-c-driver: . files
Wesley Shields
wxs at FreeBSD.org
Fri Jul 5 19:43:37 UTC 2013
Author: wxs
Date: Fri Jul 5 19:43:36 2013
New Revision: 322352
URL: http://svnweb.freebsd.org/changeset/ports/322352
Log:
Official Mongo C Driver (Development Version)
PR: ports/175613
Submitted by: Waitman Gobble <uzimac at da3m0n8t3r.com>
Added:
head/devel/mongo-c-driver/
head/devel/mongo-c-driver/Makefile (contents, props changed)
head/devel/mongo-c-driver/distinfo (contents, props changed)
head/devel/mongo-c-driver/files/
head/devel/mongo-c-driver/files/patch-env-c (contents, props changed)
head/devel/mongo-c-driver/pkg-descr (contents, props changed)
Added: head/devel/mongo-c-driver/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/mongo-c-driver/Makefile Fri Jul 5 19:43:36 2013 (r322352)
@@ -0,0 +1,36 @@
+# Created by: "Waitman Gobble" <uzimac at da3m0n8t3r.com>
+# $FreeBSD$
+
+PORTNAME= mongo-c-driver
+PORTVERSION= 0.7.1
+CATEGORIES= devel
+MASTER_SITES= GH
+PKGNAMESUFFIX= -devel
+DISTNAME= ${GH_ACCOUNT}-${GH_PROJECT}-${PORTVERSION}-0-g${GH_COMMIT}
+
+MAINTAINER= wxs at FreeBSD.org
+COMMENT= C Driver for MongoDB
+
+USE_GITHUB= yes
+GH_ACCOUNT= mongodb
+GH_PROJECT= mongo-c-driver
+GH_TAGNAME= v0.7.1
+GH_COMMIT= g98826a
+
+WRKSRC= ${WRKDIR}/mongodb-mongo-c-driver-17ff925
+USE_GMAKE= yes
+
+USE_LDCONFIG= yes
+
+PLIST_FILES= include/mongo.h \
+ include/bson.h \
+ lib/libmongoc.a \
+ lib/libmongoc.so.0.7 \
+ lib/libmongoc.so.0.7.1 \
+ lib/libmongoc.so \
+ lib/libbson.a \
+ lib/libbson.so.0.7.1 \
+ lib/libbson.so.0.7 \
+ lib/libbson.so
+
+.include <bsd.port.mk>
Added: head/devel/mongo-c-driver/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/mongo-c-driver/distinfo Fri Jul 5 19:43:36 2013 (r322352)
@@ -0,0 +1,2 @@
+SHA256 (mongodb-mongo-c-driver-0.7.1-0-gg98826a.tar.gz) = 6670b50bb4232cc617a114d1320ea97abc55f9570b4ebf53e1e6c22671ffc328
+SIZE (mongodb-mongo-c-driver-0.7.1-0-gg98826a.tar.gz) = 108537
Added: head/devel/mongo-c-driver/files/patch-env-c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/mongo-c-driver/files/patch-env-c Fri Jul 5 19:43:36 2013 (r322352)
@@ -0,0 +1,54 @@
+--- src/env.c.orig 2013-01-26 10:53:37.000000000 -0800
++++ src/env.c 2013-01-26 10:20:49.000000000 -0800
+@@ -1,3 +1,7 @@
++#if (defined(__unix__) || defined(unix)) && !defined(USG)
++#include <sys/param.h>
++#endif
++
+ #if !defined(MONGO_ENV_STANDARD) && (defined(_WIN32) || defined(_WIN64))
+
+ /* env_win32.c */
+@@ -34,6 +38,7 @@
+ # define NI_MAXSERV 32
+ #endif
+
++
+ int mongo_env_close_socket( int socket ) {
+ return closesocket( socket );
+ }
+@@ -179,7 +184,7 @@
+ }
+
+
+-#elif !defined(MONGO_ENV_STANDARD) && (defined(__APPLE__) || defined(__linux) || defined(__unix) || defined(__posix))
++#elif !defined(MONGO_ENV_STANDARD) && (defined(__APPLE__) || defined(__linux) || defined(__unix) || defined(__posix) || defined(BSD))
+
+ /* env_posix.c */
+
+@@ -227,7 +232,7 @@
+
+ int mongo_env_write_socket( mongo *conn, const void *buf, size_t len ) {
+ const char *cbuf = buf;
+-#ifdef __APPLE__
++#if defined (__APPLE__) || defined(BSD)
+ int flags = 0;
+ #else
+ int flags = MSG_NOSIGNAL;
+@@ -357,7 +362,7 @@
+ conn->sock = 0;
+ continue;
+ }
+-#if __APPLE__
++#if __APPLE__
+ {
+ int flag = 1;
+ setsockopt( conn->sock, SOL_SOCKET, SO_NOSIGPIPE,
+@@ -448,7 +453,7 @@
+ #ifdef _WIN32
+ int flags = 0;
+ #else
+-#ifdef __APPLE__
++#ifdef __APPLE__ || BSD
+ int flags = 0;
+ #else
+ int flags = MSG_NOSIGNAL;
Added: head/devel/mongo-c-driver/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/mongo-c-driver/pkg-descr Fri Jul 5 19:43:36 2013 (r322352)
@@ -0,0 +1,7 @@
+Official Mongo C Driver (Development Version)
+
+Mongo (from "humongous") is a high-performance, open source,
+schema-free, document-oriented database. A common name in the
+"NOSQL" community.
+
+WWW: http://www.mongodb.org/
More information about the svn-ports-head
mailing list