From owner-freebsd-ports@FreeBSD.ORG Thu May 29 10:26:50 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 373DB37B401 for ; Thu, 29 May 2003 10:26:50 -0700 (PDT) Received: from bach.ccinet.ab.ca (bach.ccinet.ab.ca [198.161.96.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 87DA443FAF for ; Thu, 29 May 2003 10:26:49 -0700 (PDT) (envelope-from guy@incentre.net) Received: from incentre.net (squid.incentre.net [206.75.213.195]) by bach.ccinet.ab.ca (8.12.6/8.12.6) with ESMTP id h4THTGMt001850; Thu, 29 May 2003 11:29:17 -0600 (MDT) (envelope-from guy@incentre.net) Message-ID: <3ED642C0.50600@incentre.net> Date: Thu, 29 May 2003 11:26:24 -0600 From: Guy Fraser User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003 X-Accept-Language: en MIME-Version: 1.0 To: "Scot W. Hetzel" References: <3ED5200D.2010908@incentre.net> <06d501c32566$a62d89c0$13fd2fd8@Admin02> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: ports@freebsd.org Subject: Re: how do I modify pkg-plist for opional modules X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 May 2003 17:26:50 -0000 Thank you I will look into this and try to fix the problem(s). Guy Scot W. Hetzel wrote: >From: "Guy Fraser" > > >>The FreeRadius port is marked as broken due to a "bad" pkg-plist. >> >>If MySQL and X99-Token software are both installed the list is >>correct. The Makefile installs modules if the required software is >>installed before "make". >> >>The pkg-plist can never be correct unless all files for all optional >>modules are included but not required to be available for install or >>removal. Alternatively a wild card could be used since the optional >>modules are all in the "lib" subdirectory and start with "rlm_", so >>"lib/rlm_*" could match. >> >>Let me know how to do this and I will try to fix the problem. >> >> >> >You need to change PLIST_SUB so that it contains a variable that is either >set to " or "@comment depending on whether the module is installed or not >installed. > >You'll need to add something like the following to the Makefile: > >.if defined(WITH_MYSQL) >.if exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.10) >LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client >.else >.if exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.14) >LIB_DEPENDS+= mysqlclient.14:${PORTSDIR}/databases/mysql41-client >.else >LIB_DEPENDS+= mysqlclient.12:${PORTSDIR}/databases/mysql40-client >.endif >.endif >CONFIGURE_ARGS+=--with-mysql=${LOCALBASE} > >PLIST_SUB+= MYSQL="" >.else >CONFIGURE_ARGS+= --without-mysql >PLIST_SUB+= MYSQL="@comment " >.endif > >Then in pkg-plist change > >lib/rlm_sql_mysql.* > >to > >%%MYSQL%%lib/rlm_sql_mysql.* > >Take a look at net/openldap2, or security/cyrus-sasl2 (Makefile and >pkg-plist) for an example. > >Scot > > > >