Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Apr 2005 12:56:26 -0300
From:      Alejandro Pulver <alejandro@varnet.biz>
To:        scott renna <flexble2547@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Where does a port store a saved configuration file?
Message-ID:  <20050426125626.50a549a7@ale.varnet.bsd>
In-Reply-To: <20050426152836.7133.qmail@web53608.mail.yahoo.com>
References:  <20050426152836.7133.qmail@web53608.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 26 Apr 2005 08:28:36 -0700 (PDT)
scott renna <flexble2547@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050426125626.50a549a7>