blob: c9b833ac1abf07ee1fa131c2de1d9b23c097eec7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Ports collection makefile for: zabbix
# Date created: Jun 18 2003
# Whom: Sergey Akifyev <asa@gascom.ru>
#
# $FreeBSD$
#
PORTNAME= zabbix
PORTVERSION= 1.0b10
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=${PORTNAME}
DISTNAME= ${PORTNAME}-${PORTVERSION:S|b|beta|}
MAINTAINER= asa@gascom.ru
COMMENT= Very advanced network monitoring system
.ifdef(ZABBIX_AGENT_ONLY)
PKGNAMESUFFIX= -agent
PLIST= ${MASTERDIR}/pkg-plist.agent
PKGMESSAGE= nonexistent
.else
CONFIGURE_ARGS= --with-mysql --with-net-snmp
LIB_DEPENDS= netsnmp.5:${PORTSDIR}/net/net-snmp \
mysqlclient.10:${PORTSDIR}/databases/mysql323-client
BUILD_DEPENDS= mysql:${PORTSDIR}/databases/mysql323-client
RUN_DEPENDS= safe_mysqld:${PORTSDIR}/databases/mysql323-server
.endif
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS=-I${LOCALBASE}/include
ZABBIX_BINARIES=zabbix_agent zabbix_agentd zabbix_sender
ZABBIX_CONFIGS= zabbix_agent.conf zabbix_agentd.conf
.ifndef(ZABBIX_AGENT_ONLY)
ZABBIX_BINARIES+=zabbix_suckerd zabbix_trapper zabbix_trapperd
ZABBIX_CONFIGS+=zabbix_suckerd.conf zabbix_trapper.conf zabbix_trapperd.conf
.endif
do-install:
.for FILE in ${ZABBIX_BINARIES}
${INSTALL_PROGRAM} ${WRKSRC}/bin/${FILE} ${PREFIX}/bin
.endfor
${MKDIR} ${PREFIX}/etc/zabbix
${LN} -sf ${PREFIX}/etc/zabbix /etc/zabbix
.for FILE in ${ZABBIX_CONFIGS}
${INSTALL_DATA} ${WRKSRC}/misc/conf/${FILE} \
${PREFIX}/etc/zabbix/${FILE}.sample
.endfor
.ifndef(ZABBIX_AGENT_ONLY)
${MKDIR} ${PREFIX}/share/zabbix
${MKDIR} ${PREFIX}/share/zabbix/create
${INSTALL_DATA} ${MASTERDIR}/scripts/dbsetup.sh \
${PREFIX}/share/zabbix/create
${CP} -Rf ${WRKSRC}/frontends/* ${PREFIX}/share/zabbix
${CP} -Rf ${WRKSRC}/create/* ${PREFIX}/share/zabbix/create
${CP} -Rf ${WRKSRC}/upgrades/dbpatches ${PREFIX}/share/zabbix
${INSTALL_SCRIPT} ${MASTERDIR}/scripts/dbsetup.sh \
${PREFIX}/share/zabbix/create
${INSTALL_SCRIPT} ${MASTERDIR}/scripts/zabbix.sh.sample \
${PREFIX}/etc/rc.d
.endif
${INSTALL_SCRIPT} ${MASTERDIR}/scripts/zabbix-agent.sh.sample \
${PREFIX}/etc/rc.d
${SH} ${PKGINSTALL}
.include <bsd.port.mk>
|