Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Nov 2015 02:14:55 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r402386 - head/net/echoping
Message-ID:  <201511250214.tAP2Et5v098490@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Wed Nov 25 02:14:55 2015
New Revision: 402386
URL: https://svnweb.freebsd.org/changeset/ports/402386

Log:
  - Strip library
  - Switch to options helpers

Modified:
  head/net/echoping/Makefile
  head/net/echoping/pkg-plist

Modified: head/net/echoping/Makefile
==============================================================================
--- head/net/echoping/Makefile	Wed Nov 25 02:14:45 2015	(r402385)
+++ head/net/echoping/Makefile	Wed Nov 25 02:14:55 2015	(r402386)
@@ -3,7 +3,7 @@
 
 PORTNAME=	echoping
 PORTVERSION=	6.0.2
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	net ipv6
 MASTER_SITES=	SF
 
@@ -23,29 +23,19 @@ 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
 
 OPTIONS_DEFINE=	LDAP PGSQL
-OPTIONS_DEFAULT=	LDAP
+OPTIONS_DEFAULT=LDAP
+OPTIONS_SUB=	yes
 
-.include <bsd.port.options.mk>
+LDAP_USE=	OPENLDAP=yes
+LDAP_VARS=	PING_PLUGINS+=ldap
 
-.if ${PORT_OPTIONS:MLDAP}
-USE_OPENLDAP=	yes
-PING_PLUGINS+=	ldap
-PLIST_SUB=	WITH_LDAP=""
-.else
-PLIST_SUB=	WITH_LDAP="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MPGSQL}
-USES+=		pgsql
-PING_PLUGINS+=	postgresql
-PLIST_SUB+=	WITH_PGSQL=""
-.else
-PLIST_SUB+=	WITH_PGSQL="@comment "
-.endif
+PGSQL_USES=	pgsql
+PGSQL_VARS=	PING_PLUGINS+=postgresql
 
 post-patch:
 	@${REINPLACE_CMD} '/^echoping_LDADD =/s/$$/ -lm/' ${WRKSRC}/Makefile.in

Modified: head/net/echoping/pkg-plist
==============================================================================
--- head/net/echoping/pkg-plist	Wed Nov 25 02:14:45 2015	(r402385)
+++ head/net/echoping/pkg-plist	Wed Nov 25 02:14:55 2015	(r402386)
@@ -5,14 +5,14 @@ lib/echoping/dns.a
 lib/echoping/dns.so
 lib/echoping/dns.so.0
 lib/echoping/dns.so.0.0.0
-%%WITH_LDAP%%lib/echoping/ldap.a
-%%WITH_LDAP%%lib/echoping/ldap.so
-%%WITH_LDAP%%lib/echoping/ldap.so.0
-%%WITH_LDAP%%lib/echoping/ldap.so.0.0.0
-%%WITH_PGSQL%%lib/echoping/postgresql.a
-%%WITH_PGSQL%%lib/echoping/postgresql.so
-%%WITH_PGSQL%%lib/echoping/postgresql.so.0
-%%WITH_PGSQL%%lib/echoping/postgresql.so.0.0.0
+%%LDAP%%lib/echoping/ldap.a
+%%LDAP%%lib/echoping/ldap.so
+%%LDAP%%lib/echoping/ldap.so.0
+%%LDAP%%lib/echoping/ldap.so.0.0.0
+%%PGSQL%%lib/echoping/postgresql.a
+%%PGSQL%%lib/echoping/postgresql.so
+%%PGSQL%%lib/echoping/postgresql.so.0
+%%PGSQL%%lib/echoping/postgresql.so.0.0.0
 lib/echoping/random.a
 lib/echoping/random.so
 lib/echoping/random.so.0
@@ -23,7 +23,7 @@ lib/echoping/whois.so.0
 lib/echoping/whois.so.0.0.0
 man/man1/echoping.1.gz
 man/man1/echoping_dns.1.gz
-%%WITH_LDAP%%man/man1/echoping_ldap.1.gz
-%%WITH_PGSQL%%man/man1/echoping_postgresql.1.gz
+%%LDAP%%man/man1/echoping_ldap.1.gz
+%%PGSQL%%man/man1/echoping_postgresql.1.gz
 man/man1/echoping_random.1.gz
 man/man1/echoping_whois.1.gz



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511250214.tAP2Et5v098490>