diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2010-02-23 00:31:17 +0000 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2010-02-23 00:31:17 +0000 |
commit | 30fff3707e5a0e6fed44d7a75c720a6ff1767d05 (patch) | |
tree | 20e054b670c28e1c2e3169945f574be11b5fdec2 /sys-cluster | |
parent | version bump (diff) | |
download | historical-30fff3707e5a0e6fed44d7a75c720a6ff1767d05.tar.gz historical-30fff3707e5a0e6fed44d7a75c720a6ff1767d05.tar.bz2 historical-30fff3707e5a0e6fed44d7a75c720a6ff1767d05.zip |
Version bump. Update init scripts. Proxy commit for Pavel Stratil.
Package-Manager: portage-2.2_rc63/cvs/Linux x86_64
Diffstat (limited to 'sys-cluster')
-rw-r--r-- | sys-cluster/gearmand/ChangeLog | 9 | ||||
-rw-r--r-- | sys-cluster/gearmand/Manifest | 16 | ||||
-rw-r--r-- | sys-cluster/gearmand/files/gearmand.conf.d | 3 | ||||
-rw-r--r-- | sys-cluster/gearmand/files/gearmand.init.d | 3 | ||||
-rw-r--r-- | sys-cluster/gearmand/gearmand-0.12.ebuild | 100 | ||||
-rw-r--r-- | sys-cluster/gearmand/metadata.xml | 4 |
6 files changed, 126 insertions, 9 deletions
diff --git a/sys-cluster/gearmand/ChangeLog b/sys-cluster/gearmand/ChangeLog index 8228c1384c16..e0521b4f94f9 100644 --- a/sys-cluster/gearmand/ChangeLog +++ b/sys-cluster/gearmand/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sys-cluster/gearmand # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/gearmand/ChangeLog,v 1.5 2010/02/09 19:18:39 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/gearmand/ChangeLog,v 1.6 2010/02/23 00:31:16 scarabeus Exp $ + +*gearmand-0.12 (23 Feb 2010) + + 23 Feb 2010; Tomáš Chvátal <scarabeus@gentoo.org> + +gearmand-0.12.ebuild, files/gearmand.conf.d, files/gearmand.init.d, + metadata.xml: + Version bump. Update init scripts. Proxy commit for Pavel Stratil. 09 Feb 2010; Diego E. Pettenò <flameeyes@gentoo.org> gearmand-0.11-r2.ebuild: diff --git a/sys-cluster/gearmand/Manifest b/sys-cluster/gearmand/Manifest index de5c2eeb16cb..cfd1ade6270a 100644 --- a/sys-cluster/gearmand/Manifest +++ b/sys-cluster/gearmand/Manifest @@ -1,16 +1,18 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -AUX gearmand.conf.d 1527 RMD160 8ac71a123edaea9d072e98beaaea0fb120fb1f82 SHA1 1f07a9ce72dc3837b8016eba2ad86bc5989f368c SHA256 8bbc8d9f3fa064de1ed44f5678b89d18b681a4f1602d37f5019fcd8b0032ffd8 -AUX gearmand.init.d 3091 RMD160 0ea13278e1a78b9f9b30059bc885ebbadc761e6a SHA1 465d613cc5913ca2e5954d65c462025debc94395 SHA256 34ad4ff0bc8fd6c7c5af38998dbe7a21840e95c91bacaf4f170bd2f90397dc6e +AUX gearmand.conf.d 1542 RMD160 b903adca1eacbe87b69fdfe9f7b076666578a0bc SHA1 b863fadd280f7371159a958b20ec7c52fecd25be SHA256 a99bd1672091da3d4c2776225dacc497a5a9fb36ff8b34a464cd984cf584a29e +AUX gearmand.init.d 3219 RMD160 b1337b9cee9e1c7ef1644374772fbc82f54cba0a SHA1 f04a7aab1b3a270d292ab9795411f164d6d1fd6e SHA256 cf2cae57d028ea1405498238db0a63a577198dfcc2215b0c29eba0afb52b32f5 DIST gearmand-0.11.tar.gz 593324 RMD160 d5d79c9153fa496f690875b8572c825c826ba7cd SHA1 6b3d7fdb3d2d19a1cafa82efa0a443df190fb5db SHA256 25848a11bc4ba91329e8992c5a3ccbb82afe104ef558e67cf3ca9669d3044a92 +DIST gearmand-0.12.tar.gz 562096 RMD160 bc55d2f84e3b2deaa71d491fd1ea157b45553802 SHA1 d6115c7041813f5816c0388ce510ff16be155d47 SHA256 c7b818293ade625f0ebaac6b84350e3f4b7e1b2f60b0f345f255064ce9f1d0ec EBUILD gearmand-0.11-r2.ebuild 2813 RMD160 18e73af7af7081458705b53c0fc05d50e9d4b6d0 SHA1 dbc0a8b419939281b2d86d22f179aeb6d2865e5c SHA256 3612775b153fead90b1a9f5ad9d429acde6b15da864e1fd671fe2ab1b0c204ef -MISC ChangeLog 1407 RMD160 5efdd9fda30e6d2c47797b293647ecdbd3c64caf SHA1 95782611f8b6a3b85191aa9f50f83ba748a98793 SHA256 f93dbe402056168afb7823c23c0098c6d7615a456c466867b6296b9763abc03e -MISC metadata.xml 861 RMD160 277e8cb649210fbea5975f729a284805d00fe3c6 SHA1 c0a5aecfd117c1a098c29bf9916ae56d8688cfd9 SHA256 1676092f10cab70262bd06a8540235a6832e4278a1a0aefe3681a1618146f687 +EBUILD gearmand-0.12.ebuild 2827 RMD160 63503feed56ece9de44725529230c6d7393f3f6e SHA1 cf3f0212498fca23dda9dbfe209eeec58c13a022 SHA256 aa49e9cfb1ca868d4f4aebc06292f91ada18ad664cb5694e7b54dda4279a6f74 +MISC ChangeLog 1649 RMD160 50771e3bc6205c4f38c5b9096dfe18efa2f29c9e SHA1 cb817c78d570d6596fe703305f545be7825ec14a SHA256 f572f36d1fe22eec0a009b19868006e8de9c8ed389f33b041a4a9f4670f27594 +MISC metadata.xml 973 RMD160 8a1b2219c57d0790974dca96a117aa875975363f SHA1 213542f7a03a8c8a62b1b442610f9299c28278c9 SHA256 e58659f80ca2946ad932cf81f1263e0d55f9daf1a52ed8d089c86a9659f42e30 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) -iEYEARECAAYFAktxtR0ACgkQAiZjviIA2XgFYQCeOcClbEUYYMYUwJIvhN0SY49a -3iIAoM3HQis5EqCwe5tT6DARcQclv0fC -=68tJ +iEYEARECAAYFAkuDIXAACgkQHB6c3gNBRYfKkwCgsbDCOdOGQgv5tmvytMp7Bo2g +t44An3e8DZ2wkg8nSl6YJIgIoh22R1D1 +=0/Dw -----END PGP SIGNATURE----- diff --git a/sys-cluster/gearmand/files/gearmand.conf.d b/sys-cluster/gearmand/files/gearmand.conf.d index 9786d2c517c4..aeb49d5c6b9e 100644 --- a/sys-cluster/gearmand/files/gearmand.conf.d +++ b/sys-cluster/gearmand/files/gearmand.conf.d @@ -1,7 +1,8 @@ # /etc/conf.d/gearmand: config file for /etc/init.d/gearmand # Persistent queue store -# The following queue stores are available: drizzle|memcache|mysql|postgre|sqlite|none +# The following queue stores are available: +# drizzle|memcache|mysql|postgre|sqlite|tokyocabinet|none # If you do not wish to use persistent queues, leave this option commented out. # Note that persistent queue mechanisms are mutally exclusive. #PERSISTENT="" diff --git a/sys-cluster/gearmand/files/gearmand.init.d b/sys-cluster/gearmand/files/gearmand.init.d index 895021e11f4c..10ec883f8a35 100644 --- a/sys-cluster/gearmand/files/gearmand.init.d +++ b/sys-cluster/gearmand/files/gearmand.init.d @@ -49,6 +49,9 @@ start() { [ ${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}" ;; diff --git a/sys-cluster/gearmand/gearmand-0.12.ebuild b/sys-cluster/gearmand/gearmand-0.12.ebuild new file mode 100644 index 000000000000..123197efa679 --- /dev/null +++ b/sys-cluster/gearmand/gearmand-0.12.ebuild @@ -0,0 +1,100 @@ +# 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.1 2010/02/23 00:31:16 scarabeus 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" +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/libdrizzle ) + 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/metadata.xml b/sys-cluster/gearmand/metadata.xml index 1a3565061d04..3a668c81443d 100644 --- a/sys-cluster/gearmand/metadata.xml +++ b/sys-cluster/gearmand/metadata.xml @@ -25,5 +25,9 @@ Support <pkg>dev-db/libdrizzle</pkg> for the queue storage. This also adds support for MySQL storage. </flag> + <flag name="tokyocabinet"> + Support <pkg>dev-db/tokyocabinet</pkg> for the queue storage. + </flag> + </use> </pkgmetadata> |