Browse Source

multiple: Remove db_berkeley references

Xenofon Karamanos 4 days ago
parent
commit
4e2b9116e8

+ 2 - 3
INSTALL

@@ -251,7 +251,7 @@ Compile modules except some explicitly excepted (see below)
   By default make all will not build modules that require external libraries or
   that are considered to be "experimental". For example, modules that have external
   dependencies are: db_mysql, jabber, cpl-c, auth_radius, group_radius, uri_radius,
-  avp_radius, db_postgres, db_berkeley, carrierroute, ...
+  avp_radius, db_postgres, carrierroute, ...
 
 Including groups of modules:
   Instead of compiling the default modules only, you can specify groups of
@@ -263,8 +263,7 @@ Including groups of modules:
 
   - db - Modules in this group use databases and need a database driver to run.
     Included are drivers for the text mode db (dbtext) and for dumping
-    large amount of data to files (db_flatstore). See also the mysql, 
-    postgres, or sqlite groups.
+    large amount of data to files (db_flatstore). See also the mysql, postgres, or sqlite groups.
 
   - standard_dep -  Modules in this group are considered a standard part of Kamailio
     (due to widespread usage) but they have dependencies that must be satisfied

+ 0 - 1
src/lib/srdb1/db.c

@@ -42,7 +42,6 @@
  * - \ref auth
  *
  * Implemented modules
- * - \ref ../modules/db_berkeley
  * - \ref ../modules/db_flatstore
  * - \ref ../modules/db_text
  * - \ref ../modules/db_mysql

+ 1 - 1
src/modules/app_perl/doc/app_perl_admin.xml

@@ -23,7 +23,7 @@
 		<para>
 		With this Perl module, you can easily implement your own &kamailio; extensions in Perl. This allows
 		for simple access to the full world of CPAN modules. SIP URI rewriting could be implemented
-		based on regular expressions; accessing arbitrary data backends, e.g. LDAP or Berkeley DB files,
+		based on regular expressions; accessing arbitrary data backends, e.g. LDAP files,
 		is now extremely simple.
 		</para>
 	</section>

+ 1 - 1
src/modules/carrierroute/doc/carrierroute_admin.xml

@@ -80,7 +80,7 @@
               <emphasis>a database module</emphasis>,
               when a database is used as configuration data source.
               Only SQL based databases are supported, as this module needs the capability to
-              issue raw queries. It is not possible to use the dbtext or db_berkeley module at the moment.
+              issue raw queries. It is not possible to use the dbtext module at the moment.
             </para>
           </listitem>
           <listitem>

+ 0 - 2
src/modules/xhttp_pi/doc/xhttp_pi_admin.xml

@@ -98,7 +98,6 @@ kamdbctl pframework create
 	<para>
 		Supported databases:
 		<itemizedlist>
-			<listitem><para>berkeley</para></listitem>
 			<listitem><para>cassandra</para></listitem>
 			<listitem><para>cluster</para></listitem>
 			<listitem><para>flatstore</para></listitem>
@@ -392,4 +391,3 @@ event_route[xhttp:request] {
 	</section>
 
 </chapter>
-

+ 0 - 72
test/unit/17.sh

@@ -1,72 +0,0 @@
-#!/bin/bash
-# load all modules without external dependencies with db_berkeley
-
-# Copyright (C) 2007 1&1 Internet AG
-#
-# This file is part of Kamailio, a free SIP server.
-#
-# Kamailio is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version
-#
-# Kamailio is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
-
-. include/common
-. include/require.sh
-
-if ! (check_kamailio && check_module "db_berkeley" ); then
-	exit 0
-fi ;
-
-CFG=17.cfg
-
-tmp_name=""$RANDOM"_kamailiodb_tmp"
-
-printf "loadmodule \"db_berkeley/db_berkeley.so\"" > $CFG
-cat 2.cfg >> $CFG
-printf "modparam(\"$DB_ALL_MOD\", \"db_url\", \"berkeley://`pwd`/$CTL_DIR/$tmp_name\")" >> $CFG
-printf "\nrequest_route {\n ;\n}" >> $CFG
-
-# set up config file
-cp $CTLRC $CTLRC.bak
-
-sed -i'' -e "s/# DBENGINE=MYSQL/DBENGINE=DB_BERKELEY/g" $CTLRC
-sed -i'' -e "s/# INSTALL_EXTRA_TABLES=ask/INSTALL_EXTRA_TABLES=yes/g" $CTLRC
-sed -i'' -e "s/# INSTALL_PRESENCE_TABLES=ask/INSTALL_PRESENCE_TABLES=yes/g" $CTLRC
-sed -i'' -e "s/# INSTALL_DBUID_TABLES=ask/INSTALL_DBUID_TABLES=yes/g" $CTLRC
-
-cp $DBCTL $DBCTL.bak
-sed -i'' -e "s/TEST=\"false\"/TEST=\"true\"/g" $DBCTL
-
-CRT_DIR=`pwd`
-cd $CTL_DIR
-$DBCTL create $tmp_name > /dev/null
-ret=$?
-cd $CRT_DIR
-
-if [ "$ret" -eq 0 ] ; then
-	$BIN -L $MOD_DIR -Y $RUN_DIR -P $PIDFILE -w . -f $CFG -a no > /dev/null
-	ret=$?
-fi ;
-
-sleep 1
-kill_kamailio
-
-# cleanup
-cd $CTL_DIR
-$DBCTL drop $tmp_name > /dev/null
-cd $CRT_DIR
-mv $CTLRC.bak $CTLRC
-mv $DBCTL.bak $DBCTL
-
-rm $CFG
-
-exit $ret