Lines 6-21
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= gearmand |
8 |
PORTNAME= gearmand |
9 |
PORTVERSION= 0.11 |
9 |
PORTVERSION= 0.12 |
10 |
CATEGORIES= devel |
10 |
CATEGORIES= devel |
11 |
MASTER_SITES= http://launchpad.net/gearmand/trunk/${PORTVERSION}/+download/ |
11 |
MASTER_SITES= http://launchpad.net/gearmand/trunk/${PORTVERSION}/+download/ |
12 |
|
12 |
|
13 |
MAINTAINER= gslin@gslin.org |
13 |
MAINTAINER= ports@FreeBSD.org |
14 |
COMMENT= Gearman C Server and Library |
14 |
COMMENT= Gearman C Server and Library |
15 |
|
15 |
|
16 |
LIB_DEPENDS= event:${PORTSDIR}/devel/libevent \ |
16 |
LIB_DEPENDS= event:${PORTSDIR}/devel/libevent \ |
17 |
uuid:${PORTSDIR}/misc/e2fsprogs-libuuid |
17 |
uuid:${PORTSDIR}/misc/e2fsprogs-libuuid |
18 |
|
18 |
|
|
|
19 |
CONFIGURE_ARGS= --disable-libdrizzle --disable-libtokyocabinet |
19 |
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" |
20 |
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" |
20 |
FETCH_ARGS= -pRr |
21 |
FETCH_ARGS= -pRr |
21 |
GNU_CONFIGURE= yes |
22 |
GNU_CONFIGURE= yes |
Lines 23-39
Link Here
|
23 |
USE_LDCONFIG= yes |
24 |
USE_LDCONFIG= yes |
24 |
USE_RC_SUBR= gearmand.sh |
25 |
USE_RC_SUBR= gearmand.sh |
25 |
|
26 |
|
26 |
OPTIONS= PQ "Enable PostgreSQL support" off \ |
27 |
OPTIONS= MEMCACHED "Enable memcached support" on \ |
27 |
SQLITE3 "Enable SQLite3 support" off \ |
28 |
PQ "Enable PostgreSQL support" off \ |
28 |
MEMCACHED "Enable memcached support" on |
29 |
SQLITE3 "Enable SQLite3 support" off |
29 |
|
30 |
|
30 |
MAN1= gearman.1 |
31 |
MAN1= gearman.1 |
31 |
MAN3= gearman_add_con.3 \ |
32 |
MAN3= gearman_bugreport.3 \ |
32 |
gearman_add_con_args.3 \ |
|
|
33 |
gearman_add_options.3 \ |
34 |
gearman_add_packet.3 \ |
35 |
gearman_add_packet_args.3 \ |
36 |
gearman_bugreport.3 \ |
37 |
gearman_client_add_options.3 \ |
33 |
gearman_client_add_options.3 \ |
38 |
gearman_client_add_server.3 \ |
34 |
gearman_client_add_server.3 \ |
39 |
gearman_client_add_servers.3 \ |
35 |
gearman_client_add_servers.3 \ |
Lines 69-75
Link Here
|
69 |
gearman_client_set_context.3 \ |
65 |
gearman_client_set_context.3 \ |
70 |
gearman_client_set_created_fn.3 \ |
66 |
gearman_client_set_created_fn.3 \ |
71 |
gearman_client_set_data_fn.3 \ |
67 |
gearman_client_set_data_fn.3 \ |
72 |
gearman_client_set_event_watch_fn.3 \ |
|
|
73 |
gearman_client_set_exception_fn.3 \ |
68 |
gearman_client_set_exception_fn.3 \ |
74 |
gearman_client_set_fail_fn.3 \ |
69 |
gearman_client_set_fail_fn.3 \ |
75 |
gearman_client_set_log_fn.3 \ |
70 |
gearman_client_set_log_fn.3 \ |
Lines 84-138
Link Here
|
84 |
gearman_client_task_free_all.3 \ |
79 |
gearman_client_task_free_all.3 \ |
85 |
gearman_client_timeout.3 \ |
80 |
gearman_client_timeout.3 \ |
86 |
gearman_client_wait.3 \ |
81 |
gearman_client_wait.3 \ |
87 |
gearman_clone.3 \ |
|
|
88 |
gearman_clone_con.3 \ |
89 |
gearman_con_add_options.3 \ |
90 |
gearman_con_close.3 \ |
91 |
gearman_con_connect.3 \ |
92 |
gearman_con_context.3 \ |
93 |
gearman_con_flush.3 \ |
94 |
gearman_con_free.3 \ |
95 |
gearman_con_options.3 \ |
96 |
gearman_con_protocol_context.3 \ |
97 |
gearman_con_read.3 \ |
98 |
gearman_con_recv.3 \ |
99 |
gearman_con_recv_data.3 \ |
100 |
gearman_con_remove_options.3 \ |
101 |
gearman_con_reset_addrinfo.3 \ |
102 |
gearman_con_send.3 \ |
103 |
gearman_con_send_data.3 \ |
104 |
gearman_con_set_context.3 \ |
105 |
gearman_con_set_events.3 \ |
106 |
gearman_con_set_fd.3 \ |
107 |
gearman_con_set_host.3 \ |
108 |
gearman_con_set_options.3 \ |
109 |
gearman_con_set_packet_pack_fn.3 \ |
110 |
gearman_con_set_packet_unpack_fn.3 \ |
111 |
gearman_con_set_port.3 \ |
112 |
gearman_con_set_protocol_context.3 \ |
113 |
gearman_con_set_protocol_context_free_fn.3 \ |
114 |
gearman_con_set_revents.3 \ |
115 |
gearman_conf_create.3 \ |
116 |
gearman_conf_errno.3 \ |
117 |
gearman_conf_error.3 \ |
118 |
gearman_conf_free.3 \ |
119 |
gearman_conf_module_add_option.3 \ |
120 |
gearman_conf_module_create.3 \ |
121 |
gearman_conf_module_find.3 \ |
122 |
gearman_conf_module_free.3 \ |
123 |
gearman_conf_module_value.3 \ |
124 |
gearman_conf_parse_args.3 \ |
125 |
gearman_conf_return.3 \ |
126 |
gearman_conf_set_options.3 \ |
127 |
gearman_conf_usage.3 \ |
128 |
gearman_create.3 \ |
129 |
gearman_echo.3 \ |
130 |
gearman_errno.3 \ |
131 |
gearman_error.3 \ |
132 |
gearman_flush_all.3 \ |
133 |
gearman_free.3 \ |
134 |
gearman_free_all_cons.3 \ |
135 |
gearman_free_all_packets.3 \ |
136 |
gearman_job_free.3 \ |
82 |
gearman_job_free.3 \ |
137 |
gearman_job_free_all.3 \ |
83 |
gearman_job_free_all.3 \ |
138 |
gearman_job_function_name.3 \ |
84 |
gearman_job_function_name.3 \ |
Lines 147-254
Link Here
|
147 |
gearman_job_unique.3 \ |
93 |
gearman_job_unique.3 \ |
148 |
gearman_job_workload.3 \ |
94 |
gearman_job_workload.3 \ |
149 |
gearman_job_workload_size.3 \ |
95 |
gearman_job_workload_size.3 \ |
150 |
gearman_log.3 \ |
|
|
151 |
gearman_log_crazy.3 \ |
152 |
gearman_log_debug.3 \ |
153 |
gearman_log_error.3 \ |
154 |
gearman_log_fatal.3 \ |
155 |
gearman_log_info.3 \ |
156 |
gearman_options.3 \ |
157 |
gearman_packet_add_arg.3 \ |
158 |
gearman_packet_free.3 \ |
159 |
gearman_packet_give_data.3 \ |
160 |
gearman_packet_pack.3 \ |
161 |
gearman_packet_pack_header.3 \ |
162 |
gearman_packet_take_data.3 \ |
163 |
gearman_packet_unpack.3 \ |
164 |
gearman_packet_unpack_header.3 \ |
165 |
gearman_parse_servers.3 \ |
96 |
gearman_parse_servers.3 \ |
166 |
gearman_ready.3 \ |
|
|
167 |
gearman_remove_options.3 \ |
168 |
gearman_send_all.3 \ |
169 |
gearman_server_client_add.3 \ |
170 |
gearman_server_client_create.3 \ |
171 |
gearman_server_client_free.3 \ |
172 |
gearman_server_con_add.3 \ |
173 |
gearman_server_con_con.3 \ |
174 |
gearman_server_con_create.3 \ |
175 |
gearman_server_con_data.3 \ |
176 |
gearman_server_con_free.3 \ |
177 |
gearman_server_con_free_worker.3 \ |
178 |
gearman_server_con_free_workers.3 \ |
179 |
gearman_server_con_host.3 \ |
180 |
gearman_server_con_id.3 \ |
181 |
gearman_server_con_io_add.3 \ |
182 |
gearman_server_con_io_next.3 \ |
183 |
gearman_server_con_io_remove.3 \ |
184 |
gearman_server_con_port.3 \ |
185 |
gearman_server_con_proc_add.3 \ |
186 |
gearman_server_con_proc_next.3 \ |
187 |
gearman_server_con_proc_remove.3 \ |
188 |
gearman_server_con_set_data.3 \ |
189 |
gearman_server_con_set_host.3 \ |
190 |
gearman_server_con_set_id.3 \ |
191 |
gearman_server_con_set_port.3 \ |
192 |
gearman_server_create.3 \ |
193 |
gearman_server_free.3 \ |
194 |
gearman_server_function_create.3 \ |
195 |
gearman_server_function_free.3 \ |
196 |
gearman_server_function_get.3 \ |
197 |
gearman_server_io_packet_add.3 \ |
198 |
gearman_server_io_packet_remove.3 \ |
199 |
gearman_server_job_add.3 \ |
200 |
gearman_server_job_create.3 \ |
201 |
gearman_server_job_free.3 \ |
202 |
gearman_server_job_get.3 \ |
203 |
gearman_server_job_peek.3 \ |
204 |
gearman_server_job_queue.3 \ |
205 |
gearman_server_job_take.3 \ |
206 |
gearman_server_packet_create.3 \ |
207 |
gearman_server_packet_free.3 \ |
208 |
gearman_server_proc_packet_add.3 \ |
209 |
gearman_server_proc_packet_remove.3 \ |
210 |
gearman_server_queue_context.3 \ |
211 |
gearman_server_queue_libdrizzle_conf.3 \ |
212 |
gearman_server_queue_libdrizzle_deinit.3 \ |
213 |
gearman_server_queue_libdrizzle_init.3 \ |
214 |
gearman_server_queue_libmemcached_conf.3 \ |
215 |
gearman_server_queue_libmemcached_deinit.3 \ |
216 |
gearman_server_queue_libmemcached_init.3 \ |
217 |
gearman_server_queue_libpq_conf.3 \ |
218 |
gearman_server_queue_libpq_deinit.3 \ |
219 |
gearman_server_queue_libpq_init.3 \ |
220 |
gearman_server_queue_libsqlite3_conf.3 \ |
221 |
gearman_server_queue_libsqlite3_deinit.3 \ |
222 |
gearman_server_queue_libsqlite3_init.3 \ |
223 |
gearman_server_queue_replay.3 \ |
224 |
gearman_server_run_command.3 \ |
225 |
gearman_server_set_job_retries.3 \ |
226 |
gearman_server_set_log_fn.3 \ |
227 |
gearman_server_set_queue_add_fn.3 \ |
228 |
gearman_server_set_queue_context.3 \ |
229 |
gearman_server_set_queue_done_fn.3 \ |
230 |
gearman_server_set_queue_flush_fn.3 \ |
231 |
gearman_server_set_queue_replay_fn.3 \ |
232 |
gearman_server_set_worker_wakeup.3 \ |
233 |
gearman_server_shutdown_graceful.3 \ |
234 |
gearman_server_thread_create.3 \ |
235 |
gearman_server_thread_errno.3 \ |
236 |
gearman_server_thread_error.3 \ |
237 |
gearman_server_thread_free.3 \ |
238 |
gearman_server_thread_run.3 \ |
239 |
gearman_server_thread_set_event_watch.3 \ |
240 |
gearman_server_thread_set_log_fn.3 \ |
241 |
gearman_server_thread_set_run.3 \ |
242 |
gearman_server_worker_add.3 \ |
243 |
gearman_server_worker_create.3 \ |
244 |
gearman_server_worker_free.3 \ |
245 |
gearman_set_error.3 \ |
246 |
gearman_set_event_watch_fn.3 \ |
247 |
gearman_set_log_fn.3 \ |
248 |
gearman_set_options.3 \ |
249 |
gearman_set_timeout.3 \ |
250 |
gearman_set_workload_free_fn.3 \ |
251 |
gearman_set_workload_malloc_fn.3 \ |
252 |
gearman_task_context.3 \ |
97 |
gearman_task_context.3 \ |
253 |
gearman_task_data.3 \ |
98 |
gearman_task_data.3 \ |
254 |
gearman_task_data_size.3 \ |
99 |
gearman_task_data_size.3 \ |
Lines 265-274
Link Here
|
265 |
gearman_task_set_context.3 \ |
110 |
gearman_task_set_context.3 \ |
266 |
gearman_task_take_data.3 \ |
111 |
gearman_task_take_data.3 \ |
267 |
gearman_task_unique.3 \ |
112 |
gearman_task_unique.3 \ |
268 |
gearman_timeout.3 \ |
|
|
269 |
gearman_verbose_name.3 \ |
113 |
gearman_verbose_name.3 \ |
270 |
gearman_version.3 \ |
114 |
gearman_version.3 \ |
271 |
gearman_wait.3 \ |
|
|
272 |
gearman_worker_add_function.3 \ |
115 |
gearman_worker_add_function.3 \ |
273 |
gearman_worker_add_options.3 \ |
116 |
gearman_worker_add_options.3 \ |
274 |
gearman_worker_add_server.3 \ |
117 |
gearman_worker_add_server.3 \ |
Lines 280-292
Link Here
|
280 |
gearman_worker_errno.3 \ |
123 |
gearman_worker_errno.3 \ |
281 |
gearman_worker_error.3 \ |
124 |
gearman_worker_error.3 \ |
282 |
gearman_worker_free.3 \ |
125 |
gearman_worker_free.3 \ |
|
|
126 |
gearman_worker_function_exist.3 \ |
283 |
gearman_worker_grab_job.3 \ |
127 |
gearman_worker_grab_job.3 \ |
284 |
gearman_worker_options.3 \ |
128 |
gearman_worker_options.3 \ |
285 |
gearman_worker_register.3 \ |
129 |
gearman_worker_register.3 \ |
286 |
gearman_worker_remove_options.3 \ |
130 |
gearman_worker_remove_options.3 \ |
287 |
gearman_worker_remove_servers.3 \ |
131 |
gearman_worker_remove_servers.3 \ |
288 |
gearman_worker_set_context.3 \ |
132 |
gearman_worker_set_context.3 \ |
289 |
gearman_worker_set_event_watch_fn.3 \ |
|
|
290 |
gearman_worker_set_log_fn.3 \ |
133 |
gearman_worker_set_log_fn.3 \ |
291 |
gearman_worker_set_options.3 \ |
134 |
gearman_worker_set_options.3 \ |
292 |
gearman_worker_set_timeout.3 \ |
135 |
gearman_worker_set_timeout.3 \ |
Lines 296-359
Link Here
|
296 |
gearman_worker_unregister.3 \ |
139 |
gearman_worker_unregister.3 \ |
297 |
gearman_worker_unregister_all.3 \ |
140 |
gearman_worker_unregister_all.3 \ |
298 |
gearman_worker_wait.3 \ |
141 |
gearman_worker_wait.3 \ |
299 |
gearman_worker_work.3 \ |
142 |
gearman_worker_work.3 |
300 |
gearmand_con_check_queue.3 \ |
|
|
301 |
gearmand_con_create.3 \ |
302 |
gearmand_con_free.3 \ |
303 |
gearmand_con_watch.3 \ |
304 |
gearmand_create.3 \ |
305 |
gearmand_free.3 \ |
306 |
gearmand_port_add.3 \ |
307 |
gearmand_protocol_http_conf.3 \ |
308 |
gearmand_protocol_http_deinit.3 \ |
309 |
gearmand_protocol_http_init.3 \ |
310 |
gearmand_queue_libdrizzle_deinit.3 \ |
311 |
gearmand_queue_libdrizzle_init.3 \ |
312 |
gearmand_queue_libmemcached_deinit.3 \ |
313 |
gearmand_queue_libmemcached_init.3 \ |
314 |
gearmand_queue_libpq_deinit.3 \ |
315 |
gearmand_queue_libpq_init.3 \ |
316 |
gearmand_queue_libsqlite3_deinit.3 \ |
317 |
gearmand_queue_libsqlite3_init.3 \ |
318 |
gearmand_run.3 \ |
319 |
gearmand_set_backlog.3 \ |
320 |
gearmand_set_job_retries.3 \ |
321 |
gearmand_set_log_fn.3 \ |
322 |
gearmand_set_threads.3 \ |
323 |
gearmand_set_worker_wakeup.3 \ |
324 |
gearmand_thread_create.3 \ |
325 |
gearmand_thread_free.3 \ |
326 |
gearmand_thread_run.3 \ |
327 |
gearmand_thread_wakeup.3 \ |
328 |
gearmand_wakeup.3 |
329 |
MAN8= gearmand.8 |
143 |
MAN8= gearmand.8 |
330 |
|
144 |
|
331 |
.include <bsd.port.pre.mk> |
145 |
.include <bsd.port.pre.mk> |
332 |
|
146 |
|
333 |
.ifdef(WITH_MEMCACHED) |
147 |
.ifdef(WITHOUT_MEMCACHED) |
334 |
PLIST_SUB+= MEMCACHED="" |
148 |
CONFIGURE_ARGS+= --disable-libmemcached |
|
|
149 |
.else |
335 |
CONFIGURE_ARGS+= --with-libmemcached-prefix --without-memcached |
150 |
CONFIGURE_ARGS+= --with-libmemcached-prefix --without-memcached |
336 |
LIB_DEPENDS+= memcached:${PORTSDIR}/databases/libmemcached |
151 |
LIB_DEPENDS+= memcached:${PORTSDIR}/databases/libmemcached |
337 |
.else |
|
|
338 |
PLIST_SUB+= MEMCACHED="@comment " |
339 |
CONFIGURE_ARGS+= --disable-libmemcached |
340 |
.endif |
152 |
.endif |
341 |
|
153 |
|
342 |
.ifdef(WITH_PQ) |
154 |
.ifdef(WITH_PQ) |
343 |
PLIST_SUB+= PG="" |
|
|
344 |
CONFIGURE_ARGS+= --with-libpq-prefix |
155 |
CONFIGURE_ARGS+= --with-libpq-prefix |
345 |
USE_PGSQL= yes |
156 |
USE_PGSQL= yes |
346 |
.else |
157 |
.else |
347 |
PLIST_SUB+= PG="@comment " |
|
|
348 |
CONFIGURE_ARGS+= --disable-libpq |
158 |
CONFIGURE_ARGS+= --disable-libpq |
349 |
.endif |
159 |
.endif |
350 |
|
160 |
|
351 |
.ifdef(WITH_SQLITE3) |
161 |
.ifdef(WITH_SQLITE3) |
352 |
PLIST_SUB+= SQLITE="" |
|
|
353 |
CONFIGURE_ARGS+= --with-libsqlite3-prefix |
162 |
CONFIGURE_ARGS+= --with-libsqlite3-prefix |
354 |
USE_SQLITE= yes |
163 |
USE_SQLITE= yes |
355 |
.else |
164 |
.else |
356 |
PLIST_SUB+= SQLITE="@comment " |
|
|
357 |
CONFIGURE_ARGS+= --disable-libsqlite3 |
165 |
CONFIGURE_ARGS+= --disable-libsqlite3 |
358 |
.endif |
166 |
.endif |
359 |
|
167 |
|