def strip(master_config, temp): """ Strip iscsisetup binary @arg: dict @arg: dict @return: bool """ print(green(' * ') + '... iscsi.strip') utils.chgdir(temp['work']) return os.system('strip %s/open-iscsi-%s/usr/iscsistart' % (temp['work'], master_config['iscsi_ver']))
def compress(master_config, temp, quiet): """ Compress iscsisetup binary @arg: dict @arg: dict @arg: string @return: bool """ print(green(' * ') + '... iscsi.compress') utils.chgdir(temp['work']) return os.system('bzip2 %s/open-iscsi-%s/usr/iscsistart' % (temp['work'], master_config['iscsi_ver']))
def configure(fusetmp, master_config, temp, verbose): """ Configure fuse source code @arg: string @arg: dict @arg: dict @arg: string @return: bool """ print green(' * ') + '... fuse.configure' utils.chgdir(fusetmp) return os.system('./configure --disable-kernel-module --disable-example %s' % verbose['std'])
def compile(iscsitmp, master_config, quiet): """ Compile iscsi source code @arg: string @arg: dict @arg: string @return: bool """ print(green(' * ') + '... iscsi.compile') utils.chgdir(iscsitmp) return os.system('%s user %s' % (master_config['DEFAULT_UTILS_MAKE'], \ quiet))
def compile(unionfs_fuse_tmp, master_config, verbose): """ Compile unionfs_fuse source code @arg unionfs_fuse_tmp string @arg master_config dict @arg verbose string @return: bool """ print green(' * ') + '... unionfs_fuse.compile' utils.chgdir(unionfs_fuse_tmp) return os.system('%s %s' % (master_config['DEFAULT_UTILS_MAKE'], verbose['std']))
def cache(fusetmp, master_config, temp, verbose): # TODO pass arch? should we add 'arch' to blkid-fuse-%s.bz2? genkernel seems to do so """ Cache compressed dmsetup binary @arg: string @arg: dict @arg: dict @arg: string @return: bool """ print green(' * ') + '... fuse.cache' utils.chgdir(temp['work']) mvv = '' if verbose['set'] is '': mvv = '-v' return os.system('tar -jcf %s %s %s' % (temp['cache']+'/fuse-dircache-'+master_config['fuse_ver']+'.tar.bz2', 'fuse-'+master_config['fuse_ver'], verbose['std']))
def cache(iscsitmp, master_config, temp, quiet): # TODO pass arch? should we add 'arch' to blkid-iscsi-%s.bz2? genkernel seems to do so """ Cache compressed iscsisetup binary @arg: string @arg: dict @arg: dict @arg: string @return: bool """ print(green(' * ') + '... iscsi.cache') utils.chgdir(iscsitmp) mvv = '' if quiet is '': mvv = '-v' return os.system('mv %s %s/open-iscsi-%s/usr/iscsistart.bz2 %s/iscsistart-%s.bz2' % (mvv, temp['work'], master_config['iscsi_ver'], temp['cache'], master_config['iscsi_ver']))
def compile(fusetmp, master_config, verbose): """ Compile fuse source code @arg: string @arg: dict @arg: string @return: bool """ print green(' * ') + '... fuse.compile' utils.chgdir(fusetmp) return os.system('%s %s CC="%s" LD="%s" AS="%s" %s' % (master_config['DEFAULT_UTILS_MAKE'], \ master_config['DEFAULT_MAKEOPTS'], \ master_config['DEFAULT_UTILS_CC'], \ master_config['DEFAULT_UTILS_LD'], \ master_config['DEFAULT_UTILS_AS'], \ verbose['std']))
def cache(unionfs_fuse_tmp, master_config, temp, verbose): # TODO pass arch? should we add 'arch' to blkid-unionfs_fuse-%s.bz2? genkernel seems to do so """ Cache compressed unionfs_fusesetup binary @arg unionfs_fuse_tmp string @arg master_config dict @arg temp dict @arg verbose string @return: bool """ print green(' * ') + '... unionfs_fuse.cache' utils.chgdir(unionfs_fuse_tmp) mvv = '' if verbose['set'] is '': mvv = '-v' return os.system('mv %s %s/unionfs-fuse-%s/src/unionfs.bz2 %s/unionfs-fuse.static-%s.bz2' % (mvv, \ temp['work'], \ master_config['unionfs_fuse_ver'], \ temp['cache'], \ master_config['unionfs_fuse_ver']))