1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00

databases/libmswstr: New port, version 0.0.1

Provides functionality that allows using indexes from
Microsoft Access databases in JET4 format

Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D27955
This commit is contained in:
Rainer Hurling 2021-01-11 21:36:26 +00:00
parent 03192ebe45
commit d40e0f966c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=561279
6 changed files with 58 additions and 0 deletions

View File

@ -152,6 +152,7 @@
SUBDIR += libmemcache
SUBDIR += libmemcached
SUBDIR += libmongo-client
SUBDIR += libmswstr
SUBDIR += libnvpair
SUBDIR += libodbc++
SUBDIR += libpbl

View File

@ -0,0 +1,22 @@
# Created by: Rainer Hurling <rhurlin@gwdg.de>
# $FreeBSD$
PORTNAME= libmswstr
PORTVERSION= 0.0.1
CATEGORIES= databases
MAINTAINER= rhurlin@FreeBSD.org
COMMENT= Read and parse mdb file indices
# https://github.com/leecher1337/libmswstr/blob/master/COPYING
#DISABLE_LICENSES= yes
USES= autoreconf dos2unix libtool
DOS2UNIX_FILES= mswstr.c nls.h nlstables.h
DOS2UNIX_WRKSRC= ${WRKSRC}/src
USE_GITHUB= yes
GH_ACCOUNT= leecher1337
GH_TAGNAME= 5682d51
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1593859309
SHA256 (leecher1337-libmswstr-0.0.1-5682d51_GH0.tar.gz) = 3113412e52023f4d9e51e6ccb9c24f129939e194ebefb4573b269f96de469fa1
SIZE (leecher1337-libmswstr-0.0.1-5682d51_GH0.tar.gz) = 249155

View File

@ -0,0 +1,11 @@
--- src/mswstr.c.orig 2021-01-08 09:11:21 UTC
+++ src/mswstr.c
@@ -8,7 +8,7 @@
#include <stdio.h>
#include <assert.h>
-#include <malloc.h>
+#include <stdlib.h>
#include <string.h>
#include "nls.h"

View File

@ -0,0 +1,14 @@
When using Microsoft Jet 4 Databases, index fields are created using
the DBLCMapStringW function (check MSDN library for documentation of
this function).
Jet 4 driver itself loads this function from mswstr.dll on Microsoft
Windows. The library contains static translation tables (as opposed to
LCMapStringW API) in order to have consistent translations across all
Windows Versions.
Libraries that try to read and parse mdb file indices like
databases/mdbtools should work on every platform and therefore a
platform independent version of this library is needed. This is an
attempt to port the library to Posix-systems.
WWW: https://github.com/leecher1337/libmswstr

View File

@ -0,0 +1,7 @@
include/mswstr/mswstr.h
include/mswstr/winnls.h
include/mswstr/wintypes.h
lib/libmswstr.a
lib/libmswstr.so
lib/libmswstr.so.0
lib/libmswstr.so.0.0.1