diff --git a/common/shlibs b/common/shlibs index c5f34d89c5..01f9e067d9 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1244,3 +1244,5 @@ libmicrohttpd.so.10 libmicrohttpd-0.9.26_1 libgit2.so.0 libgit2-0.18.0_1 libagg.so.2 agg-2.5_1 libzzip-0.so.13 zziplib-0.13.62_1 +libdb-5.3.so libdb-5.3.21_1 +libdb_cxx-5.3.so libdb-5.3.21_1 diff --git a/srcpkgs/db/template b/srcpkgs/db/template index 852fdffab1..92b1be52ff 100644 --- a/srcpkgs/db/template +++ b/srcpkgs/db/template @@ -1,22 +1,30 @@ # Template file for 'db' pkgname=db -version=4.8.30 -revision=4 +version=5.3.21 +revision=1 wrksrc="db-${version}" -build_style=gnu-configure -build_wrksrc="build_unix" -configure_script="../dist/configure" -configure_args="--enable-compat185 --enable-cxx --enable-o_direct - --enable-posixmutexes --disable-static" -make_build_args="LIBSO_LIBS=-lpthread" -short_desc="The Berkeley DB from Oracle" +short_desc="The Berkeley DB embedded database system" maintainer="Juan RP " homepage="http://www.oracle.com/technetwork/products/berkeleydb/overview/index.html" license="BSD" distfiles="http://download.oracle.com/berkeley-db/db-${version}.tar.gz" -checksum=e0491a07cdb21fb9aa82773bbbedaeb7639cbd0e7f96147ab46141e0045db72a +checksum=ddd92a930317df92021054c03992392db9ea5cddba43bef8920d392a82114fb8 + +do_configure() { + cd build_unix + ../dist/configure ${CONFIGURE_SHARED_ARGS} --enable-compat185 \ + --enable-cxx --enable-static --enable-dbm +} + +do_build() { + cd build_unix + make LIBSO_LIBS=-lpthread ${makejobs} +} + +do_install() { + cd build_unix + make DESTDIR=${DESTDIR} install -post_install() { chmod 755 ${DESTDIR}/usr/bin/* vmkdir usr/share/doc/${pkgname}-${version} mv ${DESTDIR}/usr/docs/* ${DESTDIR}/usr/share/doc/${pkgname}-${version} @@ -25,38 +33,38 @@ post_install() { db-devel_package() { depends="libdb>=${version} libdb-cxx>=${version}" - short_desc+=" -- development files" + short_desc+=" - development files" pkg_install() { vmove usr/include + vmove "usr/lib/*.a" } } db-docs_package() { - short_desc+=" -- documentation files" + short_desc+=" - documentation files" noarch=yes pkg_install() { vmove usr/share/doc } } -db_package() { - pkg_install() { - vmove usr/bin - } -} - libdb-cxx_package() { - short_desc+=" -- C++ shared libraries" + short_desc+=" - C++ shared libraries" pkg_install() { vmove "usr/lib/libdb_cxx*.so*" } } libdb_package() { - short_desc+=" -- C shared libraries" - replaces="db<4.8.26" + short_desc+=" - C shared libraries" pkg_install() { vmove "usr/lib/libdb.so*" vmove "usr/lib/libdb-*.so*" } } + +db_package() { + pkg_install() { + vmove all + } +}