Re: changing configure options when using a port
On Tue, Jan 06, 2004 at 12:52:21PM +, Matthew Seaman wrote: To apply these options without having to remember to type them in on the command line all the time, you can create a 'Makefile.inc' in the port directory which just contains the 'WITH_FOO=bar' variable assignments, or you can use portupgrade(1) and record these customizations in it's pkgtools.conf configuration file. Oops. Slight correction here. You should create 'Makefile.local' rather than 'Makefile.inc' -- in the vast majority of cases it will work either way, but 'Makefile.inc' is reserved for automatically generated Makefiles produced as part of the configuration process, as seen in eg. the net/samba port. 'Makefile.local' is guarranteed not to be unconditionally overwritten by the internal workings of the ports system. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK pgp0.pgp Description: PGP signature
changing configure options when using a port
Hi all, I'm slowly getting used to FreeBSD from a Linux background so forgive the ignorant questions. I'm curious what the best way to add configure options are when installing from a port. For example, i'd like to add --enable-rewrite to apache2. Can I just put it in the Makefile in /usr/ports/www/apache2 ? Is this generally the best way to do this? Thanks in advance, August ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: changing configure options when using a port
On Tue, Jan 06, 2004 at 10:33:49PM +1100, August Simonelli wrote: Hi all, I'm slowly getting used to FreeBSD from a Linux background so forgive the ignorant questions. I'm curious what the best way to add configure options are when installing from a port. For example, i'd like to add --enable-rewrite to apache2. Can I just put it in the Makefile in /usr/ports/www/apache2 ? Is this generally the best way to do this? If you look at the Makefile in /usr/ports/www/apache2, you would notice a variable called WITH_MODULES. You would need to see what modules you want and run make like: make WITH_MODULES=include rewrite auth install clean or whatever you want. There are examples given in the makefile. You could change the makefile, but it will be overwriten next time you upgrade the ports collection. hth Gautam ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: changing configure options when using a port
Ok that makes sense. So something like make --enable-rewrite make install clean would do the trick? As well as make WITH_MODULES=include rewrite auth install clean as suggested by Gautam Gopalakrishnan? august On 06/01/2004, at 11:13 PM, Subhro wrote: Hi August, System wide make options are added to the /etc/make.conf. However for specific ports I prefer to put the required options on the command line while compiling. Regards Subhro Subhro Sankha Kar Indian Institute of Information Technology Block AQ-13/1, Sector V Salt Lake City PIN 700091 India -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of August Simonelli Sent: Tuesday, January 06, 2004 5:04 PM To: FreeBSD-questions Subject: changing configure options when using a port Hi all, I'm slowly getting used to FreeBSD from a Linux background so forgive the ignorant questions. I'm curious what the best way to add configure options are when installing from a port. For example, i'd like to add --enable-rewrite to apache2. Can I just put it in the Makefile in /usr/ports/www/apache2 ? Is this generally the best way to do this? Thanks in advance, August ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: changing configure options when using a port
On Tue, Jan 06, 2004 at 10:33:49PM +1100, August Simonelli wrote: I'm slowly getting used to FreeBSD from a Linux background so forgive the ignorant questions. I'm curious what the best way to add configure options are when installing from a port. For example, i'd like to add --enable-rewrite to apache2. Can I just put it in the Makefile in /usr/ports/www/apache2 ? Is this generally the best way to do this? The apache2 port Makefile already comes with any number of hooks for enabling or disabling various configuration options -- probably too many in fact. In your case, to enable mod_rewrite you don't need to do anything, as it's already a standard part of the apache2 port, and enabled by default in the sample httpd-std.conf file. To get a list of what modules are available and what would be included when you build the port, use: # cd /usr/ports/www/apache2 # make show-modules However, for the sake of completelness, you can compile the port to include extra modules by: # make WITH_EXTRA_MODULES=rewrite or to statically link mod_rewrite into the apache binary: # make WITH_STATIC_MODULES=rewrite To apply these options without having to remember to type them in on the command line all the time, you can create a 'Makefile.inc' in the port directory which just contains the 'WITH_FOO=bar' variable assignments, or you can use portupgrade(1) and record these customizations in it's pkgtools.conf configuration file. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK pgp0.pgp Description: PGP signature
Re: changing configure options when using a port
On 06/01/2004, at 11:52 PM, Matthew Seaman wrote: On Tue, Jan 06, 2004 at 10:33:49PM +1100, August Simonelli wrote: I'm slowly getting used to FreeBSD from a Linux background so forgive the ignorant questions. I'm curious what the best way to add configure options are when installing from a port. For example, i'd like to add --enable-rewrite to apache2. Can I just put it in the Makefile in /usr/ports/www/apache2 ? Is this generally the best way to do this? The apache2 port Makefile already comes with any number of hooks for enabling or disabling various configuration options -- probably too many in fact. In your case, to enable mod_rewrite you don't need to do anything, as it's already a standard part of the apache2 port, and enabled by default in the sample httpd-std.conf file. To get a list of what modules are available and what would be included when you build the port, use: # cd /usr/ports/www/apache2 # make show-modules However, for the sake of completelness, you can compile the port to include extra modules by: # make WITH_EXTRA_MODULES=rewrite or to statically link mod_rewrite into the apache binary: # make WITH_STATIC_MODULES=rewrite To apply these options without having to remember to type them in on the command line all the time, you can create a 'Makefile.inc' in the port directory which just contains the 'WITH_FOO=bar' variable assignments, or you can use portupgrade(1) and record these customizations in it's pkgtools.conf configuration file. Ok, I get it. And by having --enable-so in the apache port's Makefile and using the LoadModule directive in httpd.conf i can see how many modules are actually available from the port bt default. wow. httpd.conf has a lot of stuff enabled ... sounds like i've got the info i need here to understand adding additional configure options to the building of a port. now it sounds like i'd better do some reading on apache! thanks everyone! august ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]