forked from Lainports/freebsd-ports
52 lines
1.3 KiB
Makefile
52 lines
1.3 KiB
Makefile
# Created by: peter
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= echoping
|
|
PORTVERSION= 6.0.2
|
|
PORTREVISION= 6
|
|
CATEGORIES= net ipv6
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Ping-like program that uses TCP and/or HTTP
|
|
|
|
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_GITHUB= yes
|
|
GH_ACCOUNT= bortzmeyer
|
|
GH_PROJECT= ${PORTNAME}
|
|
GH_TAGNAME= dfe95b5
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${GH_TAGNAME}/SRC
|
|
|
|
OPTIONS_DEFINE= LDAP PGSQL
|
|
OPTIONS_DEFAULT=LDAP
|
|
OPTIONS_SUB= yes
|
|
|
|
LDAP_USE= OPENLDAP=yes
|
|
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>
|