Where does a port store a saved configuration file?

Alejandro Pulver alejandro at varnet.biz
Tue Apr 26 08:55:21 PDT 2005


On Tue, 26 Apr 2005 08:28:36 -0700 (PDT)
scott renna <flexble2547 at yahoo.com> wrote:

> Hello list,
> 
> I had a question regarding where in FreeBSD5.3 the
> configuration file for a port is stored.  I've been
> trying to find the saved configuration file that Snort
> created upon me selecting what options to include
> during the make install.  I had included support for
> Prelude, since I've never used it before, I figured
> I'd try it out.  Unfortunately, prelude has not been
> updated for Snort 2.0 yet.  
> 
> I'm trying to find the saved configuration file so
> that I can remove it and reselect what options I want
> snort built with, but no luck.  Anyone know where it's
> located at?  
> 
> thanks

Hello,

If the port uses the OPTIONS variable (in the Makefile) the
configuration is at "/var/db/ports/<portname>", and you can change it
with "make config", show it with "make showconfig" and remove it with
"make rmconfig".

If the port uses a shell script (ports that have a subdirectory called
"scripts" with a file usually called "config"), it usually creates a
file called "Makefile.inc" in the port directory, that is included by
the port Makefile and it is removed when you do a "make clean".

Best Regards,
Ale


More information about the freebsd-questions mailing list