diff options
author | Eudyptula <eitan@mosenkis.net> | 2009-07-16 16:39:03 -0400 |
---|---|---|
committer | Eudyptula <eitan@mosenkis.net> | 2009-07-16 16:39:03 -0400 |
commit | b04ca72439752a5c964c75b18994311d0aef5618 (patch) | |
tree | 13a190764f26bffea538ea77aaa7a15108c454cd /backend | |
parent | Add dev-manager support to gentoo/portage modules (diff) | |
download | ingenue-b04ca72439752a5c964c75b18994311d0aef5618.tar.gz ingenue-b04ca72439752a5c964c75b18994311d0aef5618.tar.bz2 ingenue-b04ca72439752a5c964c75b18994311d0aef5618.zip |
Added predefined package sets; separated gentoo-specific setup into gentoo_setup.php
Diffstat (limited to 'backend')
-rw-r--r-- | backend/modules/gentoo_portage/build.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/backend/modules/gentoo_portage/build.php b/backend/modules/gentoo_portage/build.php index 599c9fe..1b18bf5 100644 --- a/backend/modules/gentoo_portage/build.php +++ b/backend/modules/gentoo_portage/build.php @@ -14,12 +14,23 @@ function gentoo_portage_build(&$build, &$opts, &$W) { if ($conf['debug']) execute_command_with_env('Log portage setup', 'emerge --info', $prtg_cfgrt); require(dirname(__FILE__).'/emerge-system.php'); // __DIR__ 5.3.0 - if (in_array('timezone', $extra)) + if (in_array('timezone', $extra)) { + $pkgs='sys-libs/timezone-data'; + require(dirname(__FILE__).'/packages.php'); // __DIR__ 5.3.0 require(dirname(__FILE__).'/timezone.php'); // __DIR__ 5.3.0 + } if (in_array('dev-manager', $extra)) require(dirname(__FILE__).'/dev-manager.php'); // __DIR__ 5.3.0 if ($opts['bundler'] == 'livecd') execute_command_with_env('Install LiveCD utilities', 'emerge -1 livecd-tools', $prtg_cfgrt); + if (strlen($opts['pkgsets'])) { + foreach (explode(' ', $opts['pkgsets']) as $pkgset) { + if (strlen($opts['pkgset-'.$pkgset])) { + $pkgs=$opts['pkgset-'.$pkgset]; + require(dirname(__FILE__).'/packages.php'); // __DIR__ 5.3.0 + } + } + } if (strlen($opts['install_packages'])) { $pkgs=$opts['install_packages']; require(dirname(__FILE__).'/packages.php'); // __DIR__ 5.3.0 |