diff options
-rw-r--r-- | databases/tdb1413/Makefile | 72 | ||||
-rw-r--r-- | databases/tdb1413/distinfo | 3 | ||||
-rw-r--r-- | databases/tdb1413/files/patch-buildtools_wafsamba_samba__autoconf.py | 35 | ||||
-rw-r--r-- | databases/tdb1413/files/patch-buildtools_wafsamba_samba__install.py | 11 | ||||
-rw-r--r-- | databases/tdb1413/files/patch-buildtools_wafsamba_wscript | 15 | ||||
-rw-r--r-- | databases/tdb1413/files/patch-lib_replace_wscript | 11 | ||||
-rw-r--r-- | databases/tdb1413/files/patch-wscript | 11 | ||||
-rw-r--r-- | databases/tdb1413/pkg-descr | 4 | ||||
-rw-r--r-- | databases/tdb1413/pkg-plist | 14 |
9 files changed, 176 insertions, 0 deletions
diff --git a/databases/tdb1413/Makefile b/databases/tdb1413/Makefile new file mode 100644 index 000000000000..0068a797592f --- /dev/null +++ b/databases/tdb1413/Makefile @@ -0,0 +1,72 @@ +PORTNAME= tdb +DISTVERSION= 1.4.10 +PORTREVISION= 2 +PORTEPOCH= 1 +CATEGORIES= databases +MASTER_SITES= SAMBA +PKGNAMESUFFIX= 1410 + +MAINTAINER= samba@FreeBSD.org +COMMENT= Trivial Database +WWW= https://tdb.samba.org/ + +LICENSE= GPLv3 + +USES= compiler pkgconfig shebangfix waf +USE_LDCONFIG= yes +SHEBANG_GLOB= *.py +WAF_CMD= buildtools/bin/waf +CONFIGURE_LOG= bin/config.log + +PKGCONFIGDIR?= ${PREFIX}/libdata/pkgconfig +PLIST_SUB+= PKGCONFIGDIR=${PKGCONFIGDIR:S;^${PREFIX}/;;} + +CONFIGURE_ARGS+= --disable-rpath \ + --disable-rpath-install \ + --bundled-libraries=NONE \ + --builtin-libraries=replace \ + --without-gettext +CONFIGURE_ENV= PYTHONHASHSEED=1 +MAKE_ENV= PYTHONHASHSEED=1 + +CONFLICTS_INSTALL= tdb + +OPTIONS_DEFINE= MANPAGES DEBUG PYTHON +OPTIONS_DEFAULT= MANPAGES PYTHON +OPTIONS_SUB= yes + +DEBUG_CFLAGS= -g -ggdb3 -O0 +DEBUG_CONFIGURE_ON= --verbose --enable-debug +DEBUG_MAKE_ARGS= --verbose + +PYTHON_USES= gettext-runtime python +PYTHON_USE+= python=py3kplist +PYTHON_USES_OFF= python:build,test +PYTHON_CONFIGURE_OFF= --disable-python + +MANPAGES_BUILD_DEPENDS= ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:textproc/docbook-xsl \ + xsltproc:textproc/libxslt +MANPAGES_CONFIGURE_ENV_OFF= XSLTPROC="false" + +# No fancy color error messages +CFLAGS+= ${CFLAGS_${CHOSEN_COMPILER_TYPE}} +CFLAGS_clang= -fno-color-diagnostics +CONFIGURE_ENV+= NOCOLOR=yes +MAKE_ENV+= NOCOLOR=yes +# Some symbols in tdb's linker version scripts are not defined, but since the +# scripts are generated dynamically, suppress errors with lld >= 17 due to these +# undefined symbols. +LDFLAGS+= -Wl,--undefined-version + +post-patch: + @${REINPLACE_CMD} -e 's|%%PKGCONFIGDIR%%|${PKGCONFIGDIR}|g' \ + ${BUILD_WRKSRC}/wscript + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/tdb* + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtdb.so.1 + +post-install-PYTHON-on: + ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/tdb*.so + +.include <bsd.port.mk> diff --git a/databases/tdb1413/distinfo b/databases/tdb1413/distinfo new file mode 100644 index 000000000000..9cbac66b6b89 --- /dev/null +++ b/databases/tdb1413/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1737641302 +SHA256 (tdb-1.4.10.tar.gz) = 02338e33c16c21c9e29571cef523e76b2b708636254f6f30c6cf195d48c62daf +SIZE (tdb-1.4.10.tar.gz) = 747139 diff --git a/databases/tdb1413/files/patch-buildtools_wafsamba_samba__autoconf.py b/databases/tdb1413/files/patch-buildtools_wafsamba_samba__autoconf.py new file mode 100644 index 000000000000..d0ab789743f0 --- /dev/null +++ b/databases/tdb1413/files/patch-buildtools_wafsamba_samba__autoconf.py @@ -0,0 +1,35 @@ +--- buildtools/wafsamba/samba_autoconf.py.orig 2019-08-20 15:35:08 UTC ++++ buildtools/wafsamba/samba_autoconf.py +@@ -573,7 +573,7 @@ def library_flags(self, libs): + + + @conf +-def CHECK_LIB(conf, libs, mandatory=False, empty_decl=True, set_target=True, shlib=False): ++def CHECK_LIB(conf, libs, mandatory=False, empty_decl=True, set_target=True, shlib=False, msg=None): + '''check if a set of libraries exist as system libraries + + returns the sublist of libs that do exist as a syslib or [] +@@ -593,11 +593,14 @@ int foo() + ret.append(lib) + continue + ++ if msg is None: ++ msg = 'Checking for library %s' % lib ++ + (ccflags, ldflags, cpppath) = library_flags(conf, lib) + if shlib: +- res = conf.check(features='c cshlib', fragment=fragment, lib=lib, uselib_store=lib, cflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False) ++ res = conf.check(features='c cshlib', fragment=fragment, lib=lib, uselib_store=lib, cflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False, msg=msg) + else: +- res = conf.check(lib=lib, uselib_store=lib, cflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False) ++ res = conf.check(lib=lib, uselib_store=lib, cflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False, msg=msg) + + if not res: + if mandatory: +@@ -949,5 +952,5 @@ def SAMBA_CHECK_UNDEFINED_SYMBOL_FLAGS(c + conf.env.undefined_ldflags = conf.ADD_LDFLAGS('-Wl,-no-undefined', testflags=True) + + if (conf.env.undefined_ignore_ldflags == [] and +- conf.CHECK_LDFLAGS(['-undefined', 'dynamic_lookup'])): ++ conf.CHECK_LDFLAGS(['-undefined', 'dynamic_lookup'] + conf.env.WERROR_CFLAGS)): + conf.env.undefined_ignore_ldflags = ['-undefined', 'dynamic_lookup'] diff --git a/databases/tdb1413/files/patch-buildtools_wafsamba_samba__install.py b/databases/tdb1413/files/patch-buildtools_wafsamba_samba__install.py new file mode 100644 index 000000000000..a852de2f200c --- /dev/null +++ b/databases/tdb1413/files/patch-buildtools_wafsamba_samba__install.py @@ -0,0 +1,11 @@ +--- buildtools/wafsamba/samba_install.py.orig 2019-02-14 11:21:38 UTC ++++ buildtools/wafsamba/samba_install.py +@@ -118,7 +118,7 @@ def install_library(self): + inst_name = bld.make_libname(t.target) + elif self.vnum: + vnum_base = self.vnum.split('.')[0] +- install_name = bld.make_libname(target_name, version=self.vnum) ++ install_name = bld.make_libname(target_name, version=vnum_base) + install_link = bld.make_libname(target_name, version=vnum_base) + inst_name = bld.make_libname(t.target) + if not self.private_library: diff --git a/databases/tdb1413/files/patch-buildtools_wafsamba_wscript b/databases/tdb1413/files/patch-buildtools_wafsamba_wscript new file mode 100644 index 000000000000..b525397fbee9 --- /dev/null +++ b/databases/tdb1413/files/patch-buildtools_wafsamba_wscript @@ -0,0 +1,15 @@ +--- buildtools/wafsamba/wscript.orig 2019-02-26 06:44:21 UTC ++++ buildtools/wafsamba/wscript +@@ -82,10 +82,10 @@ def options(opt): + + opt.add_option('--with-libiconv', + help='additional directory to search for libiconv', +- action='store', dest='iconv_open', default='/usr/local', ++ action='store', dest='iconv_open', default=None, + match = ['Checking for library iconv', 'Checking for iconv_open', 'Checking for header iconv.h']) + opt.add_option('--without-gettext', +- help=("Disable use of gettext"), ++ help=("disable use of gettext"), + action="store_true", dest='disable_gettext', default=False) + + gr = opt.option_group('developer options') diff --git a/databases/tdb1413/files/patch-lib_replace_wscript b/databases/tdb1413/files/patch-lib_replace_wscript new file mode 100644 index 000000000000..ba3eb912e5d7 --- /dev/null +++ b/databases/tdb1413/files/patch-lib_replace_wscript @@ -0,0 +1,11 @@ +--- lib/replace/wscript.orig 2019-02-26 06:44:21 UTC ++++ lib/replace/wscript +@@ -119,7 +119,7 @@ def configure(conf): + conf.CHECK_HEADERS('sys/atomic.h stdatomic.h') + conf.CHECK_HEADERS('libgen.h') + +- if conf.CHECK_CFLAGS('-Wno-format-truncation'): ++ if conf.CHECK_CFLAGS(['-Wno-format-truncation'] + conf.env.WERROR_CFLAGS): + conf.define('HAVE_WNO_FORMAT_TRUNCATION', '1') + + if conf.CHECK_CFLAGS('-Wno-unused-function'): diff --git a/databases/tdb1413/files/patch-wscript b/databases/tdb1413/files/patch-wscript new file mode 100644 index 000000000000..4869b58adf01 --- /dev/null +++ b/databases/tdb1413/files/patch-wscript @@ -0,0 +1,11 @@ +--- wscript.orig 2019-02-26 07:02:52 UTC ++++ wscript +@@ -121,7 +121,7 @@ def build(bld): + COMMON_SRC = bld.SUBDIR('common', COMMON_FILES) + + if bld.env.standalone_tdb: +- bld.env.PKGCONFIGDIR = '${LIBDIR}/pkgconfig' ++ bld.env.PKGCONFIGDIR = '%%PKGCONFIGDIR%%' + private_library = False + else: + private_library = True diff --git a/databases/tdb1413/pkg-descr b/databases/tdb1413/pkg-descr new file mode 100644 index 000000000000..fa18095b5ca0 --- /dev/null +++ b/databases/tdb1413/pkg-descr @@ -0,0 +1,4 @@ +TDB is a Trivial Database. In concept, it is very much like GDBM, and +BSD's DB except that it allows multiple simultaneous writers and uses +locking internally to keep writers from trampling on each other. TDB is +also extremely small. diff --git a/databases/tdb1413/pkg-plist b/databases/tdb1413/pkg-plist new file mode 100644 index 000000000000..744b90083e2b --- /dev/null +++ b/databases/tdb1413/pkg-plist @@ -0,0 +1,14 @@ +bin/tdbbackup +bin/tdbdump +bin/tdbrestore +bin/tdbtool +include/tdb.h +lib/libtdb.so +lib/libtdb.so.1 +%%PYTHON%%%%PYTHON_SITELIBDIR%%/_tdb_text.py +%%PYTHON%%%%PYTHON_SITELIBDIR%%/tdb%%PYTHON_TAG%%.so +libdata/pkgconfig/tdb.pc +%%MANPAGES%%share/man/man8/tdbbackup.8.gz +%%MANPAGES%%share/man/man8/tdbdump.8.gz +%%MANPAGES%%share/man/man8/tdbrestore.8.gz +%%MANPAGES%%share/man/man8/tdbtool.8.gz |