1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00
freebsd-ports/net/echoping/Makefile
Muhammad Moinur Rahman 6e1233be22 Mk/**ldap.mk: Convert USE_LDAP to USES=ldap
Convert the USE_LDAP=yes to USES=ldap and adds the following features:

- Adds the argument USES=ldap:server to add openldap2{4|5|6}-server as
  RUN_DEPENDS
- Adds the argument USES=ldap<version> and replaces WANT_OPENLDAP_VER
- Adds OPENLDAP versions in bsd.default-versions.mk
- Adds USE_OPENLDAP/WANT_OPENLDAP_VER in Mk/bsd.sanity.mk
- Changes consumers to use the features

Reviewed by:	delphij
Approved by:	portmgr
Differential Revision: https://reviews.freebsd.org/D38233
2023-02-08 04:53:56 -06:00

51 lines
1.3 KiB
Makefile

PORTNAME= echoping
PORTVERSION= 6.0.2
PORTREVISION= 9
CATEGORIES= net
MAINTAINER= ports@FreeBSD.org
COMMENT= Ping-like program that uses TCP and/or HTTP
WWW= https://github.com/bortzmeyer/echoping
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libpopt.so:devel/popt \
libidn.so:dns/libidn
USES= autoreconf cpe libtool pkgconfig ssl
CPE_VENDOR= echoping_project
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-http --enable-icp --enable-smtp --with-ssl \
--enable-ttcp --enable-tos --with-libidn=${LOCALBASE} \
--enable-plugin="${PING_PLUGINS}"
INSTALL_TARGET= install-strip
PING_PLUGINS= dns random whois
USE_GITLAB= yes
GL_SITE= https://framagit.org
GL_ACCOUNT= bortzmeyer
GL_COMMIT= ccf3c95d9249d3065db3853486f41c852d20101e
WRKSRC_SUBDIR= SRC
OPTIONS_DEFINE= LDAP PGSQL
OPTIONS_DEFAULT=LDAP
OPTIONS_SUB= yes
LDAP_USES= ldap
LDAP_VARS= PING_PLUGINS+=ldap
PGSQL_USES= pgsql
PGSQL_VARS= PING_PLUGINS+=postgresql
pre-configure:
${FIND} ${WRKSRC} -name configure.ac -execdir ${SH} -c '\
${CAT} ${WRKSRC}/configure-common.ac > configure.ac.tmp && \
${SED} '/configure-common\.ac/d' configure.ac >> configure.ac.tmp && \
${MV} configure.ac.tmp configure.ac' \;
${REINPLACE_CMD} '/^echoping_LDADD =/s/$$/ -lm/' ${WRKSRC}/Makefile.am
.include <bsd.port.mk>