auditing port options and following default option value changes

Matthew Seaman matthew at FreeBSD.org
Thu Aug 28 06:44:21 UTC 2014


On 28/08/2014 04:56, Adam McDougall wrote:
> On 08/27/2014 21:12, Don Lewis wrote:
>> I'm pretty much ready to throw in the towel on upgrading ports in place
>> with portupgrade and I'm planning on switching to poudriere.  As part of
>> this conversion, I'd like to figure out what ports have non-default
>> options and which options are set to non-default values.  Then I can
>> figure out whether I want to set each option back to default or
>> propagate the non-default value to poudriere.
>>
>> Also, since the option files for each port contain the values for all
>> the options, if I have a port with one non-default option value set, how
>> can I follow updates to the default values of the other options?
> 
> This may help:
> http://docs.freebsd.org/cgi/mid.cgi?53FDE021.5030108
> 
> I have not abandoned all my options files yet, I've eliminated some over
> time as I switch to defining options in make.conf.  I'll probably get
> burned some day and finish it off.

poudriere options creates a directory structure under
/usr/local/etc/poudriere.d/options [*] identical to what's under
/var/db/ports
so you can just make a link...

# cd /usr/local/etc/poudriere.d
# ls -la options
lrwxr-xr-x  1 root  wheel  13 Dec 24  2012 options@ -> /var/db/ports

If you also set up /usr/ports as your default ports tree:

# poudriere ports -l
PORTSTREE METHOD TIMESTAMP           PATH
default   svn    2014-08-27 07:55:55 /usr/ports

then you end up being able to ad-hoc compile anything from ports on
demand, and you can just add it to your poudriere builds after the fact.
 Obviously, this is only of much use directly on your poudriere build
box, so limited to small-scale setups.

	Cheers,

	Matthew

[*] Possibly modified to include jail or ports tree names in case you
want different options for different package sets.

-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 971 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20140828/b6072c9f/attachment.sig>


More information about the freebsd-ports mailing list