Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add new port droplet request by gilles@
- Loading branch information
1 parent
68f2d5e
commit 998656b
Showing
7 changed files
with
183 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# $OpenBSD$ | ||
|
||
SHARED_ONLY= Yes | ||
|
||
CATEGORIES= devel | ||
COMMENT= high perfomance Cloud Storage client library | ||
|
||
VERSION= 1.1 | ||
DISTNAME= droplet-${VERSION} | ||
HOMEPAGE= https://github.com/scality/Droplet | ||
|
||
SHARED_LIBS= droplet 0.0 #0.0 | ||
|
||
MAINTAINER= Rafael Sadowski <rafael@sizeofvoid.org> | ||
|
||
# BSD | ||
PERMIT_PACKAGE_CDROM= Yes | ||
PERMIT_PACKAGE_FTP= Yes | ||
PERMIT_DISTFILES_CDROM= Yes | ||
PERMIT_DISTFILES_FTP= Yes | ||
|
||
WANTLIB= ssl json xml2 pthread crypto z iconv m c | ||
|
||
MASTER_SITES= http://www.sizeofvoid.org/pub/OpenBSD/distfiles/ | ||
|
||
WRKSRC= ${WRKDIR}/scality-Droplet-e6692cc | ||
WRKDIST= ${WRKSRC} | ||
MODULES= devel/gettext | ||
BUILD_DEPENDS= ${MODGNU_AUTOCONF_DEPENDS} \ | ||
${MODGNU_AUTOMAKE_DEPENDS} \ | ||
devel/json-c | ||
|
||
LIB_DEPENDS= textproc/libxml \ | ||
devel/json-c | ||
|
||
USE_LIBTOOL= Yes | ||
AUTOCONF_VERSION= 2.68 | ||
AUTOMAKE_VERSION= 1.11 | ||
CONFIGURE_STYLE= autoconf automake gnu | ||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ | ||
LDFLAGS="-L${LOCALBASE}/lib" | ||
post-patch: | ||
@cd ${WRKBUILD} && env AUTOCONF_VERSION=2.68 AUTOMAKE_VERSION=1.11 \ | ||
./autogen.sh | ||
|
||
.include <bsd.port.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
MD5 (droplet-1.1.tar.gz) = MXOvFlCtwgzMWCNhJT4sjg== | ||
RMD160 (droplet-1.1.tar.gz) = oyvhLeTSs4cHrnULg2xh0edYiCE= | ||
SHA1 (droplet-1.1.tar.gz) = KPP5ojgYQ88M2xAkCcAH99zhJb0= | ||
SHA256 (droplet-1.1.tar.gz) = Jd2ZGZaQlIIEzWfciWefzWwFxF2mF3ngErhSaGI2fy4= | ||
SIZE (droplet-1.1.tar.gz) = 90046 |
10 changes: 10 additions & 0 deletions
10
devel/droplet/patches/patch-libdroplet_include_droplet_conn_h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
$OpenBSD$ | ||
--- libdroplet/include/droplet/conn.h.orig Thu Dec 15 14:12:57 2011 | ||
+++ libdroplet/include/droplet/conn.h Thu Dec 15 14:13:09 2011 | ||
@@ -85,5 +85,5 @@ void dpl_conn_release(dpl_conn_t *conn); | ||
void dpl_conn_terminate(dpl_conn_t *conn); | ||
dpl_status_t dpl_conn_pool_init(dpl_ctx_t *ctx); | ||
void dpl_conn_pool_destroy(dpl_ctx_t *ctx); | ||
-dpl_status_t dpl_conn_writev_all(dpl_conn_t *conn, struct iovec *iov, int n_iov, int timeout); | ||
+//dpl_status_t dpl_conn_writev_all(dpl_conn_t *conn, struct iovec *iov, int n_iov, int timeout); | ||
#endif |
39 changes: 39 additions & 0 deletions
39
devel/droplet/patches/patch-libdroplet_include_droplet_utils_h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
$OpenBSD$ | ||
--- libdroplet/include/droplet/utils.h.orig Thu Dec 15 14:47:38 2011 | ||
+++ libdroplet/include/droplet/utils.h Thu Dec 15 14:48:42 2011 | ||
@@ -48,6 +48,17 @@ | ||
# define HAVE_CANONICALIZE_FILE_NAME | ||
#endif | ||
|
||
+/* OpenBSD gcc */ | ||
+#if defined(__OpenBSD__) | ||
+#include <sys/types.h> | ||
+#include <sys/uio.h> | ||
+#include <unistd.h> | ||
+#if _BYTE_ORDER == _LITTLE_ENDIAN | ||
+#define __BYTE_ORDER __LITTLE_ENDIAN | ||
+#else | ||
+#define __BYTE_ORDER __BIG_ENDIAN | ||
+#endif | ||
+#endif | ||
|
||
/* | ||
* endianness | ||
@@ -73,7 +84,7 @@ | ||
#define __BYTE_ORDER __BIG_ENDIAN__ | ||
#endif | ||
|
||
-#else | ||
+#elif !defined(__OpenBSD__) | ||
// linux case | ||
# include <endian.h> | ||
#endif | ||
@@ -86,7 +97,7 @@ | ||
#define le32toh OSSwapLittleToHostInt32 | ||
#define htole32 OSSwapHostToLittleInt32 | ||
#define bswap_32 OSSwapInt32 | ||
-#else | ||
+#elif !defined(__OpenBSD__) | ||
//defines htonll() and ntohll() natively | ||
# include <byteswap.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
$OpenBSD$ | ||
--- libdroplet/src/utils.c.orig Fri Dec 16 13:57:00 2011 | ||
+++ libdroplet/src/utils.c Fri Dec 16 13:58:47 2011 | ||
@@ -72,6 +72,14 @@ gettid() | ||
{ | ||
return syscall(SYS_gettid); | ||
} | ||
+#elif defined(__OpenBSD__) | ||
+#include <sys/syscall.h> | ||
+#include <unistd.h> | ||
+pid_t | ||
+gettid() | ||
+{ | ||
+ return syscall(SYS_getpid); | ||
+} | ||
|
||
#else | ||
#include <syscall.h> | ||
@@ -110,6 +118,17 @@ linux_gethostbyname_r(const char *name, | ||
return 0; | ||
|
||
#elif defined(__APPLE__) && defined(__MACH__) || defined(__ellcc__ ) | ||
+ | ||
+ struct hostent *resultp; | ||
+ | ||
+ resultp = gethostbyname(name); | ||
+ if (NULL == resultp) | ||
+ return 1; | ||
+ | ||
+ *result = resultp; | ||
+ | ||
+ return 0; | ||
+#elif defined(__OpenBSD__) | ||
|
||
struct hostent *resultp; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Scality Droplet is a high perfomance Cloud Storage client library | ||
that provides a set of high-level features |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
@comment $OpenBSD$ | ||
include/droplet-1.0/ | ||
include/droplet-1.0/droplet/ | ||
include/droplet-1.0/droplet.h | ||
include/droplet-1.0/droplet/backend.h | ||
include/droplet-1.0/droplet/cdmi/ | ||
include/droplet-1.0/droplet/cdmi/backend.h | ||
include/droplet-1.0/droplet/cdmi/cdmi.h | ||
include/droplet-1.0/droplet/cdmi/replyparser.h | ||
include/droplet-1.0/droplet/cdmi/reqbuilder.h | ||
include/droplet-1.0/droplet/conn.h | ||
include/droplet-1.0/droplet/converters.h | ||
include/droplet-1.0/droplet/dict.h | ||
include/droplet-1.0/droplet/httpreply.h | ||
include/droplet-1.0/droplet/httprequest.h | ||
include/droplet-1.0/droplet/id.h | ||
include/droplet-1.0/droplet/ntinydb.h | ||
include/droplet-1.0/droplet/pricing.h | ||
include/droplet-1.0/droplet/profile.h | ||
include/droplet-1.0/droplet/req.h | ||
include/droplet-1.0/droplet/rest.h | ||
include/droplet-1.0/droplet/s3/ | ||
include/droplet-1.0/droplet/s3/backend.h | ||
include/droplet-1.0/droplet/s3/replyparser.h | ||
include/droplet-1.0/droplet/s3/reqbuilder.h | ||
include/droplet-1.0/droplet/s3/s3.h | ||
include/droplet-1.0/droplet/sbuf.h | ||
include/droplet-1.0/droplet/srest/ | ||
include/droplet-1.0/droplet/srest/backend.h | ||
include/droplet-1.0/droplet/srest/replyparser.h | ||
include/droplet-1.0/droplet/srest/reqbuilder.h | ||
include/droplet-1.0/droplet/srest/srest.h | ||
include/droplet-1.0/droplet/srws/ | ||
include/droplet-1.0/droplet/srws/backend.h | ||
include/droplet-1.0/droplet/srws/replyparser.h | ||
include/droplet-1.0/droplet/srws/reqbuilder.h | ||
include/droplet-1.0/droplet/srws/srws.h | ||
include/droplet-1.0/droplet/utils.h | ||
include/droplet-1.0/droplet/vec.h | ||
include/droplet-1.0/droplet/vfs.h | ||
include/droplet-1.0/dropletp.h | ||
lib/libdroplet.a | ||
lib/libdroplet.la | ||
@lib lib/libdroplet.so.${LIBdroplet_VERSION} | ||
lib/pkgconfig/droplet-1.0.pc |