Re: portconf port
Doug Hardie wrote: > I have been trying to figure out how to configure portconf. The 3 > examples given are not much help with complex ports. I am starting with > the dspam port (mail/dspam) as if I can figure that one out the rest > should be easy. That's kind of backwards, but ok. :) The first thing you need to know (and you're not alone in your confusion on this) is that portconf is not a replacement for OPTIONS. What portconf allows you to do is store flags on a per port basis that in the past were usually stored in make.conf, and therefore were global to all ports. If a port already has OPTIONS, it doesn't make much sense to try to use portconf (or make.conf) instead. Also, the OPTIONS framework doesn't modify its behavior based on your flags in make.conf/ports.conf to start with, so you're better off using it as it was designed. > I first tried to use the arguments from the configure > command: That wouldn't have worked (to prevent downloading spurious dependencies) in make.conf either, so it won't work here. > Then I tried to select the options from Makefile entering the options I > wanted (haven't figured out how to sent the drectories though): > That skips the options selection menu fine, The two have nothing to do with each other. You should have seen a message to the effect of "found a saved configuration for ..." which means that by default the config target won't bring up the OPTIONS menu again, since there is already a saved options file for that port. To edit the OPTIONS flags you need to either do 'make config' or 'make rmconfig ; make'. hth, Doug -- This .signature sanitized for your protection ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: portconf port
On Sun, 10 Sep 2006 21:26:11 -0700 Doug Hardie <[EMAIL PROTECTED]> wrote: > I have been trying to figure out how to configure portconf. The 3 > examples given are not much help with complex ports. I am starting > with the dspam port (mail/dspam) as if I can figure that one out the > rest should be easy. I first tried to use the arguments from the > configure command: > > mail/dspam: CONFIGURE_ARGS=--with-logdir=/var/log/dspam \ > --with-dspam-home=/var/db/dspam \ > --with-dspam-home-owner=root \ > --with-dspam-home-group=mail \ > --with-dspam-home-mode=0770 \ > --with-dspam-owner=root \ > --with-dspam-group=mail \ > --enable-homedir \ > --with-storage-driver=hash_drv \ > --with-delivery-agent=/usr/sbin/sendmail \ > --with-dspam-mode=4511 \ > --prefix=/usr/local I don't use portconf because I didn't have time to set it up consistently for all my ports, but I suggest you stick to the KNOBS and OPTIONS the port provides (except if you find something not covered by them, which I doubt, and in which case please tell me about so I can fix it). Based on their value I do a few things to the standard distribution and I see no reason for you to repeat that post-install each time. > That still brought up the options selection menu. Hitting cancel on > that caused the port to start to build, but it still tried to > download mysql 5.0 which I don't want. The above configure command > is how I normall build dspam - in the dspam directory. > > Then I tried to select the options from Makefile entering the > options I wanted (haven't figured out how to sent the drectories > though): > > mail/dspam: WITH SYSLOG | DEBUG | HASH USER_HOMEDIR | SENDMAIL | > SENDMAIL_LDA Maybe if you also put BATCH here ? Also you need to put WITHOUT for all options that default to on (that includes MYSQL50). My suggestion would be to do a make config and copy/paste from resulting OPTIONS file. > That skips the options selection menu fine, but still tries to > download mysql 5.0 which I don't want. I then tried to add the > WITHOUT options: > > mail/dspam: WITH SYSLOG | DEBUG | HASH USER_HOMEDIR | SENDMAIL | > SENDMAIL_LDA WITHOUT DAEMON | MYSQL50 | POSTGRESQL | SQLITE3 AFAIK I don't have custom hack WRT to OPTIONS handling anymore (except check-options-version: target which I guarantee it ain't responsible for your problem) but I'll take a look tonight. Try to put in WITHOUT for the rest of MYSQL versions and MYSQL_LOCAL and if something changes then I have a bug in the port. -- IOnut - Un^d^dregistered ;) FreeBSD "user" "Intellectual Property" is nowhere near as valuable as "Intellect" Actual war is a very messy business. Very, very messy business. -- Kirk, "A Taste of Armageddon", stardate 3193.0 signature.asc Description: PGP signature
portconf port
I have been trying to figure out how to configure portconf. The 3 examples given are not much help with complex ports. I am starting with the dspam port (mail/dspam) as if I can figure that one out the rest should be easy. I first tried to use the arguments from the configure command: mail/dspam: CONFIGURE_ARGS=--with-logdir=/var/log/dspam \ --with-dspam-home=/var/db/dspam \ --with-dspam-home-owner=root \ --with-dspam-home-group=mail \ --with-dspam-home-mode=0770 \ --with-dspam-owner=root \ --with-dspam-group=mail \ --enable-homedir \ --with-storage-driver=hash_drv \ --with-delivery-agent=/usr/sbin/sendmail \ --with-dspam-mode=4511 \ --prefix=/usr/local That still brought up the options selection menu. Hitting cancel on that caused the port to start to build, but it still tried to download mysql 5.0 which I don't want. The above configure command is how I normall build dspam - in the dspam directory. Then I tried to select the options from Makefile entering the options I wanted (haven't figured out how to sent the drectories though): mail/dspam: WITH SYSLOG | DEBUG | HASH USER_HOMEDIR | SENDMAIL | SENDMAIL_LDA That skips the options selection menu fine, but still tries to download mysql 5.0 which I don't want. I then tried to add the WITHOUT options: mail/dspam: WITH SYSLOG | DEBUG | HASH USER_HOMEDIR | SENDMAIL | SENDMAIL_LDA WITHOUT DAEMON | MYSQL50 | POSTGRESQL | SQLITE3 Same results. What am I doing wrong? ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"