00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __PLUGIN_HELPERS_H__
00023 #define __PLUGIN_HELPERS_H__
00024
00025 #include <list>
00026 #include <string>
00027 #include "util/utilException.h"
00028
00029 namespace Spm
00030 {
00031 namespace Plugin
00032 {
00036 const std::string PRELOAD_LIB = "LD_PRELOAD";
00037 const std::string LOGGER = "log.so";
00038 const std::string URL_OPTION = "url";
00039 const std::string FILE_OPTION = "local";
00040 const std::string DEFAULT_TMP_DIR = "/tmp";
00041 const std::string USER = "user";
00042 const std::string TMP_DIR = "tmpDir";
00043 const std::string TMP_DIR_COMMENT = dgettext(LIB_PACKAGE_NAME,
00044 "Temporary directory to use");
00045 const std::string PRE_MAKE = "preBuild";
00046 const std::string PRE_MAKE_COMMENT = dgettext(LIB_PACKAGE_NAME,
00047 "Command to execute before the build");
00048 const std::string PRE_INSTALL = "preInstall";
00049 const std::string PRE_INSTALL_COMMENT = dgettext(LIB_PACKAGE_NAME,
00050 "Command to execute before the installation");
00051 const std::string POST_INSTALL = "postInstall";
00052 const std::string POST_INSTALL_COMMENT = dgettext(LIB_PACKAGE_NAME,
00053 "Command to execute after the installation");
00054 const std::string WORKING_DIR = "workingDir";
00055 const std::string WORKING_DIR_COMMENT = dgettext(LIB_PACKAGE_NAME,
00056 "The directory used for the build (other that the one of the source)");
00057 const std::string PATCH = "patch";
00058 const std::string PATCH_COMMENT = dgettext(LIB_PACKAGE_NAME,
00059 "Patch to apply");
00060 const std::string PREFIX = "prefix";
00061 const std::string COMMAND_STEP = "CommandStep";
00062 const std::string PATCH_PLUGIN = "PatchStep";
00063 const std::string COMMAND_OPTION = "command";
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083 }
00084 }
00085 #endif