Lines 3-9
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= collectd |
4 |
PORTNAME= collectd |
5 |
PORTVERSION= 5.5.0 |
5 |
PORTVERSION= 5.5.0 |
6 |
PORTREVISION= 3 |
6 |
PORTREVISION= 4 |
7 |
CATEGORIES= net-mgmt |
7 |
CATEGORIES= net-mgmt |
8 |
MASTER_SITES= https://collectd.org/files/ \ |
8 |
MASTER_SITES= https://collectd.org/files/ \ |
9 |
http://collectd.org/files/ |
9 |
http://collectd.org/files/ |
Lines 22-37
Link Here
|
22 |
USES= autoreconf gmake libtool pkgconfig shebangfix tar:bzip2 |
22 |
USES= autoreconf gmake libtool pkgconfig shebangfix tar:bzip2 |
23 |
GNU_CONFIGURE= yes |
23 |
GNU_CONFIGURE= yes |
24 |
|
24 |
|
|
|
25 |
OPTIONS_DEFAULT= USERS |
25 |
OPTIONS_DEFINE= CGI DEBUG GCRYPT LOGSTASH VIRT |
26 |
OPTIONS_DEFINE= CGI DEBUG GCRYPT LOGSTASH VIRT |
26 |
OPTIONS_GROUP= INPUT OUTPUT |
27 |
OPTIONS_GROUP= INPUT OUTPUT |
27 |
OPTIONS_GROUP_OUTPUT= KAFKA NOTIFYDESKTOP NOTIFYEMAIL RIEMANN RRDTOOL |
28 |
OPTIONS_GROUP_OUTPUT= KAFKA NOTIFYDESKTOP NOTIFYEMAIL RIEMANN RRDTOOL |
28 |
OPTIONS_GROUP_INPUT= CURL DBI IPMI JSON MEMCACHEC MODBUS MONGODB MYSQL \ |
29 |
OPTIONS_GROUP_INPUT= CURL CURL_JSON CURL_XML DBI IPMI JSON MEMCACHEC \ |
29 |
NUTUPS OLSRD ONEWIRE OPENLDAP PERL PGSQL PINBA PING \ |
30 |
MODBUS MONGODB MYSQL NUTUPS OLSRD ONEWIRE OPENLDAP \ |
30 |
PYTHON RABBITMQ REDIS ROUTEROS SIGROK SNMP STATGRAB \ |
31 |
PERL PGSQL PINBA PING PYTHON RABBITMQ REDIS ROUTEROS \ |
31 |
STATSD TOKYOTYRANT VARNISH XML XMMS ZOOKEEPER |
32 |
SIGROK SNMP STATGRAB STATSD TOKYOTYRANT USERS VARNISH XML \ |
|
|
33 |
XMMS ZOOKEEPER |
32 |
|
34 |
|
33 |
CGI_DESC= Install collection.cgi (requires rrdtool) |
35 |
CGI_DESC= Install collection.cgi (requires rrdtool) |
34 |
CURL_DESC= Enable curl-based plugins (apache, nginx, etc) |
36 |
CURL_DESC= Enable curl-based plugins (apache, nginx, etc) |
|
|
37 |
CURL_JSON_DESC= Enable curl_json plugin (implies curl and json) |
38 |
CURL_XML_DESC= Enable ascent, bind, curl_xml plugins (implies curl and xml) |
35 |
DBI_DESC= Enable dbi plugin |
39 |
DBI_DESC= Enable dbi plugin |
36 |
DEBUG_DESC= Enable debugging |
40 |
DEBUG_DESC= Enable debugging |
37 |
GCRYPT_DESC= Build with libgcrypt |
41 |
GCRYPT_DESC= Build with libgcrypt |
Lines 64-75
Link Here
|
64 |
STATGRAB_DESC= Enable statgrab-based plugins (interface, etc) |
68 |
STATGRAB_DESC= Enable statgrab-based plugins (interface, etc) |
65 |
STATSD_DESC= Enable statsd plugin |
69 |
STATSD_DESC= Enable statsd plugin |
66 |
TOKYOTYRANT_DESC= Enable tokyotyrant plugin |
70 |
TOKYOTYRANT_DESC= Enable tokyotyrant plugin |
|
|
71 |
USERS_DESC= Enable users plugin |
67 |
VARNISH_DESC= Enable varnish 4.x cache statistics |
72 |
VARNISH_DESC= Enable varnish 4.x cache statistics |
68 |
VIRT_DESC= Enable libvirt plugin (requires XML) |
73 |
VIRT_DESC= Enable libvirt plugin (requires XML) |
69 |
XML_DESC= Enable XML plugins |
74 |
XML_DESC= Enable XML plugins |
70 |
XMMS_DESC= Enable xmms plugin |
75 |
XMMS_DESC= Enable xmms plugin |
71 |
ZOOKEEPER_DESC= Enable zookeeper plugin |
76 |
ZOOKEEPER_DESC= Enable zookeeper plugin |
72 |
|
77 |
|
|
|
78 |
OPTIONS_SUB= yes |
79 |
|
73 |
USE_RC_SUBR= collectd collectdmon |
80 |
USE_RC_SUBR= collectd collectdmon |
74 |
|
81 |
|
75 |
USE_LDCONFIG= yes |
82 |
USE_LDCONFIG= yes |
Lines 79-115
Link Here
|
79 |
CPPFLAGS+= -I${LOCALBASE}/include |
86 |
CPPFLAGS+= -I${LOCALBASE}/include |
80 |
LIBS+= -L${LOCALBASE}/lib |
87 |
LIBS+= -L${LOCALBASE}/lib |
81 |
|
88 |
|
82 |
.include <bsd.port.options.mk> |
|
|
83 |
|
84 |
# NOTE: Plugins without dependencies are defined further down. |
89 |
# NOTE: Plugins without dependencies are defined further down. |
85 |
CONFIGURE_ARGS= --localstatedir=/var \ |
90 |
CONFIGURE_ARGS= --localstatedir=/var \ |
86 |
--disable-all-plugins \ |
91 |
--disable-all-plugins \ |
87 |
--disable-static \ |
92 |
--disable-static \ |
88 |
--without-amqp \ |
93 |
--without-amqp \ |
89 |
--without-java \ |
94 |
--without-java \ |
90 |
--without-libaquaero5 \ |
95 |
--without-libaquaero5 \ |
91 |
--without-libganglia \ |
96 |
--without-libganglia \ |
92 |
--without-libiptc \ |
97 |
--without-libiptc \ |
93 |
--without-libjvm \ |
98 |
--without-libjvm \ |
94 |
--without-liblvm2app \ |
99 |
--without-liblvm2app \ |
95 |
--without-libkstat \ |
100 |
--without-libkstat \ |
96 |
--without-libldap \ |
101 |
--without-libldap \ |
97 |
--without-libmnl \ |
102 |
--without-libmnl \ |
98 |
--without-libmodbus \ |
103 |
--without-libmodbus \ |
99 |
--without-libnetlink \ |
104 |
--without-libnetlink \ |
100 |
--without-libnetapp \ |
105 |
--without-libnetapp \ |
101 |
--without-libowcapi \ |
106 |
--without-libowcapi \ |
102 |
--without-libperfstat \ |
107 |
--without-libperfstat \ |
103 |
--without-libsensors \ |
108 |
--without-libsensors \ |
104 |
--without-libvarnish \ |
109 |
--without-lvm \ |
105 |
--without-lvm \ |
110 |
--without-mic \ |
106 |
--without-mic \ |
111 |
--without-oracle \ |
107 |
--without-oracle \ |
112 |
--disable-turbostat |
108 |
--disable-turbostat |
113 |
|
|
|
114 |
CGI_RUN_DEPENDS= p5-URI>=0:${PORTSDIR}/net/p5-URI \ |
115 |
p5-CGI>=0:${PORTSDIR}/www/p5-CGI \ |
116 |
p5-Data-Dumper>=0:${PORTSDIR}/devel/p5-Data-Dumper \ |
117 |
p5-HTML-Parser>=0:${PORTSDIR}/www/p5-HTML-Parser |
118 |
CGI_IMPLIES= RRDTOOL |
119 |
|
120 |
CURL_LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl |
121 |
CURL_CONFIGURE_ENABLE= apache curl nginx write_http |
122 |
CURL_CONFIGURE_WITH= libcurl=${LOCALBASE} |
123 |
|
124 |
CURL_JSON_IMPLIES= CURL JSON |
125 |
CURL_JSON_CONFIGURE_ENABLE= curl_json |
126 |
|
127 |
CURL_XML_IMPLIES= CURL XML |
128 |
CURL_XML_CONFIGURE_ENABLE= ascent bind curl_xml |
129 |
|
130 |
DEBUG_CONFIGURE_ENABLE= debug |
131 |
|
132 |
DBI_LIB_DEPENDS= libdbi.so:${PORTSDIR}/databases/libdbi |
133 |
DBI_CONFIGURE_WITH= libdbi=${LOCALBASE} |
134 |
DBI_CONFIGURE_ENABLE= dbi |
135 |
DBI_CFLAGS= -Wno-deprecated-declarations |
136 |
|
137 |
GCRYPT_LIB_DEPENDS= libgcrypt.so:${PORTSDIR}/security/libgcrypt |
138 |
GCRYPT_CONFIGURE_WITH= -with-libgcrypt=${LOCALBASE} |
139 |
GCRYPT_LIBS= -lgcrypt |
140 |
|
141 |
IPMI_LIB_DEPENDS= libOpenIPMI.so:${PORTSDIR}/sysutils/openipmi |
142 |
IPMI_CONFIGURE_ENABLE= ipmi |
143 |
|
144 |
JSON_LIB_DEPENDS= libyajl.so:${PORTSDIR}/devel/yajl |
145 |
JSON_CONFIGURE_WITH= libyajl=${LOCALBASE} |
146 |
|
147 |
KAFKA_LIB_DEPENDS= librdkafka.so:${PORTSDIR}/net/librdkafka |
148 |
KAFKA_CONFIGURE_WITH= write_kafka |
149 |
|
150 |
LOGSTASH_CONFIGURE_ENABLE= log_logstash |
151 |
LOGSTASH_IMPLIES= JSON |
152 |
|
153 |
MEMCACHEC_LIB_DEPENDS= libmemcached.so:${PORTSDIR}/databases/libmemcached |
154 |
MEMCACHEC_CONFIGURE_ENABLE= memcachec |
155 |
MEMCACHEC_CONFIGURE_WITH= libmemcached=${LOCALBASE} |
156 |
|
157 |
MODBUS_LIB_DEPENDS= libmodbus.so:${PORTSDIR}/comms/libmodbus |
158 |
MODBUS_CONFIGURE_ENABLE= modbus |
159 |
MODBUS_CONFIGURE_WITH= libmodbus=${LOCALBASE} |
160 |
|
161 |
MONGODB_LIB_DEPENDS= libmongoc.so:${PORTSDIR}/devel/mongo-c-driver |
162 |
MONGODB_CONFIGURE_ENABLE= write_mongodb |
163 |
MONGODB_CONFIGURE_WITH= libmongoc=${LOCALBASE} |
164 |
|
165 |
MYSQL_USE= mysql=yes |
166 |
MYSQL_CONFIGURE_ENABLE= mysql |
167 |
MYSQL_CONFIGURE_WITH= libmysql=${LOCALBASE} |
168 |
|
169 |
NOTIFYDESKTOP_LIB_DEPENDS= libnotify.so:${PORTSDIR}/devel/libnotify |
170 |
NOTIFYDESKTOP_CONFIGURE_ENABLE= notify_desktop |
171 |
NOTIFYDESKTOP_CONFIGURE_WITH= libnotify=${LOCALBASE} |
172 |
|
173 |
NOTIFYEMAIL_LIB_DEPENDS= libesmtp.so:${PORTSDIR}/mail/libesmtp |
174 |
NOTIFYEMAIL_CONFIGURE_ENABLE= notify_email |
175 |
NOTIFYEMAIL_CONFIGURE_WITH= libesmtp=${LOCALBASE} |
176 |
|
177 |
NUTUPS_LIB_DEPENDS= libupsclient.so:${PORTSDIR}/sysutils/nut |
178 |
NUTUPS_CONFIGURE_ENABLE= nut |
179 |
NUTUPS_CONFIGURE_WITH= upsclient=${LOCALBASE} |
180 |
|
181 |
OLSRD_CONFIGURE_ENABLE= olsrd |
182 |
|
183 |
ONEWIRE_LIB_DEPENDS= libow.so:${PORTSDIR}/comms/owfs |
184 |
ONEWIRE_CONFIGURE_ENABLE= onewire |
185 |
ONEWIRE_CONFIGURE_WITH= libowcapi=${LOCALBASE} |
186 |
|
187 |
OPENLDAP_USE= openldap=yes |
188 |
OPENLDAP_CONFIGURE_ENABLE= openldap |
189 |
OPENLDAP_CONFIGURE_WITH= libldap=${LOCALBASE} |
190 |
|
191 |
PERL_USES= perl5 |
192 |
PERL_CONFIGURE_ENABLE= perl |
193 |
PERL_CONFIGURE_WITH= perl=${PERL} perl-bindings |
194 |
|
195 |
PGSQL_USES= pgsql |
196 |
PGSQL_CONFIGURE_ENABLE= postgresql |
197 |
PGSQL_CONFIGURE_WITH= postgresql=${LOCALBASE} libpq |
198 |
|
199 |
PINBA_LIB_DEPENDS= libprotobuf-c.so:${PORTSDIR}/devel/protobuf-c |
200 |
PINBA_CONFIGURE_ENABLE= pinba |
201 |
|
202 |
PING_LIB_DEPENDS= liboping.so:${PORTSDIR}/net/liboping |
203 |
PING_CONFIGURE_ENABLE= ping |
204 |
PING_CONFIGURE_WITH= liboping=${LOCALBASE} |
205 |
|
206 |
PYTHON_USES= python:2 |
207 |
PYTHON_CONFIGURE_ENABLE= python |
208 |
PYTHON_CONFIGURE_WITH= python=${PYTHON_CMD} |
209 |
|
210 |
RABBITMQ_LIB_DEPENDS= librabbitmq.so:${PORTSDIR}/net/rabbitmq-c |
211 |
RABBITMQ_CONFIGURE_ENABLE= rabbitmq |
212 |
RABBITMQ_CONFIGURE_WITH= librabbitmq=${LOCALBASE} |
213 |
|
214 |
REDIS_LIB_DEPENDS= libhiredis.so:${PORTSDIR}/databases/hiredis |
215 |
REDIS_CONFIGURE_ENABLE= redis write_redis |
216 |
REDIS_CONFIGURE_WITH= libhiredis=${LOCALBASE} |
217 |
|
218 |
RIEMANN_LIB_DEPENDS= libprotobuf-c.so:${PORTSDIR}/devel/protobuf-c |
219 |
RIEMANN_CONFIGURE_ENABLE= write_riemann |
220 |
|
221 |
ROUTEROS_LIB_DEPENDS= librouteros.so:${PORTSDIR}/net/librouteros |
222 |
ROUTEROS_CONFIGURE_ENABLE= routeros |
223 |
ROUTEROS_CONFIGURE_WITH= librouteros=${LOCALBASE} |
224 |
|
225 |
RRDTOOL_LIB_DEPENDS= librrd.so:${PORTSDIR}/databases/rrdtool |
226 |
RRDTOOL_CONFIGURE_ENABLE= rrdcached rrdtool |
227 |
RRDTOOL_CONFIGURE_WITH= librrd=${LOCALBASE} |
228 |
|
229 |
STATGRAB_IMPLIES= USERS |
230 |
STATGRAB_LIB_DEPENDS= libstatgrab.so:${PORTSDIR}/devel/libstatgrab |
231 |
STATGRAB_LIBS= `pkg-config --libs libstatgrab` |
232 |
STATGRAB_CONFIGURE_ENABLE= interface |
233 |
STATGRAB_CONFIGURE_WITH= libstatgrab=${LOCALBASE} |
234 |
|
235 |
SIGROK_USE= GNOME=glib20 |
236 |
SIGROK_CFLAGS= `pkg-config --cflags glib-2.0` |
237 |
SIGROK_LIB_DEPENDS= libsigrok.so:${PORTSDIR}/devel/libsigrok |
238 |
SIGROK_CONFIGURE_ENABLE= sigrok |
239 |
SIGROK_CONFIGURE_WITH= libsigrok |
240 |
|
241 |
SNMP_LIB_DEPENDS= libnetsnmp.so:${PORTSDIR}/net-mgmt/net-snmp |
242 |
SNMP_CONFIGURE_ENABLE= snmp |
243 |
SNMP_CONFIGURE_WITH= libnetsnmp |
244 |
|
245 |
STATSD_CONFIGURE_ENABLE= statsd |
246 |
|
247 |
TOKYOTYRANT_LIB_DEPENDS= libtokyotyrant.so:${PORTSDIR}/databases/tokyotyrant |
248 |
TOKYOTYRANT_CONFIGURE_ENABLE= tokyotyrant |
249 |
TOKYOTYRANT_CONFIGURE_WITH= libtokyotyrant=${LOCALBASE} |
250 |
|
251 |
USERS_CONFIGURE_ENABLE= users |
252 |
|
253 |
VARNISH_LIB_DEPENDS= libvarnishapi.so:${PORTSDIR}/www/varnish4 |
254 |
VARNISH_CONFIGURE_ENABLE= varnish |
255 |
VARNISH_CONFIGURE_WITH= libvarnish=${LOCALBASE} |
256 |
|
257 |
VIRT_IMPLIES= XML |
258 |
VIRT_LIB_DEPENDS= libvirt.so:${PORTSDIR}/devel/libvirt |
259 |
VIRT_CONFIGURE_ENABLE= virt |
260 |
VIRT_CONFIGURE_WITH= virt=${LOCALBASE} |
261 |
|
262 |
XML_LIB_DEPENDS= libxmms.so:${PORTSDIR}/multimedia/xmms |
263 |
XML_CONFIGURE_WITH= libxml2=${LOCALBASE} |
264 |
|
265 |
XMMS_CFLAGS= `xmms-config --cflags` |
266 |
XMMS_LIB_DEPENDS= libxmms.so:${PORTSDIR}/multimedia/xmms |
267 |
XMMS_CONFIGURE_ENABLE= xmms |
268 |
XMMS_CONFIGURE_WITH= libxmms=${LOCALBASE} |
269 |
|
270 |
ZOOKEEPER_LIB_DEPENDS= libzookeeper_mt.so:${PORTSDIR}/devel/libzookeeper |
271 |
ZOOKEEPER_CONFIGURE_ENABLE= zookeeper |
272 |
ZOOKEEPER_CONFIGURE_WITH= libzookeeper=${LOCALBASE} |
273 |
|
274 |
.include <bsd.port.options.mk> |
109 |
|
275 |
|
110 |
# NOTE: Plugins without external dependencies |
276 |
# NOTE: Plugins without external dependencies |
111 |
CONFIGURE_ARGS+= \ |
277 |
CONFIGURE_ARGS+=--enable-aggregation \ |
112 |
--enable-aggregation \ |
|
|
113 |
--enable-apcups \ |
278 |
--enable-apcups \ |
114 |
--enable-contextswitch \ |
279 |
--enable-contextswitch \ |
115 |
--enable-cpu \ |
280 |
--enable-cpu \ |
Lines 159-571
Link Here
|
159 |
--enable-write_log \ |
324 |
--enable-write_log \ |
160 |
--enable-zfs_arc \ |
325 |
--enable-zfs_arc \ |
161 |
|
326 |
|
162 |
.if ${PORT_OPTIONS:MCGI} |
327 |
INSTALL_TARGET= install-strip |
163 |
RUN_DEPENDS+= p5-URI>=0:${PORTSDIR}/net/p5-URI \ |
|
|
164 |
p5-CGI>=0:${PORTSDIR}/www/p5-CGI \ |
165 |
p5-Data-Dumper>=0:${PORTSDIR}/devel/p5-Data-Dumper \ |
166 |
p5-HTML-Parser>=0:${PORTSDIR}/www/p5-HTML-Parser |
167 |
PLIST_SUB+= CGI="" |
168 |
.if empty(PORT_OPTIONS:MRRDTOOL) |
169 |
IGNORE= CGI requires RRDTOOL. Either select RRDTOOL or deselect CGI |
170 |
.endif |
171 |
.else |
172 |
PLIST_SUB+= CGI="@comment " |
173 |
.endif |
174 |
|
175 |
.if ${PORT_OPTIONS:MCURL} |
176 |
LIB_DEPENDS+= libcurl.so:${PORTSDIR}/ftp/curl |
177 |
CONFIGURE_ARGS+=--with-libcurl=${LOCALBASE} \ |
178 |
--enable-apache \ |
179 |
--enable-curl \ |
180 |
--enable-nginx \ |
181 |
--enable-write_http |
182 |
PLIST_SUB+= CURL="" |
183 |
.else |
184 |
CONFIGURE_ARGS+=--without-libcurl \ |
185 |
--disable-apache \ |
186 |
--disable-curl \ |
187 |
--disable-nginx \ |
188 |
--disable-write_http |
189 |
PLIST_SUB+= CURL="@comment " |
190 |
.endif |
191 |
|
192 |
.if ${PORT_OPTIONS:MCURL} && ${PORT_OPTIONS:MJSON} |
193 |
CONFIGURE_ARGS+=--enable-curl_json |
194 |
PLIST_SUB+= CURL_JSON="" |
195 |
.else |
196 |
CONFIGURE_ARGS+=--disable-curl_json |
197 |
PLIST_SUB+= CURL_JSON="@comment " |
198 |
.endif |
199 |
|
200 |
.if ${PORT_OPTIONS:MCURL} && ${PORT_OPTIONS:MXML} |
201 |
CONFIGURE_ARGS+= \ |
202 |
--enable-ascent \ |
203 |
--enable-bind \ |
204 |
--enable-curl_xml |
205 |
PLIST_SUB+= CURL_XML="" |
206 |
.else |
207 |
CONFIGURE_ARGS+= \ |
208 |
--disable-ascent \ |
209 |
--disable-bind \ |
210 |
--disable-curl_xml |
211 |
PLIST_SUB+= CURL_XML="@comment " |
212 |
.endif |
213 |
|
214 |
.if ${PORT_OPTIONS:MDEBUG} |
215 |
CONFIGURE_ARGS+=--enable-debug |
216 |
.else |
217 |
CONFIGURE_ARGS+=--disable-debug |
218 |
.endif |
219 |
|
220 |
.if ${PORT_OPTIONS:MDBI} |
221 |
LIB_DEPENDS+= libdbi.so:${PORTSDIR}/databases/libdbi |
222 |
CONFIGURE_ARGS+=--with-libdbi=${LOCALBASE} --enable-dbi |
223 |
PLIST_SUB+= DBI="" |
224 |
CFLAGS+= -Wno-deprecated-declarations |
225 |
.else |
226 |
CONFIGURE_ARGS+=--without-libdbi --disable-dbi |
227 |
PLIST_SUB+= DBI="@comment " |
228 |
.endif |
229 |
|
230 |
.if ${PORT_OPTIONS:MGCRYPT} |
231 |
LIB_DEPENDS+= libgcrypt.so:${PORTSDIR}/security/libgcrypt |
232 |
CONFIGURE_ARGS+=--with-libgcrypt=${LOCALBASE} |
233 |
LIBS+= -lgcrypt |
234 |
.else |
235 |
CONFIGURE_ARGS+=--without-libgcrypt |
236 |
.endif |
237 |
|
238 |
.if ${PORT_OPTIONS:MIPMI} |
239 |
LIB_DEPENDS+= libOpenIPMI.so:${PORTSDIR}/sysutils/openipmi |
240 |
CONFIGURE_ARGS+=--enable-ipmi |
241 |
PLIST_SUB+= IPMI="" |
242 |
.else |
243 |
CONFIGURE_ARGS+=--disable-ipmi |
244 |
PLIST_SUB+= IPMI="@comment " |
245 |
.endif |
246 |
|
247 |
.if ${PORT_OPTIONS:MJSON} |
248 |
LIB_DEPENDS+= libyajl.so:${PORTSDIR}/devel/yajl |
249 |
CONFIGURE_ARGS+=--with-libyajl=${LOCALBASE} |
250 |
.else |
251 |
CONFIGURE_ARGS+=--without-libyajl |
252 |
.endif |
253 |
|
254 |
.if ${PORT_OPTIONS:MKAFKA} |
255 |
LIB_DEPENDS+= librdkafka.so:${PORTSDIR}/net/librdkafka |
256 |
CONFIGURE_ARGS+=--enable-write_kafka |
257 |
PLIST_SUB+= KAFKA="" |
258 |
.else |
259 |
CONFIGURE_ARGS+=--disable-write_kafka |
260 |
PLIST_SUB+= KAFKA="@comment " |
261 |
.endif |
262 |
|
263 |
.if ${PORT_OPTIONS:MLOGSTASH} |
264 |
CONFIGURE_ARGS+=--enable-log_logstash |
265 |
PLIST_SUB+= LOGSTASH="" |
266 |
.if empty(PORT_OPTIONS:MJSON) |
267 |
IGNORE= LOGSTASH requires JSON. Either select JSON or deselect LOGSTASH |
268 |
.endif |
269 |
.else |
270 |
PLIST_SUB+= LOGSTASH="@comment " |
271 |
.endif |
272 |
|
273 |
.if ${PORT_OPTIONS:MMEMCACHEC} |
274 |
LIB_DEPENDS+= libmemcached.so:${PORTSDIR}/databases/libmemcached |
275 |
CONFIGURE_ARGS+=--with-libmemcached=${LOCALBASE} --enable-memcachec |
276 |
PLIST_SUB+= MEMCACHEC="" |
277 |
.else |
278 |
CONFIGURE_ARGS+=--without-libmemcached |
279 |
PLIST_SUB+= MEMCACHEC="@comment " |
280 |
.endif |
281 |
|
282 |
.if ${PORT_OPTIONS:MMODBUS} |
283 |
LIB_DEPENDS+= libmodbus.so:${PORTSDIR}/comms/libmodbus |
284 |
CONFIGURE_ARGS+=--with-libmodbus=${LOCALBASE} --enable-modbus |
285 |
PLIST_SUB+= MODBUS="" |
286 |
.else |
287 |
PLIST_SUB+= MODBUS="@comment " |
288 |
.endif |
289 |
|
290 |
.if ${PORT_OPTIONS:MMONGODB} |
291 |
LIB_DEPENDS+= libmongoc.so:${PORTSDIR}/devel/mongo-c-driver |
292 |
CONFIGURE_ARGS+=--with-libmongoc=${LOCALBASE} \ |
293 |
--enable-write_mongodb |
294 |
PLIST_SUB+= MONGODB="" |
295 |
.else |
296 |
CONFIGURE_ARGS+=--without-libcmongoc \ |
297 |
--disable-write_mongodb |
298 |
PLIST_SUB+= MONGODB="@comment " |
299 |
.endif |
300 |
|
301 |
.if ${PORT_OPTIONS:MMYSQL} |
302 |
USE_MYSQL= yes |
303 |
CONFIGURE_ARGS+=--with-libmysql=${LOCALBASE} --enable-mysql |
304 |
PLIST_SUB+= MYSQL="" |
305 |
.else |
306 |
CONFIGURE_ARGS+=--without-libmysql --disable-mysql |
307 |
PLIST_SUB+= MYSQL="@comment " |
308 |
.endif |
309 |
|
310 |
.if ${PORT_OPTIONS:MNOTIFYDESKTOP} |
311 |
LIB_DEPENDS+= libnotify.so:${PORTSDIR}/devel/libnotify |
312 |
CONFIGURE_ARGS+=--with-libnotify=${LOCALBASE} \ |
313 |
--enable-notify_desktop |
314 |
PLIST_SUB+= NOTIFYDESKTOP="" |
315 |
.else |
316 |
CONFIGURE_ARGS+=--without-libnotify --disable-notify_desktop |
317 |
PLIST_SUB+= NOTIFYDESKTOP="@comment " |
318 |
.endif |
319 |
|
320 |
.if ${PORT_OPTIONS:MNOTIFYEMAIL} |
321 |
LIB_DEPENDS+= libesmtp.so:${PORTSDIR}/mail/libesmtp |
322 |
CONFIGURE_ARGS+=--with-libesmtp=${LOCALBASE} \ |
323 |
--enable-notify_email |
324 |
PLIST_SUB+= NOTIFYEMAIL="" |
325 |
.else |
326 |
CONFIGURE_ARGS+=--without-libesmtp --disable-notify_email |
327 |
PLIST_SUB+= NOTIFYEMAIL="@comment " |
328 |
.endif |
329 |
|
330 |
.if ${PORT_OPTIONS:MNUTUPS} |
331 |
LIB_DEPENDS+= libupsclient.so:${PORTSDIR}/sysutils/nut |
332 |
CONFIGURE_ARGS+=--with-upsclient=${LOCALBASE} --enable-nut |
333 |
PLIST_SUB+= NUTUPS="" |
334 |
.else |
335 |
CONFIGURE_ARGS+=--without-libupsclient --disable-nut |
336 |
PLIST_SUB+= NUTUPS="@comment " |
337 |
.endif |
338 |
|
339 |
.if ${PORT_OPTIONS:MOLSRD} |
340 |
CONFIGURE_ARGS+=--enable-olsrd |
341 |
PLIST_SUB+= OLSRD="" |
342 |
.else |
343 |
CONFIGURE_ARGS+=--enable-olsrd |
344 |
PLIST_SUB+= OLSRD="@comment " |
345 |
.endif |
346 |
|
347 |
.if ${PORT_OPTIONS:MONEWIRE} |
348 |
LIB_DEPENDS+= libow.so:${PORTSDIR}/comms/owfs |
349 |
CONFIGURE_ARGS+=--with-libowcapi=${LOCALBASE} --enable-onewire |
350 |
PLIST_SUB+= ONEWIRE="" |
351 |
.else |
352 |
CONFIGURE_ARGS+=--disable-onewire |
353 |
PLIST_SUB+= ONEWIRE="@comment " |
354 |
.endif |
355 |
|
356 |
.if ${PORT_OPTIONS:MOPENLDAP} |
357 |
USE_OPENLDAP= yes |
358 |
CONFIGURE_ARGS+=--with-libldap=${LOCALBASE} --enable-openldap |
359 |
PLIST_SUB+= OPENLDAP="" |
360 |
.else |
361 |
CONFIGURE_ARGS+=--disable-openldap |
362 |
PLIST_SUB+= OPENLDAP="@comment " |
363 |
.endif |
364 |
|
365 |
.if ${PORT_OPTIONS:MPERL} |
366 |
USES+= perl5 |
367 |
CONFIGURE_ARGS+=--with-perl=${PERL} --with-perl-bindings --enable-perl |
368 |
PLIST_SUB+= PERL="" |
369 |
.else |
370 |
CONFIGURE_ARGS+=--without-perl --without-perl-bindings --disable-perl |
371 |
PLIST_SUB+= PERL="@comment " |
372 |
.endif |
373 |
|
374 |
.if ${PORT_OPTIONS:MPGSQL} |
375 |
USES+= pgsql |
376 |
CONFIGURE_ARGS+=--with-postgresql=${LOCALBASE} --enable-postgresql --with-libpq |
377 |
PLIST_SUB+= PGSQL="" |
378 |
.else |
379 |
CONFIGURE_ARGS+=--without-postgresql --disable-postgresql --without-libpq |
380 |
PLIST_SUB+= PGSQL="@comment " |
381 |
.endif |
382 |
|
383 |
.if ${PORT_OPTIONS:MPINBA} |
384 |
LIB_DEPENDS+= libprotobuf-c.so:${PORTSDIR}/devel/protobuf-c |
385 |
CONFIGURE_ARGS+=--enable-pinba |
386 |
PLIST_SUB+= PINBA="" |
387 |
.else |
388 |
CONFIGURE_ARGS+=--disable-pinba |
389 |
PLIST_SUB+= PINBA="@comment " |
390 |
.endif |
391 |
|
392 |
.if ${PORT_OPTIONS:MPING} |
393 |
LIB_DEPENDS+= liboping.so:${PORTSDIR}/net/liboping |
394 |
CONFIGURE_ARGS+=--with-liboping=${LOCALBASE} --enable-ping |
395 |
PLIST_SUB+= PING="" |
396 |
.else |
397 |
CONFIGURE_ARGS+=--without-liboping --disable-ping |
398 |
PLIST_SUB+= PING="@comment " |
399 |
.endif |
400 |
|
401 |
.if ${PORT_OPTIONS:MPYTHON} |
402 |
USES+= python:2 |
403 |
CONFIGURE_ARGS+=--with-python=${PYTHON_CMD} --enable-python |
404 |
PLIST_SUB+= PYTHON="" |
405 |
.else |
406 |
CONFIGURE_ARGS+=--without-python --disable-python |
407 |
PLIST_SUB+= PYTHON="@comment " |
408 |
.endif |
409 |
|
410 |
.if ${PORT_OPTIONS:MRABBITMQ} |
411 |
LIB_DEPENDS+= librabbitmq.so:${PORTSDIR}/net/rabbitmq-c |
412 |
CONFIGURE_ARGS+=--with-librabbitmq=${LOCALBASE} \ |
413 |
--enable-rabbitmq |
414 |
PLIST_SUB+= RABBITMQ="" |
415 |
.else |
416 |
CONFIGURE_ARGS+=--without-librabbitmq \ |
417 |
--disable-rabbitmq |
418 |
PLIST_SUB+= RABBITMQ="@comment " |
419 |
.endif |
420 |
|
421 |
.if ${PORT_OPTIONS:MREDIS} |
422 |
LIB_DEPENDS+= libhiredis.so:${PORTSDIR}/databases/hiredis |
423 |
CONFIGURE_ARGS+=--with-libhiredis=${LOCALBASE} \ |
424 |
--enable-redis \ |
425 |
--enable-write_redis |
426 |
PLIST_SUB+= REDIS="" |
427 |
.else |
428 |
CONFIGURE_ARGS+=--without-libcredis \ |
429 |
--disable-redis \ |
430 |
--disable-write_redis |
431 |
PLIST_SUB+= REDIS="@comment " |
432 |
.endif |
433 |
|
434 |
.if ${PORT_OPTIONS:MRIEMANN} |
435 |
LIB_DEPENDS+= libprotobuf-c.so:${PORTSDIR}/devel/protobuf-c |
436 |
CONFIGURE_ARGS+=--enable-write_riemann |
437 |
PLIST_SUB+= RIEMANN="" |
438 |
.else |
439 |
CONFIGURE_ARGS+=--disable-write_riemann |
440 |
PLIST_SUB+= RIEMANN="@comment " |
441 |
.endif |
442 |
|
443 |
.if ${PORT_OPTIONS:MROUTEROS} |
444 |
LIB_DEPENDS+= librouteros.so:${PORTSDIR}/net/librouteros |
445 |
CONFIGURE_ARGS+=--with-librouteros=${LOCALBASE} --enable-routeros |
446 |
PLIST_SUB+= ROUTEROS="" |
447 |
.else |
448 |
CONFIGURE_ARGS+=--without-librouteros --disable-routeros |
449 |
PLIST_SUB+= ROUTEROS="@comment " |
450 |
.endif |
451 |
|
452 |
.if ${PORT_OPTIONS:MRRDTOOL} |
453 |
LIB_DEPENDS+= librrd.so:${PORTSDIR}/databases/rrdtool |
454 |
CONFIGURE_ARGS+=--with-librrd=${LOCALBASE} \ |
455 |
--enable-rrdcached \ |
456 |
--enable-rrdtool |
457 |
PLIST_SUB+= RRDTOOL="" |
458 |
.else |
459 |
CONFIGURE_ARGS+=--without-librrd \ |
460 |
--disable-rrdcached \ |
461 |
--disable-rrdtool |
462 |
PLIST_SUB+= RRDTOOL="@comment " |
463 |
.endif |
464 |
|
465 |
.if ${PORT_OPTIONS:MSTATGRAB} |
466 |
LIB_DEPENDS+= libstatgrab.so:${PORTSDIR}/devel/libstatgrab |
467 |
LIBS+= `pkg-config --libs libstatgrab` |
468 |
CONFIGURE_ARGS+=--with-libstatgrab=${LOCALBASE} \ |
469 |
--enable-interface |
470 |
PLIST_SUB+= STATGRAB="" |
471 |
.else |
472 |
CONFIGURE_ARGS+=--without-libstatgrab |
473 |
PLIST_SUB+= STATGRAB="@comment " |
474 |
.endif |
475 |
|
476 |
.if ${OSVERSION} >= 900007 |
477 |
CONFIGURE_ARGS+=--enable-users |
478 |
PLIST_SUB+= USERS="" |
479 |
.elif ${PORT_OPTIONS:MSTATGRAB} |
480 |
CONFIGURE_ARGS+=--enable-users |
481 |
PLIST_SUB+= USERS="" |
482 |
.else |
483 |
PLIST_SUB+= USERS="@comment " |
484 |
.endif |
485 |
|
486 |
.if ${PORT_OPTIONS:MSIGROK} |
487 |
USE_GNOME+= glib20 |
488 |
LIB_DEPENDS+= libsigrok.so:${PORTSDIR}/devel/libsigrok |
489 |
CONFIGURE_ARGS+=--with-libsigrok --enable-sigrok |
490 |
CFLAGS+= `pkg-config --cflags glib-2.0` |
491 |
PLIST_SUB+= SIGROK="" |
492 |
.else |
493 |
CONFIGURE_ARGS+=--disable-sigrok |
494 |
PLIST_SUB+= SIGROK="@comment " |
495 |
.endif |
496 |
|
497 |
.if ${PORT_OPTIONS:MSNMP} |
498 |
LIB_DEPENDS+= libnetsnmp.so:${PORTSDIR}/net-mgmt/net-snmp |
499 |
CONFIGURE_ARGS+=--with-libnetsnmp --enable-snmp |
500 |
PLIST_SUB+= SNMP="" |
501 |
.else |
502 |
CONFIGURE_ARGS+=--without-libnetsnmp |
503 |
PLIST_SUB+= SNMP="@comment " |
504 |
.endif |
505 |
|
506 |
.if ${PORT_OPTIONS:MSTATSD} |
507 |
CONFIGURE_ARGS+=--enable-statsd |
508 |
PLIST_SUB+= STATSD="" |
509 |
.else |
510 |
CONFIGURE_ARGS+=--disable-statsd |
511 |
PLIST_SUB+= STATSD="@comment " |
512 |
.endif |
513 |
|
514 |
.if ${PORT_OPTIONS:MTOKYOTYRANT} |
515 |
LIB_DEPENDS+= libtokyotyrant.so:${PORTSDIR}/databases/tokyotyrant |
516 |
CONFIGURE_ARGS+=--with-libtokyotyrant=${LOCALBASE} --enable-tokyotyrant |
517 |
PLIST_SUB+= TOKYOTYRANT="" |
518 |
.else |
519 |
CONFIGURE_ARGS+=--without-libtokyotyrant --disable-tokyotyrant |
520 |
PLIST_SUB+= TOKYOTYRANT="@comment " |
521 |
.endif |
522 |
|
523 |
.if ${PORT_OPTIONS:MVARNISH} |
524 |
LIB_DEPENDS+= libvarnishapi.so:${PORTSDIR}/www/varnish4 |
525 |
CONFIGURE_ARGS+=--with-libvarnish=${LOCALBASE} --enable-varnish |
526 |
PLIST_SUB+= VARNISH="" |
527 |
.else |
528 |
CONFIGURE_ARGS+=--without-libvarnish |
529 |
PLIST_SUB+= VARNISH="@comment " |
530 |
.endif |
531 |
|
532 |
.if ${PORT_OPTIONS:MVIRT} |
533 |
.if empty(PORT_OPTIONS:MXML) |
534 |
IGNORE= VIRT requires XML. Either select XML or deselect VIRT. |
535 |
.endif |
536 |
LIB_DEPENDS+= libvirt.so:${PORTSDIR}/devel/libvirt |
537 |
CONFIGURE_ARGS+=--enable-virt |
538 |
PLIST_SUB+= VIRT="" |
539 |
.else |
540 |
CONFIGURE_ARGS+=--without-virt --disable-virt |
541 |
PLIST_SUB+= VIRT="@comment " |
542 |
.endif |
543 |
|
544 |
.if ${PORT_OPTIONS:MXML} |
545 |
LIB_DEPENDS+= libxml2.so:${PORTSDIR}/textproc/libxml2 |
546 |
CONFIGURE_ARGS+=--with-libxml2=${LOCALBASE} |
547 |
.endif |
548 |
|
549 |
.if ${PORT_OPTIONS:MXMMS} |
550 |
LIB_DEPENDS+= libxmms.so:${PORTSDIR}/multimedia/xmms |
551 |
CONFIGURE_ARGS+=--with-libxmms=${LOCALBASE} --enable-xmms |
552 |
CFLAGS+= `xmms-config --cflags` |
553 |
PLIST_SUB+= XMMS="" |
554 |
.else |
555 |
CONFIGURE_ARGS+=--without-libxmms --disable-xmms |
556 |
PLIST_SUB+= XMMS="@comment " |
557 |
.endif |
558 |
|
559 |
.if ${PORT_OPTIONS:MZOOKEEPER} |
560 |
LIB_DEPENDS+= libzookeeper_mt.so:${PORTSDIR}/devel/libzookeeper |
561 |
CONFIGURE_ARGS+=--with-libzookeeper=${LOCALBASE} --enable-zookeeper |
562 |
PLIST_SUB+= ZOOKEEPER="" |
563 |
.else |
564 |
CONFIGURE_ARGS+=--without-libzookeeper --disable-zookeeper |
565 |
PLIST_SUB+= ZOOKEEPER="@comment " |
566 |
.endif |
567 |
|
568 |
INSTALL_TARGET=install-strip |
569 |
SHEBANG_FILES= contrib/collection.cgi |
328 |
SHEBANG_FILES= contrib/collection.cgi |
570 |
|
329 |
|
571 |
post-patch: |
330 |
post-patch: |
Lines 587-598
Link Here
|
587 |
${WRKSRC}/contrib/collection.conf |
346 |
${WRKSRC}/contrib/collection.conf |
588 |
|
347 |
|
589 |
post-install: |
348 |
post-install: |
590 |
@${MKDIR} ${STAGEDIR}/var/db/collectd |
349 |
${MKDIR} ${STAGEDIR}/var/db/collectd |
591 |
.if ${PORT_OPTIONS:MCGI} |
350 |
|
592 |
@${MKDIR} ${STAGEDIR}${WWWDIR} |
351 |
post-install-CGI-on: |
|
|
352 |
${MKDIR} ${STAGEDIR}${WWWDIR} |
593 |
${INSTALL_SCRIPT} ${WRKSRC}/contrib/collection.cgi ${STAGEDIR}${WWWDIR}/ |
353 |
${INSTALL_SCRIPT} ${WRKSRC}/contrib/collection.cgi ${STAGEDIR}${WWWDIR}/ |
594 |
${INSTALL_DATA} ${WRKSRC}/contrib/collection.conf \ |
354 |
${INSTALL_DATA} ${WRKSRC}/contrib/collection.conf \ |
595 |
${STAGEDIR}${WWWDIR}/collection.conf.sample |
355 |
${STAGEDIR}${WWWDIR}/collection.conf.sample |
596 |
.endif |
|
|
597 |
|
356 |
|
598 |
.include <bsd.port.mk> |
357 |
.include <bsd.port.mk> |