-
"""
-This class works like a 'stage3'. A stage2 tarball is unpacked, but instead
-of building a stage3, it emerges a 'system' into another directory
-inside the 'stage2' system. This way we do not have to emerge gcc/portage
-into the staged system.
+Enbedded target, similar to the stage2 target, builds upon a stage2 tarball.
-It sounds real complicated but basically it runs
-ROOT=/tmp/submerge emerge --blahblah foo bar
+A stage2 tarball is unpacked, but instead
+of building a stage3, it emerges @system into another directory
+inside the stage2 system. This way, we do not have to emerge GCC/portage
+into the staged system.
+It may sound complicated but basically it runs
+ROOT=/tmp/submerge emerge --something foo bar .
"""
+# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,imp,types,shutil
from catalyst_support import *
from stat import *
class embedded_target(generic_stage_target):
-
+ """
+ Builder class for embedded target
+ """
def __init__(self,spec,addlargs):
self.required_values=[]
self.valid_values=[]
-
-"""
-This class does all of the chroot setup, copying of files, etc. It is
-the driver class for pretty much everything that Catalyst does.
-"""
-
import os,string,imp,types,shutil
from catalyst_support import *
from generic_target import *
import catalyst_lock
class generic_stage_target(generic_target):
-
+ """
+ This class does all of the chroot setup, copying of files, etc. It is
+ the driver class for pretty much everything that Catalyst does.
+ """
def __init__(self,myspec,addlargs):
self.required_values.extend(["version_stamp","target","subarch",\
"rel_type","profile","snapshot","source_subpath"])
-
-"""
-The toplevel class for generic_stage_target. This is about as generic as we get.
-"""
-
from catalyst_support import *
class generic_target:
-
+ """
+ The toplevel class for generic_stage_target. This is about as generic as we get.
+ """
def __init__(self,myspec,addlargs):
addl_arg_parse(myspec,addlargs,self.required_values,self.valid_values)
self.settings=myspec
-
"""
-The builder class for GRP (Gentoo Reference Platform) builds.
+Gentoo Reference Platform (GRP) target
"""
+# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,types,glob
from catalyst_support import *
from generic_stage_target import *
class grp_target(generic_stage_target):
+ """
+ The builder class for GRP (Gentoo Reference Platform) builds.
+ """
def __init__(self,spec,addlargs):
self.required_values=["version_stamp","target","subarch",\
"rel_type","profile","snapshot","source_subpath"]
-
"""
-Builder class for LiveCD stage1.
+LiveCD stage1 target
"""
+# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
from catalyst_support import *
from generic_stage_target import *
class livecd_stage1_target(generic_stage_target):
+ """
+ Builder class for LiveCD stage1.
+ """
def __init__(self,spec,addlargs):
self.required_values=["livecd/packages"]
self.valid_values=self.required_values[:]
-
"""
-Builder class for a LiveCD stage2 build.
+LiveCD stage2 target, builds upon previous LiveCD stage1 tarball
"""
+# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types,stat,shutil
from catalyst_support import *
from generic_stage_target import *
class livecd_stage2_target(generic_stage_target):
+ """
+ Builder class for a LiveCD stage2 build.
+ """
def __init__(self,spec,addlargs):
self.required_values=["boot/kernel"]
-
"""
-Builder class for a netboot build, version 2
+netboot target, version 2
"""
+# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types
from catalyst_support import *
from generic_stage_target import *
class netboot2_target(generic_stage_target):
+ """
+ Builder class for a netboot build, version 2
+ """
def __init__(self,spec,addlargs):
self.required_values=[
"boot/kernel"
-
"""
-Builder class for a netboot build.
+netboot target, version 1
"""
+# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
import os,string,types
from catalyst_support import *
from generic_stage_target import *
class netboot_target(generic_stage_target):
+ """
+ Builder class for a netboot build.
+ """
def __init__(self,spec,addlargs):
self.valid_values = [
"netboot/kernel/sources",
-
"""
-Builder class for snapshots.
+Snapshot target
"""
import os
from generic_stage_target import *
class snapshot_target(generic_stage_target):
+ """
+ Builder class for snapshots.
+ """
def __init__(self,myspec,addlargs):
self.required_values=["version_stamp","target"]
self.valid_values=["version_stamp","target"]
-
"""
-Builder class for a stage1 installation tarball build.
+stage1 target
"""
+# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
from catalyst_support import *
from generic_stage_target import *
class stage1_target(generic_stage_target):
+ """
+ Builder class for a stage1 installation tarball build.
+ """
def __init__(self,spec,addlargs):
self.required_values=[]
self.valid_values=["chost"]
-
"""
-Builder class for a stage2 installation tarball build.
+stage2 target, builds upon previous stage1 tarball
"""
+# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
from catalyst_support import *
from generic_stage_target import *
class stage2_target(generic_stage_target):
+ """
+ Builder class for a stage2 installation tarball build.
+ """
def __init__(self,spec,addlargs):
self.required_values=[]
self.valid_values=["chost"]
-
"""
-Builder class for a stage3 installation tarball build.
+stage3 target, builds upon previous stage2/stage3 tarball
"""
+# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
from catalyst_support import *
from generic_stage_target import *
class stage3_target(generic_stage_target):
+ """
+ Builder class for a stage3 installation tarball build.
+ """
def __init__(self,spec,addlargs):
self.required_values=[]
self.valid_values=[]
-
"""
-Builder class for stage4.
+stage4 target, builds upon previous stage3/stage4 tarball
"""
+# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
from catalyst_support import *
from generic_stage_target import *
class stage4_target(generic_stage_target):
+ """
+ Builder class for stage4.
+ """
def __init__(self,spec,addlargs):
self.required_values=["stage4/packages"]
self.valid_values=self.required_values[:]
-
"""
-builder class for the tinderbox target
+Tinderbox target
"""
+# NOTE: That^^ docstring has influence catalyst-spec(5) man page generation.
from catalyst_support import *
from generic_stage_target import *
class tinderbox_target(generic_stage_target):
+ """
+ Builder class for the tinderbox target
+ """
def __init__(self,spec,addlargs):
self.required_values=["tinderbox/packages"]
self.valid_values=self.required_values[:]