summaryrefslogtreecommitdiff
path: root/databases/tdb1413
diff options
context:
space:
mode:
Diffstat (limited to 'databases/tdb1413')
-rw-r--r--databases/tdb1413/Makefile68
-rw-r--r--databases/tdb1413/distinfo3
-rw-r--r--databases/tdb1413/files/patch-buildtools_wafsamba_samba__install.py11
-rw-r--r--databases/tdb1413/files/patch-buildtools_wafsamba_wscript15
-rw-r--r--databases/tdb1413/files/patch-lib_replace_wscript11
-rw-r--r--databases/tdb1413/files/patch-wscript11
-rw-r--r--databases/tdb1413/pkg-descr4
-rw-r--r--databases/tdb1413/pkg-plist14
8 files changed, 137 insertions, 0 deletions
diff --git a/databases/tdb1413/Makefile b/databases/tdb1413/Makefile
new file mode 100644
index 000000000000..164e9098a081
--- /dev/null
+++ b/databases/tdb1413/Makefile
@@ -0,0 +1,68 @@
+PORTNAME= tdb
+DISTVERSION= 1.4.13
+PORTEPOCH= 1
+PORTREVISION= 1
+CATEGORIES= databases
+MASTER_SITES= SAMBA
+PKGNAMESUFFIX= 1413
+
+MAINTAINER= samba@FreeBSD.org
+COMMENT= Trivial Database
+WWW= https://tdb.samba.org/
+
+LICENSE= GPLv3
+
+USES= compiler pkgconfig shebangfix waf
+USE_LDCONFIG= yes
+WAF_CMD= buildtools/bin/waf
+SHEBANG_GLOB= *.py
+CONFIGURE_LOG= bin/config.log
+
+PKGCONFIGDIR?= ${PREFIX}/libdata/pkgconfig
+
+CONFIGURE_ARGS+= --builtin-libraries=replace \
+ --bundled-libraries=NONE \
+ --disable-rpath \
+ --disable-rpath-install \
+ --without-gettext
+CONFIGURE_ENV= PYTHONHASHSEED=1
+MAKE_ENV= PYTHONHASHSEED=1
+# 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
+
+CONFLICTS_INSTALL= tdb tdb[0-9]*
+
+PLIST_SUB+= PKGCONFIGDIR=${PKGCONFIGDIR:S;^${PREFIX}/;;}
+
+OPTIONS_DEFINE= DEBUG MANPAGES PYTHON
+OPTIONS_DEFAULT= MANPAGES PYTHON
+OPTIONS_SUB= yes
+
+DEBUG_CONFIGURE_ON= --enable-debug \
+ --verbose
+DEBUG_MAKE_ARGS= --verbose
+DEBUG_CFLAGS= -g -ggdb3 -O0
+
+MANPAGES_BUILD_DEPENDS= ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:textproc/docbook-xsl \
+ xsltproc:textproc/libxslt
+MANPAGES_CONFIGURE_ENV_OFF= XSLTPROC="false"
+
+PYTHON_USES= gettext-runtime python
+PYTHON_USES_OFF= python:build,test
+PYTHON_USE= PYTHON=py3kplist
+PYTHON_CONFIGURE_OFF= --disable-python
+
+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..8cb615a62b1f
--- /dev/null
+++ b/databases/tdb1413/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1751383287
+SHA256 (tdb-1.4.13.tar.gz) = 5ee276e7644d713e19e4b6adc00b440afb5851ff21e65821ffaed89e15a5e167
+SIZE (tdb-1.4.13.tar.gz) = 751677
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