Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Nov 2020 13:37:23 +0000 (UTC)
From:      "Vanilla I. Shu" <vanilla@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r556490 - in head/databases: . mdbx mdbx/files
Message-ID:  <202011281337.0ASDbN2v056576@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vanilla
Date: Sat Nov 28 13:37:22 2020
New Revision: 556490
URL: https://svnweb.freebsd.org/changeset/ports/556490

Log:
  Add mdbx 0.9.1, lightning Memory-Mapped Database (Extended).
  
  PR:		251221
  Submitted by:	Mahlon E. Smith <mahlon@martini.nu>

Added:
  head/databases/mdbx/
  head/databases/mdbx/Makefile   (contents, props changed)
  head/databases/mdbx/distinfo   (contents, props changed)
  head/databases/mdbx/files/
  head/databases/mdbx/files/patch-GNUmakefile   (contents, props changed)
  head/databases/mdbx/pkg-descr   (contents, props changed)
  head/databases/mdbx/pkg-plist   (contents, props changed)
Modified:
  head/databases/Makefile

Modified: head/databases/Makefile
==============================================================================
--- head/databases/Makefile	Sat Nov 28 13:06:49 2020	(r556489)
+++ head/databases/Makefile	Sat Nov 28 13:37:22 2020	(r556490)
@@ -187,6 +187,7 @@
     SUBDIR += mariadb105-client
     SUBDIR += mariadb105-server
     SUBDIR += mdbtools
+    SUBDIR += mdbx
     SUBDIR += mdcached
     SUBDIR += memcached
     SUBDIR += mongodb-tools

Added: head/databases/mdbx/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/mdbx/Makefile	Sat Nov 28 13:37:22 2020	(r556490)
@@ -0,0 +1,38 @@
+# Created by: Mahlon E. Smith <mahlon@martini.nu>
+# $FreeBSD$
+
+PORTNAME=	mdbx
+PORTVERSION=	0.9.1
+DISTVERSIONPREFIX=	v
+CATEGORIES=	databases
+MASTER_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/releases/download/${DISTVERSIONPREFIX}${DISTVERSION}/
+DISTNAME=	${GH_PROJECT}-amalgamated-${DISTVERSION}
+
+MAINTAINER=	mahlon@martini.nu
+COMMENT=	Lightning Memory-Mapped Database (Extended)
+
+LICENSE=	OPENLDAP
+LICENSE_NAME=	OpenLDAP Public License
+LICENSE_FILE=	${WRKSRC}/LICENSE
+LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
+
+USES=		gmake
+
+PLIST_SUB=	VERSION=${PORTVERSION}
+MAKEFILE=	GNUmakefile
+NO_WRKSUBDIR=	yes
+USE_LDCONFIG=	yes
+
+CFLAGS+=	-Wall -Werror -Wextra -Wpedantic -ffunction-sections \
+		-fPIC -fvisibility=hidden -std=gnu11 -pthread -Wno-error=attributes
+MAKE_ARGS=	mdbx tools
+
+# No USE_GITHUB, we want the amalgamated build.
+GH_ACCOUNT=	erthink
+GH_PROJECT=	libmdbx
+
+post-install:
+	${LN} -sf libmdbx.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libmdbx.so
+	${LN} -sf libmdbx.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libmdbx.so.0
+
+.include <bsd.port.mk>

Added: head/databases/mdbx/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/mdbx/distinfo	Sat Nov 28 13:37:22 2020	(r556490)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1605790546
+SHA256 (libmdbx-amalgamated-0.9.1.tar.gz) = c7fb24381eb4d92f2e2edc17e577cb721269683c816c6cca307c58f6f346e786
+SIZE (libmdbx-amalgamated-0.9.1.tar.gz) = 548364

