Poudriere: set build options for specific port and create package with new name

After a lot of procrastination I have decided to try and learn a little bit about poudirere.

I might be jumping ahead a bit here, because I haven't spent a lot of time learning how to build ports manually.

Anyway, I have two questions:

How can I tell poudirere that I want to set particular options for only the one port I'm interested in? The manual has the following incantation (chapter 4.6.1) but it wants me to set all the options for all the dependencies as well: poudriere options -j 13amd64 -p local -z workstation -f 13amd64-local-workstation-pkglist

And the second question is: How can I choose a new name for the package I'm creating? (I need a new name to distinguish it from the name it has when built with standard options.)
 
How can I tell poudirere that I want to set particular options for only the one port I'm interested in?
poudriere-options(8) is one way, but honestly a difficult to maintain way. A simpler way is to put the settings in /usr/local/etc/poudriere.d/make.conf, for example:
Code:
security_sudo_SET= INSULTS
This enables the INSULTS option on security/sudo specifically.
Or unsetting options:
Code:
net_samba416_UNSET= AD_DC AVAHI CUPS FRUIT
This turns OFF the options AD_DC, AVAHI, CUPS, and FRUIT on net/samba416.

Or combine setting and unsetting:
Code:
net_samba416_SET= MDNSRESPONDER
net_samba416_UNSET= AD_DC AVAHI CUPS FRUIT

How can I choose a new name for the package I'm creating?
You don't. Package will keep the same name. Only on setting a particular FLAVOR would the resulting package change its name.
 
Thank you for explaining!
You don't. Package will keep the same name. Only on setting a particular FLAVOR would the resulting package change its name.
Ah. How can I see which FLAVORs a port has available?

Edit: I think I found it - in the port's Makefile?
 
Interesting idea to use a different package name (by copying the port and renaming things).

That way you the modifications are easier to keep. You would also get a "warning" when dependencies change.
 
Back
Top