This cookbook's purpose is to manage Gentoo Linux specific features. It is still somewhat incomplete but better than nothing.
This fixes a bug in Chef's portage provider where it fails to install packages when the same package name appears in two different categories (e.g. dev-db/mysql and virtual/mysql). I couldn't find the bug on Chef's bug tracker again, so maybe it's already fixed.
This recipe is included by default when you add the gentoo recipe to the run list. Currently it ensures that all of the /etc/portage/package.* directories and the /etc/portage/patches directory exists.
Runs eselect x set y.
gentoo_eselect "editor" do
set "/usr/bin/vi"
endAdds an entry to the package.keywords file.
packages = [
"app-admin/chef",
"app-admin/chef-expander",
...
"www-servers/thin",
]
packages.each do |package|
gentoo_package_keywords package do
keywords "~amd64"
end
endAdds an entry to the package.mask file.
gentoo_package_mask ">=dev-vcs/git-1.8.0" do
endAdds an entry to the package.unmask file.
gentoo_package_unmask "=dev-db/mysql-5.0.96" do
endAdds an entry to the package.use file.
gentoo_package_use "dev-lang/ruby" do
use "threads"
endAdds a patch to /etc/portage/patches directory.
Licensed under the Apache License, Version 2.0.
You may find a copy of the license at
http://www.apache.org/licenses/LICENSE-2.0