svn commit: r317349 - head/net-mgmt/netxms
Baptiste Daroussin
bapt at FreeBSD.org
Sat May 4 21:09:20 UTC 2013
Author: bapt
Date: Sat May 4 21:09:19 2013
New Revision: 317349
URL: http://svnweb.freebsd.org/changeset/ports/317349
Log:
Mark as broken: does not fetch and convert to new options framework
Modified:
head/net-mgmt/netxms/Makefile
Modified: head/net-mgmt/netxms/Makefile
==============================================================================
--- head/net-mgmt/netxms/Makefile Sat May 4 21:03:51 2013 (r317348)
+++ head/net-mgmt/netxms/Makefile Sat May 4 21:09:19 2013 (r317349)
@@ -1,9 +1,5 @@
-# Ports collection makefile for: netxms
-# Date created: Jul 9 2007
-# Whom: Vladimir Ermakov <samflanker at gmail.com>
-#
+# Created by: Vladimir Ermakov <samflanker at gmail.com>
# $FreeBSD$
-#
PORTNAME= netxms
PORTVERSION= 1.0.13
@@ -19,14 +15,14 @@ LICENSE_COMB= multi
PORTSCOUT= limit:^1\.0\.[0-9]* # 1.1.X branch is Development Branch
-OPTIONS= SERVER "Install NetXMS server & agent" off \
- CLIENT "Install NetXMS client" on \
- AGENT "Install NetXMS agent" on \
- NXHTTPD "Install web-interface" off \
- MYSQL "Enable MySQL support" off \
- PGSQL "Enable PostgreSQL support" off \
- SQLITE "Enable SQLITE support" off \
- ODBC "Enable ODBC support" off
+OPTIONS_DEFINE= SERVER CLIENT AGENT NXHTTPD MYSQL PGSQL SQLITE ODBC
+OPTIONS_DEFAULT= CLIENT AGENT
+SERVER_DESC= Install NetXMS server & agent
+CLIENT_DESC= Install NetXMS client
+AGENT_DESC= Install NetXMS agent
+NXHTTPD_DESC= Install web-interface
+
+BROKEN= Does not fetch
NO_PACKAGE= yes
@@ -49,38 +45,38 @@ NETXMS_GRP= netxms
SUB_FILES= pkg-install pkg-deinstall
-.if defined(WITH_SERVER) || defined(WITH_AGENT) || defined(WITH_CLIENT) || defined(WITH_NXHTTPD)
+.if ${PORT_OPTIONS:MSERVER} || ${PORT_OPTIONS:MAGENT} || ${PORT_OPTIONS:MCLIENT} || ${PORT_OPTIONS:MNXHTTPD}
PLIST_SUB+= NXCPTEST=""
LIB_DEPENDS+= expat.6:${PORTSDIR}/textproc/expat2
.else
PLIST_SUB+= NXCPTEST="@comment "
.endif
-.if defined(WITH_SERVER) || defined(WITH_CLIENT) || defined(WITH_NXHTTPD)
+.if ${PORT_OPTIONS:MSERVER} || ${PORT_OPTIONS:MCLIENT} || ${PORT_OPTIONS:MNXHTTPD}
PLIST_SUB+= NXMAP=""
.else
PLIST_SUB+= NXMAP="@comment "
.endif
-.if defined(WITH_CLIENT) || defined(WITH_NXHTTPD)
+.if ${PORT_OPTIONS:MCLIENT} || ${PORT_OPTIONS:MNXHTTPD}
PLIST_SUB+= NXCL=""
.else
PLIST_SUB+= NXCL="@comment "
.endif
-.if !defined(WITH_SERVER)
+.if ! ${PORT_OPTIONS:MSERVER}
PLIST_SUB+= SERVER="@comment "
-.if defined(WITH_MYSQL) || !defined(WITHOUT_PGSQL) || !defined(WITHOUT_SQLITE) || !defined(WITHOUT_ODBC)
+.if ${PORT_OPTIONS:MMYSQL} || ${PORT_OPTIONS:MPGSQL} || ${PORT_OPTIONS:MSQLITE} || ${PORT_OPTIONS:MODBC}
IGNORE= is useless database support without a SERVER. Please (re)run 'make config' and choose SERVER with database
.endif
.else
CONFIGURE_ARGS+= --with-server
PLIST_SUB+= SERVER=""
-.if defined(WITHOUT_MYSQL) && !defined(WITH_PGSQL) && !defined(WITH_SQLITE) && !defined(WITH_ODBC)
+.if ! ${PORT_OPTIONS:MMYSQL} && ! ${PORT_OPTIONS:MPGSQL} && ! ${PORT_OPTIONS:MSQLITE} && ! ${PORT_OPTIONS:MODBC}
IGNORE= is useless without a database. Please (re)run 'make config' and choose database support
.else
USE_RC_SUBR+= netxmsd
-.if defined(WITH_AGENT)
+.if ${PORT_OPTIONS:MAGENT}
PLIST_SUB+= AGENT="@comment "
.else
USE_RC_SUBR+= nxagentd
@@ -88,14 +84,14 @@ USE_RC_SUBR+= nxagentd
.endif
.endif
-.if defined(WITH_CLIENT)
+.if ${PORT_OPTIONS:MCLIENT}
CONFIGURE_ARGS+= --with-client
PLIST_SUB+= CLIENT=""
.else
PLIST_SUB+= CLIENT="@comment "
.endif
-.if defined(WITH_AGENT)
+.if ${PORT_OPTIONS:MAGENT}
USE_RC_SUBR+= nxagentd
CONFIGURE_ARGS+= --with-agent
PLIST_SUB+= AGENT=""
@@ -103,7 +99,7 @@ PLIST_SUB+= AGENT=""
PLIST_SUB+= AGENT="@comment "
.endif
-.if defined(WITH_NXHTTPD)
+.if ${PORT_OPTIONS:MNXHTTPD}
USE_RC_SUBR+= nxhttpd
CONFIGURE_ARGS+= --with-nxhttpd
PLIST_SUB+= NXHTTPD=""
@@ -113,7 +109,7 @@ USE_PERL5= yes
PLIST_SUB+= NXHTTPD="@comment "
.endif
-.if defined(WITH_MYSQL)
+.if ${PORT_OPTIONS:MMYSQL}
CONFIGURE_ARGS+= --with-mysql
PLIST_SUB+= MYSQL=""
USE_MYSQL= yes
@@ -121,7 +117,7 @@ USE_MYSQL= yes
PLIST_SUB+= MYSQL="@comment "
.endif
-.if defined(WITH_PGSQL)
+.if ${PORT_OPTIONS:MPGSQL}
CONFIGURE_ARGS+= --with-pgsql
PLIST_SUB+= PGSQL=""
USE_PGSQL= yes
@@ -129,7 +125,7 @@ USE_PGSQL= yes
PLIST_SUB+= PGSQL="@comment "
.endif
-.if defined(WITH_SQLITE)
+.if ${PORT_OPTIONS:MSQLITE}
CONFIGURE_ARGS+= --with-sqlite
PLIST_SUB+= SQLITE=""
USE_SQLITE= yes
@@ -137,7 +133,7 @@ USE_SQLITE= yes
PLIST_SUB+= SQLITE="@comment "
.endif
-.if defined(WITH_ODBC)
+.if ${PORT_OPTIONS:MODBC}
CONFIGURE_ARGS+= --with-odbc
PLIST_SUB+= ODBC=""
LIB_DEPENDS+= odbc.2:${PORTSDIR}/databases/unixODBC
@@ -148,19 +144,19 @@ PLIST_SUB+= ODBC="@comment "
pre-install:
@${SETENV} PKG_PREFIX=${PREFIX} \
${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL
-.if defined(WITH_SERVER)
+.if ${PORT_OPTIONS:MSERVER}
.if !exists(${PREFIX}/etc/netxmsd.conf-dist)
${INSTALL_DATA} ${WRKSRC}/contrib/netxmsd.conf-dist ${PREFIX}/etc
${CHOWN} ${NETXMS_OWN}:${NETXMS_GRP} ${PREFIX}/etc/netxmsd.conf-dist
.endif
.endif
-.if defined(WITH_SERVER) || !defined(WITHOUT_AGENT)
+.if ${PORT_OPTIONS:MSERVER} || ${PORT_OPTIONS:MAGENT}
.if !exists(${PREFIX}/etc/nxagentd.conf-dist)
${INSTALL_DATA} ${WRKSRC}/contrib/nxagentd.conf-dist ${PREFIX}/etc
${CHOWN} ${NETXMS_OWN}:${NETXMS_GRP} ${PREFIX}/etc/nxagentd.conf-dist
.endif
.endif
-.if defined(WITH_NXHTTPD)
+.if ${PORT_OPTIONS:MNXHTTPD}
.if !exists(${PREFIX}/etc/nxhttpd.conf-dist)
${INSTALL_DATA} ${WRKSRC}/contrib/nxhttpd.conf-dist ${PREFIX}/etc
${CHOWN} ${NETXMS_OWN}:${NETXMS_GRP} ${PREFIX}/etc/nxhttpd.conf-dist
More information about the svn-ports-all
mailing list