From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Nov 30 12:50:20 2006 Return-Path: <owner-freebsd-ports-bugs@FreeBSD.ORG> X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E2CEF16A412 for <freebsd-ports-bugs@hub.freebsd.org>; Thu, 30 Nov 2006 12:50:20 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE33443CA5 for <freebsd-ports-bugs@hub.freebsd.org>; Thu, 30 Nov 2006 12:50:03 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kAUCoBH9068388 for <freebsd-ports-bugs@freefall.freebsd.org>; Thu, 30 Nov 2006 12:50:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kAUCoBoj068383; Thu, 30 Nov 2006 12:50:11 GMT (envelope-from gnats) Resent-Date: Thu, 30 Nov 2006 12:50:11 GMT Resent-Message-Id: <200611301250.kAUCoBoj068383@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Henrik Brix Andersen <henrik@brixandersen.dk> Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5827816A50A; Thu, 30 Nov 2006 12:42:57 +0000 (UTC) (envelope-from brix@fangorn.brixandersen.dk) Received: from ns2.pil.dk (ns2.pil.dk [195.41.47.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F1B743CA6; Thu, 30 Nov 2006 12:42:48 +0000 (GMT) (envelope-from brix@fangorn.brixandersen.dk) Received: from fangorn.brixandersen.dk (fw2.pil.dk [83.90.227.58]) by ns2.pil.dk (Postfix) with ESMTP id 6F8B67BBB0F; Thu, 30 Nov 2006 13:42:55 +0100 (CET) Received: by fangorn.brixandersen.dk (Postfix, from userid 1001) id 1CD1C2E026; Thu, 30 Nov 2006 13:42:55 +0100 (CET) Message-Id: <20061130124255.1CD1C2E026@fangorn.brixandersen.dk> Date: Thu, 30 Nov 2006 13:42:55 +0100 (CET) From: Henrik Brix Andersen <henrik@brixandersen.dk> To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: sumikawa@FreeBSD.org Subject: ports/106060: Optional LDAP and PGSQL support in echoping X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Henrik Brix Andersen <henrik@brixandersen.dk> List-Id: Ports bug reports <freebsd-ports-bugs.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs>, <mailto:freebsd-ports-bugs-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-ports-bugs> List-Post: <mailto:freebsd-ports-bugs@freebsd.org> List-Help: <mailto:freebsd-ports-bugs-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs>, <mailto:freebsd-ports-bugs-request@freebsd.org?subject=subscribe> X-List-Received-Date: Thu, 30 Nov 2006 12:50:21 -0000 >Number: 106060 >Category: ports >Synopsis: Optional LDAP and PGSQL support in echoping >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Nov 30 12:50:10 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Henrik Brix Andersen >Release: FreeBSD 6.2-PRERELEASE i386 >Organization: pil.dk >Environment: System: FreeBSD fangorn.brixandersen.dk 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #32: Tue Nov 28 13:27:57 CET 2006 root@fangorn.brixandersen.dk:/usr/obj/usr/src/sys/FANGORN i386 >Description: The current net/echoping port has a hard dependency on OpenLDAP although the LDAP plug-in is optional. Also, the PostgreSQL plug-in is not enabled in the current port. >How-To-Repeat: 'portinstall net/echoping' and notice that it depends on OpenLDAP - also notice that the PostgreSQL plug-in is not compiled/installed. >Fix: Below patch fixes these two issues by adding LDAP and PGSQL OPTIONS, thus allowing the end-user to enable these plug-ins at will. --- echoping.diff begins here --- 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 <bsd.port.pre.mk> + +.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 <bsd.port.mk> +.include <bsd.port.post.mk> 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 --- echoping.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: