diff options
author | Eudyptula <eitan@mosenkis.net> | 2009-07-10 14:09:00 -0400 |
---|---|---|
committer | Eudyptula <eitan@mosenkis.net> | 2009-07-10 14:09:00 -0400 |
commit | 06ab593e5dd40df96f79179a68ba8f3d7c70033a (patch) | |
tree | 75f4d351328893b2cf7f6f9e74951409212ac576 /frontend/modules | |
parent | Finished porting package selection to new wizard format - everything works again (diff) | |
download | ingenue-06ab593e5dd40df96f79179a68ba8f3d7c70033a.tar.gz ingenue-06ab593e5dd40df96f79179a68ba8f3d7c70033a.tar.bz2 ingenue-06ab593e5dd40df96f79179a68ba8f3d7c70033a.zip |
Made bundling finished images separate from modules in backend; added metadata for frontend modules; added default config options and simplified config file; added verbose output to update_gentoo_profiles.php; etc.
Diffstat (limited to 'frontend/modules')
-rw-r--r-- | frontend/modules/gentoo/step1.php | 1 | ||||
-rw-r--r-- | frontend/modules/gentoo/step2.php | 37 | ||||
-rw-r--r-- | frontend/modules/gentoo/step3.php | 6 | ||||
l--------- | frontend/modules/gentoo_catalyst | 1 | ||||
-rw-r--r-- | frontend/modules/gentoo_catalyst.info.alpha | 4 | ||||
-rw-r--r-- | frontend/modules/gentoo_common.php | 4 | ||||
l--------- | frontend/modules/gentoo_portage | 1 | ||||
-rw-r--r-- | frontend/modules/gentoo_portage.info | 4 |
8 files changed, 15 insertions, 43 deletions
diff --git a/frontend/modules/gentoo/step1.php b/frontend/modules/gentoo/step1.php index d3ee3b9..2b7a9f2 100644 --- a/frontend/modules/gentoo/step1.php +++ b/frontend/modules/gentoo/step1.php @@ -8,5 +8,4 @@ while ($profile=$r->fetch(PDO::FETCH_ASSOC)) { $opts[$profile->id]=$display; } $this->select('profile', 'profile', 'Profile', $opts); -$next=2; ?> diff --git a/frontend/modules/gentoo/step2.php b/frontend/modules/gentoo/step2.php index df8ecce..da023c6 100644 --- a/frontend/modules/gentoo/step2.php +++ b/frontend/modules/gentoo/step2.php @@ -11,41 +11,4 @@ $meta=array( array('tag' => 'div', 'label' => '=%p', 'checkbox' => '=%p', 'search' => true) ); $this->layered_checkbox_array('install_packages', 'p', null, $pkgs, ' ', $meta); -/*function gentoo_body_step2() { - global $S; - $configuration=&$S['wizard']['configuration']; - $opts=$configuration->get_configopts(); - $profile=new sql_gentoo_profile($opts['profile']); - $bcs=$profile->get_packages(); - echo 'Search packages: <input id="psearch" onkeyup="packagesearch(this)" /> <a href="javascript:var e=document.getElementById(\'psearch\'); e.value=\'\'; e.onkeyup()">Clear</a>'; - echo '<div id="plist"><div id="zero" style="display: none">'.print_error('No results found.').'</div>'; - $i=0; - foreach ($bcs as $bc => $lcs) { - echo '<div class="bct" id="bct-'.$bc.'">'.htmlentities($bc).'</div><div class="bc" id="bc-'.$bc.'">'."\n"; - foreach ($lcs as $lc => $packages) { - echo '<div class="lct" id="lct-'.$bc.$lc.'"><a href="javascript:tog_show_pkgs(\''.$bc.$lc.'\')">±</a> '.htmlentities("$bc$lc").'</div><div class="lc" id="lc-'.$bc.$lc.'" style="display: none">'."\n"; - foreach ($packages as $name => $vers) { - foreach ($vers as $ver => $attrs) { - $safename=htmlentities("$bc$lc/$name-$ver"); - echo '<div class="pkg'.($attrs['masked']?' masked':'').'"><input id="p'.$i.'" type="checkbox" name="expkgs['.$safename.']" /><label class="pd" for="p'.$i++.'">'.htmlentities("$name-$ver").' - '.htmlentities($attrs['desc']).($attrs['masked']?' [MASKED]':'').'</label></div>'."\n"; - } - } - echo '</div>'."\n"; - } - echo '</div>'."\n"; - } - echo '</div>'; -} -function gentoo_process_step2() { - global $S, $request; - if (isset($request['expkgs'])) { - $packages=array(); - foreach ($request['expkgs'] as $name => $null) { - $packages[]='='.$name; - } - $packages=implode(' ', $packages); - $opt=new sql_configopt($S['wizard']['configuration']->id, 'install_packages', $packages); - $opt->write(); - } -}*/ ?> diff --git a/frontend/modules/gentoo/step3.php b/frontend/modules/gentoo/step3.php index 9dd523a..0643856 100644 --- a/frontend/modules/gentoo/step3.php +++ b/frontend/modules/gentoo/step3.php @@ -1,7 +1,8 @@ <?php -// TODO This shouldn't be a step at all, it should be in wizard.php to choose between output modules +// TODO This shouldn't be a step at all, it should be in wizard.php to choose between bundlers +// TODO This shouldn't be part of configurations, except possibly a default value. It should be for builds $title='Image Format'; -$this->select('image_type', 'image_type', 'Image type', array( +$this->select('bundler', 'bundler', 'Image type', array( 'tgz' => 'Tar/Gzip', 'tbz2' => 'Tar/Bzip2', 'installcd' => 'Installer CD with Tar/Bzip2', @@ -9,5 +10,4 @@ $this->select('image_type', 'image_type', 'Image type', array( 'ext2' => 'ext2', 'jffs2' => 'jffs2' )); -$next=null; ?> diff --git a/frontend/modules/gentoo_catalyst b/frontend/modules/gentoo_catalyst deleted file mode 120000 index 0c0273e..0000000 --- a/frontend/modules/gentoo_catalyst +++ /dev/null @@ -1 +0,0 @@ -gentoo
\ No newline at end of file diff --git a/frontend/modules/gentoo_catalyst.info.alpha b/frontend/modules/gentoo_catalyst.info.alpha new file mode 100644 index 0000000..4803759 --- /dev/null +++ b/frontend/modules/gentoo_catalyst.info.alpha @@ -0,0 +1,4 @@ +<?php +$name='Gentoo Catalyst'; +require(dirname(__FILE__).'/gentoo_common.php'); +?> diff --git a/frontend/modules/gentoo_common.php b/frontend/modules/gentoo_common.php new file mode 100644 index 0000000..cac9b4b --- /dev/null +++ b/frontend/modules/gentoo_common.php @@ -0,0 +1,4 @@ +<?php +$steps=3; +$dir='gentoo'; +?> diff --git a/frontend/modules/gentoo_portage b/frontend/modules/gentoo_portage deleted file mode 120000 index 0c0273e..0000000 --- a/frontend/modules/gentoo_portage +++ /dev/null @@ -1 +0,0 @@ -gentoo
\ No newline at end of file diff --git a/frontend/modules/gentoo_portage.info b/frontend/modules/gentoo_portage.info new file mode 100644 index 0000000..cb6e198 --- /dev/null +++ b/frontend/modules/gentoo_portage.info @@ -0,0 +1,4 @@ +<?php +$name='Gentoo Portage'; +require(dirname(__FILE__).'/gentoo_common.php'); +?> |