Esempio n. 1
0
    def __init__(self,
                 name,
                 role,
                 co,
                 pkg_name,
                 pkg_file,
                 instr_name=None,
                 postInstallMakefile=None):
        """
        * co - is the checkout name in which the package resides.
        * pkg_name - is the name of the package (dpkg needs it)
        * pkg_file - is the name of the file the package is in, relative to
          the checkout directory.
        * instr_name - is the name of the instruction file, if any.
        * postInstallMakefile - if not None::

            make -f postInstallMakefile <pkg-name>

          will be run at post-install time to make links, etc.
        """
        PackageBuilder.__init__(self, name, role)
        self.co_name = co
        self.pkg_name = pkg_name
        self.pkg_file = pkg_file
        self.instr_name = instr_name
        self.post_install_makefile = postInstallMakefile
Esempio n. 2
0
    def __init__(self, name, role, custom_depmod = None):
        """
        Constructor for the depmod package

        self.components is a list of (label, subdir) pairs which we combine in our
                        object directory to form a unified module database on which
                        we can run depmod.

        """
        PackageBuilder.__init__(self, name, role)
        self.components = [ ]
        self.custom_depmod = custom_depmod
Esempio n. 3
0
    def __init__(self, name, role, custom_depmod=None):
        """
        Constructor for the depmod package

        self.components is a list of (label, subdir) pairs which we combine in our
                        object directory to form a unified module database on which
                        we can run depmod.

        """
        PackageBuilder.__init__(self, name, role)
        self.components = []
        self.custom_depmod = custom_depmod
Esempio n. 4
0
 def __init__(self, name, role, co, pkg_name, pkg_file,
              instr_name = None,
              postInstallMakefile = None,
              nonDevCoName = None,
              nonDevPkgFile = None):
     """
     As for a DebAction, really.
     """
     PackageBuilder.__init__(self, name, role)
     self.co_name = co
     self.pkg_name = pkg_name
     self.pkg_file = pkg_file
     self.nonDevPkgFile = nonDevPkgFile
     self.nonDevCoName = nonDevCoName
     self.instr_name = instr_name
     self.post_install_makefile = postInstallMakefile
Esempio n. 5
0
 def __init__(self, name, role, co, config = True,
              perRoleMakefiles = False,
              makefileName = DEFAULT_MAKEFILE_NAME,
              rewriteAutoconf = False,
              usesAutoconf = False,
              execRelPath = None):
     """
     Constructor for the make package.
     """
     PackageBuilder.__init__(self, name, role)
     self.co = co
     self.has_make_config = config
     self.per_role_makefiles = perRoleMakefiles
     self.makefile_name = makefileName
     self.rewriteAutoconf = rewriteAutoconf
     self.usesAutoconf = usesAutoconf
     self.execRelPath = execRelPath
Esempio n. 6
0
 def __init__(self, name, role,
              filename,
              swname = None,
              version = None,
              build = None,
              withDate = True,
              withUser = True,
              withMachine= True):
     """
     Constructor for the version package type
     """
     PackageBuilder.__init__(self, name, role)
     self.filename = filename
     self.swname = swname
     self.version = version
     self.build = build
     self.withDate = withDate
     self.withUser = withUser
     self.withMachine = withMachine
Esempio n. 7
0
 def __init__(self,
              name,
              role,
              filename,
              swname=None,
              version=None,
              build=None,
              withDate=True,
              withUser=True,
              withMachine=True):
     """
     Constructor for the version package type
     """
     PackageBuilder.__init__(self, name, role)
     self.filename = filename
     self.swname = swname
     self.version = version
     self.build = build
     self.withDate = withDate
     self.withUser = withUser
     self.withMachine = withMachine
Esempio n. 8
0
 def __init__(self,
              name,
              role,
              co,
              pkg_name,
              pkg_file,
              instr_name=None,
              postInstallMakefile=None,
              nonDevCoName=None,
              nonDevPkgFile=None):
     """
     As for a DebAction, really.
     """
     PackageBuilder.__init__(self, name, role)
     self.co_name = co
     self.pkg_name = pkg_name
     self.pkg_file = pkg_file
     self.nonDevPkgFile = nonDevPkgFile
     self.nonDevCoName = nonDevCoName
     self.instr_name = instr_name
     self.post_install_makefile = postInstallMakefile
Esempio n. 9
0
    def __init__(self, name, role, co, pkg_name, pkg_file,
                 instr_name = None,
                 postInstallMakefile = None):
        """
        * co - is the checkout name in which the package resides.
        * pkg_name - is the name of the package (dpkg needs it)
        * pkg_file - is the name of the file the package is in, relative to
          the checkout directory.
        * instr_name - is the name of the instruction file, if any.
        * postInstallMakefile - if not None::

            make -f postInstallMakefile <pkg-name>

          will be run at post-install time to make links, etc.
        """
        PackageBuilder.__init__(self, name, role)
        self.co_name = co
        self.pkg_name = pkg_name
        self.pkg_file = pkg_file
        self.instr_name = instr_name
        self.post_install_makefile = postInstallMakefile
Esempio n. 10
0
 def __init__(self,
              name,
              role,
              co,
              config=True,
              perRoleMakefiles=False,
              makefileName=DEFAULT_MAKEFILE_NAME,
              rewriteAutoconf=False,
              usesAutoconf=False,
              execRelPath=None):
     """
     Constructor for the make package.
     """
     PackageBuilder.__init__(self, name, role)
     self.co = co
     self.has_make_config = config
     self.per_role_makefiles = perRoleMakefiles
     self.makefile_name = makefileName
     self.rewriteAutoconf = rewriteAutoconf
     self.usesAutoconf = usesAutoconf
     self.execRelPath = execRelPath