Bug 175613 - New Port: devel/mongo-c-driver C Driver for MongoDB
Summary: New Port: devel/mongo-c-driver C Driver for MongoDB
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Wesley Shields
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-26 19:40 UTC by Waitman Gobble
Modified: 2013-07-05 20:50 UTC (History)
0 users

See Also:


Attachments
file.shar (3.73 KB, text/plain)
2013-01-26 19:40 UTC, Waitman Gobble
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Waitman Gobble 2013-01-26 19:40:00 UTC
New port of Official MongoDB C Driver Development Version (0.7.1)
Compiles with clang or gcc
Thank you

Fix: Patch attached with submission follows:
Comment 1 Wesley Shields freebsd_committer freebsd_triage 2013-01-28 17:19:04 UTC
Responsible Changed
From-To: freebsd-ports-bugs->wxs

I'll take it.
Comment 2 Wesley Shields freebsd_committer freebsd_triage 2013-07-05 20:43:44 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-07-05 20:44:01 UTC
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@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@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>

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/
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"