Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jun 2014 18:23:11 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Robert Fitzpatrick <robert@webtent.org>
Cc:        FreeBSD <freebsd-questions@freebsd.org>
Subject:   Re: Config options with pkg
Message-ID:  <20140625182311.58bceb95.freebsd@edvax.de>
In-Reply-To: <53AAF2C8.7010507@webtent.org>
References:  <53AAF2C8.7010507@webtent.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 25 Jun 2014 12:03:20 -0400, Robert Fitzpatrick wrote:
> I don't do a lot of upgrades or installs, so my use of the new pkg way 
> of doing things is limited right now. I've been trying to find 
> instructions for how to configure options for packages. Right now I'm 
> dealing with a new install of Postfix and trying to get LDAP support. Of 
> course, I can move into the ports directory for the package and 'make 
> config', but get the warning that I should use pkg. Can someone point me 
> to the instruction I'm lacking for this or suggest how to configure 
> package options with pkg?

You can't configure options for precompiled binary packages.
They have been built using the default settings (as a "make"
without changing displayed the options of "make config" would
create). Your only chance is to

a) find a package that impelements your desired options,
   it might exist, but likely will not, or

b) built it yourself using the ports tree as usual.

You can deal with dependencies by feeding the preocessed output
of "make missing" to "pkg install -y" so you don't have to
build all the dependencies, but depending on your desired
configuration, this could also be a problem (when a dependency
needs other than the default options due to your "main port"
setting non-default options).

There are tools to help you build "bigger piles" of software
(see the handbook entrie for "poudriere"), but if you're going
to have only a few ports with non-default options and want to
use binary packages for everything else, using the "old-fashioned
way" of building from source for those few entries is probably
the more comfortable way.

https://wiki.freebsd.org/PkgPrimer

http://www.freebsd.org/doc/handbook/ports-poudriere.html





-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



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