aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormandree <mandree@FreeBSD.org>2010-04-26 15:40:15 +0800
committermandree <mandree@FreeBSD.org>2010-04-26 15:40:15 +0800
commit5f4a1588db5dcd4246d71a4efb9297fbce3fea74 (patch)
tree6564d5b71bd768cabbb3b6043241ea8818c649e8
parenta3182b3ac545444d8ce00e99da7cd247f5ab4ab1 (diff)
downloadfreebsd-ports-gnome-5f4a1588db5dcd4246d71a4efb9297fbce3fea74.tar.gz
freebsd-ports-gnome-5f4a1588db5dcd4246d71a4efb9297fbce3fea74.tar.zst
freebsd-ports-gnome-5f4a1588db5dcd4246d71a4efb9297fbce3fea74.zip
Add new port databases/db50, to package Oracle Berkeley DB 5.0.21.
Approved by: garga (mentor)
-rw-r--r--databases/Makefile1
-rw-r--r--databases/db5/Makefile95
-rw-r--r--databases/db5/distinfo3
-rw-r--r--databases/db5/files/patch-dist_configure13
-rw-r--r--databases/db5/pkg-descr11
-rw-r--r--databases/db5/pkg-plist82
-rw-r--r--databases/db50/Makefile95
-rw-r--r--databases/db50/distinfo3
-rw-r--r--databases/db50/files/patch-dist_configure13
-rw-r--r--databases/db50/pkg-descr11
-rw-r--r--databases/db50/pkg-plist82
-rw-r--r--databases/db51/Makefile95
-rw-r--r--databases/db51/distinfo3
-rw-r--r--databases/db51/files/patch-dist_configure13
-rw-r--r--databases/db51/pkg-descr11
-rw-r--r--databases/db51/pkg-plist82
16 files changed, 613 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index 4942f54e0d9b..9785d1c57247 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -42,6 +42,7 @@
SUBDIR += db47
SUBDIR += db48
SUBDIR += db4o-mono
+ SUBDIR += db50
SUBDIR += dbXML
SUBDIR += dbconnect
SUBDIR += dbf
diff --git a/databases/db5/Makefile b/databases/db5/Makefile
new file mode 100644
index 000000000000..c0d70e2916bf
--- /dev/null
+++ b/databases/db5/Makefile
@@ -0,0 +1,95 @@
+# New ports collection makefile for: db50
+# Date created: 2010-04-06
+# Whom: Matthias Andree <mandree@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= db50
+PORTVERSION= 5.0.21.0
+CATEGORIES= databases java
+MASTER_SITES= http://download-west.oracle.com/berkeley-db/ \
+ http://download-east.oracle.com/berkeley-db/ \
+ http://download-uk.oracle.com/berkeley-db/
+PKGNAMEPREFIX?=
+DISTNAME= db-${PORTVERSION:R}
+DIST_SUBDIR= bdb
+
+MAINTAINER= mandree@FreeBSD.org
+COMMENT= The Oracle Berkeley DB, revision 5.0
+
+BDBVER= ${PORTVERSION:R:R}
+CONFIGURE_ARGS= --enable-cxx --enable-stl \
+ --includedir=${PREFIX}/include/${PORTNAME} \
+ --libdir=${PREFIX}/lib/${PORTNAME} \
+ --bindir=${PREFIX}/bin/${PORTNAME}
+CONFIGURE_SCRIPT= ../dist/configure
+GNU_CONFIGURE= yes
+MAKE_JOBS_SAFE= yes
+USE_GMAKE= yes
+INSTALL_TARGET= install_include install_lib install_utilities
+LIBTOOLFILES= ${CONFIGURE_SCRIPT}
+WRKSRC= ${WRKDIR}/${DISTNAME}/build_unix
+USE_LDCONFIG= yes
+
+.if !defined(NOPORTDOCS)
+INSTALL_TARGET+= install_docs docdir=${DOCSDIR}
+PORTDOCS= *
+.endif
+
+OPTIONS= SQL "SQL API (EXPERIMENTAL)" OFF \
+ JAVA "JAVA API (EXPERIMENTAL)" OFF
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_SQL)
+CONFIGURE_ARGS+= --enable-sql_codegen --enable-sql
+PLIST_SUB+= SQL=""
+libdb_sql= libdb_sql
+.else
+PLIST_SUB+= SQL="@comment "
+libdb_sql=
+.endif
+
+.if defined(WITH_JAVA)
+USE_JAVA= yes
+JAVA_VERSION= 1.5+
+CONFIGURE_ARGS+= --enable-java
+CONFIGURE_ENV= CPPFLAGS="-I${JAVA_HOME}/include" JAVAC="${JAVAC}" JAR="${JAR}" JAVA="${JAVA}"
+PLIST_SUB+= JAVA=""
+libdb_java= libdb_java
+.else
+PLIST_SUB+= JAVA="@comment "
+libdb_java=
+.endif
+
+post-patch:
+ ${REINPLACE_CMD} -e '/^DOCLIST/{s/csharp//;}' ${WRKSRC}/../dist/Makefile.in
+
+post-install:
+.for i in libdb libdb_cxx libdb_stl ${libdb_sql} ${libdb_java}
+ ${LN} -s -f ${PORTNAME}/${i}-${BDBVER}.so.0 ${PREFIX}/lib
+ ${LN} -s -f ${i}-${BDBVER}.so.0 ${PREFIX}/lib/${i}-${BDBVER}.so
+ ${LN} -s -f ${i}-${BDBVER}.a ${PREFIX}/lib/${PORTNAME}/${i}.a
+ ${CHMOD} a-w ${PREFIX}/lib/${PORTNAME}/${i}-${BDBVER}.so.0 \
+ ${PREFIX}/lib/${PORTNAME}/${i}-${BDBVER}.a \
+ ${PREFIX}/lib/${PORTNAME}/${i}-${BDBVER}.la
+.endfor
+ cd ${PREFIX}/bin/${PORTNAME}; \
+ for i in *; do ${LN} -s -f ${PORTNAME}/$$i ../$$i-${BDBVER}; done
+.if !defined(NOPORTDOCS)
+.for i in api_reference/TCL
+ ${RM} -r -f ${DOCSDIR}/${i}
+.endfor
+.if !defined(WITH_JAVA)
+ ${RM} -r -f ${DOCSDIR}/java
+.for i in gsg gsg_db_rep gsg_txn
+ ${RM} -r -f ${DOCSDIR}/${i}/JAVA
+.endfor
+.endif
+.if !defined(WITH_SQL)
+ ${RM} -r -f ${DOCSDIR}/bdb-sql
+.endif
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/databases/db5/distinfo b/databases/db5/distinfo
new file mode 100644
index 000000000000..65dc2761f05f
--- /dev/null
+++ b/databases/db5/distinfo
@@ -0,0 +1,3 @@
+MD5 (bdb/db-5.0.21.tar.gz) = 9a749fd2e98fe15840493ddc34cc66d8
+SHA256 (bdb/db-5.0.21.tar.gz) = 061a31a962e992dd1eae5f1e3193241d497a18968e750707526d104b53ab3cc4
+SIZE (bdb/db-5.0.21.tar.gz) = 29300812
diff --git a/databases/db5/files/patch-dist_configure b/databases/db5/files/patch-dist_configure
new file mode 100644
index 000000000000..2dac99fc909d
--- /dev/null
+++ b/databases/db5/files/patch-dist_configure
@@ -0,0 +1,13 @@
+--- ../dist/configure.orig Wed Dec 5 13:14:02 2001
++++ ../dist/configure Wed Dec 5 13:24:01 2001
+@@ -20867,8 +20867,8 @@
+
+ MAKEFILE_CC="\$(LIBTOOL) --mode=compile ${MAKEFILE_CC}"
+-MAKEFILE_SOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK} -avoid-version"
++MAKEFILE_SOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK} -version-info 0:0:0"
+ MAKEFILE_CCLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK}"
+ MAKEFILE_CXX="\$(LIBTOOL) --mode=compile ${MAKEFILE_CXX}"
+-MAKEFILE_XSOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK} -avoid-version"
++MAKEFILE_XSOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK} -version-info 0:0:0"
+ MAKEFILE_CXXLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK}"
+
diff --git a/databases/db5/pkg-descr b/databases/db5/pkg-descr
new file mode 100644
index 000000000000..57e18a6333c2
--- /dev/null
+++ b/databases/db5/pkg-descr
@@ -0,0 +1,11 @@
+Oracle Berkeley DB is a family of open source embeddable databases
+that allows developers to incorporate within their applications a
+fast, scalable, transactional database engine with industrial grade
+reliability and availability. As a result, customers and end-users
+will experience an application that simply works, reliably manages
+data, can scale under extreme load, but requires no ongoing database
+administration. As a developer, you can focus on your application and
+be confident that Oracle Berkeley DB will manage your persistence
+needs.
+
+WWW: http://www.oracle.com/database/berkeley-db/index.html
diff --git a/databases/db5/pkg-plist b/databases/db5/pkg-plist
new file mode 100644
index 000000000000..81f7a1576d4c
--- /dev/null
+++ b/databases/db5/pkg-plist
@@ -0,0 +1,82 @@
+@comment $FreeBSD$
+bin/db50/db_archive
+bin/db50/db_checkpoint
+bin/db50/db_deadlock
+bin/db50/db_dump
+bin/db50/db_hotbackup
+bin/db50/db_load
+bin/db50/db_log_verify
+bin/db50/db_printlog
+bin/db50/db_recover
+%%SQL%%bin/db50/dbsql
+%%SQL%%bin/db50/db_sql_codegen
+bin/db50/db_stat
+bin/db50/db_upgrade
+bin/db50/db_verify
+bin/db_archive-5.0
+bin/db_checkpoint-5.0
+bin/db_deadlock-5.0
+bin/db_dump-5.0
+bin/db_hotbackup-5.0
+bin/db_load-5.0
+bin/db_log_verify-5.0
+bin/db_printlog-5.0
+bin/db_recover-5.0
+%%SQL%%bin/db_sql_codegen-5.0
+bin/db_stat-5.0
+bin/db_upgrade-5.0
+bin/db_verify-5.0
+include/db50/db.h
+include/db50/db_cxx.h
+%%SQL%%include/db50/dbsql.h
+include/db50/dbstl_common.h
+include/db50/dbstl_set.h
+include/db50/dbstl_vector.h
+include/db50/dbstl_exception.h
+include/db50/dbstl_map.h
+include/db50/dbstl_utility.h
+include/db50/dbstl_dbc.h
+include/db50/dbstl_dbt.h
+include/db50/dbstl_base_iterator.h
+include/db50/dbstl_container.h
+include/db50/dbstl_element_ref.h
+include/db50/dbstl_inner_utility.h
+include/db50/dbstl_resource_manager.h
+lib/db50/libdb-5.0.a
+lib/db50/libdb-5.0.la
+lib/db50/libdb-5.0.so
+lib/db50/libdb-5.0.so.0
+lib/db50/libdb-5.so
+lib/db50/libdb.a
+lib/db50/libdb.so
+lib/db50/libdb_cxx-5.0.a
+lib/db50/libdb_cxx-5.0.la
+lib/db50/libdb_cxx-5.0.so
+lib/db50/libdb_cxx-5.0.so.0
+lib/db50/libdb_cxx-5.so
+lib/db50/libdb_cxx.a
+lib/db50/libdb_cxx.so
+lib/db50/libdb_stl-5.0.a
+lib/db50/libdb_stl-5.0.la
+lib/db50/libdb_stl-5.0.so
+lib/db50/libdb_stl-5.0.so.0
+lib/db50/libdb_stl-5.so
+lib/db50/libdb_stl.a
+lib/db50/libdb_stl.so
+%%JAVA%%lib/db50/libdb_java-5.0.so.0
+%%JAVA%%lib/db50/libdb_java-5.0.la
+%%JAVA%%lib/db50/libdb_java-5.0.a
+%%JAVA%%lib/db50/db.jar
+%%SQL%%lib/db50/libdb_sql-5.0.so.0
+%%SQL%%lib/db50/libdb_sql-5.0.la
+%%SQL%%lib/db50/libdb_sql-5.0.a
+%%SQL%%lib/db50/libdb_sql.a
+lib/libdb-5.0.so
+lib/libdb-5.0.so.0
+lib/libdb_cxx-5.0.so
+lib/libdb_cxx-5.0.so.0
+lib/libdb_stl-5.0.so
+lib/libdb_stl-5.0.so.0
+@dirrmtry lib/db50
+@dirrmtry include/db50
+@dirrmtry bin/db50
diff --git a/databases/db50/Makefile b/databases/db50/Makefile
new file mode 100644
index 000000000000..c0d70e2916bf
--- /dev/null
+++ b/databases/db50/Makefile
@@ -0,0 +1,95 @@
+# New ports collection makefile for: db50
+# Date created: 2010-04-06
+# Whom: Matthias Andree <mandree@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= db50
+PORTVERSION= 5.0.21.0
+CATEGORIES= databases java
+MASTER_SITES= http://download-west.oracle.com/berkeley-db/ \
+ http://download-east.oracle.com/berkeley-db/ \
+ http://download-uk.oracle.com/berkeley-db/
+PKGNAMEPREFIX?=
+DISTNAME= db-${PORTVERSION:R}
+DIST_SUBDIR= bdb
+
+MAINTAINER= mandree@FreeBSD.org
+COMMENT= The Oracle Berkeley DB, revision 5.0
+
+BDBVER= ${PORTVERSION:R:R}
+CONFIGURE_ARGS= --enable-cxx --enable-stl \
+ --includedir=${PREFIX}/include/${PORTNAME} \
+ --libdir=${PREFIX}/lib/${PORTNAME} \
+ --bindir=${PREFIX}/bin/${PORTNAME}
+CONFIGURE_SCRIPT= ../dist/configure
+GNU_CONFIGURE= yes
+MAKE_JOBS_SAFE= yes
+USE_GMAKE= yes
+INSTALL_TARGET= install_include install_lib install_utilities
+LIBTOOLFILES= ${CONFIGURE_SCRIPT}
+WRKSRC= ${WRKDIR}/${DISTNAME}/build_unix
+USE_LDCONFIG= yes
+
+.if !defined(NOPORTDOCS)
+INSTALL_TARGET+= install_docs docdir=${DOCSDIR}
+PORTDOCS= *
+.endif
+
+OPTIONS= SQL "SQL API (EXPERIMENTAL)" OFF \
+ JAVA "JAVA API (EXPERIMENTAL)" OFF
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_SQL)
+CONFIGURE_ARGS+= --enable-sql_codegen --enable-sql
+PLIST_SUB+= SQL=""
+libdb_sql= libdb_sql
+.else
+PLIST_SUB+= SQL="@comment "
+libdb_sql=
+.endif
+
+.if defined(WITH_JAVA)
+USE_JAVA= yes
+JAVA_VERSION= 1.5+
+CONFIGURE_ARGS+= --enable-java
+CONFIGURE_ENV= CPPFLAGS="-I${JAVA_HOME}/include" JAVAC="${JAVAC}" JAR="${JAR}" JAVA="${JAVA}"
+PLIST_SUB+= JAVA=""
+libdb_java= libdb_java
+.else
+PLIST_SUB+= JAVA="@comment "
+libdb_java=
+.endif
+
+post-patch:
+ ${REINPLACE_CMD} -e '/^DOCLIST/{s/csharp//;}' ${WRKSRC}/../dist/Makefile.in
+
+post-install:
+.for i in libdb libdb_cxx libdb_stl ${libdb_sql} ${libdb_java}
+ ${LN} -s -f ${PORTNAME}/${i}-${BDBVER}.so.0 ${PREFIX}/lib
+ ${LN} -s -f ${i}-${BDBVER}.so.0 ${PREFIX}/lib/${i}-${BDBVER}.so
+ ${LN} -s -f ${i}-${BDBVER}.a ${PREFIX}/lib/${PORTNAME}/${i}.a
+ ${CHMOD} a-w ${PREFIX}/lib/${PORTNAME}/${i}-${BDBVER}.so.0 \
+ ${PREFIX}/lib/${PORTNAME}/${i}-${BDBVER}.a \
+ ${PREFIX}/lib/${PORTNAME}/${i}-${BDBVER}.la
+.endfor
+ cd ${PREFIX}/bin/${PORTNAME}; \
+ for i in *; do ${LN} -s -f ${PORTNAME}/$$i ../$$i-${BDBVER}; done
+.if !defined(NOPORTDOCS)
+.for i in api_reference/TCL
+ ${RM} -r -f ${DOCSDIR}/${i}
+.endfor
+.if !defined(WITH_JAVA)
+ ${RM} -r -f ${DOCSDIR}/java
+.for i in gsg gsg_db_rep gsg_txn
+ ${RM} -r -f ${DOCSDIR}/${i}/JAVA
+.endfor
+.endif
+.if !defined(WITH_SQL)
+ ${RM} -r -f ${DOCSDIR}/bdb-sql
+.endif
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/databases/db50/distinfo b/databases/db50/distinfo
new file mode 100644
index 000000000000..65dc2761f05f
--- /dev/null
+++ b/databases/db50/distinfo
@@ -0,0 +1,3 @@
+MD5 (bdb/db-5.0.21.tar.gz) = 9a749fd2e98fe15840493ddc34cc66d8
+SHA256 (bdb/db-5.0.21.tar.gz) = 061a31a962e992dd1eae5f1e3193241d497a18968e750707526d104b53ab3cc4
+SIZE (bdb/db-5.0.21.tar.gz) = 29300812
diff --git a/databases/db50/files/patch-dist_configure b/databases/db50/files/patch-dist_configure
new file mode 100644
index 000000000000..2dac99fc909d
--- /dev/null
+++ b/databases/db50/files/patch-dist_configure
@@ -0,0 +1,13 @@
+--- ../dist/configure.orig Wed Dec 5 13:14:02 2001
++++ ../dist/configure Wed Dec 5 13:24:01 2001
+@@ -20867,8 +20867,8 @@
+
+ MAKEFILE_CC="\$(LIBTOOL) --mode=compile ${MAKEFILE_CC}"
+-MAKEFILE_SOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK} -avoid-version"
++MAKEFILE_SOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK} -version-info 0:0:0"
+ MAKEFILE_CCLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK}"
+ MAKEFILE_CXX="\$(LIBTOOL) --mode=compile ${MAKEFILE_CXX}"
+-MAKEFILE_XSOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK} -avoid-version"
++MAKEFILE_XSOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK} -version-info 0:0:0"
+ MAKEFILE_CXXLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK}"
+
diff --git a/databases/db50/pkg-descr b/databases/db50/pkg-descr
new file mode 100644
index 000000000000..57e18a6333c2
--- /dev/null
+++ b/databases/db50/pkg-descr
@@ -0,0 +1,11 @@
+Oracle Berkeley DB is a family of open source embeddable databases
+that allows developers to incorporate within their applications a
+fast, scalable, transactional database engine with industrial grade
+reliability and availability. As a result, customers and end-users
+will experience an application that simply works, reliably manages
+data, can scale under extreme load, but requires no ongoing database
+administration. As a developer, you can focus on your application and
+be confident that Oracle Berkeley DB will manage your persistence
+needs.
+
+WWW: http://www.oracle.com/database/berkeley-db/index.html
diff --git a/databases/db50/pkg-plist b/databases/db50/pkg-plist
new file mode 100644
index 000000000000..81f7a1576d4c
--- /dev/null
+++ b/databases/db50/pkg-plist
@@ -0,0 +1,82 @@
+@comment $FreeBSD$
+bin/db50/db_archive
+bin/db50/db_checkpoint
+bin/db50/db_deadlock
+bin/db50/db_dump
+bin/db50/db_hotbackup
+bin/db50/db_load
+bin/db50/db_log_verify
+bin/db50/db_printlog
+bin/db50/db_recover
+%%SQL%%bin/db50/dbsql
+%%SQL%%bin/db50/db_sql_codegen
+bin/db50/db_stat
+bin/db50/db_upgrade
+bin/db50/db_verify
+bin/db_archive-5.0
+bin/db_checkpoint-5.0
+bin/db_deadlock-5.0
+bin/db_dump-5.0
+bin/db_hotbackup-5.0
+bin/db_load-5.0
+bin/db_log_verify-5.0
+bin/db_printlog-5.0
+bin/db_recover-5.0
+%%SQL%%bin/db_sql_codegen-5.0
+bin/db_stat-5.0
+bin/db_upgrade-5.0
+bin/db_verify-5.0
+include/db50/db.h
+include/db50/db_cxx.h
+%%SQL%%include/db50/dbsql.h
+include/db50/dbstl_common.h
+include/db50/dbstl_set.h
+include/db50/dbstl_vector.h
+include/db50/dbstl_exception.h
+include/db50/dbstl_map.h
+include/db50/dbstl_utility.h
+include/db50/dbstl_dbc.h
+include/db50/dbstl_dbt.h
+include/db50/dbstl_base_iterator.h
+include/db50/dbstl_container.h
+include/db50/dbstl_element_ref.h
+include/db50/dbstl_inner_utility.h
+include/db50/dbstl_resource_manager.h
+lib/db50/libdb-5.0.a
+lib/db50/libdb-5.0.la
+lib/db50/libdb-5.0.so
+lib/db50/libdb-5.0.so.0
+lib/db50/libdb-5.so
+lib/db50/libdb.a
+lib/db50/libdb.so
+lib/db50/libdb_cxx-5.0.a
+lib/db50/libdb_cxx-5.0.la
+lib/db50/libdb_cxx-5.0.so
+lib/db50/libdb_cxx-5.0.so.0
+lib/db50/libdb_cxx-5.so
+lib/db50/libdb_cxx.a
+lib/db50/libdb_cxx.so
+lib/db50/libdb_stl-5.0.a
+lib/db50/libdb_stl-5.0.la
+lib/db50/libdb_stl-5.0.so
+lib/db50/libdb_stl-5.0.so.0
+lib/db50/libdb_stl-5.so
+lib/db50/libdb_stl.a
+lib/db50/libdb_stl.so
+%%JAVA%%lib/db50/libdb_java-5.0.so.0
+%%JAVA%%lib/db50/libdb_java-5.0.la
+%%JAVA%%lib/db50/libdb_java-5.0.a
+%%JAVA%%lib/db50/db.jar
+%%SQL%%lib/db50/libdb_sql-5.0.so.0
+%%SQL%%lib/db50/libdb_sql-5.0.la
+%%SQL%%lib/db50/libdb_sql-5.0.a
+%%SQL%%lib/db50/libdb_sql.a
+lib/libdb-5.0.so
+lib/libdb-5.0.so.0
+lib/libdb_cxx-5.0.so
+lib/libdb_cxx-5.0.so.0
+lib/libdb_stl-5.0.so
+lib/libdb_stl-5.0.so.0
+@dirrmtry lib/db50
+@dirrmtry include/db50
+@dirrmtry bin/db50
diff --git a/databases/db51/Makefile b/databases/db51/Makefile
new file mode 100644
index 000000000000..c0d70e2916bf
--- /dev/null
+++ b/databases/db51/Makefile
@@ -0,0 +1,95 @@
+# New ports collection makefile for: db50
+# Date created: 2010-04-06
+# Whom: Matthias Andree <mandree@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= db50
+PORTVERSION= 5.0.21.0
+CATEGORIES= databases java
+MASTER_SITES= http://download-west.oracle.com/berkeley-db/ \
+ http://download-east.oracle.com/berkeley-db/ \
+ http://download-uk.oracle.com/berkeley-db/
+PKGNAMEPREFIX?=
+DISTNAME= db-${PORTVERSION:R}
+DIST_SUBDIR= bdb
+
+MAINTAINER= mandree@FreeBSD.org
+COMMENT= The Oracle Berkeley DB, revision 5.0
+
+BDBVER= ${PORTVERSION:R:R}
+CONFIGURE_ARGS= --enable-cxx --enable-stl \
+ --includedir=${PREFIX}/include/${PORTNAME} \
+ --libdir=${PREFIX}/lib/${PORTNAME} \
+ --bindir=${PREFIX}/bin/${PORTNAME}
+CONFIGURE_SCRIPT= ../dist/configure
+GNU_CONFIGURE= yes
+MAKE_JOBS_SAFE= yes
+USE_GMAKE= yes
+INSTALL_TARGET= install_include install_lib install_utilities
+LIBTOOLFILES= ${CONFIGURE_SCRIPT}
+WRKSRC= ${WRKDIR}/${DISTNAME}/build_unix
+USE_LDCONFIG= yes
+
+.if !defined(NOPORTDOCS)
+INSTALL_TARGET+= install_docs docdir=${DOCSDIR}
+PORTDOCS= *
+.endif
+
+OPTIONS= SQL "SQL API (EXPERIMENTAL)" OFF \
+ JAVA "JAVA API (EXPERIMENTAL)" OFF
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_SQL)
+CONFIGURE_ARGS+= --enable-sql_codegen --enable-sql
+PLIST_SUB+= SQL=""
+libdb_sql= libdb_sql
+.else
+PLIST_SUB+= SQL="@comment "
+libdb_sql=
+.endif
+
+.if defined(WITH_JAVA)
+USE_JAVA= yes
+JAVA_VERSION= 1.5+
+CONFIGURE_ARGS+= --enable-java
+CONFIGURE_ENV= CPPFLAGS="-I${JAVA_HOME}/include" JAVAC="${JAVAC}" JAR="${JAR}" JAVA="${JAVA}"
+PLIST_SUB+= JAVA=""
+libdb_java= libdb_java
+.else
+PLIST_SUB+= JAVA="@comment "
+libdb_java=
+.endif
+
+post-patch:
+ ${REINPLACE_CMD} -e '/^DOCLIST/{s/csharp//;}' ${WRKSRC}/../dist/Makefile.in
+
+post-install:
+.for i in libdb libdb_cxx libdb_stl ${libdb_sql} ${libdb_java}
+ ${LN} -s -f ${PORTNAME}/${i}-${BDBVER}.so.0 ${PREFIX}/lib
+ ${LN} -s -f ${i}-${BDBVER}.so.0 ${PREFIX}/lib/${i}-${BDBVER}.so
+ ${LN} -s -f ${i}-${BDBVER}.a ${PREFIX}/lib/${PORTNAME}/${i}.a
+ ${CHMOD} a-w ${PREFIX}/lib/${PORTNAME}/${i}-${BDBVER}.so.0 \
+ ${PREFIX}/lib/${PORTNAME}/${i}-${BDBVER}.a \
+ ${PREFIX}/lib/${PORTNAME}/${i}-${BDBVER}.la
+.endfor
+ cd ${PREFIX}/bin/${PORTNAME}; \
+ for i in *; do ${LN} -s -f ${PORTNAME}/$$i ../$$i-${BDBVER}; done
+.if !defined(NOPORTDOCS)
+.for i in api_reference/TCL
+ ${RM} -r -f ${DOCSDIR}/${i}
+.endfor
+.if !defined(WITH_JAVA)
+ ${RM} -r -f ${DOCSDIR}/java
+.for i in gsg gsg_db_rep gsg_txn
+ ${RM} -r -f ${DOCSDIR}/${i}/JAVA
+.endfor
+.endif
+.if !defined(WITH_SQL)
+ ${RM} -r -f ${DOCSDIR}/bdb-sql
+.endif
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/databases/db51/distinfo b/databases/db51/distinfo
new file mode 100644
index 000000000000..65dc2761f05f
--- /dev/null
+++ b/databases/db51/distinfo
@@ -0,0 +1,3 @@
+MD5 (bdb/db-5.0.21.tar.gz) = 9a749fd2e98fe15840493ddc34cc66d8
+SHA256 (bdb/db-5.0.21.tar.gz) = 061a31a962e992dd1eae5f1e3193241d497a18968e750707526d104b53ab3cc4
+SIZE (bdb/db-5.0.21.tar.gz) = 29300812
diff --git a/databases/db51/files/patch-dist_configure b/databases/db51/files/patch-dist_configure
new file mode 100644
index 000000000000..2dac99fc909d
--- /dev/null
+++ b/databases/db51/files/patch-dist_configure
@@ -0,0 +1,13 @@
+--- ../dist/configure.orig Wed Dec 5 13:14:02 2001
++++ ../dist/configure Wed Dec 5 13:24:01 2001
+@@ -20867,8 +20867,8 @@
+
+ MAKEFILE_CC="\$(LIBTOOL) --mode=compile ${MAKEFILE_CC}"
+-MAKEFILE_SOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK} -avoid-version"
++MAKEFILE_SOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK} -version-info 0:0:0"
+ MAKEFILE_CCLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK}"
+ MAKEFILE_CXX="\$(LIBTOOL) --mode=compile ${MAKEFILE_CXX}"
+-MAKEFILE_XSOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK} -avoid-version"
++MAKEFILE_XSOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK} -version-info 0:0:0"
+ MAKEFILE_CXXLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK}"
+
diff --git a/databases/db51/pkg-descr b/databases/db51/pkg-descr
new file mode 100644
index 000000000000..57e18a6333c2
--- /dev/null
+++ b/databases/db51/pkg-descr
@@ -0,0 +1,11 @@
+Oracle Berkeley DB is a family of open source embeddable databases
+that allows developers to incorporate within their applications a
+fast, scalable, transactional database engine with industrial grade
+reliability and availability. As a result, customers and end-users
+will experience an application that simply works, reliably manages
+data, can scale under extreme load, but requires no ongoing database
+administration. As a developer, you can focus on your application and
+be confident that Oracle Berkeley DB will manage your persistence
+needs.
+
+WWW: http://www.oracle.com/database/berkeley-db/index.html
diff --git a/databases/db51/pkg-plist b/databases/db51/pkg-plist
new file mode 100644
index 000000000000..81f7a1576d4c
--- /dev/null
+++ b/databases/db51/pkg-plist
@@ -0,0 +1,82 @@
+@comment $FreeBSD$
+bin/db50/db_archive
+bin/db50/db_checkpoint
+bin/db50/db_deadlock
+bin/db50/db_dump
+bin/db50/db_hotbackup
+bin/db50/db_load
+bin/db50/db_log_verify
+bin/db50/db_printlog
+bin/db50/db_recover
+%%SQL%%bin/db50/dbsql
+%%SQL%%bin/db50/db_sql_codegen
+bin/db50/db_stat
+bin/db50/db_upgrade
+bin/db50/db_verify
+bin/db_archive-5.0
+bin/db_checkpoint-5.0
+bin/db_deadlock-5.0
+bin/db_dump-5.0
+bin/db_hotbackup-5.0
+bin/db_load-5.0
+bin/db_log_verify-5.0
+bin/db_printlog-5.0
+bin/db_recover-5.0
+%%SQL%%bin/db_sql_codegen-5.0
+bin/db_stat-5.0
+bin/db_upgrade-5.0
+bin/db_verify-5.0
+include/db50/db.h
+include/db50/db_cxx.h
+%%SQL%%include/db50/dbsql.h
+include/db50/dbstl_common.h
+include/db50/dbstl_set.h
+include/db50/dbstl_vector.h
+include/db50/dbstl_exception.h
+include/db50/dbstl_map.h
+include/db50/dbstl_utility.h
+include/db50/dbstl_dbc.h
+include/db50/dbstl_dbt.h
+include/db50/dbstl_base_iterator.h
+include/db50/dbstl_container.h
+include/db50/dbstl_element_ref.h
+include/db50/dbstl_inner_utility.h
+include/db50/dbstl_resource_manager.h
+lib/db50/libdb-5.0.a
+lib/db50/libdb-5.0.la
+lib/db50/libdb-5.0.so
+lib/db50/libdb-5.0.so.0
+lib/db50/libdb-5.so
+lib/db50/libdb.a
+lib/db50/libdb.so
+lib/db50/libdb_cxx-5.0.a
+lib/db50/libdb_cxx-5.0.la
+lib/db50/libdb_cxx-5.0.so
+lib/db50/libdb_cxx-5.0.so.0
+lib/db50/libdb_cxx-5.so
+lib/db50/libdb_cxx.a
+lib/db50/libdb_cxx.so
+lib/db50/libdb_stl-5.0.a
+lib/db50/libdb_stl-5.0.la
+lib/db50/libdb_stl-5.0.so
+lib/db50/libdb_stl-5.0.so.0
+lib/db50/libdb_stl-5.so
+lib/db50/libdb_stl.a
+lib/db50/libdb_stl.so
+%%JAVA%%lib/db50/libdb_java-5.0.so.0
+%%JAVA%%lib/db50/libdb_java-5.0.la
+%%JAVA%%lib/db50/libdb_java-5.0.a
+%%JAVA%%lib/db50/db.jar
+%%SQL%%lib/db50/libdb_sql-5.0.so.0
+%%SQL%%lib/db50/libdb_sql-5.0.la
+%%SQL%%lib/db50/libdb_sql-5.0.a
+%%SQL%%lib/db50/libdb_sql.a
+lib/libdb-5.0.so
+lib/libdb-5.0.so.0
+lib/libdb_cxx-5.0.so
+lib/libdb_cxx-5.0.so.0
+lib/libdb_stl-5.0.so
+lib/libdb_stl-5.0.so.0
+@dirrmtry lib/db50
+@dirrmtry include/db50
+@dirrmtry bin/db50