diff options
author | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2023-02-11 12:43:52 +0000 |
---|---|---|
committer | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2023-02-11 12:43:52 +0000 |
commit | 5d3023c9a23a14e9bbbe74da4ca3ffb3077a1196 (patch) | |
tree | 2b291fd150c6d5d370b26e0477be3011ae59e159 | |
parent | 9bce8280df4b4b9e107b3d643d87a2f89b3adae4 (diff) | |
download | ports-5d3023c9a23a14e9bbbe74da4ca3ffb3077a1196.tar.gz ports-5d3023c9a23a14e9bbbe74da4ca3ffb3077a1196.zip |
net-mgmt/xymon-server: Fix BUILD with LDAP option
- While converting USE_LDAP=yes to USES=ldap this port was missed. Fix
this.
- Utilize OPTIONS framework
PR: 269486
Reported by: dinoex
Approved by: portmgr (just-fix-it)
Fixes: 6e1233b Mk/**ldap.mk: Convert USE_LDAP to USES=ldap
-rw-r--r-- | net-mgmt/xymon-server/Makefile | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/net-mgmt/xymon-server/Makefile b/net-mgmt/xymon-server/Makefile index 7710f884a484..7dfd772b6907 100644 --- a/net-mgmt/xymon-server/Makefile +++ b/net-mgmt/xymon-server/Makefile @@ -52,17 +52,10 @@ FIXME2= analysis.cfg combo.cfg holidays.cfg rrddefinitions.cfg \ OPTIONS_DEFINE=DEBUG LDAP NETSNMP NETSNMP_DESC=Enable Net-SNMP support -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MLDAP} -MAKE_ENV+= WITH_LDAP=1 -USE+= ldap -.endif - -.if ${PORT_OPTIONS:MNETSNMP} -MAKE_ENV+= WITH_NETSNMP=1 -LIB_DEPENDS+= libnetsnmp.so:net-mgmt/net-snmp -.endif +LDAP_USES= ldap +LDAP_MAKE_ENV= WITH_LDAP=1 +NETSNMP_LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp +NETSNMP_MAKE_ENV= WITH_NETSNMP=1 post-patch: ${REINPLACE_CMD} -e 's|web-build client|web-build|' ${WRKSRC}/build/Makefile.rules |