Exemplo n.º 1
0
    def filter_function(self, filtername):
        self.gimg = self.gimg.filter(filter(filtername))
        if logger:
            self.logging("gimg = self.gimg.filter(PIL.Filters." + filtername +
                         ")")

        self.update()
Exemplo n.º 2
0
init_package = ['ncurses-5.9.tar.gz',
				'cmake-2.8.12.1.tar.gz'
				]

soft_package = 'mysql-5.5.34.tar.gz'
# prepare work
environment_init.folder_and_user_init(base['soft_name'],base['user_name'])
environment_init.ftp_download(base['tar_base'],base['ftp_path'])
environment_init.apt_update()
environment_init.install_init()

# install init_package
os.chdir(base['tar_base'])
for soft in init_package:
	tools.extract_file(soft)
	folder_name = tools.filter(soft)
	tools.pak_configure(folder_name,folder_name,base['soft_path'],base['tar_base'])
	tools.pak_make(folder_name,base['tar_base'])

# install mysql
# extract mysql.tar
tools.extract_file(mysql_package)
# configure options
for dir in ['data','etc']
	tools.make_dir(dir,mysql_path)

options = 
"""
-DMYSQL_DATADIR=%s \
-DSYSCONFDIR=%s \
-DEXTRA_CHARSETS=all \
Exemplo n.º 3
0
				'pcre-8.30.tar.gz',
				'openssl-1.0.1e.tar.gz',
				'zlib-1.2.8.tar.gz'
				]

nginx_package = 'nginx-1.0.9.tar.gz'
# prepare work

e_init.folder_and_user_init(base['soft_name'],base['user_name'])
tools.ftp_download(base['tar_path'],base['ftp_path'])

# install init_package
os.chdir(base['tar_path'])
for soft in init_package:
	tools.extract_file(soft)
	folder_name = tools.filter(soft)
	tools.pak_configure(folder_name,folder_name,base['soft_path'],base['tar_path'])
	tools.pak_make(folder_name,base['tar_path'])
	if 'mcrypt' in soft:
		temp_base = os.path.join(base['tar_path'],folder_name)
		print temp_base
		tools.pak_configure('libltdl','libltdl',base['soft_path'],temp_base,'--enable-ltdl-install')
		tools.pak_make('libltdl',temp_base)

# install nginx
tools.extract_file(nginx_package)

pcre_path = os.path.join(base['tar_path'],tools.filter(init_package[5]))
openssl_path = os.path.join(base['tar_path'],tools.filter(init_package[6]))
zlib_path = os.path.join(base['tar_path'],tools.filter(init_package[7]))