Gentoo Archives: gentoo-commits

From: "Tomas Chvatal (scarabeus)" <scarabeus@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-cluster/gearmand: metadata.xml ChangeLog gearmand-0.12.ebuild
Date: Tue, 23 Feb 2010 00:31:22
Message-Id: E1NjigH-00045q-F2@stork.gentoo.org
1 scarabeus 10/02/23 00:31:17
2
3 Modified: metadata.xml ChangeLog
4 Added: gearmand-0.12.ebuild
5 Log:
6 Version bump. Update init scripts. Proxy commit for Pavel Stratil.
7 (Portage version: 2.2_rc63/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.3 sys-cluster/gearmand/metadata.xml
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/gearmand/metadata.xml?rev=1.3&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/gearmand/metadata.xml?rev=1.3&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/gearmand/metadata.xml?r1=1.2&r2=1.3
15
16 Index: metadata.xml
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-cluster/gearmand/metadata.xml,v
19 retrieving revision 1.2
20 retrieving revision 1.3
21 diff -u -r1.2 -r1.3
22 --- metadata.xml 20 Dec 2009 21:49:38 -0000 1.2
23 +++ metadata.xml 23 Feb 2010 00:31:16 -0000 1.3
24 @@ -25,5 +25,9 @@
25 Support <pkg>dev-db/libdrizzle</pkg> for the queue storage. This
26 also adds support for MySQL storage.
27 </flag>
28 + <flag name="tokyocabinet">
29 + Support <pkg>dev-db/tokyocabinet</pkg> for the queue storage.
30 + </flag>
31 +
32 </use>
33 </pkgmetadata>
34
35
36
37 1.6 sys-cluster/gearmand/ChangeLog
38
39 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/gearmand/ChangeLog?rev=1.6&view=markup
40 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/gearmand/ChangeLog?rev=1.6&content-type=text/plain
41 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/gearmand/ChangeLog?r1=1.5&r2=1.6
42
43 Index: ChangeLog
44 ===================================================================
45 RCS file: /var/cvsroot/gentoo-x86/sys-cluster/gearmand/ChangeLog,v
46 retrieving revision 1.5
47 retrieving revision 1.6
48 diff -u -r1.5 -r1.6
49 --- ChangeLog 9 Feb 2010 19:18:39 -0000 1.5
50 +++ ChangeLog 23 Feb 2010 00:31:16 -0000 1.6
51 @@ -1,6 +1,13 @@
52 # ChangeLog for sys-cluster/gearmand
53 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
54 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/gearmand/ChangeLog,v 1.5 2010/02/09 19:18:39 flameeyes Exp $
55 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/gearmand/ChangeLog,v 1.6 2010/02/23 00:31:16 scarabeus Exp $
56 +
57 +*gearmand-0.12 (23 Feb 2010)
58 +
59 + 23 Feb 2010; Tomáš Chvátal <scarabeus@g.o>
60 + +gearmand-0.12.ebuild, files/gearmand.conf.d, files/gearmand.init.d,
61 + metadata.xml:
62 + Version bump. Update init scripts. Proxy commit for Pavel Stratil.
63
64 09 Feb 2010; Diego E. Pettenò <flameeyes@g.o>
65 gearmand-0.11-r2.ebuild:
66
67
68
69 1.1 sys-cluster/gearmand/gearmand-0.12.ebuild
70
71 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/gearmand/gearmand-0.12.ebuild?rev=1.1&view=markup
72 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/gearmand/gearmand-0.12.ebuild?rev=1.1&content-type=text/plain
73
74 Index: gearmand-0.12.ebuild
75 ===================================================================
76 # Copyright 1999-2010 Gentoo Foundation
77 # Distributed under the terms of the GNU General Public License v2
78 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/gearmand/gearmand-0.12.ebuild,v 1.1 2010/02/23 00:31:16 scarabeus Exp $
79
80 EAPI=2
81
82 inherit flag-o-matic libtool
83
84 DESCRIPTION="Generic framework to farm out work to other machines"
85 HOMEPAGE="http://www.gearman.org/"
86 SRC_URI="http://launchpad.net/gearmand/trunk/${PV}/+download/${P}.tar.gz"
87
88 LICENSE="MIT"
89 SLOT="0"
90 KEYWORDS="~amd64"
91 IUSE="debug tcmalloc +memcache drizzle sqlite tokyocabinet" # postgres
92 # postgresql support is broken right now so keep it disabled
93
94 RDEPEND="dev-libs/libevent
95 || ( >=sys-apps/util-linux-2.16 <sys-libs/e2fsprogs-libs-1.41.8 )
96 tcmalloc? ( dev-util/google-perftools )
97 memcache? ( dev-libs/libmemcached )
98 drizzle? ( dev-db/libdrizzle )
99 sqlite? ( dev-db/sqlite:3 )
100 tokyocabinet? ( dev-db/tokyocabinet )"
101 #postgres? ( dev-db/postgresql-base )"
102 DEPEND="${RDEPEND}"
103
104 pkg_setup() {
105 enewuser gearmand -1 -1 /dev/null nogroup
106 }
107
108 src_prepare() {
109 elibtoolize
110 }
111
112 src_configure() {
113 # Don't ever use --enable-assert since configure.ac is broken, and
114 # only does --disable-assert correctly.
115 if use debug; then
116 # Since --with-debug would turn off optimisations as well as
117 # enabling debug, we just enable debug through the
118 # preprocessor then.
119 append-flags -DDEBUG
120
121 else
122 myconf="${myconf} --disable-assert"
123 fi
124
125 #$(use_enable postgres libpq)
126 econf \
127 --disable-static \
128 --disable-dependency-tracking \
129 --disable-mtmalloc \
130 --disable-libpq \
131 $(use_enable tcmalloc) \
132 $(use_enable memcache libmemcached) \
133 $(use_enable drizzle libdrizzle) \
134 $(use_enable sqlite libsqlite3) \
135 $(use_enable tokyocabinet libtokyocabinet)
136 }
137
138 src_test() {
139 # Since libtool is stupid and doesn't discard /usr/lib64 from the
140 # load path, we'd end up testing against the installed copy of
141 # gearmand (bad).
142 #
143 # We thus cheat and "fix" the scripts by hand.
144 sed -i -e '/LD_LIBRARY_PATH=/s|/usr/lib64:||' "${S}"/tests/*_test \
145 || die "test fixing failed"
146
147 emake check || die "tests failed"
148 }
149
150 src_install() {
151 emake DESTDIR="${D}" install || die "install failed"
152
153 dodoc README AUTHORS ChangeLog || die "dodoc failed"
154
155 newinitd "${FILESDIR}"/gearmand.init.d gearmand || die
156 newconfd "${FILESDIR}"/gearmand.conf.d gearmand || die
157
158 keepdir /var/run/gearmand || die
159 fperms 0755 /var/run/gearmand || die
160 fowners gearmand:nogroup /var/run/gearmand || die
161
162 keepdir /var/log/gearmand || die
163 fperms 0755 /var/log/gearmand || die
164 fowners gearmand /var/log/gearmand || die
165
166 find "${D}" -name '*.la' -delete || die
167 }
168
169 pkg_postinst() {
170 elog ""
171 elog "Unless you set the PERSISTENT_TABLE option in"
172 elog "/etc/conf.d/gearmand, Gearmand will use table 'queue'."
173 elog "If such table doesn't exist, Gearmand will create it for you"
174 elog ""
175 }