Commit 533b20dc authored by Lance Albertson's avatar Lance Albertson
Browse files

gentoo: cleanup params and remove the old global parameters

We don't need these anymore with the parameterized class.
parent b9a3870c
class gentoo::params { class gentoo::params {
# settings that the user can define (if not defined, defaults set here apply). # settings that the user can define (if not defined, defaults set here
# apply).
# Global use flags
$global_use = $gentoo_global_use ? { # Global use flags
'' => '$USE', $global_use = '$USE'
default => "\$USE $gentoo_global_use",
} # FEATURES
$features = '$FEATURES'
# FEATURES
$features = $gentoo_features ? { # GENTOO_MIRRORS
'' => '$FEATURES', $mirrors = "http://distfiles.gentoo.org"
default => "\$FEATURES $gentoo_features",
} # SYNC
$sync = "rsync://rsync.gentoo.org/gentoo-portage"
# GENTOO_MIRRORS
$mirrors = $gentoo_mirrors ? { # PORTAGE_BINHOST
'' => "http://distfiles.gentoo.org", $binhost = ""
default => $gentoo_mirrors,
} # PORTDIR_OVERLAY
$portdir_overlay = '$PORTDIR_OVERLAY'
# SYNC
$sync = $gentoo_sync ? { # ACCEPT_LICENSE
'' => "rsync://rsync.gentoo.org/gentoo-portage", $accept_license = '$ACCEPT_LICENSE'
default => $gentoo_sync,
} # EMERGE_DEFAULT_OPTS
$emerge_opts = ""
# PORTAGE_BINHOST
$binhost = $gentoo_binhost ? {
'' => '',
default => $gentoo_binhost,
}
# PORTDIR_OVERLAY
$portdir_overlay = $gentoo_portdir_overlay ? {
'' => '$PORTDIR_OVERLAY',
default => "\$PORTDIR_OVERLAY $gentoo_portdir_overlay",
}
# ACCEPT_LICENSE
$accept_license = $gentoo_accept_license ? {
'' => '$ACCEPT_LICENSE',
default => "\$ACCEPT_LICENSE $gentoo_accept_license",
}
# EMERGE_DEFAULT_OPTS
$emerge_opts = $gentoo_emerge_opts ? {
'' => '',
default => $gentoo_emerge_opts,
}
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment