Support for modifying make.conf under Gentoo
Add to or create a new CFLAGS in the make.conf
Return a dict containing the new value for variable:
{'<variable>': {'old': '<old-value>',
'new': '<new-value>'}}
CLI Example:
salt '*' makeconf.append_cflags '\-pipe'
Add to or create a new CXXFLAGS in the make.conf
Return a dict containing the new value for variable:
{'<variable>': {'old': '<old-value>',
'new': '<new-value>'}}
CLI Example:
salt '*' makeconf.append_cxxflags '\-pipe'
Add to or create a new EMERGE_DEFAULT_OPTS in the make.conf
Return a dict containing the new value for variable:
{'<variable>': {'old': '<old-value>',
'new': '<new-value>'}}
CLI Example:
salt '*' makeconf.append_emerge_default_opts '\-\-jobs'
Add to or create a new GENTOO_MIRRORS in the make.conf
Return a dict containing the new value for variable:
{'<variable>': {'old': '<old-value>',
'new': '<new-value>'}}
CLI Example:
salt '*' makeconf.append_gentoo_mirrors 'http://distfiles.gentoo.org'
Add to or create a new MAKEOPTS in the make.conf
Return a dict containing the new value for variable:
{'<variable>': {'old': '<old-value>',
'new': '<new-value>'}}
CLI Example:
salt '*' makeconf.append_makeopts '\-j3'
Add to or create a new variable in the make.conf
Return a dict containing the new value for variable:
{'<variable>': {'old': '<old-value>',
'new': '<new-value>'}}
CLI Example:
salt '*' makeconf.append_var 'LINGUAS' 'en'
Verify if CFLAGS variable contains a value in make.conf
Return True if value is set for var
CLI Example:
salt '*' makeconf.cflags_contains '\-pipe'
Verify if CHOST variable contains a value in make.conf
Return True if value is set for var
CLI Example:
salt '*' makeconf.chost_contains 'x86_64-pc-linux-gnu'
Verify if CXXFLAGS variable contains a value in make.conf
Return True if value is set for var
CLI Example:
salt '*' makeconf.cxxflags_contains '\-pipe'
Verify if EMERGE_DEFAULT_OPTS variable contains a value in make.conf
Return True if value is set for var
CLI Example:
salt '*' makeconf.emerge_default_opts_contains '\-\-jobs'
Verify if GENTOO_MIRRORS variable contains a value in make.conf
Return True if value is set for var
CLI Example:
salt '*' makeconf.gentoo_mirrors_contains 'http://distfiles.gentoo.org'
Get the value of CFLAGS variable in the make.conf
Return the value of the variable or None if the variable is not in the make.conf
CLI Example:
salt '*' makeconf.get_cflags
Get the value of CHOST variable in the make.conf
Return the value of the variable or None if the variable is not in the make.conf
CLI Example:
salt '*' makeconf.get_chost
Get the value of CXXFLAGS variable in the make.conf
Return the value of the variable or None if the variable is not in the make.conf
CLI Example:
salt '*' makeconf.get_cxxflags
Get the value of EMERGE_DEFAULT_OPTS variable in the make.conf
Return the value of the variable or None if the variable is not in the make.conf
CLI Example:
salt '*' makeconf.get_emerge_default_opts
Get the value of GENTOO_MIRRORS variable in the make.conf
Return the value of the variable or None if the variable is not in the make.conf
CLI Example:
salt '*' makeconf.get_gentoo_mirrors
Get the value of MAKEOPTS variable in the make.conf
Return the value of the variable or None if the variable is not in the make.conf
CLI Example:
salt '*' makeconf.get_makeopts
Get the value of SYNC variable in the make.conf
Return the value of the variable or None if the variable is not in the make.conf
CLI Example:
salt '*' makeconf.get_sync
Get the value of a variable in the make.conf
Return the value of the variable or None if the variable is not in the make.conf
CLI Example:
salt '*' makeconf.get_var 'LINGUAS'
Verify if MAKEOPTS variable contains a value in make.conf
Return True if value is set for var
CLI Example:
salt '*' makeconf.makeopts_contains '\-j3'
Remove a variable from the make.conf
Return a dict containing the new value for the variable:
{'<variable>': {'old': '<old-value>',
'new': '<new-value>'}}
CLI Example:
salt '*' makeconf.remove_var 'LINGUAS'
Set the CFLAGS variable
Return a dict containing the new value for variable:
{'<variable>': {'old': '<old-value>',
'new': '<new-value>'}}
CLI Example:
salt '*' makeconf.set_cflags '\-march=native \-O2 \-pipe'
Set the CHOST variable
Return a dict containing the new value for variable:
{'<variable>': {'old': '<old-value>',
'new': '<new-value>'}}
CLI Example:
salt '*' makeconf.set_chost 'x86_64-pc-linux-gnu'
Set the CXXFLAGS variable
Return a dict containing the new value for variable:
{'<variable>': {'old': '<old-value>',
'new': '<new-value>'}}
CLI Example:
salt '*' makeconf.set_cxxflags '\-march=native \-O2 \-pipe'
Set the EMERGE_DEFAULT_OPTS variable
Return a dict containing the new value for variable:
{'<variable>': {'old': '<old-value>',
'new': '<new-value>'}}
CLI Example:
salt '*' makeconf.set_emerge_default_opts '\-\-jobs'
Set the GENTOO_MIRRORS variable
Return a dict containing the new value for variable:
{'<variable>': {'old': '<old-value>',
'new': '<new-value>'}}
CLI Example:
salt '*' makeconf.set_gentoo_mirrors 'http://distfiles.gentoo.org'
Set the MAKEOPTS variable
Return a dict containing the new value for variable:
{'<variable>': {'old': '<old-value>',
'new': '<new-value>'}}
CLI Example:
salt '*' makeconf.set_makeopts '\-j3'
Set the SYNC variable
Return a dict containing the new value for variable:
{'<variable>': {'old': '<old-value>',
'new': '<new-value>'}}
CLI Example:
salt '*' makeconf.set_sync 'rsync://rsync.namerica.gentoo.org/gentoo-portage'
Set a variable in the make.conf
Return a dict containing the new value for variable:
{'<variable>': {'old': '<old-value>',
'new': '<new-value>'}}
CLI Example:
salt '*' makeconf.set_var 'LINGUAS' 'en'
Verify if SYNC variable contains a value in make.conf
Return True if value is set for var
CLI Example:
salt '*' makeconf.sync_contains 'rsync://rsync.namerica.gentoo.org/gentoo-portage'
Remove a value from CFLAGS variable in the make.conf
Return a dict containing the new value for variable:
{'<variable>': {'old': '<old-value>',
'new': '<new-value>'}}
CLI Example:
salt '*' makeconf.trim_cflags '\-pipe'
Remove a value from CXXFLAGS variable in the make.conf
Return a dict containing the new value for variable:
{'<variable>': {'old': '<old-value>',
'new': '<new-value>'}}
CLI Example:
salt '*' makeconf.trim_cxxflags '\-pipe'
Remove a value from EMERGE_DEFAULT_OPTS variable in the make.conf
Return a dict containing the new value for variable:
{'<variable>': {'old': '<old-value>',
'new': '<new-value>'}}
CLI Example:
salt '*' makeconf.trim_emerge_default_opts '\-\-jobs'
Remove a value from GENTOO_MIRRORS variable in the make.conf
Return a dict containing the new value for variable:
{'<variable>': {'old': '<old-value>',
'new': '<new-value>'}}
CLI Example:
salt '*' makeconf.trim_gentoo_mirrors 'http://distfiles.gentoo.org'
Remove a value from MAKEOPTS variable in the make.conf
Return a dict containing the new value for variable:
{'<variable>': {'old': '<old-value>',
'new': '<new-value>'}}
CLI Example:
salt '*' makeconf.trim_makeopts '\-j3'
Remove a value from a variable in the make.conf
Return a dict containing the new value for variable:
{'<variable>': {'old': '<old-value>',
'new': '<new-value>'}}
CLI Example:
salt '*' makeconf.trim_var 'LINGUAS' 'en'
Verify if variable contains a value in make.conf
Return True if value is set for var
CLI Example:
salt '*' makeconf.var_contains 'LINGUAS' 'en'