2002-10-04 05:30:44 +00:00
|
|
|
#! /usr/local/bin/php
|
|
|
|
<?php
|
|
|
|
// This script creates a BOINC project.
|
|
|
|
// You just need to plug in an application,
|
|
|
|
// and back-end systems for creating work and validating results
|
|
|
|
|
|
|
|
include_once("test.inc");
|
|
|
|
|
|
|
|
$project = new Project;
|
2003-02-14 23:19:51 +00:00
|
|
|
$project->short_name = "project_name";
|
|
|
|
$project->long_name = "Your Project";
|
2003-02-12 18:51:05 +00:00
|
|
|
|
2003-02-12 23:06:49 +00:00
|
|
|
$platform = new Platform("windows_intelx86", "Windows");
|
2003-02-12 18:51:05 +00:00
|
|
|
|
|
|
|
$app = new App("Astropulse");
|
2002-10-04 05:30:44 +00:00
|
|
|
$app_version = new App_Version($app);
|
2003-02-12 18:51:05 +00:00
|
|
|
$app_version->platform = $platform;
|
|
|
|
$app_version->exec_dir = "../apps";
|
|
|
|
$app_version->exec_name = "ap_win_0.02.exe";
|
|
|
|
|
|
|
|
$core_app = new App("core client");
|
|
|
|
$core_app_version = new App_Version($core_app);
|
|
|
|
$core_app_version->platform = $platform;
|
|
|
|
$core_app_version->exec_dir = "../apps";
|
|
|
|
$core_app_version->exec_name = "BOINC_0.10.exe";
|
2002-10-04 05:30:44 +00:00
|
|
|
|
|
|
|
$project->add_app($app);
|
|
|
|
$project->add_app_version($app_version);
|
2003-02-12 18:51:05 +00:00
|
|
|
$project->add_app($core_app);
|
|
|
|
$project->add_app_version($core_app_version);
|
|
|
|
$project->start_assimilator = true;
|
|
|
|
$project->start_feeder = true;
|
|
|
|
$project->start_file_deleter = true;
|
|
|
|
$project->start_make_work = true;
|
|
|
|
$project->start_result_retry = true;
|
|
|
|
$project->start_validate = true;
|
|
|
|
$project->shmem_key = 0x31415926;
|
|
|
|
|
2002-10-04 05:30:44 +00:00
|
|
|
$project->install();
|
2002-10-09 04:56:41 +00:00
|
|
|
$project->start_feeder();
|
2002-10-04 05:30:44 +00:00
|
|
|
?>
|