Lines 1-8
Link Here
|
1 |
# Created by: Pakhom Golynga <pg@pakhom.spb.ru> |
1 |
# Created by: Pakhom Golynga <pg@pakhom.spb.ru> |
2 |
# $FreeBSD: head/net-mgmt/zabbix3-server/Makefile 416966 2016-06-16 13:23:13Z mat $ |
2 |
# $FreeBSD: head/net-mgmt/zabbix3-server/Makefile 414097 2016-04-27 10:44:40Z robak $ |
3 |
|
3 |
|
4 |
PORTNAME= zabbix3 |
4 |
PORTNAME= zabbix3 |
5 |
PORTVERSION= 3.0.2 |
5 |
PORTVERSION= 3.0.4 |
6 |
PORTREVISION?= 0 |
6 |
PORTREVISION?= 0 |
7 |
CATEGORIES= net-mgmt |
7 |
CATEGORIES= net-mgmt |
8 |
MASTER_SITES= SF/zabbix/ZABBIX%20Latest%20Stable/${PORTVERSION} |
8 |
MASTER_SITES= SF/zabbix/ZABBIX%20Latest%20Stable/${PORTVERSION} |
Lines 15-20
Link Here
|
15 |
LICENSE= GPLv2 |
15 |
LICENSE= GPLv2 |
16 |
|
16 |
|
17 |
CONFLICTS= ${PKGBASE}-1.[0-8]* |
17 |
CONFLICTS= ${PKGBASE}-1.[0-8]* |
|
|
18 |
LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp |
18 |
|
19 |
|
19 |
IGNORE_WITH_PHP= 52 |
20 |
IGNORE_WITH_PHP= 52 |
20 |
IGNORE_WITH_MYSQL= 41 |
21 |
IGNORE_WITH_MYSQL= 41 |
Lines 60-66
Link Here
|
60 |
--with-iconv=${ICONV_PREFIX} |
61 |
--with-iconv=${ICONV_PREFIX} |
61 |
|
62 |
|
62 |
.if ${ZABBIX_BUILD} != "agent" |
63 |
.if ${ZABBIX_BUILD} != "agent" |
63 |
LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp |
|
|
64 |
USES+= execinfo |
64 |
USES+= execinfo |
65 |
|
65 |
|
66 |
CPPFLAGS+= ${EXECINFO_CPPFLAGS} |
66 |
CPPFLAGS+= ${EXECINFO_CPPFLAGS} |
Lines 73-79
Link Here
|
73 |
OPTIONS_DEFINE= IPV6 FPING JABBER CURL LDAP IPMI SSH NMAP JAVAGW \ |
73 |
OPTIONS_DEFINE= IPV6 FPING JABBER CURL LDAP IPMI SSH NMAP JAVAGW \ |
74 |
LIBXML2 |
74 |
LIBXML2 |
75 |
|
75 |
|
76 |
OPTIONS_DEFAULT= FPING JABBER CURL UNIXODBC MYSQL SSH OPENSSL |
76 |
OPTIONS_DEFAULT= IPV6 FPING CURL UNIXODBC MYSQL OPENSSL |
77 |
OPTIONS_SUB= yes |
77 |
OPTIONS_SUB= yes |
78 |
|
78 |
|
79 |
CURL_DESC= Support for web monitoring |
79 |
CURL_DESC= Support for web monitoring |
Lines 93-105
Link Here
|
93 |
OPTIONS_SINGLE_SSL= OPENSSL GNUTLS POLARSSL |
93 |
OPTIONS_SINGLE_SSL= OPENSSL GNUTLS POLARSSL |
94 |
|
94 |
|
95 |
MYSQL_CONFIGURE_WITH= mysql |
95 |
MYSQL_CONFIGURE_WITH= mysql |
96 |
MYSQL_USE= MYSQL=yes |
96 |
USES+= mysql |
97 |
|
97 |
|
98 |
PGSQL_CONFIGURE_WITH= postgresql |
98 |
PGSQL_CONFIGURE_WITH= postgresql |
99 |
PGSQL_USES= pgsql |
99 |
USES+= pgsql |
100 |
|
100 |
|
101 |
SQLITE_CONFIGURE_WITH= sqlite3 |
101 |
SQLITE_CONFIGURE_WITH= sqlite3 |
102 |
SQLITE_USES= sqlite:3 |
102 |
USES+= sqlite:3 |
103 |
|
103 |
|
104 |
ORACLE_CONFIGURE_WITH= oracle |
104 |
ORACLE_CONFIGURE_WITH= oracle |
105 |
|
105 |
|
Lines 126-133
Link Here
|
126 |
UNIXODBC_CONFIGURE_WITH=unixodbc |
126 |
UNIXODBC_CONFIGURE_WITH=unixodbc |
127 |
UNIXODBC_LIB_DEPENDS= libodbc.so:databases/unixODBC |
127 |
UNIXODBC_LIB_DEPENDS= libodbc.so:databases/unixODBC |
128 |
.else |
128 |
.else |
129 |
OPTIONS_SINGLE= SSL |
129 |
OPTIONS_SINGLE= SSL |
130 |
OPTIONS_SINGLE_SSL= OPENSSL GNUTLS POLARSSL |
130 |
OPTIONS_SINGLE_SSL= OPENSSL GNUTLS POLARSSL |
131 |
.endif # if ${ZABBIX_BUILD} != "agent" |
131 |
.endif # if ${ZABBIX_BUILD} != "agent" |
132 |
|
132 |
|
133 |
IPV6_CONFIGURE_ENABLE= ipv6 |
133 |
IPV6_CONFIGURE_ENABLE= ipv6 |
Lines 141-159
Link Here
|
141 |
LIBXML2_CONFIGURE_WITH= libxml2 |
141 |
LIBXML2_CONFIGURE_WITH= libxml2 |
142 |
LIBXML2_LIB_DEPENDS= libxml2.so:textproc/libxml2 |
142 |
LIBXML2_LIB_DEPENDS= libxml2.so:textproc/libxml2 |
143 |
|
143 |
|
144 |
OPENSSL_CONFIGURE_WITH= openssl |
144 |
OPENSSL_CONFIGURE_WITH= openssl |
145 |
OPENSSL_USE= OPENSSL=yes |
145 |
USES+= ssl |
146 |
|
146 |
|
147 |
GNUTLS_CONFIGURE_WITH= gnutls |
147 |
GNUTLS_CONFIGURE_WITH= gnutls |
148 |
GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls |
148 |
GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls |
149 |
|
149 |
|
150 |
POLARSSL_CONFIGURE_WITH=mbedtls |
150 |
POLARSSL_CONFIGURE_WITH=mbedtls |
151 |
POLARSSL_LIB_DEPENDS= libmbedtls.so:security/polarssl13 |
151 |
POLARSSL_LIB_DEPENDS= libmbedtls.so:security/polarssl13 |
152 |
|
152 |
|
153 |
.include <bsd.port.pre.mk> |
153 |
.include <bsd.port.options.mk> |
154 |
|
154 |
|
155 |
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000000 && ${SSL_DEFAULT} == base |
155 |
.if ${PORT_OPTIONS:MOPENSSL} && ${OPSYS} == FreeBSD && ${OSVERSION} < 1000000 && !defined(WITH_OPENSSL_PORT) |
156 |
IGNORE= OpenSSL from the base system is too old, add DEFAULT_VERSIONS+=ssl=openssl to your /etc/make.conf and rebuild everything that needs SSL. |
156 |
IGNORE= openSSL from the base system is too old, add WITH_OPENSSL_PORT to your /etc/make.conf and rebuild everything that needs SSL |
157 |
.endif |
157 |
.endif |
158 |
|
158 |
|
159 |
post-patch: |
159 |
post-patch: |
Lines 162-167
Link Here
|
162 |
@${REINPLACE_CMD} -e 's#/usr/sbin/fping#${LOCALBASE}/sbin/fping#g' \ |
162 |
@${REINPLACE_CMD} -e 's#/usr/sbin/fping#${LOCALBASE}/sbin/fping#g' \ |
163 |
${WRKSRC}/conf/zabbix_*.conf |
163 |
${WRKSRC}/conf/zabbix_*.conf |
164 |
|
164 |
|
|
|
165 |
.if ${ZABBIX_BUILD} == "server" |
166 |
@${REINPLACE_CMD} -e 's#PidFile=/tmp/zabbix_server.pid#PidFile=/var/run/zabbix/zabbix_server.pid#g' \ |
167 |
${WRKSRC}/conf/zabbix_server*.conf |
168 |
.endif |
169 |
|
170 |
.if ${ZABBIX_BUILD} == "proxy" |
171 |
@${REINPLACE_CMD} -e 's#PidFile=/tmp/zabbix_proxy.pid#PidFile=/var/run/zabbix/zabbix_proxy.pid#g' \ |
172 |
${WRKSRC}/conf/zabbix_proxy*.conf |
173 |
.endif |
174 |
|
175 |
.if ${ZABBIX_BUILD} == "agent" |
176 |
@${REINPLACE_CMD} -e 's#PidFile=/tmp/zabbix_agentd.pid#PidFile=/var/run/zabbix/zabbix_agentd.pid#g' \ |
177 |
${WRKSRC}/conf/zabbix_agentd*.conf |
178 |
.endif |
179 |
|
165 |
.if ${ZABBIX_BUILD} != "agent" |
180 |
.if ${ZABBIX_BUILD} != "agent" |
166 |
. for d in mysql oracle postgresql sqlite3 |
181 |
. for d in mysql oracle postgresql sqlite3 |
167 |
@${REINPLACE_CMD} \ |
182 |
@${REINPLACE_CMD} \ |
Lines 192-199
Link Here
|
192 |
${COPYTREE_SHARE} "ibm_db2 mysql oracle postgresql sqlite3" \ |
207 |
${COPYTREE_SHARE} "ibm_db2 mysql oracle postgresql sqlite3" \ |
193 |
${STAGEDIR}${DATADIR}/${ZABBIX_BUILD:Q}/database/) |
208 |
${STAGEDIR}${DATADIR}/${ZABBIX_BUILD:Q}/database/) |
194 |
.endif |
209 |
.endif |
195 |
.else # frontend |
|
|
196 |
.include <bsd.port.pre.mk> |
197 |
.endif |
210 |
.endif |
198 |
|
211 |
|
199 |
.include <bsd.port.post.mk> |
212 |
.include <bsd.port.mk> |