From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Mar 8 08:10:09 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D8C7316A4CE for ; Mon, 8 Mar 2004 08:10:09 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA99B43D31 for ; Mon, 8 Mar 2004 08:10:09 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i28GA9bv053705 for ; Mon, 8 Mar 2004 08:10:09 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i28GA9Df053704; Mon, 8 Mar 2004 08:10:09 -0800 (PST) (envelope-from gnats) Resent-Date: Mon, 8 Mar 2004 08:10:09 -0800 (PST) Resent-Message-Id: <200403081610.i28GA9Df053704@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, Xavier Beaudouin Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1387916A4CE for ; Mon, 8 Mar 2004 08:05:31 -0800 (PST) Received: from mx2.oav.net (domu.oav.net [195.154.253.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id A56FB43D1D for ; Mon, 8 Mar 2004 08:05:30 -0800 (PST) (envelope-from kiwi@mx2.oav.net) Received: by mx2.oav.net (Postfix, from userid 1000) id 083724AC1D; Mon, 8 Mar 2004 17:05:33 +0100 (CET) Message-Id: <20040308160533.083724AC1D@mx2.oav.net> Date: Mon, 8 Mar 2004 17:05:33 +0100 (CET) From: Xavier Beaudouin To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/63930: [MAINTAINER] misc/libhome: Add OPTIONS to port X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Mar 2004 16:10:10 -0000 >Number: 63930 >Category: ports >Synopsis: [MAINTAINER] misc/libhome: Add OPTIONS to port >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Mon Mar 08 08:10:09 PST 2004 >Closed-Date: >Last-Modified: >Originator: Xavier Beaudouin >Release: FreeBSD 5.2.1-RELEASE-p1 i386 >Organization: The Caudium Group / Association Kazar >Environment: System: FreeBSD domu.oav.net 5.2.1-RELEASE-p1 FreeBSD 5.2.1-RELEASE-p1 #0: Fri Mar 5 10:21:57 CET >Description: - Add OPTIONS to port - Added support to all OpenLDAP versions by usage of USE_OPENLDAP - Added support to all MySQL versions by usage of USE_MYSQL - Added support to DB4 as well. Generated with FreeBSD Port Tools 0.50 >How-To-Repeat: >Fix: --- libhome-0.7.1_1.patch begins here --- diff -ruN --exclude=CVS /usr/ports/misc/libhome.old/Makefile /usr/ports/misc/libhome/Makefile --- /usr/ports/misc/libhome.old/Makefile Mon Mar 8 16:37:06 2004 +++ /usr/ports/misc/libhome/Makefile Mon Mar 8 17:03:25 2004 @@ -7,6 +7,7 @@ PORTNAME= libhome PORTVERSION= 0.7.1 +PORTREVISION= 1 CATEGORIES= misc MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= pll @@ -14,14 +15,69 @@ MAINTAINER= kiwi@oav.net COMMENT= Library providing a getpwname() emulation -LIB_DEPENDS+= ldap:${PORTSDIR}/net/openldap21-client \ - mysqlclient:${PORTSDIR}/databases/mysql323-client \ - db3.3:${PORTSDIR}/databases/db3 +.include + +.if exists(${LOCALBASE}/lib/libldap.so) +WITH_LDAP= yes +OPTIONS+= LDAP "Support for LDAP queries" on +.else +OPTIONS+= LDAP "Support for LDAP queries" off +.endif + +.if exists(${LOCALBASE}/lib/mysql/libmysqlclient.so) +WITH_MYSQL= yes +OPTIONS+= MYSQL "Support for MySQL queries" on +.else +OPTIONS+= MYSQL "Support for MySQL queries" off +.endif + +.if exists(${LOCALBASE}/lib/libdb3.so) +WITH_DB3= yes +OPTIONS+= DB3 "Support for DB3" on +.else +OPTIONS+= DB3 "Support for DB3" off +.endif + +.if exists(${LOCALBASE}/lib/libdb4.so) +WITH_DB4= yes +OPTIONS+= DB3 "Support for DB4" on +.else +OPTIONS+= DB3 "Support for DB4" off +.endif + +.if defined(WITH_DB3) && defined(WITH_DB4) +.error You cannot use DB3 and DB4 in the same time. +.endif + +.if defined(WITH_LDAP) +USE_OPENLDAP= yes +CONFIGURE_ARGS+= --with-ldap=${LOCALBASE}/include +.else +CONFIGURE_ARGS+= --without-ldap +.endif + +.if defined(WITH_MYSQL) +USE_MYSQL= yes +CONFIGURE_ARGS+= --with-mysql=${LOCALBASE}/include/mysql +.else +CONFIGURE_ARGS+= --without-mysql +.endif + +.if defined(WITH_DB3) +LIB_DEPENDS+= db3.3:${PORTSDIR}/databases/db3 +CONFIGURE_ARGS+= --with-db3=${LOCALBASE}/include/db3 --without-db4 +.else +CONFIGURE_ARGS+= --without-db3 +.endif + +.if defined(WITH_DB4) +LIB_DEPENDS+= db4:${PORTSDIR}/databases/db4 +CONFIGURE_ARGS+= --with-db4=${LOCALBASE}/include/db4 --without-db3 +.else +CONFIGURE_ARGS+= --without-db4 +.endif GNU_CONFIGURE= YES -CONFIGURE_ARGS= --with-db3=${LOCALBASE}/include/db3 --without-db4 \ - --with-ldap=${LOCALBASE}/include \ - --with-mysql=${LOCALBASE}/include/mysql CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" prefix="${PREFIX}" home_finger @@ -31,4 +87,4 @@ ${INSTALL_PROGRAM} ${WRKSRC}/home_finger ${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/home.conf ${PREFIX}/etc/home.conf.dist -.include +.include --- libhome-0.7.1_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: