diff -urp /usr/ports/net/echoping/Makefile ports/net/echoping/Makefile --- /usr/ports/net/echoping/Makefile Thu Nov 9 03:50:02 2006 +++ ports/net/echoping/Makefile Thu Nov 30 13:20:32 2006 @@ -7,7 +7,7 @@ PORTNAME= echoping PORTVERSION= 5.99.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net ipv6 MASTER_SITES= ftp://ftp.internatif.org/pub/unix/echoping/ MASTER_SITE_SUBDIR= ${PORTNAME} @@ -19,12 +19,38 @@ COMMENT= A ping-like program that uses t LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt \ idn.16:${PORTSDIR}/dns/libidn -USE_OPENLDAP= yes USE_OPENSSL= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-http --enable-icp --enable-smtp --with-ssl \ --enable-ttcp --enable-tos --with-libidn=${LOCALBASE} -MAN1= echoping.1 echoping_dns.1 echoping_random.1 echoping_whois.1 echoping_ldap.1 +PING_PLUGINS= dns random whois + +MAN1= echoping.1 echoping_dns.1 echoping_random.1 echoping_whois.1 + +OPTIONS= LDAP "Enable LDAP plug-in" on \ + PGSQL "Enable PostgreSQL plug-in" off + +.include + +.if defined(WITH_LDAP) +USE_OPENLDAP= yes +MAN1+= echoping_ldap.1 +PING_PLUGINS+= ldap +PLIST_SUB= WITH_LDAP="" +.else +PLIST_SUB= WITH_LDAP="@comment " +.endif + +.if defined(WITH_PGSQL) +USE_PGSQL= yes +MAN1+= echoping_postgresql.1 +PING_PLUGINS+= postgresql +PLIST_SUB+= WITH_PGSQL="" +.else +PLIST_SUB+= WITH_PGSQL="@comment " +.endif + +CONFIGURE_ARGS+=--enable-plugin="${PING_PLUGINS}" -.include +.include diff -urp /usr/ports/net/echoping/pkg-plist ports/net/echoping/pkg-plist --- /usr/ports/net/echoping/pkg-plist Thu Jun 15 08:40:44 2006 +++ ports/net/echoping/pkg-plist Thu Nov 30 12:28:10 2006 @@ -3,10 +3,14 @@ lib/echoping/dns.a lib/echoping/dns.la lib/echoping/dns.so lib/echoping/dns.so.0 -lib/echoping/ldap.a -lib/echoping/ldap.la -lib/echoping/ldap.so -lib/echoping/ldap.so.0 +%%WITH_LDAP%%lib/echoping/ldap.a +%%WITH_LDAP%%lib/echoping/ldap.la +%%WITH_LDAP%%lib/echoping/ldap.so +%%WITH_LDAP%%lib/echoping/ldap.so.0 +%%WITH_PGSQL%%lib/echoping/postgresql.a +%%WITH_PGSQL%%lib/echoping/postgresql.la +%%WITH_PGSQL%%lib/echoping/postgresql.so +%%WITH_PGSQL%%lib/echoping/postgresql.so.0 lib/echoping/random.a lib/echoping/random.la lib/echoping/random.so