]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
berkeley: Re-add 4.4 as compat package
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 24 Apr 2020 10:28:11 +0000 (10:28 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sat, 9 May 2020 12:03:42 +0000 (12:03 +0000)
We have loads of packages linked against the older
version which is difficult to update.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
config/rootfiles/common/berkeley-compat [new file with mode: 0644]
lfs/berkeley-compat [new file with mode: 0644]
make.sh

diff --git a/config/rootfiles/common/berkeley-compat b/config/rootfiles/common/berkeley-compat
new file mode 100644 (file)
index 0000000..1b14991
--- /dev/null
@@ -0,0 +1,4 @@
+usr/lib/libdb-4.4.so
+usr/lib/libdb-4.so
+usr/lib/libdb_cxx-4.4.so
+usr/lib/libdb_cxx-4.so
diff --git a/lfs/berkeley-compat b/lfs/berkeley-compat
new file mode 100644 (file)
index 0000000..9e148e5
--- /dev/null
@@ -0,0 +1,83 @@
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2018  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program 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 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program 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, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include Config
+
+VER        = 4.4.20
+
+THISAPP    = db-$(VER)
+DL_FILE    = $(THISAPP).tar.gz
+DL_FROM    = $(URL_IPFIRE)
+DIR_APP    = $(DIR_SRC)/$(THISAPP)
+TARGET     = $(DIR_INFO)/$(THISAPP)
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+objects = $(DL_FILE)
+
+$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
+
+$(DL_FILE)_MD5 = d84dff288a19186b136b0daf7067ade3
+
+install : $(TARGET)
+
+check : $(patsubst %,$(DIR_CHK)/%,$(objects))
+
+download :$(patsubst %,$(DIR_DL)/%,$(objects))
+
+md5 : $(subst %,%_MD5,$(objects))
+
+###############################################################################
+# Downloading, checking, md5sum
+###############################################################################
+
+$(patsubst %,$(DIR_CHK)/%,$(objects)) :
+       @$(CHECK)
+
+$(patsubst %,$(DIR_DL)/%,$(objects)) :
+       @$(LOAD)
+
+$(subst %,%_MD5,$(objects)) :
+       @$(MD5)
+
+###############################################################################
+# Installation Details
+###############################################################################
+
+$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
+       @$(PREBUILD)
+       @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/db-4.4.20-fixes-1.patch
+       cd $(DIR_APP)/build_unix && ../dist/configure --prefix=/usr --enable-compat185 --enable-cxx
+       cd $(DIR_APP)/build_unix && make $(MAKETUNING)
+
+       # Install the libraries inly
+       cd $(DIR_APP)/build_unix && install -v -m 755 .libs/{libdb-4.4.so,libdb_cxx-4.4.so} /usr/lib/
+       ln -svf libdb-4.4.so /usr/lib/libdb-4.so
+       ln -svf libdb_cxx-4.4.so /usr/lib/libdb_cxx-4.so
+
+       @rm -rf $(DIR_APP)
+       @$(POSTBUILD)
diff --git a/make.sh b/make.sh
index f507c5584c424289dbbf4a213a554d7ceb8a6246..211243078e76a8e8e727e0f73ca8196be9ff3ec6 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -1084,6 +1084,7 @@ buildbase() {
        lfsmake2 autoconf
        lfsmake2 automake
        lfsmake2 berkeley
+       lfsmake2 berkeley-compat
        lfsmake2 coreutils
        lfsmake2 iana-etc
        lfsmake2 m4