Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Jan 2013 19:36:46 GMT
From:      Waitman Gobble <uzimac@da3m0n8t3r.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/175613: New Port: devel/mongo-c-driver C Driver for MongoDB
Message-ID:  <201301261936.r0QJakQl096514@red.freebsd.org>
Resent-Message-ID: <201301261940.r0QJe0GZ030924@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         175613
>Category:       ports
>Synopsis:       New Port: devel/mongo-c-driver C Driver for MongoDB
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 26 19:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Waitman Gobble
>Release:        FreeBSD 9.1-STABLE
>Organization:
Waitman Gobble
>Environment:
FreeBSD kamira.waitman.net 9.1-STABLE FreeBSD 9.1-STABLE #0 r245772M: Tue Jan 22 06:09:00 PST 2013     root@kamira.waitman.net:/usr/obj/usr/src/sys/BURPLEX  amd64

>Description:
New port of Official MongoDB C Driver Development Version (0.7.1)
Compiles with clang or gcc
Thank you

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mongo-c-driver
#	mongo-c-driver/Makefile
#	mongo-c-driver/pkg-descr
#	mongo-c-driver/distinfo
#	mongo-c-driver/files
#	mongo-c-driver/files/patch-env-c
#
echo c - mongo-c-driver
mkdir -p mongo-c-driver > /dev/null 2>&1
echo x - mongo-c-driver/Makefile
sed 's/^X//' >mongo-c-driver/Makefile << 'eed57a36dea3219fa92f84505e6cfe59'
X# Created by: "Waitman Gobble" <uzimac@da3m0n8t3r.com>
X# $FreeBSD$
X# New ports collection makefile for: mongo-c-driver
X# Date created:	26 January 2013
X
XPORTNAME=	mongo-c-driver
XPORTVERSION=	0.7.1
XCATEGORIES=	devel
XMASTER_SITES=	GH
XPKGNAMESUFFIX=	-devel
XDISTNAME=	${GH_ACCOUNT}-${GH_PROJECT}-${PORTVERSION}-0-g${GH_COMMIT}
X
XCOMMENT=	C Driver for MongoDB
X
XUSE_GITHUB=	yes
XGH_ACCOUNT=	mongodb
XGH_PROJECT=	mongo-c-driver
XGH_TAGNAME=	v0.7.1
XGH_COMMIT=	g98826a
X
XWRKSRC=		${WRKDIR}/mongodb-mongo-c-driver-17ff925
XUSE_GMAKE=	yes
X
XUSE_LDCONFIG=	yes
X
XPLIST_FILES=	include/mongo.h \
X		include/bson.h \
X		lib/libmongoc.a \
X		lib/libmongoc.so.0.7 \
X		lib/libmongoc.so.0.7.1 \
X		lib/libmongoc.so \
X		lib/libbson.a \
X		lib/libbson.so.0.7.1 \
X		lib/libbson.so.0.7 \
X		lib/libbson.so
X
X.include <bsd.port.mk>
eed57a36dea3219fa92f84505e6cfe59
echo x - mongo-c-driver/pkg-descr
sed 's/^X//' >mongo-c-driver/pkg-descr << 'cd29dc6d54abdb8179e911a019f2a6d4'
XOfficial Mongo C Driver (Development Version)
X
XMongo (from "humongous") is a high-performance, open source,
Xschema-free, document-oriented database. A common name in the
X"NOSQL" community.
X
XWWW: http://www.mongodb.org/
cd29dc6d54abdb8179e911a019f2a6d4
echo x - mongo-c-driver/distinfo
sed 's/^X//' >mongo-c-driver/distinfo << 'eb6f82422b0714690c7d6ba5f16a6b36'
XSHA256 (mongodb-mongo-c-driver-0.7.1-0-gg98826a.tar.gz) = 6670b50bb4232cc617a114d1320ea97abc55f9570b4ebf53e1e6c22671ffc328
XSIZE (mongodb-mongo-c-driver-0.7.1-0-gg98826a.tar.gz) = 108537
eb6f82422b0714690c7d6ba5f16a6b36
echo c - mongo-c-driver/files
mkdir -p mongo-c-driver/files > /dev/null 2>&1
echo x - mongo-c-driver/files/patch-env-c
sed 's/^X//' >mongo-c-driver/files/patch-env-c << '5de7bf37e1324a413f20ea788a8bad25'
X--- src/env.c.orig	2013-01-26 10:53:37.000000000 -0800
X+++ src/env.c	2013-01-26 10:20:49.000000000 -0800
X@@ -1,3 +1,7 @@
X+#if (defined(__unix__) || defined(unix)) && !defined(USG)
X+#include <sys/param.h>
X+#endif
X+
X #if !defined(MONGO_ENV_STANDARD) && (defined(_WIN32) || defined(_WIN64))
X 
X /* env_win32.c */
X@@ -34,6 +38,7 @@
X # define NI_MAXSERV 32
X #endif
X 
X+
X int mongo_env_close_socket( int socket ) {
X     return closesocket( socket );
X }
X@@ -179,7 +184,7 @@
X }
X 
X 
X-#elif !defined(MONGO_ENV_STANDARD) && (defined(__APPLE__) || defined(__linux) || defined(__unix) || defined(__posix))
X+#elif !defined(MONGO_ENV_STANDARD) && (defined(__APPLE__) || defined(__linux) || defined(__unix) || defined(__posix) || defined(BSD))
X 
X /* env_posix.c */
X 
X@@ -227,7 +232,7 @@
X 
X int mongo_env_write_socket( mongo *conn, const void *buf, size_t len ) {
X     const char *cbuf = buf;
X-#ifdef __APPLE__
X+#if defined (__APPLE__) || defined(BSD)
X     int flags = 0;
X #else
X     int flags = MSG_NOSIGNAL;
X@@ -357,7 +362,7 @@
X             conn->sock = 0;
X             continue;
X         }
X-#if __APPLE__
X+#if __APPLE__ 
X         {
X             int flag = 1;
X             setsockopt( conn->sock, SOL_SOCKET, SO_NOSIGPIPE,
X@@ -448,7 +453,7 @@
X #ifdef _WIN32
X     int flags = 0;
X #else
X-#ifdef __APPLE__
X+#ifdef __APPLE__ || BSD
X     int flags = 0;
X #else
X     int flags = MSG_NOSIGNAL;
5de7bf37e1324a413f20ea788a8bad25
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301261936.r0QJakQl096514>