aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authortimur <timur@FreeBSD.org>2009-07-13 05:43:55 +0800
committertimur <timur@FreeBSD.org>2009-07-13 05:43:55 +0800
commit286418264afdac12701df8be5731db0914fb7a1f (patch)
tree1222745b6c69971dff6ba57a3890650f67737d10 /databases
parent53a566da4b82c1c3891b1f8c586088fdd1225f30 (diff)
downloadfreebsd-ports-gnome-286418264afdac12701df8be5731db0914fb7a1f.tar.gz
freebsd-ports-gnome-286418264afdac12701df8be5731db0914fb7a1f.tar.zst
freebsd-ports-gnome-286418264afdac12701df8be5731db0914fb7a1f.zip
Bump port version to the 1.1.5, using sources that come together with
net/samba4-devel.
Diffstat (limited to 'databases')
-rw-r--r--databases/tdb/Makefile57
-rw-r--r--databases/tdb/distinfo3
-rw-r--r--databases/tdb/files/patch-tdbspeed-gdbm42
-rw-r--r--databases/tdb/files/patch-tdbtool.c43
-rw-r--r--databases/tdb/pkg-descr10
-rw-r--r--databases/tdb/pkg-plist7
6 files changed, 44 insertions, 118 deletions
diff --git a/databases/tdb/Makefile b/databases/tdb/Makefile
index 6dffb805085d..bd8c55b868ed 100644
--- a/databases/tdb/Makefile
+++ b/databases/tdb/Makefile
@@ -1,26 +1,47 @@
-# ex:ts=8
-# Ports collection makefile for: tdb
-# Date created: Oct 12, 2002
-# Whom: ijliao
+# New ports collection makefile for: tdb
+# Date created: 1 May 2009
+# Whom: Koop Mast <kwm@FreeBSD.org>
#
# $FreeBSD$
#
-PORTNAME= tdb
-PORTVERSION= 1.0.6
-PORTREVISION= 2
-CATEGORIES= databases
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
-MASTER_SITE_SUBDIR= ${PORTNAME}
+PORTNAME= tdb
+PORTVERSION= 1.1.5
+PORTREVISION= 0
+PORTEPOCH= 0
+CATEGORIES= databases
+PKGNAMESUFFIX=
-MAINTAINER= ports@FreeBSD.org
-COMMENT= Trivial Database
+COMMENT= Trivial Database
-USE_AUTOTOOLS= automake:14 autoconf:213 libtool:15
-USE_LDCONFIG= yes
+CONFLICTS=
-MAN3= tdb.3 tdb_chainlock.3 tdb_close.3 tdb_delete.3 tdb_error.3 \
- tdb_exists.3 tdb_fetch.3 tdb_firstkey.3 tdb_open.3 tdb_store.3 \
- tdb_traverse.3
+SAMBA_PORT?= samba4-devel
+SAMBA_SUBPORT= yes
-.include <bsd.port.mk>
+MASTERDIR= ${.CURDIR}/../../net/${SAMBA_PORT}
+PKGDIR= ${.CURDIR}
+
+WRKSRC= ${WRKDIR}/${DISTNAME}/lib/tdb
+
+USE_PYTHON= yes
+USE_GMAKE= yes
+USE_LDCONFIG= yes
+GNU_CONFIGURE= yes
+USE_GNOME= pkgconfig
+USE_AUTOTOOLS= autoconf:262 autoheader:262
+
+PLIST_FILES= bin/tdbbackup \
+ bin/tdbdump \
+ bin/tdbtool \
+ include/tdb.h \
+ lib/libtdb.a \
+ lib/libtdb.so \
+ lib/libtdb.so.1 \
+ libdata/pkgconfig/tdb.pc \
+ ${PYTHONPREFIX_SITELIBDIR:S|${PREFIX}/||}/tdb.so
+
+post-install:
+ @${LN} -sf libtdb.so.1 ${PREFIX}/lib/libtdb.so
+
+.include "${MASTERDIR}/Makefile"
diff --git a/databases/tdb/distinfo b/databases/tdb/distinfo
deleted file mode 100644
index 56bb3e4494c3..000000000000
--- a/databases/tdb/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 (tdb-1.0.6.tar.gz) = 6b643fdeb48304010dcd5f675e458b58
-SHA256 (tdb-1.0.6.tar.gz) = 235bd4f82321675779b0ed099753d0835b0f3e53bc45846f372fd51350252bb2
-SIZE (tdb-1.0.6.tar.gz) = 139948
diff --git a/databases/tdb/files/patch-tdbspeed-gdbm b/databases/tdb/files/patch-tdbspeed-gdbm
deleted file mode 100644
index f12e5bfc2832..000000000000
--- a/databases/tdb/files/patch-tdbspeed-gdbm
+++ /dev/null
@@ -1,42 +0,0 @@
---- configure.in.orig 2002-09-03 07:48:38.000000000 +1000
-+++ configure.in 2002-09-03 07:45:23.000000000 +1000
-@@ -18,13 +18,14 @@
- AC_CHECK_LIB(gdbm, gdbm_open,
- [have_gdbm=true],[have_gdbm=false])
- if test "x$have_gdbm" = "xfalse";then
-- AC_MSG_WARN(WARNING: tdbtest is disabled. It needs gdbm.)
-+ AC_MSG_WARN(WARNING: tdbspeed and tdbtest are disabled. They need gdbm.)
- fi
- AC_CHECK_LIB(dl, dlopen,[have_dllib=true],[have_dllib=false])
- if test "x$have_dllib" = "xfalse";then
- AC_MSG_WARN(WARNING: tdbtorture is disabled. It needs libdl.)
- fi
-
-+AM_CONDITIONAL(BUILD_TDBSPEED,$have_gdbm)
- AM_CONDITIONAL(BUILD_TDBTEST,$have_gdbm)
- AM_CONDITIONAL(BUILD_TDBTORTURE,$have_dllib)
-
---- Makefile.am.orig 2002-09-03 07:48:50.000000000 +1000
-+++ Makefile.am 2002-09-03 07:42:58.000000000 +1000
-@@ -1,6 +1,12 @@
- CFLAGS = @CFLAGS@ @WARNS@
- LDADD=libtdb.la
-
-+if BUILD_TDBSPEED
-+TDBSPEED = tdbspeed
-+else
-+TDBSPEED =
-+endif
-+
- if BUILD_TDBTEST
- TDBTEST = tdbtest
- else
-@@ -13,7 +19,7 @@
- TDBTORTURE =
- endif
-
--noinst_PROGRAMS=tdbspeed tdbiterate $(TDBTEST) $(TDBTORTURE)
-+noinst_PROGRAMS=tdbiterate $(TDBSPEED) $(TDBTEST) $(TDBTORTURE)
- bin_PROGRAMS=tdbtool tdbdump
-
- lib_LTLIBRARIES=libtdb.la
diff --git a/databases/tdb/files/patch-tdbtool.c b/databases/tdb/files/patch-tdbtool.c
deleted file mode 100644
index 8b68bac89979..000000000000
--- a/databases/tdb/files/patch-tdbtool.c
+++ /dev/null
@@ -1,43 +0,0 @@
---- tdbtool.c~ Tue Dec 11 04:45:47 2001
-+++ tdbtool.c Sun Aug 17 18:49:00 2003
-@@ -169,23 +169,23 @@
-
- static void help(void)
- {
-- printf("
--tdbtool:
-- create dbname : create a database
-- open dbname : open an existing database
-- erase : erase the database
-- dump dumpname : dump the database as strings
-- insert key data : insert a record
-- store key data : store a record (replace)
-- show key : show a record by key
-- delete key : delete a record by key
-- list : print the database hash table and freelist
-- free : print the database freelist
-- 1 | first : print the first record
-- n | next : print the next record
-- q | quit : terminate
-- \\n : repeat 'next' command
--");
-+ puts("");
-+ puts("tdbtool: ");
-+ puts(" create dbname : create a database");
-+ puts(" open dbname : open an existing database");
-+ puts(" erase : erase the database");
-+ puts(" dump dumpname : dump the database as strings");
-+ puts(" insert key data : insert a record");
-+ puts(" store key data : store a record (replace)");
-+ puts(" show key : show a record by key");
-+ puts(" delete key : delete a record by key");
-+ puts(" list : print the database hash table and freelist");
-+ puts(" free : print the database freelist");
-+ puts(" 1 | first : print the first record");
-+ puts(" n | next : print the next record");
-+ puts(" q | quit : terminate");
-+ puts(" \\n : repeat 'next' command");
-+ puts("");
- }
-
- static void terror(char *why)
diff --git a/databases/tdb/pkg-descr b/databases/tdb/pkg-descr
index d2db8988fa9c..624574f89d00 100644
--- a/databases/tdb/pkg-descr
+++ b/databases/tdb/pkg-descr
@@ -1,6 +1,6 @@
-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.
+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.
-WWW: http://sourceforge.net/projects/tdb/
+WWW: http://tdb.samba.org/
diff --git a/databases/tdb/pkg-plist b/databases/tdb/pkg-plist
deleted file mode 100644
index ad53bc2ffbbb..000000000000
--- a/databases/tdb/pkg-plist
+++ /dev/null
@@ -1,7 +0,0 @@
-bin/tdbtool
-bin/tdbdump
-include/tdb.h
-lib/libtdb.a
-lib/libtdb.la
-lib/libtdb.so
-lib/libtdb.so.1