2009-10-13 06:54:09 +02:00
|
|
|
# Template file for 'db'
|
|
|
|
pkgname=db
|
2010-01-14 00:16:21 +01:00
|
|
|
version=4.8.26
|
2010-12-11 02:27:33 +01:00
|
|
|
revision=1
|
2010-01-14 00:16:21 +01:00
|
|
|
wrksrc="db-${version}"
|
2009-10-13 06:54:09 +02:00
|
|
|
distfiles="http://download-uk.oracle.com/berkeley-db/db-${version}.tar.gz"
|
|
|
|
build_style=gnu_configure
|
2010-01-14 00:16:21 +01:00
|
|
|
build_wrksrc="build_unix"
|
2009-10-13 06:54:09 +02:00
|
|
|
configure_script="../dist/configure"
|
|
|
|
configure_args="--enable-compat185 --enable-cxx --enable-o_direct
|
|
|
|
--enable-posixmutexes"
|
|
|
|
make_build_args="LIBSO_LIBS=-lpthread"
|
|
|
|
short_desc="The Berkeley DB from Oracle"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2010-01-14 00:16:21 +01:00
|
|
|
checksum=f755d15f79cf6fc5a61d94bc3c8cfd3f9cb0ce3d454379d5981c54b326809d41
|
2009-10-13 06:54:09 +02:00
|
|
|
long_desc="
|
|
|
|
Berkeley DB is an embeddable database system that supports keyed access to
|
|
|
|
data. The software is distributed in source code form, and developers can
|
|
|
|
compile and link the source code into a single library for inclusion
|
|
|
|
directly in their applications.
|
|
|
|
|
|
|
|
Developers may choose to store data in any of several different storage
|
|
|
|
structures to satisfy the requirements of a particular application. In
|
|
|
|
database terminology, these storage structures and the code that operates on
|
|
|
|
them are called access methods. The library includes support for the
|
|
|
|
following access methods:
|
|
|
|
|
|
|
|
* B+tree: Stores keys in sorted order, using either a programmer-supplied
|
|
|
|
ordering function or a default function that does lexicographical
|
|
|
|
ordering of keys. Applications may perform equality or range searches.
|
|
|
|
* Hashing: Stores records in a hash table for fast searches based on
|
|
|
|
strict equality. Extended Linear Hashing modifies the hash function
|
|
|
|
used by the table as new records are inserted, in order to keep buckets
|
|
|
|
underfull in the steady state.
|
|
|
|
* Fixed and Variable-Length Records: Stores fixed- or variable-length
|
|
|
|
records in sequential order. Record numbers may be immutable or
|
|
|
|
mutable, i.e., permitting new records to be inserted between existing
|
|
|
|
records or requiring that new records be added only at the end of the
|
|
|
|
database."
|
|
|
|
|
2010-12-11 02:27:33 +01:00
|
|
|
subpackages="libdb db-docs db-devel"
|
2010-01-10 13:41:08 +01:00
|
|
|
Add_dependency run glibc
|
2010-12-11 02:27:33 +01:00
|
|
|
Add_dependency run libdb
|
2009-10-13 06:54:09 +02:00
|
|
|
|
|
|
|
post_install()
|
|
|
|
{
|
|
|
|
install -d ${DESTDIR}/usr/share/doc/${pkgname}-${version}
|
|
|
|
mv ${DESTDIR}/usr/docs/* ${DESTDIR}/usr/share/doc/${pkgname}-${version}
|
|
|
|
rmdir ${DESTDIR}/usr/docs
|
|
|
|
}
|