db: move shared libs into libdb subpkg, move /usr/share/doc into -docs subpkg.

This commit is contained in:
Juan RP 2010-12-11 02:27:33 +01:00
parent ef9cfa20bf
commit fbdbcad15f
7 changed files with 43 additions and 6 deletions

1
srcpkgs/db-docs Symbolic link
View File

@ -0,0 +1 @@
db

View File

@ -5,7 +5,10 @@ long_desc="${long_desc}
This package contains files for development, headers, static libs, etc." This package contains files for development, headers, static libs, etc."
Add_dependency run db revision=1
Add_dependency run libstdc++-devel
Add_dependency run libdb
do_install() do_install()
{ {

View File

@ -0,0 +1,14 @@
# Template file for 'db-docs'.
#
short_desc="${short_desc} (documentation files)"
long_desc="${long_desc}
This package contains the documentation files for the API and utilities."
noarch=yes
do_install()
{
install -d ${DESTDIR}/usr/share
mv ${SRCPKGDESTDIR}/usr/share/doc ${DESTDIR}/usr/share
}

18
srcpkgs/db/libdb.template Normal file
View File

@ -0,0 +1,18 @@
# Template file for 'libdb'.
#
short_desc="${short_desc} - shared libraries"
long_desc="${long_desc}
This package contains the shared libraries for use in client programs."
replaces="db<4.8.26"
Add_dependency run libgcc
Add_dependency run glibc
Add_dependency run libstdc++
do_install()
{
install -d ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/*.so* ${DESTDIR}/usr/lib
}

View File

@ -1,6 +1,7 @@
# Template file for 'db' # Template file for 'db'
pkgname=db pkgname=db
version=4.8.26 version=4.8.26
revision=1
wrksrc="db-${version}" wrksrc="db-${version}"
distfiles="http://download-uk.oracle.com/berkeley-db/db-${version}.tar.gz" distfiles="http://download-uk.oracle.com/berkeley-db/db-${version}.tar.gz"
build_style=gnu_configure build_style=gnu_configure
@ -37,10 +38,9 @@ long_desc="
records or requiring that new records be added only at the end of the records or requiring that new records be added only at the end of the
database." database."
subpackages="db-devel" subpackages="libdb db-docs db-devel"
Add_dependency run glibc Add_dependency run glibc
Add_dependency run libgcc Add_dependency run libdb
Add_dependency run libstdc++
post_install() post_install()
{ {

1
srcpkgs/libdb Symbolic link
View File

@ -0,0 +1 @@
db

View File

@ -154,8 +154,8 @@ libgstpbutils-0.10.so gst-plugins-base gst-plugins-base-devel
libgstrtp-0.10.so gst-plugins-base gst-plugins-base-devel libgstrtp-0.10.so gst-plugins-base gst-plugins-base-devel
libbfd-2.21.so binutils binutils-devel libbfd-2.21.so binutils binutils-devel
libopcodes-2.21.so binutils binutils-devel libopcodes-2.21.so binutils binutils-devel
libdb-4.8.so db db-devel libdb-4.8.so libdb db-devel
libdb_cxx-4.8.so db db-devel libdb_cxx-4.8.so libdb db-devel
libperl.so perl libperl.so perl
libgdbm.so gdbm gdbm-devel libgdbm.so gdbm gdbm-devel
libgettextsrc-0.18.so gettext-libs gettext-devel libgettextsrc-0.18.so gettext-libs gettext-devel