2013-05-04 21:09:19 +00:00
|
|
|
# Created by: Vladimir Ermakov <samflanker@gmail.com>
|
2007-09-07 12:15:26 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= netxms
|
2014-10-06 08:26:53 +00:00
|
|
|
PORTVERSION= 1.2.16
|
2007-09-07 12:15:26 +00:00
|
|
|
CATEGORIES= net-mgmt
|
2014-05-24 06:22:20 +00:00
|
|
|
MASTER_SITES= http://www.netxms.org/download/ \
|
|
|
|
http://www.netxms.org/download/archive/
|
2007-09-07 12:15:26 +00:00
|
|
|
|
2012-03-17 05:21:05 +00:00
|
|
|
MAINTAINER= 5u623l20@gmail.com
|
2011-10-18 14:19:39 +00:00
|
|
|
COMMENT= Network monitoring system
|
2007-09-07 12:15:26 +00:00
|
|
|
|
2011-10-18 14:19:39 +00:00
|
|
|
LICENSE= GPLv2 LGPL21
|
|
|
|
LICENSE_COMB= multi
|
2007-09-07 12:15:26 +00:00
|
|
|
|
2014-10-12 21:00:23 +00:00
|
|
|
BROKEN= Fails to package
|
|
|
|
|
2014-05-24 06:22:20 +00:00
|
|
|
OPTIONS_DEFINE= SERVER CLIENT AGENT
|
2013-05-04 21:09:19 +00:00
|
|
|
OPTIONS_DEFAULT= CLIENT AGENT
|
2014-05-24 06:22:20 +00:00
|
|
|
SERVER_ENABLED_MODULES= MYSQL
|
|
|
|
SERVER_DISABLED_MODULES= PGSQL SQLITE ODBC
|
|
|
|
OPTIONS_SINGLE= SERVER
|
|
|
|
OPTIONS_SINGLE_SERVER= ${SERVER_ENABLED_MODULES} ${SERVER_DISABLED_MODULES}
|
2013-05-04 21:09:19 +00:00
|
|
|
SERVER_DESC= Install NetXMS server & agent
|
|
|
|
CLIENT_DESC= Install NetXMS client
|
|
|
|
AGENT_DESC= Install NetXMS agent
|
2007-09-07 12:15:26 +00:00
|
|
|
|
2011-10-18 14:19:39 +00:00
|
|
|
USE_OPENSSL= yes
|
2014-05-26 16:15:40 +00:00
|
|
|
USES= gmake iconv libtool perl5
|
2011-10-18 14:19:39 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2014-10-02 16:04:25 +00:00
|
|
|
CONFIGURE_ARGS= --disable-silent-rules \
|
|
|
|
--with-internal-libjansson \
|
|
|
|
--with-internal-libtre
|
2011-10-18 14:19:39 +00:00
|
|
|
USE_LDCONFIG= yes
|
2014-10-02 16:04:25 +00:00
|
|
|
INSTALL_TARGET= install-strip
|
2011-10-18 14:19:39 +00:00
|
|
|
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
|
2014-05-24 06:22:20 +00:00
|
|
|
USERS= netxms
|
|
|
|
GROUPS= netxms
|
2007-09-07 12:15:26 +00:00
|
|
|
|
2014-05-24 06:22:20 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2007-09-07 12:15:26 +00:00
|
|
|
|
2014-05-24 06:22:20 +00:00
|
|
|
.if ${PORT_OPTIONS:MSERVER} || ${PORT_OPTIONS:MCLIENT}
|
2007-12-13 23:34:22 +00:00
|
|
|
PLIST_SUB+= NXMAP=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= NXMAP="@comment "
|
2007-09-07 12:15:26 +00:00
|
|
|
.endif
|
2007-12-13 23:34:22 +00:00
|
|
|
|
2014-10-06 08:26:53 +00:00
|
|
|
.if ${PORT_OPTIONS:MSERVER} || ${PORT_OPTIONS:MAGENT}
|
|
|
|
PLIST_SUB+= NXCP=""
|
2007-12-13 23:34:22 +00:00
|
|
|
.else
|
2014-10-06 08:26:53 +00:00
|
|
|
PLIST_SUB+= NXCP="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MSERVER}
|
2007-12-13 23:34:22 +00:00
|
|
|
USE_RC_SUBR+= netxmsd
|
2014-10-06 08:26:53 +00:00
|
|
|
.if !${PORT_OPTIONS:MAGENT}
|
2007-12-13 23:34:22 +00:00
|
|
|
USE_RC_SUBR+= nxagentd
|
|
|
|
.endif
|
|
|
|
.endif
|
2007-09-07 12:15:26 +00:00
|
|
|
|
2013-05-04 21:09:19 +00:00
|
|
|
.if ${PORT_OPTIONS:MAGENT}
|
2007-09-07 12:15:26 +00:00
|
|
|
USE_RC_SUBR+= nxagentd
|
2007-12-13 23:34:22 +00:00
|
|
|
.endif
|
|
|
|
|
2014-05-24 06:22:20 +00:00
|
|
|
post-install:
|
2013-05-04 21:09:19 +00:00
|
|
|
.if ${PORT_OPTIONS:MSERVER}
|
2014-10-06 08:26:53 +00:00
|
|
|
.if !exists(${STAGEDIR}${PREFIX}/etc/netxmsd.conf.sample)
|
|
|
|
${CP} ${WRKSRC}/contrib/netxmsd.conf-dist ${STAGEDIR}${PREFIX}/etc/netxmsd.conf.sample
|
2011-10-18 14:19:39 +00:00
|
|
|
.endif
|
2007-09-07 12:15:26 +00:00
|
|
|
.endif
|
2013-05-04 21:09:19 +00:00
|
|
|
.if ${PORT_OPTIONS:MSERVER} || ${PORT_OPTIONS:MAGENT}
|
2014-10-06 08:26:53 +00:00
|
|
|
.if !exists(${STAGEDIR}${PREFIX}/etc/nxagentd.conf.sample)
|
|
|
|
${CP} ${WRKSRC}/contrib/nxagentd.conf-dist ${STAGEDIR}${PREFIX}/etc/nxagentd.conf.sample
|
2011-10-18 14:19:39 +00:00
|
|
|
.endif
|
2007-09-07 12:15:26 +00:00
|
|
|
.endif
|
|
|
|
|
2014-05-24 06:22:20 +00:00
|
|
|
.include <bsd.port.mk>
|