summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2012-06-21 15:08:51 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2012-06-21 15:08:51 +0000
commitb32da9d6a956e1576335a4b90c4e37a404bebee4 (patch)
treefba421a7ba11801c833a335fcd4b591ff9ea568c /sys-cluster/gearmand
parentStable for HPPA (bug #422673). (diff)
downloadhistorical-b32da9d6a956e1576335a4b90c4e37a404bebee4.tar.gz
historical-b32da9d6a956e1576335a4b90c4e37a404bebee4.tar.bz2
historical-b32da9d6a956e1576335a4b90c4e37a404bebee4.zip
Remove old and fix append-cppflags.
Package-Manager: portage-2.2.0_alpha110/cvs/Linux x86_64
Diffstat (limited to 'sys-cluster/gearmand')
-rw-r--r--sys-cluster/gearmand/ChangeLog6
-rw-r--r--sys-cluster/gearmand/Manifest23
-rw-r--r--sys-cluster/gearmand/files/gearmand.init.d92
-rw-r--r--sys-cluster/gearmand/gearmand-0.12.ebuild100
-rw-r--r--sys-cluster/gearmand/gearmand-0.14.ebuild94
-rw-r--r--sys-cluster/gearmand/gearmand-0.24.ebuild92
6 files changed, 13 insertions, 394 deletions
diff --git a/sys-cluster/gearmand/ChangeLog b/sys-cluster/gearmand/ChangeLog
index 82f18f4c9797..cd7b359ac699 100644
--- a/sys-cluster/gearmand/ChangeLog
+++ b/sys-cluster/gearmand/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-cluster/gearmand
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/gearmand/ChangeLog,v 1.14 2012/06/21 14:43:30 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/gearmand/ChangeLog,v 1.15 2012/06/21 15:08:50 flameeyes Exp $
+
+ 21 Jun 2012; Diego E. Pettenò <flameeyes@gentoo.org> -files/gearmand.init.d,
+ -gearmand-0.12.ebuild, -gearmand-0.14.ebuild, -gearmand-0.24.ebuild:
+ Remove old and fix append-cppflags.
21 Jun 2012; Diego E. Pettenò <flameeyes@gentoo.org>
+files/gearmand-0.33+gcc-4.7.patch, gearmand-0.33.ebuild:
diff --git a/sys-cluster/gearmand/Manifest b/sys-cluster/gearmand/Manifest
index 2fcb691834c5..457c96c0954b 100644
--- a/sys-cluster/gearmand/Manifest
+++ b/sys-cluster/gearmand/Manifest
@@ -3,26 +3,19 @@ Hash: SHA1
AUX gearmand-0.33+gcc-4.7.patch 334 RMD160 10903b714a6b862f7d32e2cd6307dc79106800a2 SHA1 ad881206e914bd203b7d0e0a757f426b26e967be SHA256 3f59c51ce930d68a2bce9be02f7f2f3a9b1ef7367fb428a4942a705e0fa9ab39
AUX gearmand.conf.d 1542 RMD160 b903adca1eacbe87b69fdfe9f7b076666578a0bc SHA1 b863fadd280f7371159a958b20ec7c52fecd25be SHA256 a99bd1672091da3d4c2776225dacc497a5a9fb36ff8b34a464cd984cf584a29e
-AUX gearmand.init.d 3517 RMD160 f60730cb4378fb4856aeeae77f13232746efe390 SHA1 3d713da0239f33ee4f20b61e7b288f0d6efdb112 SHA256 07a8e9c1a8d4d859b9e4e3a6520989e7b690bf9dca1b630a2e171a8eee59ec6c
AUX gearmand.init.d.2 3223 RMD160 791ba36cffed1fcae0396abef366bd8b744d0d7a SHA1 b3bf8d726cecbbec0b2f47bcab75fb9373d7d27c SHA256 69b7f8ab309e90a0fd37310ec9c5db3df69a278acd8efae88edaf6e45c256c2b
-DIST gearmand-0.12.tar.gz 562096 RMD160 bc55d2f84e3b2deaa71d491fd1ea157b45553802 SHA1 d6115c7041813f5816c0388ce510ff16be155d47 SHA256 c7b818293ade625f0ebaac6b84350e3f4b7e1b2f60b0f345f255064ce9f1d0ec
-DIST gearmand-0.14.tar.gz 559748 RMD160 6b1c305fc830fac8d0eb6493016295bed609a9fe SHA1 11d1a3d530963861e53504582fc17c5184d249b8 SHA256 8e060683dd4b2bfc25a68e22924597ae50bbfd4126966e4088b47c3caa64e25c
-DIST gearmand-0.24.tar.gz 746549 RMD160 8b63c52d32136ffd6298c42bbd33c8aed46a3c0e SHA1 daf38d6f93134002d85f28f664a870696347d2d7 SHA256 cbb14a118cf8e26b5cdc68fade41d07f09f13f52ffed2d9a1c0b431e6838df81
DIST gearmand-0.33.tar.gz 813193 RMD160 993c48fd7dc8fecefa052cd9a7d2e13945a58ee9 SHA1 94dc8b9eddcdb79ee25aed94f301cda0d57710f6 SHA256 b3f2a0218213a7276b28ce4b6c4b7900f37e0e60123e15494502429b5f78bded
-EBUILD gearmand-0.12.ebuild 2829 RMD160 64a7771478883eacb7f2516d885697de2737ef55 SHA1 49e8a78b43aced70f290b3f7302f8e66d6e69296 SHA256 afed90f1bcf29471e8010fc5dff5e1b82ef5c3fc747d4223cb42176cd82d7abc
-EBUILD gearmand-0.14.ebuild 2664 RMD160 3b7787e3816ff8f02ddaccce03a02c0eb73e8dd6 SHA1 a8e036e3428ee1e9adcbd591ae1ca6c4ad22d718 SHA256 2ccc91f9c48ff07af1833dfa4cf16684065f2cd25d6b464de2539ae237f6b0ee
-EBUILD gearmand-0.24.ebuild 2591 RMD160 2055fad5e486c91a6692bf4cae389ee599c25afc SHA1 091c2d2b9c409be5d3b6d366fdc0f2f09acc0501 SHA256 26c654255ab04613843d28f800c469629d898857164f321f8716612bc6e33279
EBUILD gearmand-0.33.ebuild 2478 RMD160 43360ddbe758cb0145e7f30eba0bf051d1128dea SHA1 5c576c7248df0d0dfb23f6761b85fc46612c048b SHA256 5f5d5cc8c7877a59863a3a67bcc35f2fd0711a5854f4d540569def4beda31d50
-MISC ChangeLog 2990 RMD160 50d1348ee499d73076172671c864ac94ba9e19ed SHA1 912cf0e12b9e2d1aa00d59524f9a10224cf6ffda SHA256 83121a3eda3f5d6895fc57c5c52357adc9a658dab5be1ced1e9b0d64cb50936c
+MISC ChangeLog 3180 RMD160 4a8889917cd0899cd583cdf1ba49f691e752559c SHA1 3552a0e6689940b61524135e85e59c78a7ad4f86 SHA256 97ea5a53e9fcd7b6a910b5910bb860eccccab9ef45a14d334f30b226120d7adc
MISC metadata.xml 776 RMD160 827a7da1efa2749bb340482321e036ae0ff7275f SHA1 d884e5441ea57700493046901fdaafff5753223f SHA256 e52a8e23521a7a06df3e3c641e9ccc9e8086db7641d9be922e36d922c52b3561
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iQEcBAEBAgAGBQJP4zM3AAoJEBzRPIrUMBNCVhsH/iwmMnPw6auvFsWnIOXBfGhb
-MVjTO39YHqCuX854dy85w3DJRRmBdGq8NPnKkCYiQpYVbD7+jOFOP22/sIAJ+LZe
-yY9B6O8nHmUTEhf1ASfUHLXHr7LWO30UhFvzc2mEhdPhstJdTICnyXaEqjyoRTM8
-xL9Oi89yz4ibx3snNPpiDm8UIVFKCuR4tz5QCLe+uwGjXeny85NS4ubyn1VECF3+
-42xuk8VTZbZxigdb/k6u5X21LIy3kL7gMFwSdwNe5Gij3Q1X04+iq+NaH1DLRvrP
-1Lun2rsds5AIFyzGqOdAJru0OAahGhaHwMIwJCe9H15mZSc/xXlWhGe/cSNf3wk=
-=ngYR
+iQEcBAEBAgAGBQJP4zktAAoJEBzRPIrUMBNCCxQH/2yaip0v7WyyrSiJBqt84lq0
+1wUfKt9r0UQfnYvLhu1BowCKRnG3eRs1BKBcZuek+fnJ3ub50o+eR2Szm93X0/5E
+fFLnQJ/Q1GAFZO0iYPcBB9nENJjbtX3HY4/ANDgHBy5U+hM0NEzAtr9Y7YRonRO2
+e0u2TUOKeCRcCcYA/jOKD5kB1yKgL9w8iR0cJ0u9ZXEfQc+UF4nKuX0QNb8ui/3c
+CXHTusp3iYsWA+Gq6dxAqcvYhzmOe58myp10EXHYxf5ei6huwugxKbBgsT30GuQL
+TNRytGyLoUShNSBMYxy/HdQa0Ga+o3V3Av7lh4AGb/zKpxzwGWCwGUrRmHv5lcE=
+=Knh4
-----END PGP SIGNATURE-----
diff --git a/sys-cluster/gearmand/files/gearmand.init.d b/sys-cluster/gearmand/files/gearmand.init.d
deleted file mode 100644
index 50414a77d45b..000000000000
--- a/sys-cluster/gearmand/files/gearmand.init.d
+++ /dev/null
@@ -1,92 +0,0 @@
-#!/sbin/runscript
-# Copyright 2009-2010 Pavel Stratil, senbonzakura.eu
-# Distributed under the terms of the GNU General Public License v2
-
-depend() {
- use localmount
-
- case $PERSISTENT in
- drizzle)
- use drizzle
- ;;
- memcache)
- use memcache
- ;;
- mysql)
- use mysql
- ;;
- postgre)
- use postgresql
- ;;
- *)
- ;;
- esac
-}
-
-start() {
- case ${PERSISTENT:-none} in
- drizzle|mysql)
- GEARMAND_PARAMS="${GEARMAND_PARAMS} -q libdrizzle"
- [ ${PERSISTENT_HOST} ] && GEARMAND_PARAMS="${GEARMAND_PARAMS} --libdrizzle-host=${PERSISTENT_HOST}"
- [ ${PERSISTENT_USER} ] && GEARMAND_PARAMS="${GEARMAND_PARAMS} --libdrizzle-user=${PERSISTENT_USER}"
- [ ${PERSISTENT_PASS} ] && GEARMAND_PARAMS="${GEARMAND_PARAMS} --libdrizzle-password=${PERSISTENT_PASS}"
- [ ${PERSISTENT_DB} ] && GEARMAND_PARAMS="${GEARMAND_PARAMS} --libdrizzle-db=${PERSISTENT_DB}"
- [ ${PERSISTENT_TABLE} ] && GEARMAND_PARAMS="${GEARMAND_PARAMS} --libdrizzle-table=${PERSISTENT_TABLE}"
- [ ${PERSISTENT_PORT} ] && GEARMAND_PARAMS="${GEARMAND_PARAMS} --libdrizzle-port=${PERSISTENT_PORT}"
- [ ${PERSISTENT_SOCKET} ] && GEARMAND_PARAMS="${GEARMAND_PARAMS} --libdrizzle-uds=${PERSISTENT_SOCKET}"
- [ ${PERSISTENT} == "mysql" ] && GEARMAND_PARAMS="${GEARMAND_PARAMS} --libdrizzle-mysql"
- ;;
- memcache)
- [ ${PERSISTENT_SERVERLIST} ] && GEARMAND_PARAMS="${GEARMAND_PARAMS} -q libmemcached --libmemcached-servers=${PERSISTENT_SERVERLIST}"
- ;;
- postgre)
- GEARMAND_PARAMS="${GEARMAND_PARAMS} -q libpq"
- [ ${PERSISTENT_HOST} ] && GEARMAND_PARAMS="${GEARMAND_PARAMS} --libpq-host=${PERSISTENT_HOST}"
- [ ${PERSISTENT_USER} ] && GEARMAND_PARAMS="${GEARMAND_PARAMS} --libpq-user=${PERSISTENT_USER}"
- [ ${PERSISTENT_PASS} ] && GEARMAND_PARAMS="${GEARMAND_PARAMS} --libpq-password=${PERSISTENT_PASS}"
- [ ${PERSISTENT_DB} ] && GEARMAND_PARAMS="${GEARMAND_PARAMS} --libpq-dbname=${PERSISTENT_DB}"
- [ ${PERSISTENT_PORT} ] && GEARMAND_PARAMS="${GEARMAND_PARAMS} --libpq-port=${PERSISTENT_PORT}"
- [ ${PERSISTENT_TABLE} ] && ewarn "Libpq doesn't recognise 'table' parameter."
- [ ${PERSISTENT_SOCKET} ] && ewarn "Libpq doesn't recognise 'socket' parameter. If no host is set, it automatically falls back to a socket."
- ;;
- tokyocabinet)
- GEARMAND_PARAMS="${GEARMAND_PARAMS} -q libtokyocabinet --libtokyocabinet-file=${PERSISTENT_FILE}"
- ;;
- sqlite)
- GEARMAND_PARAMS="${GEARMAND_PARAMS} -q libsqlite3 --libsqlite3-db=${PERSISTENT_FILE}"
- ;;
- none)
- ;;
- *)
- eerror "Wrong persistent queue store setting in /etc/conf.d/gearmand."
- return 1
- ;;
- esac
-
-
- if [ ! -d /var/run/gearmand ] ; then
- mkdir -p /var/run/gearmand
- chown gearmand:nogroup /var/run/gearmand
- chmod 0755 /var/run/gearmand
- fi
-
- if [ ! -d /var/log/gearmand ] ; then
- mkdir -p /var/log/gearmand
- chown gearmand:nogroup /var/log/gearmand
- chmod 0755 /var/log/gearmand
- fi
-
- ebegin "Starting ${SVCNAME}"
- start-stop-daemon --pidfile /var/run/gearmand/gearmand.pid --start \
- --exec /usr/sbin/gearmand -- --pid-file=/var/run/gearmand/gearmand.pid \
- --user=gearmand --daemon \
- --log-file=/var/log/gearmand/gearmand.log ${GEARMAND_PARAMS}
- eend $?
-}
-
-stop() {
- ebegin "Stopping ${SVCNAME}"
- start-stop-daemon --pidfile /var/run/gearmand/gearmand.pid --stop \
- --exec /usr/sbin/gearmand
- eend $?
-}
diff --git a/sys-cluster/gearmand/gearmand-0.12.ebuild b/sys-cluster/gearmand/gearmand-0.12.ebuild
deleted file mode 100644
index ebaec6cba91a..000000000000
--- a/sys-cluster/gearmand/gearmand-0.12.ebuild
+++ /dev/null
@@ -1,100 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/gearmand/gearmand-0.12.ebuild,v 1.4 2010/10/15 14:59:29 flameeyes Exp $
-
-EAPI=2
-
-inherit flag-o-matic libtool
-
-DESCRIPTION="Generic framework to farm out work to other machines"
-HOMEPAGE="http://www.gearman.org/"
-SRC_URI="http://launchpad.net/gearmand/trunk/${PV}/+download/${P}.tar.gz"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="debug tcmalloc +memcache drizzle sqlite tokyocabinet" # postgres
-# postgresql support is broken right now so keep it disabled
-
-RDEPEND="dev-libs/libevent
- || ( >=sys-apps/util-linux-2.16 <sys-libs/e2fsprogs-libs-1.41.8 )
- tcmalloc? ( dev-util/google-perftools )
- memcache? ( dev-libs/libmemcached )
- drizzle? ( dev-db/drizzle )
- sqlite? ( dev-db/sqlite:3 )
- tokyocabinet? ( dev-db/tokyocabinet )"
- #postgres? ( dev-db/postgresql-base )"
-DEPEND="${RDEPEND}"
-
-pkg_setup() {
- enewuser gearmand -1 -1 /dev/null nogroup
-}
-
-src_prepare() {
- elibtoolize
-}
-
-src_configure() {
- # Don't ever use --enable-assert since configure.ac is broken, and
- # only does --disable-assert correctly.
- if use debug; then
- # Since --with-debug would turn off optimisations as well as
- # enabling debug, we just enable debug through the
- # preprocessor then.
- append-flags -DDEBUG
-
- else
- myconf="${myconf} --disable-assert"
- fi
-
- #$(use_enable postgres libpq)
- econf \
- --disable-static \
- --disable-dependency-tracking \
- --disable-mtmalloc \
- --disable-libpq \
- $(use_enable tcmalloc) \
- $(use_enable memcache libmemcached) \
- $(use_enable drizzle libdrizzle) \
- $(use_enable sqlite libsqlite3) \
- $(use_enable tokyocabinet libtokyocabinet)
-}
-
-src_test() {
- # Since libtool is stupid and doesn't discard /usr/lib64 from the
- # load path, we'd end up testing against the installed copy of
- # gearmand (bad).
- #
- # We thus cheat and "fix" the scripts by hand.
- sed -i -e '/LD_LIBRARY_PATH=/s|/usr/lib64:||' "${S}"/tests/*_test \
- || die "test fixing failed"
-
- emake check || die "tests failed"
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die "install failed"
-
- dodoc README AUTHORS ChangeLog || die "dodoc failed"
-
- newinitd "${FILESDIR}"/gearmand.init.d gearmand || die
- newconfd "${FILESDIR}"/gearmand.conf.d gearmand || die
-
- keepdir /var/run/gearmand || die
- fperms 0755 /var/run/gearmand || die
- fowners gearmand:nogroup /var/run/gearmand || die
-
- keepdir /var/log/gearmand || die
- fperms 0755 /var/log/gearmand || die
- fowners gearmand /var/log/gearmand || die
-
- find "${D}" -name '*.la' -delete || die
-}
-
-pkg_postinst() {
- elog ""
- elog "Unless you set the PERSISTENT_TABLE option in"
- elog "/etc/conf.d/gearmand, Gearmand will use table 'queue'."
- elog "If such table doesn't exist, Gearmand will create it for you"
- elog ""
-}
diff --git a/sys-cluster/gearmand/gearmand-0.14.ebuild b/sys-cluster/gearmand/gearmand-0.14.ebuild
deleted file mode 100644
index 53783011c8e1..000000000000
--- a/sys-cluster/gearmand/gearmand-0.14.ebuild
+++ /dev/null
@@ -1,94 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/gearmand/gearmand-0.14.ebuild,v 1.3 2010/10/15 14:59:29 flameeyes Exp $
-
-EAPI=2
-
-inherit flag-o-matic libtool
-
-DESCRIPTION="Generic framework to farm out work to other machines"
-HOMEPAGE="http://www.gearman.org/"
-SRC_URI="http://launchpad.net/gearmand/trunk/${PV}/+download/${P}.tar.gz"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="debug tcmalloc +memcache drizzle sqlite tokyocabinet" # postgres
-# postgresql support is broken right now so keep it disabled
-RESTRICT="test"
-# restricting tests because of failures, package runs fine
-
-RDEPEND="dev-libs/libevent
- || ( >=sys-apps/util-linux-2.16 <sys-libs/e2fsprogs-libs-1.41.8 )
- tcmalloc? ( dev-util/google-perftools )
- memcache? ( dev-libs/libmemcached )
- drizzle? ( dev-db/drizzle )
- sqlite? ( dev-db/sqlite:3 )
- tokyocabinet? ( dev-db/tokyocabinet )"
- #postgres? ( dev-db/postgresql-base )"
-DEPEND="${RDEPEND}"
-
-pkg_setup() {
- enewuser gearmand -1 -1 /dev/null nogroup
-}
-
-src_prepare() {
- elibtoolize
-}
-
-src_configure() {
- # Don't ever use --enable-assert since configure.ac is broken, and
- # only does --disable-assert correctly.
- if use debug; then
- # Since --with-debug would turn off optimisations as well as
- # enabling debug, we just enable debug through the
- # preprocessor then.
- append-flags -DDEBUG
-
- else
- myconf="${myconf} --disable-assert"
- fi
-
- #$(use_enable postgres libpq)
- econf \
- --disable-static \
- --disable-dependency-tracking \
- --disable-mtmalloc \
- --disable-libpq \
- $(use_enable tcmalloc) \
- $(use_enable memcache libmemcached) \
- $(use_enable drizzle libdrizzle) \
- $(use_enable sqlite libsqlite3) \
- $(use_enable tokyocabinet libtokyocabinet)
-}
-
-src_test() {
- # Since libtool is stupid and doesn't discard /usr/lib64 from the
- # load path, we'd end up testing against the installed copy of
- # gearmand (bad).
- #
- # We thus cheat and "fix" the scripts by hand.
- sed -i -e '/LD_LIBRARY_PATH=/s|/usr/lib64:||' "${S}"/tests/*_test \
- || die "test fixing failed"
-
- emake check || die "tests failed"
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die "install failed"
-
- dodoc README AUTHORS ChangeLog || die "dodoc failed"
-
- newinitd "${FILESDIR}"/gearmand.init.d gearmand || die
- newconfd "${FILESDIR}"/gearmand.conf.d gearmand || die
-
- find "${D}" -name '*.la' -delete || die
-}
-
-pkg_postinst() {
- elog ""
- elog "Unless you set the PERSISTENT_TABLE option in"
- elog "/etc/conf.d/gearmand, Gearmand will use table 'queue'."
- elog "If such table doesn't exist, Gearmand will create it for you"
- elog ""
-}
diff --git a/sys-cluster/gearmand/gearmand-0.24.ebuild b/sys-cluster/gearmand/gearmand-0.24.ebuild
deleted file mode 100644
index d3276ca25015..000000000000
--- a/sys-cluster/gearmand/gearmand-0.24.ebuild
+++ /dev/null
@@ -1,92 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/gearmand/gearmand-0.24.ebuild,v 1.1 2011/10/22 00:31:33 flameeyes Exp $
-
-EAPI=2
-
-inherit flag-o-matic libtool
-
-DESCRIPTION="Generic framework to farm out work to other machines"
-HOMEPAGE="http://www.gearman.org/"
-SRC_URI="http://launchpad.net/gearmand/trunk/${PV}/+download/${P}.tar.gz"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="debug tcmalloc +memcache drizzle sqlite tokyocabinet postgres"
-
-RESTRICT="test"
-# restricting tests because of failures, package runs fine
-
-RDEPEND="dev-libs/libevent
- || ( >=sys-apps/util-linux-2.16 <sys-libs/e2fsprogs-libs-1.41.8 )
- tcmalloc? ( dev-util/google-perftools )
- memcache? ( >=dev-libs/libmemcached-0.47 )
- drizzle? ( dev-db/drizzle )
- sqlite? ( dev-db/sqlite:3 )
- tokyocabinet? ( dev-db/tokyocabinet )
- postgres? ( dev-db/postgresql-base:9.0 )"
-DEPEND="${RDEPEND}"
-
-pkg_setup() {
- enewuser gearmand -1 -1 /dev/null nogroup
-}
-
-src_prepare() {
- elibtoolize
-}
-
-src_configure() {
- # Don't ever use --enable-assert since configure.ac is broken, and
- # only does --disable-assert correctly.
- if use debug; then
- # Since --with-debug would turn off optimisations as well as
- # enabling debug, we just enable debug through the
- # preprocessor then.
- append-flags -DDEBUG
- else
- myconf="${myconf} --disable-assert"
- fi
-
- econf \
- --disable-static \
- --disable-dependency-tracking \
- --disable-mtmalloc \
- $(use_enable tcmalloc) \
- $(use_enable memcache libmemcached) \
- $(use_enable drizzle libdrizzle) \
- $(use_enable sqlite libsqlite3) \
- $(use_enable tokyocabinet libtokyocabinet) \
- $(use_enable postgres libpq)
-}
-
-src_test() {
- # Since libtool is stupid and doesn't discard /usr/lib64 from the
- # load path, we'd end up testing against the installed copy of
- # gearmand (bad).
- #
- # We thus cheat and "fix" the scripts by hand.
- sed -i -e '/LD_LIBRARY_PATH=/s|/usr/lib64:||' "${S}"/tests/*_test \
- || die "test fixing failed"
-
- emake check || die "tests failed"
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die "install failed"
-
- dodoc README AUTHORS ChangeLog || die "dodoc failed"
-
- newinitd "${FILESDIR}"/gearmand.init.d gearmand || die
- newconfd "${FILESDIR}"/gearmand.conf.d gearmand || die
-
- find "${D}" -name '*.la' -delete || die
-}
-
-pkg_postinst() {
- elog ""
- elog "Unless you set the PERSISTENT_TABLE option in"
- elog "/etc/conf.d/gearmand, Gearmand will use table 'queue'."
- elog "If such table doesn't exist, Gearmand will create it for you"
- elog ""
-}