示例#1
0
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']))
示例#2
0
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']))
示例#3
0
文件: fuse.py 项目: ac1965/kigen
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'])
示例#4
0
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))
示例#5
0
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']))
示例#6
0
文件: fuse.py 项目: ac1965/kigen
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']))
示例#7
0
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']))
示例#8
0
文件: fuse.py 项目: ac1965/kigen
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']))
示例#9
0
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']))