Lines 3-10
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= netdata |
4 |
PORTNAME= netdata |
5 |
DISTVERSIONPREFIX= v |
5 |
DISTVERSIONPREFIX= v |
6 |
DISTVERSION= 1.28.0 |
6 |
DISTVERSION= 1.29.0 |
7 |
PORTREVISION= 1 |
|
|
8 |
CATEGORIES= net-mgmt |
7 |
CATEGORIES= net-mgmt |
9 |
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/v${DISTVERSION}/ |
8 |
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/v${DISTVERSION}/ |
10 |
|
9 |
|
Lines 23-86
Link Here
|
23 |
|
22 |
|
24 |
USES= autoreconf cpe gmake pathfix pkgconfig:both python shebangfix \ |
23 |
USES= autoreconf cpe gmake pathfix pkgconfig:both python shebangfix \ |
25 |
ssl |
24 |
ssl |
|
|
25 |
USE_RC_SUBR= ${PORTNAME} |
26 |
|
26 |
|
27 |
SHEBANG_GLOB= * |
27 |
SHEBANG_GLOB= * |
28 |
|
28 |
|
29 |
NETDATA_CACHE= /var/cache/${PORTNAME} |
|
|
30 |
NETDATA_LOG= /var/log/${PORTNAME} |
31 |
NETDATA_PERST= /var/db/${PORTNAME} |
32 |
|
33 |
GNU_CONFIGURE= yes |
29 |
GNU_CONFIGURE= yes |
34 |
CONFIGURE_ARGS= --disable-unit-tests |
30 |
CONFIGURE_ARGS= --disable-unit-tests |
35 |
CPPFLAGS+= -D_WANT_VMMETER |
|
|
36 |
INSTALL_TARGET= install-strip |
31 |
INSTALL_TARGET= install-strip |
|
|
32 |
CPPFLAGS+= -D_WANT_VMMETER |
37 |
|
33 |
|
|
|
34 |
SUB_FILES= ${PORTNAME}.conf.sample |
38 |
SUB_LIST= NETDATA_CACHE=${NETDATA_CACHE} \ |
35 |
SUB_LIST= NETDATA_CACHE=${NETDATA_CACHE} \ |
39 |
NETDATA_LOG=${NETDATA_LOG} \ |
36 |
NETDATA_LOG=${NETDATA_LOG} \ |
40 |
NETDATA_PERST=${NETDATA_PERST} |
37 |
NETDATA_PERST=${NETDATA_PERST} |
41 |
|
38 |
|
|
|
39 |
USERS= netdata |
40 |
GROUPS= netdata |
41 |
|
42 |
PLIST_SUB= NETDATA_CACHE=${NETDATA_CACHE} \ |
42 |
PLIST_SUB= NETDATA_CACHE=${NETDATA_CACHE} \ |
43 |
NETDATA_LOG=${NETDATA_LOG} \ |
43 |
NETDATA_LOG=${NETDATA_LOG} \ |
44 |
NETDATA_PERST=${NETDATA_PERST} |
44 |
NETDATA_PERST=${NETDATA_PERST} |
45 |
|
45 |
|
46 |
USE_RC_SUBR= ${PORTNAME} |
|
|
47 |
SUB_FILES= ${PORTNAME}.conf.sample |
48 |
|
49 |
USERS= netdata |
50 |
GROUPS= netdata |
51 |
|
52 |
OPTIONS_DEFINE= CLOUD CUPS DBENGINE FREEIPMI GOPLUGIN LTO |
46 |
OPTIONS_DEFINE= CLOUD CUPS DBENGINE FREEIPMI GOPLUGIN LTO |
53 |
OPTIONS_SUB= YES |
|
|
54 |
OPTIONS_DEFAULT= DBENGINE |
47 |
OPTIONS_DEFAULT= DBENGINE |
55 |
OPTIONS_DEFAULT_FreeBSD_12= LTO |
48 |
OPTIONS_DEFAULT_FreeBSD_12= LTO |
56 |
OPTIONS_DEFAULT_FreeBSD_13= LTO |
49 |
OPTIONS_DEFAULT_FreeBSD_13= LTO |
57 |
OPTIONS_DEFAULT_FreeBSD_14= LTO |
50 |
OPTIONS_DEFAULT_FreeBSD_14= LTO |
58 |
OPTIONS_DEFAULT+= ${OPTIONS_DEFAULT_${OPSYS}_${OSREL:R}} |
51 |
OPTIONS_DEFAULT+= ${OPTIONS_DEFAULT_${OPSYS}_${OSREL:R}} |
|
|
52 |
OPTIONS_SUB= YES |
59 |
|
53 |
|
60 |
CLOUD_DESC= Enable cloud functionality |
54 |
CLOUD_DESC= Enable cloud functionality |
|
|
55 |
CUPS_DESC= Enable support for cups |
56 |
DBENGINE_DESC= Enable support for database engine |
57 |
FREEIPMI_DESC= Enable support for freeipmi |
58 |
GOPLUGIN_DESC= Enable the go collector plugin |
59 |
LTO_DESC= Use Link-Time Optimization |
60 |
|
61 |
CLOUD_CONFIGURE_OFF= --disable-cloud |
61 |
CLOUD_CONFIGURE_OFF= --disable-cloud |
62 |
CLOUD_EXTRA_PATCHES_OFF= ${FILESDIR}/extra-patch-web_gui_index.html \ |
62 |
CLOUD_EXTRA_PATCHES_OFF= ${FILESDIR}/extra-patch-web_gui_index.html \ |
63 |
${FILESDIR}/extra-patch-web_gui_main.js |
63 |
${FILESDIR}/extra-patch-web_gui_main.js |
64 |
|
|
|
65 |
CUPS_DESC= Enable support for cups |
66 |
CUPS_CONFIGURE_ENABLE= plugin-cups |
67 |
CUPS_LIB_DEPENDS= libcups.so:print/cups |
64 |
CUPS_LIB_DEPENDS= libcups.so:print/cups |
68 |
|
65 |
CUPS_CONFIGURE_ENABLE= plugin-cups |
69 |
DBENGINE_DESC= Enable support for database engine |
|
|
70 |
DBENGINE_CONFIGURE_ENABLE= dbengine |
71 |
DBENGINE_LIB_DEPENDS= libJudy.so:devel/judy \ |
66 |
DBENGINE_LIB_DEPENDS= libJudy.so:devel/judy \ |
72 |
liblz4.so:archivers/liblz4 |
67 |
liblz4.so:archivers/liblz4 |
73 |
|
68 |
DBENGINE_CONFIGURE_ENABLE= dbengine |
74 |
FREEIPMI_DESC= Enable support for freeipmi |
|
|
75 |
FREEIPMI_CONFIGURE_ENABLE= plugin-freeipmi |
76 |
FREEIPMI_LIB_DEPENDS= libfreeipmi.so:sysutils/freeipmi |
69 |
FREEIPMI_LIB_DEPENDS= libfreeipmi.so:sysutils/freeipmi |
77 |
|
70 |
FREEIPMI_CONFIGURE_ENABLE= plugin-freeipmi |
78 |
GOPLUGIN_DESC= Enable the go collector plugin |
|
|
79 |
GOPLUGIN_RUN_DEPENDS= ${LOCALBASE}/libexec/netdata/plugins.d/god.plugin:net-mgmt/netdata-go |
71 |
GOPLUGIN_RUN_DEPENDS= ${LOCALBASE}/libexec/netdata/plugins.d/god.plugin:net-mgmt/netdata-go |
80 |
|
|
|
81 |
LTO_DESC= Use Link-Time Optimization |
82 |
LTO_CONFIGURE_ENABLE= lto |
83 |
LTO_USES= compiler:c11 |
72 |
LTO_USES= compiler:c11 |
|
|
73 |
LTO_CONFIGURE_ENABLE= lto |
84 |
|
74 |
|
85 |
.include <bsd.port.options.mk> |
75 |
.include <bsd.port.options.mk> |
86 |
.if ${PORT_OPTIONS:MLTO} && ${OPSYS}_${OSREL:R} == FreeBSD_11 |
76 |
.if ${PORT_OPTIONS:MLTO} && ${OPSYS}_${OSREL:R} == FreeBSD_11 |
Lines 90-95
Link Here
|
90 |
.if ${PORT_OPTIONS:MLTO} && ${ARCH:Mpowerpc*} |
80 |
.if ${PORT_OPTIONS:MLTO} && ${ARCH:Mpowerpc*} |
91 |
USE_GCC= yes |
81 |
USE_GCC= yes |
92 |
.endif |
82 |
.endif |
|
|
83 |
|
84 |
NETDATA_CACHE= /var/cache/${PORTNAME} |
85 |
NETDATA_LOG= /var/log/${PORTNAME} |
86 |
NETDATA_PERST= /var/db/${PORTNAME} |
93 |
|
87 |
|
94 |
post-patch: |
88 |
post-patch: |
95 |
@${REINPLACE_CMD} -e 's|%%NETDATA_CACHE%%|${NETDATA_CACHE}|g' \ |
89 |
@${REINPLACE_CMD} -e 's|%%NETDATA_CACHE%%|${NETDATA_CACHE}|g' \ |