diff --git a/main/kamailio/APKBUILD b/main/kamailio/APKBUILD
index d457da00534acb5cfc3321ca9720d72e10da16c3..c78f2e1e1d12c311d0e3b1396e3369ac7a31f3e9 100644
--- a/main/kamailio/APKBUILD
+++ b/main/kamailio/APKBUILD
@@ -5,7 +5,7 @@
 
 pkgname=kamailio
 pkgver=5.4.2
-pkgrel=2
+pkgrel=3
 
 # If building from a git snapshot, specify the gitcommit
 # If building a proper release, leave gitcommit blank or commented
@@ -23,7 +23,7 @@ pkggroups="kamailio"
 arch="all"
 license="GPL-2.0-or-later"
 depends="gawk"
-makedepends="bison db-dev flex freeradius-client-dev expat-dev
+makedepends="bison flex freeradius-client-dev expat-dev
 	lksctp-tools-dev perl-dev postgresql-dev python3-dev
 	pcre-dev mariadb-dev libxml2-dev curl-dev unixodbc-dev
 	confuse-dev ncurses-dev sqlite-dev lua-dev openldap-dev openssl-dev
@@ -71,7 +71,7 @@ _mod_list_extras="auth_diameter call_control cnxcc dmq domainpolicy log_custom \
 		auth_xkeys cfgt"
 
 # - common modules depending on database
-_mod_list_db="acc alias_db auth_db avpops cfg_db db_berkeley db_flatstore \
+_mod_list_db="acc alias_db auth_db avpops cfg_db db_flatstore \
 		db_cluster dialog dispatcher domain drouting group \
 		htable imc matrix mohqueue msilo mtree p_usrloc pdt permissions \
 		pipelimit prefix_route registrar sipcapture siptrace speeddial \
@@ -120,9 +120,6 @@ _mod_list_xmpp="xmpp"
 # - modules depending on confuse library
 _mod_list_carrierroute="carrierroute"
 
-# - modules depending on bdb (db4) library
-_mod_list_berkeley="db_berkeley"
-
 # - modules depending on curl library
 _mod_list_utils="utils http_client"