I've been doing research on how exactly to pass arguments to portupgrade/portinstall for mod_php4 and I still seem to be somewhat stumped. By putting this line in /usr/local/etc/pkgtools.conf (MAKEARGS section), I'm able to pass all but one argument to portinstall/portupgrade: 'www/mod_php4' => 'BATCH=YES CTYPE=yes CURL=yes EXIF=yes FTP=yes GD=yes MYSQL=yes OPENSSL=yes OVERLOAD=yes PCRE=yes POSIX=ye s POSTGRESQL=yes SESSION=yes TOKENIZER=yes XML=yes ZLIB=yes', The one that doesn't seem to be working is the POSTGRESQL=yes line (Please see: http://www1.klmhosting.net/phppgsqladmin/). Unfortunately, I need this argument because I run several servers that need phppgsqladmin access. Is there something that I'm doing wrong, or something I've over looked? Is this the "best/easiest" way to do this? Also, I noticed these arguments do not get passed when I just do a "make install" or "make reinstall" of the port.. Is there another place (I assume /etc/make.conf, but what's the syntax? The same as pkgtools.conf?) I can specify MAKEARGS for "make install/reinstall"? Or should I just be using portinstall? Thanks all for your time. -Kyle Mott
Ok. When I do "portinstall mod_php4" (or make install/make reinstall/portupgrade), it still comes up with that gui for me to choose which options I want... I don't want this gui to come up... I want to be able to use make install/reinstall, portinstall/portupgrade w/o having to always specify which options I want to use. Isn't there a way to do this? I believe I was closer before, in setting up pkgtools.conf... Any ideas? -Kyle Mott -----Original Message----- From: Claus Guttesen [mailto:cguttesen@yahoo.dk] Sent: Wednesday, March 17, 2004 12:40 PM To: Kyle Mott Subject: Re: mod_php4 and portupgrade> I've been doing research on how exactly to pass > arguments to > portupgrade/portinstall for mod_php4 and I still > seem to be somewhat > stumped. >Try create a file called /root/php4_options. Copy the template from /usr/ports/lang/php4/scripts/php4_options and edit appropriately. The Makefile will include this when installing. regards Claus Yahoo! Mail (http://dk.mail.yahoo.com) - Gratis: 6 MB lagerplads, spamfilter og virusscan
You can use a ~/php4_options file in theory. I've never been able to get it to work reliably no matter which $HOME I put the file in (root or my user). -Andrew On Wed, Mar 17, 2004 at 12:16:05PM -0800, kyle@xraided.net wrote 1.3K bytes in 29 lines about: : I've been doing research on how exactly to pass arguments to : portupgrade/portinstall for mod_php4 and I still seem to be somewhat : stumped. : : By putting this line in /usr/local/etc/pkgtools.conf (MAKEARGS section), : I'm able to pass all but one argument to portinstall/portupgrade: : 'www/mod_php4' => 'BATCH=YES CTYPE=yes CURL=yes EXIF=yes FTP=yes GD=yes : MYSQL=yes OPENSSL=yes OVERLOAD=yes PCRE=yes POSIX=ye : s POSTGRESQL=yes SESSION=yes TOKENIZER=yes XML=yes ZLIB=yes', : : The one that doesn't seem to be working is the POSTGRESQL=yes line : (Please see: http://www1.klmhosting.net/phppgsqladmin/). Unfortunately, : I need this argument because I run several servers that need : phppgsqladmin access. Is there something that I'm doing wrong, or : something I've over looked? Is this the "best/easiest" way to do this? : : Also, I noticed these arguments do not get passed when I just do a "make : install" or "make reinstall" of the port.. Is there another place (I : assume /etc/make.conf, but what's the syntax? The same as : pkgtools.conf?) I can specify MAKEARGS for "make install/reinstall"? Or : should I just be using portinstall? Thanks all for your time. : : : : -Kyle Mott : _______________________________________________ : freebsd-stable@freebsd.org mailing list : http://lists.freebsd.org/mailman/listinfo/freebsd-stable : To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
TopPost: I've been able to put "options" as follows: # /var/db/ports/xxxx <--name of port At 04:49 PM 3.17.2004 -0500, andy@lewman.com wrote:>You can use a ~/php4_options file in theory. I've never been able to >get it to work reliably no matter which $HOME I put the file in (root or >my user). > >-Andrew > >On Wed, Mar 17, 2004 at 12:16:05PM -0800, kyle@xraided.net wrote 1.3Kbytes in 29 lines about:>: I've been doing research on how exactly to pass arguments to >: portupgrade/portinstall for mod_php4 and I still seem to be somewhat >: stumped. >: >: By putting this line in /usr/local/etc/pkgtools.conf (MAKEARGS section), >: I'm able to pass all but one argument to portinstall/portupgrade: >: 'www/mod_php4' => 'BATCH=YES CTYPE=yes CURL=yes EXIF=yes FTP=yes GD=yes >: MYSQL=yes OPENSSL=yes OVERLOAD=yes PCRE=yes POSIX=ye >: s POSTGRESQL=yes SESSION=yes TOKENIZER=yes XML=yes ZLIB=yes', >: >: The one that doesn't seem to be working is the POSTGRESQL=yes line >: (Please see: http://www1.klmhosting.net/phppgsqladmin/). Unfortunately, >: I need this argument because I run several servers that need >: phppgsqladmin access. Is there something that I'm doing wrong, or >: something I've over looked? Is this the "best/easiest" way to do this? >: >: Also, I noticed these arguments do not get passed when I just do a "make >: install" or "make reinstall" of the port.. Is there another place (I >: assume /etc/make.conf, but what's the syntax? The same as >: pkgtools.conf?) I can specify MAKEARGS for "make install/reinstall"? Or >: should I just be using portinstall? Thanks all for your time. >: >: >: >: -Kyle Mott >: _______________________________________________ >: freebsd-stable@freebsd.org mailing list >: http://lists.freebsd.org/mailman/listinfo/freebsd-stable >: To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > >_______________________________________________ >freebsd-stable@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-stable >To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > >Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net jackstone@sage-one.net
* Kyle Mott <kyle@xraided.net> [20040317 21:08]:> By putting this line in /usr/local/etc/pkgtools.conf (MAKEARGS section), > I'm able to pass all but one argument to portinstall/portupgrade: > 'www/mod_php4' => 'BATCH=YES CTYPE=yes CURL=yes EXIF=yes FTP=yes > GD=yes MYSQL=yes OPENSSL=yes OVERLOAD=yes PCRE=yes POSIX=ye s > POSTGRESQL=yes SESSION=yes TOKENIZER=yes XML=yes ZLIB=yes', The one > that doesn't seem to be working is the POSTGRESQL=yes lineIt's impossible to correctly diagnose this without knowing what the line is _exactly_, please show the output of cat -e /usr/local/etc/pkgtools.conf |grep 'www/mod_php4' You might try the b) syntax for MAKE_ARGS, it has the advantatge of being able to comment individual arguments easily. Also, show us an invocation of make from the build script.> Also, I noticed these arguments do not get passed when I just do a > "make install" or "make reinstall" of the port..No. MAKE_ARGS are the arguments passed to make by portupgrade. Try doing [one long line] `grep 'www/mod_php4' /usr/local/etc/pkgtools.conf | cut -d '>' -f 2` make install> Is there another place (I assume /etc/make.conf, but what's the > syntax?Define the variables there, one in each line. qvb -- pica