freebsd-ports/net-mgmt/netxms/Makefile
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00

97 lines
2.3 KiB
Makefile

PORTNAME= netxms
PORTVERSION= 2.2.2
CATEGORIES= net-mgmt
MASTER_SITES= http://www.netxms.org/download/releases/${PORTVERSION:R}/${PORTVERSION}/
MAINTAINER= ports@FreeBSD.org
COMMENT= Network monitoring system
WWW= https://www.netxms.org/
LICENSE= GPLv2 LGPL21
LICENSE_COMB= multi
BROKEN_FreeBSD_12= 'net/iso88025.h' file not found
BROKEN_FreeBSD_13= 'net/iso88025.h' file not found
BROKEN_FreeBSD_14= 'net/iso88025.h' file not found
LIB_DEPENDS= libcurl.so:ftp/curl \
libexpat.so:textproc/expat2 \
libjansson.so:devel/jansson \
libtre.so:textproc/libtre \
libmosquitto.so:net/mosquitto
OPTIONS_DEFINE= SERVER CLIENT AGENT SSH
OPTIONS_DEFAULT= CLIENT AGENT SSH
OPTIONS_SINGLE= SERVER
OPTIONS_SINGLE_SERVER= MYSQL PGSQL ODBC
OPTIONS_SUB= yes
SERVER_DESC= Install NetXMS server & agent
CLIENT_DESC= Install NetXMS client
AGENT_DESC= Install NetXMS agent
CLIENT_CONFIGURE_ON= --with-client
AGENT_CONFIGURE_ON= --with-agent
SERVER_CONFIGURE_ON= --with-server
MYSQL_CONFIGURE_ON= --with-mysql
MYSQL_USES= mysql
PGSQL_CONFIGURE_ON= --with-pgsql
PGSQL_USES= pgsql
ODBC_CONFIGURE_ON= --with-odbc
ODBC_LIB_DEPENDS= libodbc.so:databases/unixODBC
SSH_CONFIGURE_OFF= --disable-ssh
SSH_LIB_DEPENDS= libssh.so:security/libssh
USES= gmake iconv libtool perl5 ssl
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
INSTALL_TARGET= install-strip
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
USERS= netxms
GROUPS= netxms
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MSERVER} || ${PORT_OPTIONS:MCLIENT}
PLIST_SUB+= NXMAP=""
.else
PLIST_SUB+= NXMAP="@comment "
.endif
.if ${PORT_OPTIONS:MSERVER} || ${PORT_OPTIONS:MAGENT}
PLIST_SUB+= NXCP=""
.else
PLIST_SUB+= NXCP="@comment "
.endif
.if ${PORT_OPTIONS:MSERVER}
USE_RC_SUBR+= netxmsd
.if !${PORT_OPTIONS:MAGENT}
USE_RC_SUBR+= nxagentd
.endif
.endif
.if ${PORT_OPTIONS:MAGENT}
USE_RC_SUBR+= nxagentd
.endif
post-patch:
@${REINPLACE_CMD} 's/-liconv/${ICONV_LIB}/' ${WRKSRC}/configure
post-install:
.if ${PORT_OPTIONS:MSERVER}
.if !exists(${STAGEDIR}${PREFIX}/etc/netxmsd.conf.sample)
${CP} ${WRKSRC}/contrib/netxmsd.conf-dist ${STAGEDIR}${PREFIX}/etc/netxmsd.conf.sample
.endif
.endif
.if ${PORT_OPTIONS:MSERVER} || ${PORT_OPTIONS:MAGENT}
.if !exists(${STAGEDIR}${PREFIX}/etc/nxagentd.conf.sample)
${CP} ${WRKSRC}/contrib/nxagentd.conf-dist ${STAGEDIR}${PREFIX}/etc/nxagentd.conf.sample
.endif
.endif
.include <bsd.port.mk>