Added: head/databases/mdbx/files/patch-GNUmakefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/mdbx/files/patch-GNUmakefile	Sat Nov 28 13:37:22 2020	(r556490)
@@ -0,0 +1,37 @@
+--- GNUmakefile.orig	2020-09-30 14:33:07 UTC
++++ GNUmakefile
+@@ -14,7 +14,7 @@
+ # There may be other macros of interest.
+ #
+ 
+-SHELL   := env bash
++SHELL   := env sh
+ 
+ # install sandbox
+ DESTDIR ?=
+@@ -53,7 +53,7 @@ define uname2sosuffix
+     *) echo so;;
+   esac
+ endef
+-SO_SUFFIX  := $(shell $(uname2sosuffix))
++SO_SUFFIX  := so.0.9.1
+ 
+ HEADERS    := mdbx.h mdbx.h++
+ LIBRARIES  := libmdbx.a libmdbx.$(SO_SUFFIX)
+@@ -110,11 +110,11 @@ mdbx_%:	mdbx_%.c libmdbx.a
+ 	$(CC) $(CFLAGS) $(MDBX_OPTIONS) '-DMDBX_CONFIG_H="config.h"' $^ $(EXE_LDFLAGS) $(LIBS) -o $@
+ 
+ install: $(LIBRARIES) $(TOOLS) $(HEADERS)
+-	install -D -p -s -t $(DESTDIR)$(prefix)/bin$(suffix) $(TOOLS) && \
+-	install -D -p -s -t $(DESTDIR)$(prefix)/lib$(suffix) $(filter-out libmdbx.a,$(LIBRARIES)) && \
+-	install -D -p -t $(DESTDIR)$(prefix)/lib$(suffix) libmdbx.a && \
+-	install -D -p -m 444 -t $(DESTDIR)$(prefix)/include $(HEADERS) && \
+-	install -D -p -m 444 -t $(DESTDIR)$(mandir)/man1 $(addprefix $(MAN_SRCDIR), $(MANPAGES))
++	install -p -s $(TOOLS) $(DESTDIR)$(prefix)/bin$(suffix) && \
++	install -p -s $(filter-out libmdbx.a,$(LIBRARIES)) $(DESTDIR)$(prefix)/lib$(suffix) && \
++	install -p libmdbx.a $(DESTDIR)$(prefix)/lib$(suffix) && \
++	install -p -m 444 $(HEADERS) $(DESTDIR)$(prefix)/include && \
++	install -p -m 444 $(addprefix $(MAN_SRCDIR), $(MANPAGES)) $(DESTDIR)$(mandir)/man1
+ 
+ uninstall:
+ 	rm -f $(addprefix $(DESTDIR)$(prefix)/bin$(suffix)/,$(TOOLS)) \

Added: head/databases/mdbx/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/mdbx/pkg-descr	Sat Nov 28 13:37:22 2020	(r556490)
@@ -0,0 +1,10 @@
+
+libmdbx is an extremely fast, compact, powerful, embedded, transactional
+key-value database, with permissive license. libmdbx has a specific set of
+properties and capabilities, focused on creating unique lightweight solutions.
+
+Historically, libmdbx is a deeply revised and extended descendant of the
+amazing Lightning Memory-Mapped Database. libmdbx inherits all benefits from
+LMDB, but resolves some issues and adds a set of improvements.
+
+WWW: https://github.com/erthink/libmdbx

Added: head/databases/mdbx/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/mdbx/pkg-plist	Sat Nov 28 13:37:22 2020	(r556490)
@@ -0,0 +1,16 @@
+bin/mdbx_chk
+bin/mdbx_copy
+bin/mdbx_dump
+bin/mdbx_load
+bin/mdbx_stat
+include/mdbx.h
+include/mdbx.h++
+lib/libmdbx.a
+lib/libmdbx.so
+lib/libmdbx.so.0
+lib/libmdbx.so.%%VERSION%%
+man/man1/mdbx_chk.1.gz
+man/man1/mdbx_copy.1.gz
+man/man1/mdbx_dump.1.gz
+man/man1/mdbx_load.1.gz
+man/man1/mdbx_stat.1.gz



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