12 #ifndef ROOT_TAlienPackage
13 #define ROOT_TAlienPackage
36 TString fInstallationDirectory;
37 TString fAliEnMainPackageDir;
38 TString fPostInstallCommand;
39 TString fEnableCommand;
45 Bool_t PostInstall (TString name, TString version);
46 Bool_t InstallSinglePackage (TString name, TString version, Bool_t isDep = kFALSE);
47 Bool_t InstallAllPackages ();
52 TAlienPackage(
const char *name,
55 const char *installationdirectory =
"/var/tmp/alien/packages");
57 virtual ~ TAlienPackage ();
60 const char *GetEnable();
61 Bool_t Exec(
const char *cmdline);
64 Bool_t CheckDependencies();
66 Bool_t IsDirectory(
const char *dir1,
const char *str);
67 Bool_t CheckDirectories(TString name, TString version);
69 void SetName(
const TString & theValue) { fName = theValue; }
71 TString GetName()
const {
return fName; }
73 void SetVersion(
const TString & theValue) { fVersion = theValue; }
75 TString GetVersion()
const {
return fVersion; }
77 void SetPlatform(
const TString & theValue) { fPlatform = theValue; }
79 TString GetPlatform()
const {
return fPlatform; }
81 void SetInstallationDirectory(
const TString & theValue) { fInstallationDirectory = theValue; }
83 TString GetInstallationDirectory()
const {
return fInstallationDirectory; }
85 void SetAliEnMainPackageDir(
const TString & theValue) { fAliEnMainPackageDir = theValue; }
87 TString GetAliEnMainPackageDir()
const {
return fAliEnMainPackageDir; }
89 void SetInstallList(TList * theValue) { fInstallList = theValue; }
91 TList *GetInstallList()
const {
return fInstallList; }
93 void SetDebugLevel(Int_t & theValue) { fDebugLevel = theValue; }
95 Int_t GetDebugLevel() {
return fDebugLevel; }
98 ClassDef (TAlienPackage, 0);