pluginHelpers.h

Go to the documentation of this file.
00001 /* -*- Mode: c++ -*- */
00002 /*
00003  *  this is part of Spm
00004  *
00005  *  Copyright (c) 2005-2006 Guillaume Chevallereau
00006  *
00007  *  This program is free software. You can redistribute it and/or modify it 
00008  *  under the terms of the GNU General Public License as published by the 
00009  *  Free Software Foundation. Either version 2 of the license or (at your 
00010  *  option) any later version.
00011  *
00012  *  This program is distributed in the hope that it will be usefull but WITHOUT
00013  *  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
00014  *  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for 
00015  *  more details.
00016  *
00017  *  You should have received a copy of the GNU General Public License along 
00018  *  with this program; if not, write to the Free Software Foundation, Inc., 
00019  *  59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
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     class InstallException : public Exception
00069     {
00070     public :
00071       InstallException (const std::string & msg)
00072       {
00073         errMsg = msg;
00074       }
00075 
00076       InstallException () 
00077       {
00078         errMsg = dgettext(LIB_PACKAGE_NAME,
00079                           "An error has ocurred");
00080       }
00081     };
00082     */    
00083   }
00084 }
00085 #endif

Generated on Wed Jul 4 15:27:21 2007 for libSpm by  doxygen 1.4.6