diff options
author | Patrick Lauer <patrick@gentoo.org> | 2009-10-09 17:18:57 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2009-10-09 17:18:57 +0000 |
commit | afa56ff64014df38c794aae371c6fa4b74314e63 (patch) | |
tree | 614ffe2ef9be2641b6c4bbe50fb8d52988839cd9 /sys-libs/tdb | |
parent | Initial commit. Ebuilds based on those provided by Marcel Greter in #231273 (diff) | |
download | gentoo-2-afa56ff64014df38c794aae371c6fa4b74314e63.tar.gz gentoo-2-afa56ff64014df38c794aae371c6fa4b74314e63.tar.bz2 gentoo-2-afa56ff64014df38c794aae371c6fa4b74314e63.zip |
Initial commit. Ebuilds based on those provided by Marcel Greter in #231273
(Portage version: 2.2_rc44/cvs/Linux x86_64)
Diffstat (limited to 'sys-libs/tdb')
-rw-r--r-- | sys-libs/tdb/ChangeLog | 11 | ||||
-rw-r--r-- | sys-libs/tdb/metadata.xml | 13 | ||||
-rw-r--r-- | sys-libs/tdb/tdb-1.1.5.ebuild | 75 |
3 files changed, 99 insertions, 0 deletions
diff --git a/sys-libs/tdb/ChangeLog b/sys-libs/tdb/ChangeLog new file mode 100644 index 000000000000..538d466e880b --- /dev/null +++ b/sys-libs/tdb/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for sys-libs/tdb +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/tdb/ChangeLog,v 1.1 2009/10/09 17:18:57 patrick Exp $ + +*tdb-1.1.5 (09 Oct 2009) + + 09 Oct 2009; Patrick Lauer <patrick@gentoo.org> +tdb-1.1.5.ebuild, + +metadata.xml: + Initial commit. Ebuilds based on those provided by Marcel Greter in + #231273 + diff --git a/sys-libs/tdb/metadata.xml b/sys-libs/tdb/metadata.xml new file mode 100644 index 000000000000..ae64805c5668 --- /dev/null +++ b/sys-libs/tdb/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>samba</herd> + <maintainer> + <email>patrick@gentoo.org</email> + <name>Patrick Lauer</name> + </maintainer> +<use> + <flag name="tools">Install extra tools</flag> + <flag name="tdbtest">Install tdbtest app</flag> +</use> +</pkgmetadata> diff --git a/sys-libs/tdb/tdb-1.1.5.ebuild b/sys-libs/tdb/tdb-1.1.5.ebuild new file mode 100644 index 000000000000..e4d59bf93505 --- /dev/null +++ b/sys-libs/tdb/tdb-1.1.5.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/tdb/tdb-1.1.5.ebuild,v 1.1 2009/10/09 17:18:57 patrick Exp $ + +EAPI="2" + +inherit confutils eutils + +DESCRIPTION="tdb" +HOMEPAGE="http://tdb.samba.org/" +SRC_URI="http://samba.org/ftp/tdb/${P}.tar.gz" +LICENSE="GPL-3" +IUSE="python tools tdbtest" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc64 ~x86" + +DEPEND="!net-fs/samba-libs[tdb]" +RDEPEND="${DEPEND}" + +BINPROGS="bin/tdbdump bin/tdbtool bin/tdbbackup" + +src_prepare() { + + ./autogen.sh || die "autogen.sh failed" + + sed -i \ + -e 's|SHLD_FLAGS = @SHLD_FLAGS@|SHLD_FLAGS = @SHLD_FLAGS@ @LDFLAGS@|' \ + -e 's|CC = @CC@|CC = @CC@\ +LDFLAGS = @LDFLAGS@|' \ + Makefile.in || die "sed failed" + +} + +src_configure() { + + econf \ + --sysconfdir=/etc/samba \ + --localstatedir=/var \ + --enable-largefile \ + $(use_enable python) \ + || die "econf failed" + +} + +src_compile() { + + emake dirs || die "emake dirs failed" + emake showflags || die "emake showflags failed" + emake shared-build || die "emake shared-build failed" + if use tools ; then emake ${BINPROGS} || die "emake binaries failed"; fi + if use python ; then emake build-python || die "emake build-python failed"; fi + if use tdbtest ; then make bin/tdbtest || die "emake tdbtest failed"; fi + +} + +src_install() { + + dolib.a sharedbuild/lib/libtdb.a + dolib.so sharedbuild/lib/libtdb.so + + if use python || use tools ; then + emake install DESTDIR="${D}" || die "emake install failed" + fi + + if ! use tools ; then + for prog in ${BINPROGS} ; do + rm -f "${D}/usr/${prog}" + done + fi + + if use tdbtest ; then + dobin bin/tdbtest + fi + +} |