mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Official Mongo C Driver (Development Version)
PR: ports/175613 Submitted by: Waitman Gobble <uzimac@da3m0n8t3r.com>
This commit is contained in:
parent
de1aabf2c5
commit
14f11a7a29
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=322352
4 changed files with 99 additions and 0 deletions
36
devel/mongo-c-driver/Makefile
Normal file
36
devel/mongo-c-driver/Makefile
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
# Created by: "Waitman Gobble" <uzimac@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@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>
|
2
devel/mongo-c-driver/distinfo
Normal file
2
devel/mongo-c-driver/distinfo
Normal file
|
@ -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
|
54
devel/mongo-c-driver/files/patch-env-c
Normal file
54
devel/mongo-c-driver/files/patch-env-c
Normal file
|
@ -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;
|
7
devel/mongo-c-driver/pkg-descr
Normal file
7
devel/mongo-c-driver/pkg-descr
Normal file
|
@ -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/
|
Loading…
Add table
Reference in a new issue