Added db-4.8.24 build template.

--HG--
extra : convert_revision : e2fce8b8b420cd9bca862e652564dee04311646d
This commit is contained in:
Juan RP 2009-10-13 06:54:09 +02:00
parent 8fc22a5cce
commit e4e7ff4e6d
4 changed files with 68 additions and 0 deletions

1
templates/db-devel Symbolic link
View file

@ -0,0 +1 @@
db

2
templates/db/depends Normal file
View file

@ -0,0 +1,2 @@
abi_depends=4.8.24
api_depends=${abi_depends}

View file

@ -0,0 +1,16 @@
# Template file for 'db-devel'.
#
short_desc="${short_desc} (development files)"
long_desc="${long_desc}
This package contains files for development, headers, static libs, etc."
Add_dependency run db
do_install()
{
mkdir -p ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr
mv ${SRCPKGDESTDIR}/usr/lib/*.a ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/share ${DESTDIR}/usr
}

49
templates/db/template Normal file
View file

@ -0,0 +1,49 @@
# Template file for 'db'
pkgname=db
version=4.8.24
wrksrc="db-${version}/build_unix"
distfiles="http://download-uk.oracle.com/berkeley-db/db-${version}.tar.gz"
build_style=gnu_configure
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>"
checksum=bcbd9021250d9cb5992a1adf83cc7c9f08de7d5cfe02a25dbef928316bff5c88
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."
subpackages="devel"
Add_dependency full glibc
Add_dependency full gcc-libstdc++
post_install()
{
install -d ${DESTDIR}/usr/share/doc/${pkgname}-${version}
mv ${DESTDIR}/usr/docs/* ${DESTDIR}/usr/share/doc/${pkgname}-${version}
rmdir ${DESTDIR}/usr/docs
}