From owner-svn-ports-head@freebsd.org Fri May 24 14:49:31 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 63E9D15AD718; Fri, 24 May 2019 14:49:31 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 06E5169EA5; Fri, 24 May 2019 14:49:31 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D212E1E2EA; Fri, 24 May 2019 14:49:30 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x4OEnUbV025024; Fri, 24 May 2019 14:49:30 GMT (envelope-from swills@FreeBSD.org) Received: (from swills@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x4OEnSIC025010; Fri, 24 May 2019 14:49:28 GMT (envelope-from swills@FreeBSD.org) Message-Id: <201905241449.x4OEnSIC025010@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: swills set sender to swills@FreeBSD.org using -f From: Steve Wills Date: Fri, 24 May 2019 14:49:28 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r502472 - in head/devel: . libcdb libcdb/files X-SVN-Group: ports-head X-SVN-Commit-Author: swills X-SVN-Commit-Paths: in head/devel: . libcdb libcdb/files X-SVN-Commit-Revision: 502472 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 06E5169EA5 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.97)[-0.972,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 May 2019 14:49:31 -0000 Author: swills Date: Fri May 24 14:49:28 2019 New Revision: 502472 URL: https://svnweb.freebsd.org/changeset/ports/502472 Log: devel/libcdb: create port The NetBSD's constant database (cdb) library provides a space efficient key-value database based on perfect hashing, thus guaranteeing the O(1) lookup time. The database preserves the key order. WWW: https://github.com/rmind/libcdb While be used by npf port Added: head/devel/libcdb/ head/devel/libcdb/Makefile (contents, props changed) head/devel/libcdb/distinfo (contents, props changed) head/devel/libcdb/files/ head/devel/libcdb/files/patch-Makefile (contents, props changed) head/devel/libcdb/files/patch-bitops.h (contents, props changed) head/devel/libcdb/files/patch-cdb__impl.h (contents, props changed) head/devel/libcdb/files/patch-cdbr.c (contents, props changed) head/devel/libcdb/files/patch-cdbw.c (contents, props changed) head/devel/libcdb/files/patch-mi__vector__hash.c (contents, props changed) head/devel/libcdb/pkg-descr (contents, props changed) head/devel/libcdb/pkg-plist (contents, props changed) Modified: head/devel/Makefile (contents, props changed) Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Fri May 24 14:48:43 2019 (r502471) +++ head/devel/Makefile Fri May 24 14:49:28 2019 (r502472) @@ -1118,6 +1118,7 @@ SUBDIR += libburn SUBDIR += libcbor SUBDIR += libccid + SUBDIR += libcdb SUBDIR += libcfg SUBDIR += libcfu SUBDIR += libchipcard Added: head/devel/libcdb/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/libcdb/Makefile Fri May 24 14:49:28 2019 (r502472) @@ -0,0 +1,22 @@ +# $FreeBSD$ + +PORTNAME= libcdb +PORTVERSION= g2019052401 +CATEGORIES= devel + +MAINTAINER= swills@FreeBSD.org +COMMENT= Constant database library + +USES= gmake libtool:build + +USE_GITHUB= yes +GH_ACCOUNT= rmind +GH_PROJECT= libcdb +GH_TAGNAME= 1d3440d +WRKSRC_SUBDIR= src +USE_LDCONFIG= yes +MAKE_ENV= DESTDIR=${STAGEDIR}${PREFIX} \ + INCDIR=${LOCALBASE}/include \ + LIBDIR=${LOCALBASE}/lib + +.include Added: head/devel/libcdb/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/libcdb/distinfo Fri May 24 14:49:28 2019 (r502472) @@ -0,0 +1,3 @@ +TIMESTAMP = 1558684530 +SHA256 (rmind-libcdb-g2019052401-1d3440d_GH0.tar.gz) = 0045b0a0a9c41bd5c8229c8385691a4ec31959943b86047f0ba759a2f0afe3a0 +SIZE (rmind-libcdb-g2019052401-1d3440d_GH0.tar.gz) = 15090 Added: head/devel/libcdb/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/libcdb/files/patch-Makefile Fri May 24 14:49:28 2019 (r502472) @@ -0,0 +1,14 @@ +--- Makefile.orig 2018-06-11 23:57:47 UTC ++++ Makefile +@@ -4,8 +4,11 @@ + + PROJ= cdb + ++UNAME:= $(shell uname) + CFLAGS+= -std=c11 -O2 -g -Wall -Wextra -Werror ++ifneq ($(UNAME), FreeBSD) + CFLAGS+= -D_POSIX_C_SOURCE=200809L ++endif + CFLAGS+= -D_GNU_SOURCE -D_DEFAULT_SOURCE + CFLAGS+= -I. -Wno-unused-parameter -D__RCSID\(x\)= + Added: head/devel/libcdb/files/patch-bitops.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/libcdb/files/patch-bitops.h Fri May 24 14:49:28 2019 (r502472) @@ -0,0 +1,17 @@ +--- bitops.h.orig 2018-06-11 23:57:47 UTC ++++ bitops.h +@@ -36,12 +36,14 @@ + #else + #include + ++#ifndef __GNUC_PREREQ__ + #ifdef __GNUC__ + #define __GNUC_PREREQ__(x, y) \ + ((__GNUC__ == (x) && __GNUC_MINOR__ >= (y)) || \ + (__GNUC__ > (x))) + #else + #define __GNUC_PREREQ__(x, y) 0 ++#endif + #endif + + #ifndef __unused Added: head/devel/libcdb/files/patch-cdb__impl.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/libcdb/files/patch-cdb__impl.h Fri May 24 14:49:28 2019 (r502472) @@ -0,0 +1,21 @@ +--- cdb_impl.h.orig 2018-06-11 23:57:47 UTC ++++ cdb_impl.h +@@ -5,7 +5,7 @@ + #ifndef _CDB_IMPL_H + #define _CDB_IMPL_H + +-#ifndef __NetBSD__ ++#if !defined(__NetBSD__) && !defined(__FreeBSD__) + + #define __predict_false(exp) __builtin_expect((exp) != 0, 0) + +@@ -27,6 +27,9 @@ le32enc(void *buf, uint32_t u) + p[2] = (u >> 16) & 0xff; + p[3] = (u >> 24) & 0xff; + } ++#endif ++ ++#if !defined(__NetBSD__) + + void mi_vector_hash(const void * __restrict, size_t, uint32_t, uint32_t[3]); + Added: head/devel/libcdb/files/patch-cdbr.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/libcdb/files/patch-cdbr.c Fri May 24 14:49:28 2019 (r502472) @@ -0,0 +1,11 @@ +--- cdbr.c.orig 2019-05-24 08:03:40 UTC ++++ cdbr.c +@@ -52,7 +52,7 @@ __RCSID("$NetBSD: cdbr.c,v 1.1 2013/12/11 01:24:08 joe + #endif + #endif + #if !HAVE_NBTOOL_CONFIG_H || HAVE_SYS_ENDIAN_H +-#ifdef __NetBSD__ ++#if defined(__NetBSD__) || defined(__FreeBSD__) + #include + #else + #include Added: head/devel/libcdb/files/patch-cdbw.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/libcdb/files/patch-cdbw.c Fri May 24 14:49:28 2019 (r502472) @@ -0,0 +1,11 @@ +--- cdbw.c.orig 2019-05-24 08:14:32 UTC ++++ cdbw.c +@@ -43,7 +43,7 @@ __RCSID("$NetBSD: cdbw.c,v 1.5 2012/07/21 22:49:37 joe + #endif + + #if !HAVE_NBTOOL_CONFIG_H || HAVE_SYS_ENDIAN_H +-#ifdef __NetBSD__ ++#if defined(__NetBSD__) || defined(__FreeBSD__) + #include + #else + #include Added: head/devel/libcdb/files/patch-mi__vector__hash.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/libcdb/files/patch-mi__vector__hash.c Fri May 24 14:49:28 2019 (r502472) @@ -0,0 +1,11 @@ +--- mi_vector_hash.c.orig 2019-05-24 08:15:13 UTC ++++ mi_vector_hash.c +@@ -46,7 +46,7 @@ + __RCSID("$NetBSD: mi_vector_hash.c,v 1.1 2013/12/11 01:24:08 joerg Exp $"); + + #if !HAVE_NBTOOL_CONFIG_H || HAVE_SYS_ENDIAN_H +-#ifdef __NetBSD__ ++#if defined(__NetBSD__) || defined(__FreeBSD__) + #include + #else + #include Added: head/devel/libcdb/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/libcdb/pkg-descr Fri May 24 14:49:28 2019 (r502472) @@ -0,0 +1,5 @@ +The NetBSD's constant database (cdb) library provides a space efficient +key-value database based on perfect hashing, thus guaranteeing the O(1) lookup +time. The database preserves the key order. + +WWW: https://github.com/rmind/libcdb Added: head/devel/libcdb/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/libcdb/pkg-plist Fri May 24 14:49:28 2019 (r502472) @@ -0,0 +1,6 @@ +include/cdbr.h +include/cdbw.h +lib/libcdb.a +lib/libcdb.so +lib/libcdb.so.1 +lib/libcdb.so.1.0.0