Command to cleanup unused ports options

There's make rmconfig and make rmconfig-recursive, but this deletes all options and basically reverts them to their defaults.

Code:
     rmconfig         Remove OPTIONS config for this port.

     rmconfig-recursive
                      Remove OPTIONS config for this port and all its
                      dependencies.
ports(7)

I've found setting the options in /etc/make.conf a much better way of dealing with non-standard options.

For example:
Code:
security_sudo_SET= INSULTS
This will set the INSULTS option on security/sudo and will leave all other options untouched.

Code:
java_openjdk11_UNSET= CUPS
This will unset the CUPS option on java/openjdk11.

If you put all your changed options in make.conf you'll have an easier time figuring out what options where set/unset on which ports. It also makes it easier to transfer those settings to another machine, without having to go through make config and trying to remember which options you changed.
 
Back
Top