Lines 1-13
Link Here
|
1 |
# Created by: Jim Riggs <ports@christianserving.org> |
1 |
reated by: Jim Riggs <ports@christianserving.org> |
2 |
# $FreeBSD: head/net-mgmt/zabbix2-server/Makefile 328009 2013-09-23 14:26:59Z rm $ |
2 |
# $FreeBSD: head/net-mgmt/zabbix2-server/Makefile 328009 2013-09-23 14:26:59Z rm $ |
3 |
|
3 |
|
4 |
PORTNAME= zabbix2 |
4 |
PORTNAME= zabbix2 |
5 |
PORTVERSION= 2.0.8 |
5 |
PORTVERSION= 2.0.9 |
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} |
9 |
PKGNAMESUFFIX?= -server |
9 |
PKGNAMESUFFIX?= -server |
10 |
DISTNAME= zabbix-${PORTVERSION} |
10 |
DISTNAME= zabbix-${PORTVERSION} |
11 |
|
11 |
|
12 |
MAINTAINER= pakhom706@gmail.com |
12 |
MAINTAINER= pakhom706@gmail.com |
13 |
COMMENT= Enterprise-class open source distributed monitoring (${PKGNAMESUFFIX:S/^-//}) |
13 |
COMMENT= Enterprise-class open source distributed monitoring (${PKGNAMESUFFIX:S/^-//}) |
Lines 16-21
Link Here
|
16 |
|
16 |
|
17 |
CONFLICTS= ${PKGBASE}-1.[0-8]* |
17 |
CONFLICTS= ${PKGBASE}-1.[0-8]* |
18 |
|
18 |
|
|
|
19 |
IGNORE_WITH_MYSQL= 41 |
20 |
|
19 |
.if ${PKGNAMESUFFIX} != "-agent" |
21 |
.if ${PKGNAMESUFFIX} != "-agent" |
20 |
CONFLICTS+= ${PORTNAME}-1.[0-8]* |
22 |
CONFLICTS+= ${PORTNAME}-1.[0-8]* |
21 |
.endif |
23 |
.endif |
Lines 68-75
Link Here
|
68 |
|
70 |
|
69 |
OPTIONSFILE= ${PORT_DBDIR}/${PORTNAME}${PKGNAMESUFFIX}/options |
71 |
OPTIONSFILE= ${PORT_DBDIR}/${PORTNAME}${PKGNAMESUFFIX}/options |
70 |
|
72 |
|
71 |
OPTIONS_DEFINE= IPV6 FPING JABBER CURL LDAP IPMI SSH NMAP ODBC JAVAGW |
73 |
OPTIONS_DEFINE= IPV6 FPING JABBER CURL LDAP IPMI SSH NMAP ODBC JAVAGW MYSQL |
72 |
OPTIONS_DEFAULT= MYSQL IPV6 FPING JABBER CURL LDAP |
74 |
OPTIONS_DEFAULT= MYSQL IPV6 FPING JABBER CURL |
73 |
|
75 |
|
74 |
CURL_DESC= Support for web monitoring |
76 |
CURL_DESC= Support for web monitoring |
75 |
FPING_DESC= Build/install fping for ping checks |
77 |
FPING_DESC= Build/install fping for ping checks |
Lines 84-90
Link Here
|
84 |
UNIXODBC_DESC= Use UnixODBC for ODBC support |
86 |
UNIXODBC_DESC= Use UnixODBC for ODBC support |
85 |
|
87 |
|
86 |
OPTIONS_SINGLE= DB ODBC |
88 |
OPTIONS_SINGLE= DB ODBC |
87 |
OPTIONS_SINGLE_DB= MYSQL PGSQL SQLITE |
89 |
OPTIONS_SINGLE_DB= MYSQL PGSQL SQLITE ORACLE |
88 |
OPTIONS_SINGLE_ODBC= IODBC UNIXODBC |
90 |
OPTIONS_SINGLE_ODBC= IODBC UNIXODBC |
89 |
|
91 |
|
90 |
NO_STAGE= yes |
92 |
NO_STAGE= yes |
Lines 103-113
Link Here
|
103 |
.endif |
105 |
.endif |
104 |
|
106 |
|
105 |
.if ${PORT_OPTIONS:MSQLITE} |
107 |
.if ${PORT_OPTIONS:MSQLITE} |
106 |
ZABBIX_REQUIRE= |
108 |
ZABBIX_REQUIRE= " sqlite" |
107 |
USE_SQLITE= 3 |
109 |
USE_SQLITE= 3 |
108 |
CONFIGURE_ARGS+= --with-sqlite3 |
110 |
CONFIGURE_ARGS+= --with-sqlite3 |
109 |
.endif |
111 |
.endif |
110 |
|
112 |
|
|
|
113 |
.if ${PORT_OPTIONS:MORACLE} |
114 |
ZABBIX_REQUIRE= |
115 |
CONFIGURE_ARGS+= --with-oracle |
116 |
.endif |
117 |
|
111 |
.if ${PORT_OPTIONS:MCURL} |
118 |
.if ${PORT_OPTIONS:MCURL} |
112 |
LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl |
119 |
LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl |
113 |
CONFIGURE_ARGS+= --with-libcurl |
120 |
CONFIGURE_ARGS+= --with-libcurl |
Lines 173-179
Link Here
|
173 |
|
180 |
|
174 |
.if ${ZABBIX_BUILD} != "agent" |
181 |
.if ${ZABBIX_BUILD} != "agent" |
175 |
.if empty(PORT_OPTIONS:MFPING) |
182 |
.if empty(PORT_OPTIONS:MFPING) |
176 |
@${ECHO} 'DisablePinger=yes' >> ${WRKSRC}/conf/zabbix_${ZABBIX_BUILD}.conf |
|
|
177 |
.endif |
183 |
.endif |
178 |
.for d in mysql oracle postgresql sqlite3 |
184 |
.for d in mysql oracle postgresql sqlite3 |
179 |
@${REINPLACE_CMD} -e 's|/bin/ping|/sbin/ping|g; \ |
185 |
@${REINPLACE_CMD} -e 's|/bin/ping|/sbin/ping|g; \ |
Lines 187-192
Link Here
|
187 |
@${FIND} ${WRKSRC} -type f \( -name '*.bak' -or -name '*.orig' \) -exec ${RM} -f {} + |
193 |
@${FIND} ${WRKSRC} -type f \( -name '*.bak' -or -name '*.orig' \) -exec ${RM} -f {} + |
188 |
|
194 |
|
189 |
post-install: |
195 |
post-install: |
|
|
196 |
|
197 |
.if defined(WITH_JAVAGW) |
198 |
@${MV} ${PREFIX}/sbin/zabbix_java/settings.sh ${PREFIX}/sbin/zabbix_java/settings.sh.sample |
199 |
.endif |
200 |
|
190 |
.if ${ZABBIX_BUILD} != "agent" |
201 |
.if ${ZABBIX_BUILD} != "agent" |
191 |
@${MKDIR} "${DATADIR}/${ZABBIX_BUILD}/database" |
202 |
@${MKDIR} "${DATADIR}/${ZABBIX_BUILD}/database" |
192 |
@cd ${WRKSRC}/upgrades/ && ${COPYTREE_SHARE} dbpatches ${DATADIR}/${ZABBIX_BUILD}/upgrades/ |
203 |
@cd ${WRKSRC}/upgrades/ && ${COPYTREE_SHARE} dbpatches ${DATADIR}/${ZABBIX_BUILD}/upgrades/ |