From owner-freebsd-questions@FreeBSD.ORG Wed Nov 17 20:11:58 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 199A316A4D1 for ; Wed, 17 Nov 2004 20:11:58 +0000 (GMT) Received: from mx4.netgate.net (mx4.netgate.net [204.145.147.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id DCB0843D31 for ; Wed, 17 Nov 2004 20:11:57 +0000 (GMT) (envelope-from ctodd@netgate.net) Received: from rs.netgate.net (ctodd@rs.netgate.net [204.145.147.55]) by mx4.netgate.net (8.12.9p2/8.12.9) with ESMTP id iAHKBuE6094368; Wed, 17 Nov 2004 12:11:56 -0800 (PST) (envelope-from ctodd@netgate.net) Date: Wed, 17 Nov 2004 12:11:56 -0800 (PST) From: Chris Miller To: Kris Kennaway In-Reply-To: <20041116010801.GA40080@xor.obsecurity.org> Message-ID: References: <200411151324.09969.ringworm@inbox.lv> <41991FB5.8010605@vonostingroup.com> <20041116010801.GA40080@xor.obsecurity.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: milter-sender/0.56.769 (mx4.netgate.net [204.145.147.79]); Wed, 17 Nov 2004 12:11:57 -0800 cc: "Michael C. Shultz" cc: Frank Laszlo cc: freebsd-questions@freebsd.org Subject: Re: Finding options for ports X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Nov 2004 20:11:58 -0000 On Mon, 15 Nov 2004, Kris Kennaway wrote: > If the port has been converted to use OPTIONS, then there's already a > list ('make showconfig'). If the port hasn't been converted to > OPTIONS, it would still need to be converted to your proposed 'make > showconfig', so you might as well just go all the way and make it use > OPTIONS. Good info. Below I used showconfig to find the options for php, and obviously it's been converted as you mentioned. (read on) %cd /usr/ports/lang/php4 %make showconfig ===> The following configuration options are set for php4-4.3.9: APACHE2=off "Use apache 2.x instead of apache 1.3.x" DEBUG=on "Enable debug" IPV6=off "Enable ipv6 support" Unfortunately there are numerous other options that are not available. Even the cat/grep method of searching for "WITH" doesn't yield the options I would want to turn on for php. In this case there's a Makefile.ext which I'm assuming refers to the many php modules from the distribution's "ext" directory that I might want to include (see below). Using the grep method for PHP_MODNAME, I find all the options I'm looking for, but (probably a stupid question, but) how do I add more than one? Do I define PHP_MODNAME more than once at the command line? %make PHP_MODNAME=openssl PHP_MODNAME=xslt I tried that, but neither of the modules were included in the build :-( Anyway I think the "showconfig" method is the right way to go, but it should include all possible options for a port, not just the popular ones. Maybe php is a special case since it has a module framework and many other ports do not. Maybe we need a "make showmodules" too? Thoughts? In the short term, how do I get these modules compiled in to my php? :-) Chris %grep PHP_MODNAME Makefile.ext COMMENT= The ${PHP_MODNAME} shared extension for php PHP_MODNAME= ${PKGNAMESUFFIX:S/-//} WRKSRC= ${WRKDIR}/php-${PORTVERSION:S/.r/RC/}/ext/${PHP_MODNAME} .if ${PHP_MODNAME} == "bcmath" .if ${PHP_MODNAME} == "bz2" .if ${PHP_MODNAME} == "calendar" .if ${PHP_MODNAME} == "crack" .if ${PHP_MODNAME} == "ctype" .if ${PHP_MODNAME} == "curl" .if ${PHP_MODNAME} == "dba" .if ${PHP_MODNAME} == "dbase" .if ${PHP_MODNAME} == "dbx" .if ${PHP_MODNAME} == "dio" .if ${PHP_MODNAME} == "domxml" .if ${PHP_MODNAME} == "exif" .if ${PHP_MODNAME} == "filepro" .if ${PHP_MODNAME} == "ftp" .if ${PHP_MODNAME} == "gd" .if ${PHP_MODNAME} == "gettext" .if ${PHP_MODNAME} == "gmp" .if ${PHP_MODNAME} == "iconv" .if ${PHP_MODNAME} == "imap" .if ${PHP_MODNAME} == "interbase" .if ${PHP_MODNAME} == "ldap" .if ${PHP_MODNAME} == "mbstring" .if ${PHP_MODNAME} == "mcal" .if ${PHP_MODNAME} == "mcrypt" .if ${PHP_MODNAME} == "mcve" .if ${PHP_MODNAME} == "mhash" .if ${PHP_MODNAME} == "ming" .if ${PHP_MODNAME} == "mnogosearch" .if ${PHP_MODNAME} == "mssql" .if ${PHP_MODNAME} == "mysql" .if ${PHP_MODNAME} == "ncurses" .if ${PHP_MODNAME} == "odbc" .if ${PHP_MODNAME} == "openssl" .if ${PHP_MODNAME} == "oracle" .if ${PHP_MODNAME} == "overload" .if ${PHP_MODNAME} == "pcntl" .if ${PHP_MODNAME} == "pcre" .if ${PHP_MODNAME} == "pgsql" .if ${PHP_MODNAME} == "posix" .if ${PHP_MODNAME} == "pspell" .if ${PHP_MODNAME} == "readline" .if ${PHP_MODNAME} == "recode" .if ${PHP_MODNAME} == "session" .if ${PHP_MODNAME} == "shmop" .if ${PHP_MODNAME} == "snmp" .if ${PHP_MODNAME} == "sockets" .if ${PHP_MODNAME} == "sybase_ct" .if ${PHP_MODNAME} == "sysvmsg" .if ${PHP_MODNAME} == "sysvsem" .if ${PHP_MODNAME} == "sysvshm" .if ${PHP_MODNAME} == "tokenizer" .if ${PHP_MODNAME} == "wddx" .if ${PHP_MODNAME} == "xml" .if ${PHP_MODNAME} == "xmlrpc" .if ${PHP_MODNAME} == "xslt" .if ${PHP_MODNAME} == "yp" .if ${PHP_MODNAME} == "zlib" .if ${PHP_MODNAME} == "dba" .if ${PHP_MODNAME} == "domxml" .if ${PHP_MODNAME} == "gd" .if ${PHP_MODNAME} == "imap" .if ${PHP_MODNAME} == "mbstring" .if ${PHP_MODNAME} == "openssl" .if ${PHP_MODNAME} == "snmp" .if ${PHP_MODNAME} == "zlib"