cmake . -DCMAKE_INSTALL_PREFIX=/usr \
-DDPL_LOG=ON \
- -DLB_SUPPORT=ON \
-DCMAKE_PACKAGE_VERSION=%{version} \
-DCMAKE_BUILD_TYPE=%{?build_type:%build_type}
make %{?jobs:-j%jobs}
${INSTALLER_SRC_DIR}/pkg-manager/pkgmgr_signal.cpp
)
-IF(LB_SUPPORT)
- SET(INSTALLER_SOURCES
- ${INSTALLER_SOURCES}
- ${INSTALLER_JOBS}/widget_install/task_livebox_conf.cpp)
- MESSAGE(STATUS "adding definition -DLB_SUPPORT")
- ADD_DEFINITIONS("-DLB_SUPPORT")
-ENDIF(LB_SUPPORT)
-
MESSAGE(STATUS "add -DSEP_INSTALLER")
ADD_DEFINITIONS("-DSEP_INSTALLER")
#include <widget_install/task_remove_backup.h>
#include <widget_install/task_encrypt_resource.h>
#include <widget_install/task_certificates.h>
-
-#ifdef LB_SUPPORT
-#include <widget_install/task_livebox_conf.h>
-#endif
#include <widget_install/task_plugins_copy.h>
#include <widget_install/widget_install_errors.h>
PKG_TYPE_TIZEN_WITHSVCAPP) {
AddTask(new TaskInstallOspsvc(m_installerContext));
}
-#ifdef LB_SUPPORT
- AddTask(new TaskLiveboxConf(m_installerContext));
-#endif
AddTask(new TaskPluginsCopy(m_installerContext));
-
AddTask(new TaskDatabase(m_installerContext));
AddTask(new TaskAceCheck(m_installerContext));
} else if (result == ConfigureResult::Updated) {
AddTask(new TaskInstallOspsvc(m_installerContext));
}
AddTask(new TaskRemoveBackupFiles(m_installerContext));
-#ifdef LB_SUPPORT
- AddTask(new TaskLiveboxConf(m_installerContext));
-#endif
AddTask(new TaskPluginsCopy(m_installerContext));
-
AddTask(new TaskDatabase(m_installerContext));
-
AddTask(new TaskAceCheck(m_installerContext));
//TODO: remove widgetHandle from this task and move before database task
// by now widget handle is needed in ace check
FOREACH(u, this->uiApplication) { u->serialize(writer); }
FOREACH(i, this->imeApplication) { i->serialize(writer); }
//FOREACH(f, this->font) { f->serialize(writer); }
- //FOREACH(l, this->livebox) { l->serialize(writer); }
}
endElement(writer);
}
this->imeApplication.push_back(x);
}
// void addFont(const FontType &x) { this->font.push_back(x); }
-// void addLivebox(const LiveboxType &x) { this->livebox.push_back(x); }
void setInstallLocation(const InstallLocationType &x)
{
std::list<UiApplicationType> uiApplication;
std::list<ImeApplicationType> imeApplication;
// std::list<FontType> font;
-// std::list<LiveboxType> livebox;
InstallLocationType installLocation;
NcnameType package;
PackageType type;
+++ /dev/null
-/*
- * Copyright (c) 2012 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/*
- * @file task_livebox_conf.cpp
- * @author Tomasz Iwanek (t.iwanek@samsung.com)
- * @version 1.0
- * @brief Livebox support task
- */
-
-#include "task_livebox_conf.h"
-
-#include <dpl/log/log.h>
-#include <dpl/string.h>
-#include <dpl/utils/wrt_utility.h>
-#include <dpl/wrt-dao-rw/widget_dao.h>
-#include <dpl/file_input.h>
-#include <dpl/file_output.h>
-#include <dpl/copy.h>
-#include <dpl/utils/wrt_utility.h>
-
-#include <widget_install_context.h>
-
-TaskLiveboxConf::TaskLiveboxConf(InstallerContext &inCont) :
- DPL::TaskDecl<TaskLiveboxConf>(this),
- m_context(inCont)
-{
- AddStep(&TaskLiveboxConf::StepConfigureLivebox);
-}
-
-void TaskLiveboxConf::StepConfigureLivebox()
-{
- const std::string confFile = getLiveboxConfiguration();
- const std::string liveboxDir = std::string("/opt/live/")
- + DPL::ToUTF8String(*m_context.widgetConfig.pkgname);
- const std::string destination = liveboxDir + "/etc/";
- const std::string targetFile = destination + getLiveboxConfigurationFile();
-
- if(WrtUtilFileExists(confFile))
- {
- WrtUtilMakeDir(destination);
-
- LogDebug("Registering widget's livebox directory under /opt/live/");
- m_context.locations->registerExternalLocation(liveboxDir);
-
- LogInfo("Coping livebox configuration file: " << confFile << " -> " << targetFile);
- DPL::FileInput input(confFile);
- DPL::FileOutput output(targetFile);
- DPL::Copy(&input, &output);
- }
- else
- {
- LogInfo("No livebox configuration file: " << confFile);
- }
-}
-
-std::string TaskLiveboxConf::getLiveboxConfigurationDirectory() const
-{
- return m_context.locations->getSourceDir() + "/livebox/";
-}
-
-std::string TaskLiveboxConf::getLiveboxConfigurationFile() const
-{
- return DPL::ToUTF8String(*m_context.widgetConfig.pkgname) + ".conf";
-}
-
-std::string TaskLiveboxConf::getLiveboxConfiguration() const
-{
- return getLiveboxConfigurationDirectory() + getLiveboxConfigurationFile();
-}
+++ /dev/null
-/*
- * Copyright (c) 2012 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/*
- * @file task_livebox_conf.h
- * @author Tomasz Iwanek (t.iwanek@samsung.com)
- * @version 1.0
- * @brief Livebox support task
- */
-
-#ifndef WRT_INSTALLER_SRC_JOBS_WIDGET_INSTALL_TASK_LIVEBOX_CONF_H
-#define WRT_INSTALLER_SRC_JOBS_WIDGET_INSTALL_TASK_LIVEBOX_CONF_H
-
-//forward declaration
-class InstallerContext;
-
-#include <string>
-
-#include <dpl/task.h>
-
-class TaskLiveboxConf : public DPL::TaskDecl<TaskLiveboxConf>
-{
-public:
- TaskLiveboxConf(InstallerContext &inCont);
-private:
-
- void StepConfigureLivebox();
-
- /**
- * @brief getLiveboxConfiguration returns value of configuration path
- * pointing at .conf file
- * @return path
- */
- std::string getLiveboxConfiguration() const;
- /**
- * @brief getLiveboxConfiguration returns value of configuration directory
- * @return path
- */
- std::string getLiveboxConfigurationDirectory() const;
- std::string getLiveboxConfigurationFile() const;
-
- //context data
- InstallerContext &m_context;
-};
-
-#endif // WRT_INSTALLER_SRC_JOBS_WIDGET_INSTALL_TASK_LIVEBOX_CONF_H