Skip to content

Commit

Permalink
Merge pull request #1621 from mariux64/update-db4830
Browse files Browse the repository at this point in the history
remove berkeley db and setup compat
  • Loading branch information
wwwutz authored Jan 23, 2020
2 parents 4076fd4 + 9d4c8ff commit 3a4da71
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 32 deletions.
32 changes: 0 additions & 32 deletions db-4.8.26-0.bee

This file was deleted.

69 changes: 69 additions & 0 deletions db_compat-4.8.be0
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
#!/usr/bin/env beesh

# BEE_VERSION db_compat-4.8.30-0

# hardwired compat version
# 4.8.26 source not found anymore
# pulled 4.8.30 from
# https://ftp6.gwdg.de/pub/linux/slackware/slackware-14.0/source/l/db48/db-4.8.30.tar.xz
SRCURL[0]="/src/mariux/md5repo/de18e52d5ec52489621cbab083858484/db-4.8.30.tar.xz"

# PATCHURL+=()

#build_in_sourcedir

# sourcesubdir_append src

#mee_extract() {
# bee_extract "${@}"
#}

#mee_patch() {
# bee_patch "${@}"
#}

mee_patch_post() {
# fix error on install docs
sed -i '/^library_install:/ s/install_docs//' ${S}/dist/Makefile.in
}

mee_configure() {
# cd build_unix
CFLAGS="-O2 -fPIC" \
CXXFLAGS=${CFLAGS} \
${S}/dist/configure \
--prefix=${PREFIX} \
--enable-compat185 \
--enable-cxx \
--disable-test \
--enable-shared "${@}"
}

mee_build() {
make ${BEE_MAKEFLAGS} ${DEFCONFIG} "$@"
}

mee_install() {
make ${BEE_MAKEFLAGS} install ${DEFCONFIG} DESTDIR=${D} "$@"
}

mee_install_post() {
rm -vrf ${D}/usr/include
rm -vrf ${D}/usr/bin
rm -vf ${D}/usr/lib/libdb.a
rm -vf ${D}/usr/lib/libdb-4.8.a
rm -vf ${D}/usr/lib/libdb_cxx.a
rm -vf ${D}/usr/lib/libdb_cxx-4.8.a
rm -vf ${D}/usr/lib/libdb.so
rm -vf ${D}/usr/lib/libdb_cxx.so
}

if [ -z "${DEFCONFIG}" ] ; then
for var in prefix eprefix bindir sbindir libexecdir sysconfdir \
sharedstatedir localstatedir libdir includedir \
datarootdir datadir infodir localedir mandir docdir ; do
DEFCONFIG="${DEFCONFIG} \${${var^^}:+${var^^}=\${${var^^}}}"
done
fi

eval DEFCONFIG=\"${DEFCONFIG}\"

0 comments on commit 3a4da71

Please sign in to comment.