|
Lines 13-27
Link Here
|
| 13 |
|
13 |
|
| 14 |
MAINTAINER= ports@bsdserwis.com |
14 |
MAINTAINER= ports@bsdserwis.com |
| 15 |
COMMENT= Systems & network statistics collection daemon |
15 |
COMMENT= Systems & network statistics collection daemon |
| 16 |
|
16 |
|
| 17 |
USE_GMAKE= yes |
17 |
USE_GMAKE= yes |
| 18 |
GNU_CONFIGURE= yes |
18 |
GNU_CONFIGURE= yes |
| 19 |
USE_AUTOTOOLS= libltdl:22 |
19 |
USE_AUTOTOOLS= autoheader:268 aclocal:111 libtool:22 libtoolize:22 automake:19 autoconf:268 libltdl:22 |
| 20 |
WANT_GNOME= yes |
20 |
WANT_GNOME= yes |
| 21 |
|
21 |
|
|
|
22 |
AUTOMAKE_ARGS= --add-missing --copy |
| 23 |
LIBTOOLIZE_ARGS= --ltdl --copy --force |
| 24 |
ACLOCAL_ARGS= |
| 25 |
|
| 22 |
OPTIONS= CGI "Install collection.cgi (requires RRDTOOL)" Off \ |
26 |
OPTIONS= CGI "Install collection.cgi (requires RRDTOOL)" Off \ |
| 23 |
BIND "Enable BIND 9.5+ statistics" On \ |
27 |
BIND "Enable BIND 9.5+ statistics" On \ |
| 24 |
DEBUG "Enable debugging" Off \ |
28 |
DEBUG "Enable debugging" Off \ |
| 25 |
APACHE "Input: Apache mod_status (libcurl)" Off \ |
29 |
APACHE "Input: Apache mod_status (libcurl)" Off \ |
| 26 |
APCUPS "Input: APC UPS (apcupsd)" Off \ |
30 |
APCUPS "Input: APC UPS (apcupsd)" Off \ |
| 27 |
CURL "Input: CURL generic web statistics" Off \ |
31 |
CURL "Input: CURL generic web statistics" Off \ |
|
Lines 33-46
Link Here
|
| 33 |
NGINX "Input: Nginx" Off \ |
37 |
NGINX "Input: Nginx" Off \ |
| 34 |
OPENVPN "Input: OpenVPN statistics" Off \ |
38 |
OPENVPN "Input: OpenVPN statistics" Off \ |
| 35 |
PDNS "Input: PowerDNS" Off \ |
39 |
PDNS "Input: PowerDNS" Off \ |
| 36 |
PGSQL "Input: PostgreSQL" Off \ |
40 |
PGSQL "Input: PostgreSQL" Off \ |
| 37 |
PING "Input: Network latency (liboping)" On \ |
41 |
PING "Input: Network latency (liboping)" On \ |
| 38 |
SNMP "Input: SNMP" On \ |
42 |
SNMP "Input: SNMP" On \ |
| 39 |
XMMS "Input: XMMS" Off \ |
43 |
XMMS "Input: XMMS" Off |
| 40 |
RRDTOOL "Output: RRDTool" On |
|
|
| 41 |
|
44 |
|
| 42 |
MAN1= collectd.1 collectd-nagios.1 collectdmon.1 |
45 |
MAN1= collectd.1 collectd-nagios.1 collectdmon.1 |
| 43 |
MAN5= collectd.conf.5 collectd-email.5 collectd-exec.5 \ |
46 |
MAN5= collectd.conf.5 collectd-email.5 collectd-exec.5 \ |
| 44 |
collectd-snmp.5 collectd-unixsock.5 collectd-perl.5 \ |
47 |
collectd-snmp.5 collectd-unixsock.5 collectd-perl.5 \ |
| 45 |
collectd-java.5 collectd-python.5 types.db.5 |
48 |
collectd-java.5 collectd-python.5 types.db.5 |
| 46 |
USE_RC_SUBR= collectd collectdmon |
49 |
USE_RC_SUBR= collectd collectdmon |
|
Lines 49-60
Link Here
|
| 49 |
|
52 |
|
| 50 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ |
53 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ |
| 51 |
LDFLAGS="-L${LOCALBASE}/lib" |
54 |
LDFLAGS="-L${LOCALBASE}/lib" |
| 52 |
|
55 |
|
| 53 |
.include <bsd.port.pre.mk> |
56 |
.include <bsd.port.pre.mk> |
| 54 |
|
57 |
|
|
|
58 |
.if ( ${OSVERSION} >= 800000 ) |
| 59 |
OPTIONS+= ZFS_ARC "Input: ZFS ARC" Off |
| 60 |
.else |
| 61 |
.undef WITH_ZFS_ARC |
| 62 |
.endif |
| 63 |
|
| 64 |
OPTIONS+= RRDTOOL "Output: RRDTool" On |
| 65 |
|
| 55 |
.if ( ${OSVERSION} < 601103 ) |
66 |
.if ( ${OSVERSION} < 601103 ) |
| 56 |
BROKEN= Need bind9 import post 6.1 |
67 |
BROKEN= Need bind9 import post 6.1 |
| 57 |
.endif |
68 |
.endif |
| 58 |
|
69 |
|
| 59 |
.if ${OSVERSION} < 700000 |
70 |
.if ${OSVERSION} < 700000 |
| 60 |
BROKEN= does not configure on 6.X |
71 |
BROKEN= does not configure on 6.X |
|
Lines 120-132
Link Here
|
| 120 |
--disable-tokyotyrant \ |
131 |
--disable-tokyotyrant \ |
| 121 |
--disable-users \ |
132 |
--disable-users \ |
| 122 |
--disable-vmem \ |
133 |
--disable-vmem \ |
| 123 |
--disable-vserver \ |
134 |
--disable-vserver \ |
| 124 |
--disable-wireless \ |
135 |
--disable-wireless \ |
| 125 |
--disable-write_http \ |
136 |
--disable-write_http \ |
| 126 |
--disable-zfs_arc \ |
|
|
| 127 |
--without-perl-bindings |
137 |
--without-perl-bindings |
| 128 |
|
138 |
|
| 129 |
.if defined(WITH_DEBUG) |
139 |
.if defined(WITH_DEBUG) |
| 130 |
CONFIGURE_ARGS+=--enable-debug |
140 |
CONFIGURE_ARGS+=--enable-debug |
| 131 |
.endif |
141 |
.endif |
| 132 |
|
142 |
|
|
Lines 304-315
Link Here
|
| 304 |
PLIST_SUB+= XMMS="" |
314 |
PLIST_SUB+= XMMS="" |
| 305 |
.else |
315 |
.else |
| 306 |
CONFIGURE_ARGS+=--disable-xmms |
316 |
CONFIGURE_ARGS+=--disable-xmms |
| 307 |
PLIST_SUB+= XMMS="@comment " |
317 |
PLIST_SUB+= XMMS="@comment " |
| 308 |
.endif |
318 |
.endif |
| 309 |
|
319 |
|
|
|
320 |
.if defined(WITH_ZFS_ARC) && ( ${OSVERSION} >= 800000 ) |
| 321 |
CONFIGURE_ARGS+=--enable-zfs_arc |
| 322 |
PLIST_SUB+= ZFS_ARC="" |
| 323 |
.else |
| 324 |
CONFIGURE_ARGS+=--disable-zfs_arc |
| 325 |
PLIST_SUB+= ZFS_ARC="@comment " |
| 326 |
.endif |
| 327 |
|
| 310 |
post-patch: |
328 |
post-patch: |
| 311 |
@${REINPLACE_CMD} \ |
329 |
@${REINPLACE_CMD} \ |
| 312 |
-e 's;@prefix@/var/;/var/;' \ |
330 |
-e 's;@prefix@/var/;/var/;' \ |
| 313 |
-e 's;/var/lib/;/var/db/;' \ |
331 |
-e 's;/var/lib/;/var/db/;' \ |
| 314 |
${WRKSRC}/src/collectd.conf.in |
332 |
${WRKSRC}/src/collectd.conf.in |
| 315 |
@${REINPLACE_CMD} \ |
333 |
@${REINPLACE_CMD} \ |