aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazumasa Mitsunari <kazumasa_mitsunari_za@mail.toyota.co.jp>2016-07-22 10:32:11 +0900
committerKazumasa Mitsunari <kazumasa_mitsunari_za@mail.toyota.co.jp>2016-07-22 11:01:55 +0900
commit6fc9f9f085ab68f89ba6b22465fbdfc5411d41ba (patch)
tree40ee5391beebd06518c674c9ef1858c65026ceb4
parent9cf56692db97b90e0fcb795f761430438bd0ad29 (diff)
First version of ported tizen application manager
Change-Id: I46735869fe8113be58348d575e01734e498d2de2 Signed-off-by: Kazumasa Mitsunari <kazumasa_mitsunari_za@mail.toyota.co.jp>
-rw-r--r--.gitignore125
-rw-r--r--README199
-rw-r--r--meta-application-manager/classes/tizen_cmake.bbclass70
-rw-r--r--meta-application-manager/conf/layer.conf11
-rw-r--r--meta-application-manager/recipes-application-framework/ail/ail-extraconf.inc15
-rw-r--r--meta-application-manager/recipes-application-framework/ail/ail.inc202
-rw-r--r--meta-application-manager/recipes-application-framework/ail/ail_git.bb10
-rw-r--r--meta-application-manager/recipes-application-framework/ail/files/remove-dlog-for-native-build.patch65
-rw-r--r--meta-application-manager/recipes-application-framework/app-checker/app-checker-extraconf.inc10
-rw-r--r--meta-application-manager/recipes-application-framework/app-checker/app-checker.inc179
-rw-r--r--meta-application-manager/recipes-application-framework/app-checker/app-checker/0001-yocto-Correct-libdl-linking-issue.patch30
-rw-r--r--meta-application-manager/recipes-application-framework/app-checker/app-checker/remove-dlog-for-native-build.patch49
-rw-r--r--meta-application-manager/recipes-application-framework/app-checker/app-checker_git.bb10
-rw-r--r--meta-application-manager/recipes-application-framework/app-core/app-core-extraconf.inc8
-rw-r--r--meta-application-manager/recipes-application-framework/app-core/app-core.inc209
-rw-r--r--meta-application-manager/recipes-application-framework/app-core/app-core_git.bb10
-rw-r--r--meta-application-manager/recipes-application-framework/app-core/files/0001-hack-window-hide.patch88
-rw-r--r--meta-application-manager/recipes-application-framework/app-core/files/remove-dlog-for-native-build.patch326
-rw-r--r--meta-application-manager/recipes-application-framework/app-svc/app-svc-extraconf.inc0
-rw-r--r--meta-application-manager/recipes-application-framework/app-svc/app-svc.inc157
-rw-r--r--meta-application-manager/recipes-application-framework/app-svc/app-svc_git.bb10
-rw-r--r--meta-application-manager/recipes-application-framework/aul/aul-extraconf.inc30
-rw-r--r--meta-application-manager/recipes-application-framework/aul/aul.inc222
-rw-r--r--meta-application-manager/recipes-application-framework/aul/aul_git.bb10
-rw-r--r--meta-application-manager/recipes-application-framework/aul/files/remove-dlog-for-native-build.patch393
-rw-r--r--meta-application-manager/recipes-application-framework/capi-base-common/capi-base-common-extraconf.inc5
-rw-r--r--meta-application-manager/recipes-application-framework/capi-base-common/capi-base-common.inc135
-rw-r--r--meta-application-manager/recipes-application-framework/capi-base-common/capi-base-common_git.bb10
-rw-r--r--meta-application-manager/recipes-application-framework/capi-system-info/capi-system-info-extraconf.inc3
-rw-r--r--meta-application-manager/recipes-application-framework/capi-system-info/capi-system-info.inc139
-rw-r--r--meta-application-manager/recipes-application-framework/capi-system-info/capi-system-info_git.bb10
-rw-r--r--meta-application-manager/recipes-application-framework/capi-system-info/files/remove-dlog-for-native-build.patch491
-rw-r--r--meta-application-manager/recipes-application-framework/capi-system-sensor/capi-system-sensor-extraconf.inc1
-rw-r--r--meta-application-manager/recipes-application-framework/capi-system-sensor/capi-system-sensor.inc137
-rw-r--r--meta-application-manager/recipes-application-framework/capi-system-sensor/capi-system-sensor_git.bb10
-rw-r--r--meta-application-manager/recipes-application-framework/capi-system-sensor/files/001-Add-version-to-CMakeList.patch7
-rw-r--r--meta-application-manager/recipes-application-framework/heynoti/files/remove_dlog.patch15
-rw-r--r--meta-application-manager/recipes-application-framework/heynoti/heynoti-extraconf.inc3
-rw-r--r--meta-application-manager/recipes-application-framework/heynoti/heynoti.inc145
-rw-r--r--meta-application-manager/recipes-application-framework/heynoti/heynoti_git.bb10
-rw-r--r--meta-application-manager/recipes-application-framework/libcom-core/files/0001-remove-dbus-check.patch13
-rw-r--r--meta-application-manager/recipes-application-framework/libcom-core/libcom-core-extraconf.inc1
-rw-r--r--meta-application-manager/recipes-application-framework/libcom-core/libcom-core.inc141
-rw-r--r--meta-application-manager/recipes-application-framework/libcom-core/libcom-core_git.bb10
-rw-r--r--meta-application-manager/recipes-application-framework/librua/librua-extraconf.inc0
-rw-r--r--meta-application-manager/recipes-application-framework/librua/librua.inc149
-rw-r--r--meta-application-manager/recipes-application-framework/librua/librua_git.bb10
-rw-r--r--meta-application-manager/recipes-application-framework/pkgmgr-info/pkgmgr-info-extraconf.inc4
-rw-r--r--meta-application-manager/recipes-application-framework/pkgmgr-info/pkgmgr-info.inc203
-rw-r--r--meta-application-manager/recipes-application-framework/pkgmgr-info/pkgmgr-info/TizenCommonCMakeMacro.patch38
-rw-r--r--meta-application-manager/recipes-application-framework/pkgmgr-info/pkgmgr-info/remove-dlog-for-native-build.patch71
-rw-r--r--meta-application-manager/recipes-application-framework/pkgmgr-info/pkgmgr-info_git.bb10
-rw-r--r--meta-application-manager/recipes-application-framework/pkgmgr/files/0001-remove-TizenConfig.patch12
-rw-r--r--meta-application-manager/recipes-application-framework/pkgmgr/files/Add_extralib.diff28
-rw-r--r--meta-application-manager/recipes-application-framework/pkgmgr/files/remove-dlog-for-native-build.patch213
-rw-r--r--meta-application-manager/recipes-application-framework/pkgmgr/pkgmgr-extraconf.inc18
-rw-r--r--meta-application-manager/recipes-application-framework/pkgmgr/pkgmgr.inc308
-rw-r--r--meta-application-manager/recipes-application-framework/pkgmgr/pkgmgr_git.bb10
-rw-r--r--meta-application-manager/recipes-application-framework/vconf-internal-keys/vconf-internal-keys-extraconf.inc0
-rw-r--r--meta-application-manager/recipes-application-framework/vconf-internal-keys/vconf-internal-keys.inc107
-rw-r--r--meta-application-manager/recipes-application-framework/vconf-internal-keys/vconf-internal-keys_git.bb10
-rw-r--r--meta-application-manager/recipes-application-framework/vconf/files/0002_compiler_changes.patch46
-rw-r--r--meta-application-manager/recipes-application-framework/vconf/files/remove-dlog-for-native.patch25
-rw-r--r--meta-application-manager/recipes-application-framework/vconf/vconf-extraconf.inc28
-rw-r--r--meta-application-manager/recipes-application-framework/vconf/vconf.inc181
-rw-r--r--meta-application-manager/recipes-application-framework/vconf/vconf_git.bb10
-rw-r--r--meta-application-manager/recipes-examples/amhelloworld/amhelloworld-extraconf.inc2
-rw-r--r--meta-application-manager/recipes-examples/amhelloworld/amhelloworld.inc96
-rw-r--r--meta-application-manager/recipes-examples/amhelloworld/amhelloworld_1.0.bb15
-rw-r--r--meta-application-manager/recipes-examples/amhelloworld/files/CMakeLists.txt46
-rw-r--r--meta-application-manager/recipes-examples/amhelloworld/files/README0
-rw-r--r--meta-application-manager/recipes-examples/amhelloworld/files/amhelloworld.c55
-rw-r--r--meta-application-manager/recipes-examples/amhelloworld/files/amhelloworld.h12
-rw-r--r--meta-application-manager/recipes-examples/amhelloworld/files/org.tizen.amhelloworld.manifest20
-rw-r--r--meta-application-manager/recipes-examples/amhelloworld/files/org.tizen.amhelloworld.spec13
-rw-r--r--meta-application-manager/recipes-examples/amhelloworld/files/org.tizen.amhelloworld.xml15
-rw-r--r--meta-application-manager/recipes-extended/efl/efl_%.bbappend11
-rw-r--r--meta-application-manager/recipes-extended/linux-renesas/linux-renesas_3.10.bbappend27
-rw-r--r--meta-application-manager/recipes-others/bullet/bullet-extraconf.inc0
-rw-r--r--meta-application-manager/recipes-others/bullet/bullet.inc135
-rw-r--r--meta-application-manager/recipes-others/bullet/bullet_git.bb10
-rw-r--r--meta-application-manager/recipes-others/bundle/bundle-extraconf.inc2
-rw-r--r--meta-application-manager/recipes-others/bundle/bundle.inc132
-rw-r--r--meta-application-manager/recipes-others/bundle/bundle.incorg135
-rw-r--r--meta-application-manager/recipes-others/bundle/bundle_git.bb10
-rw-r--r--meta-application-manager/recipes-others/bundle/diff_bundle12
-rw-r--r--meta-application-manager/recipes-others/bundle/files/remove-dlog-for-native-build.patch36
-rw-r--r--meta-application-manager/recipes-others/dlog/dlog-extraconf.inc1
-rw-r--r--meta-application-manager/recipes-others/dlog/dlog.inc144
-rw-r--r--meta-application-manager/recipes-others/dlog/dlog_git.bb10
-rw-r--r--meta-application-manager/recipes-others/dlog/files/libsystemd-journal_is_now_in_libsystemd.patch11
-rw-r--r--meta-application-manager/recipes-others/fdupes/fdupes-extraconf.inc0
-rw-r--r--meta-application-manager/recipes-others/fdupes/fdupes.inc84
-rw-r--r--meta-application-manager/recipes-others/fdupes/fdupes_git.bb10
-rw-r--r--meta-application-manager/recipes-others/images/agl-demo-platform-plus-application-manager.bb66
-rw-r--r--meta-application-manager/recipes-others/iniparser/iniparser-extraconf.inc10
-rw-r--r--meta-application-manager/recipes-others/iniparser/iniparser.inc124
-rw-r--r--meta-application-manager/recipes-others/iniparser/iniparser_git.bb10
-rw-r--r--meta-application-manager/recipes-others/libiri/libiri-extraconf.inc0
-rw-r--r--meta-application-manager/recipes-others/libiri/libiri.inc112
-rw-r--r--meta-application-manager/recipes-others/libiri/libiri_git.bb10
-rw-r--r--meta-application-manager/recipes-others/libprivilege-control/libprivilege-control-extraconf.inc9
-rw-r--r--meta-application-manager/recipes-others/libprivilege-control/libprivilege-control.inc176
-rw-r--r--meta-application-manager/recipes-others/libprivilege-control/libprivilege-control/missing_header.patch25
-rw-r--r--meta-application-manager/recipes-others/libprivilege-control/libprivilege-control/remove-dlog-for-native-build.patch55
-rw-r--r--meta-application-manager/recipes-others/libprivilege-control/libprivilege-control_git.bb10
-rw-r--r--meta-application-manager/recipes-others/libsf-common/files/remove-dlog-for-native-build.patch50
-rw-r--r--meta-application-manager/recipes-others/libsf-common/libsf-common-extraconf.inc2
-rw-r--r--meta-application-manager/recipes-others/libsf-common/libsf-common.inc123
-rw-r--r--meta-application-manager/recipes-others/libsf-common/libsf-common_git.bb10
-rw-r--r--meta-application-manager/recipes-others/libslp-db-util/files/remove-dlog-for-native-build.patch33
-rw-r--r--meta-application-manager/recipes-others/libslp-db-util/libslp-db-util-extraconf.inc3
-rw-r--r--meta-application-manager/recipes-others/libslp-db-util/libslp-db-util.inc137
-rw-r--r--meta-application-manager/recipes-others/libslp-db-util/libslp-db-util_git.bb10
-rw-r--r--meta-application-manager/recipes-others/luajit/luajit_2.0.4.bbappend4
-rw-r--r--meta-application-manager/recipes-others/notification/notification-extraconf.inc1
-rw-r--r--meta-application-manager/recipes-others/notification/notification.inc176
-rw-r--r--meta-application-manager/recipes-others/notification/notification_git.bb10
-rw-r--r--meta-application-manager/recipes-others/privacy-manager-server/files/0001-add-fPIC-to-gcc.patch69
-rw-r--r--meta-application-manager/recipes-others/privacy-manager-server/files/0002-remove-strip.patch12
-rw-r--r--meta-application-manager/recipes-others/privacy-manager-server/files/fix-include-directories-in-CMakeList.txt.patch19
-rw-r--r--meta-application-manager/recipes-others/privacy-manager-server/files/fix-include-directories-in-CMakeList_2.patch27
-rw-r--r--meta-application-manager/recipes-others/privacy-manager-server/files/remove-dlog-for-native-build.patch965
-rw-r--r--meta-application-manager/recipes-others/privacy-manager-server/privacy-manager-server-extraconf.inc17
-rw-r--r--meta-application-manager/recipes-others/privacy-manager-server/privacy-manager-server.inc266
-rw-r--r--meta-application-manager/recipes-others/privacy-manager-server/privacy-manager-server_git.bb10
-rw-r--r--meta-application-manager/recipes-others/security-server/security-server-extraconf.inc9
-rw-r--r--meta-application-manager/recipes-others/security-server/security-server.inc258
-rw-r--r--meta-application-manager/recipes-others/security-server/security-server/0001-PATCH-link-to-the-pthread-library.patch14
-rw-r--r--meta-application-manager/recipes-others/security-server/security-server/0001-remove-dbus-check.patch12
-rw-r--r--meta-application-manager/recipes-others/security-server/security-server/0003-remove-rpath.patch10
-rw-r--r--meta-application-manager/recipes-others/security-server/security-server/remove-dlog-for-native-build.patch136
-rw-r--r--meta-application-manager/recipes-others/security-server/security-server_git.bb10
-rw-r--r--meta-application-manager/recipes-others/sensor/sensor-extraconf.inc0
-rw-r--r--meta-application-manager/recipes-others/sensor/sensor.inc134
-rw-r--r--meta-application-manager/recipes-others/sensor/sensor_git.bb10
-rw-r--r--meta-application-manager/recipes-others/smack/smack-extraconf.inc6
-rw-r--r--meta-application-manager/recipes-others/smack/smack.inc152
-rw-r--r--meta-application-manager/recipes-others/smack/smack_git.bb10
-rw-r--r--meta-application-manager/recipes-others/tizen-platform-config/tizen-platform-config-extraconf.inc19
-rw-r--r--meta-application-manager/recipes-others/tizen-platform-config/tizen-platform-config.inc155
-rw-r--r--meta-application-manager/recipes-others/tizen-platform-config/tizen-platform-config_git.bb10
-rw-r--r--meta-application-manager/recipes-others/tizen-platform-wrapper/files/0001-Add-env-value-SYSROOT-for-root-fs-prefix.patch127
-rw-r--r--meta-application-manager/recipes-others/tizen-platform-wrapper/files/0002_compiler_changes.patch66
-rw-r--r--meta-application-manager/recipes-others/tizen-platform-wrapper/tizen-platform-wrapper-extraconf.inc10
-rw-r--r--meta-application-manager/recipes-others/tizen-platform-wrapper/tizen-platform-wrapper.inc94
-rw-r--r--meta-application-manager/recipes-others/tizen-platform-wrapper/tizen-platform-wrapper_git.bb10
-rw-r--r--meta-application-manager/recipes-others/xdgmime/xdgmime-extraconf.inc0
-rw-r--r--meta-application-manager/recipes-others/xdgmime/xdgmime.inc128
-rw-r--r--meta-application-manager/recipes-others/xdgmime/xdgmime_git.bb10
-rw-r--r--security_flags.inc106
151 files changed, 10296 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..051f2d5
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,125 @@
+# manually added:
+.DS_Store
+
+# Created by https://www.gitignore.io/api/linux,qt,c,c++
+
+### Linux ###
+*~
+
+# temporary files which can be created if a process still has a handle open of a deleted file
+.fuse_hidden*
+
+# KDE directory preferences
+.directory
+
+# Linux trash folder which might appear on any partition or disk
+.Trash-*
+
+
+### Qt ###
+# C++ objects and libs
+
+*.slo
+*.lo
+*.o
+*.a
+*.la
+*.lai
+*.so
+*.dll
+*.dylib
+
+# Qt-es
+
+/.qmake.cache
+/.qmake.stash
+*.pro.user
+*.pro.user.*
+*.qbs.user
+*.qbs.user.*
+*.moc
+moc_*.cpp
+qrc_*.cpp
+ui_*.h
+Makefile*
+*build-*
+
+# QtCreator
+
+*.autosave
+
+# QtCtreator Qml
+*.qmlproject.user
+*.qmlproject.user.*
+
+# QtCtreator CMake
+CMakeLists.txt.user
+
+
+
+### C ###
+# Object files
+*.o
+*.ko
+*.obj
+*.elf
+
+# Precompiled Headers
+*.gch
+*.pch
+
+# Libraries
+*.lib
+*.a
+*.la
+*.lo
+
+# Shared objects (inc. Windows DLLs)
+*.dll
+*.so
+*.so.*
+*.dylib
+
+# Executables
+*.exe
+*.out
+*.app
+*.i*86
+*.x86_64
+*.hex
+
+# Debug files
+*.dSYM/
+
+
+### C++ ###
+# Compiled Object files
+*.slo
+*.lo
+*.o
+*.obj
+
+# Precompiled Headers
+*.gch
+*.pch
+
+# Compiled Dynamic libraries
+*.so
+*.dylib
+*.dll
+
+# Fortran module files
+*.mod
+
+# Compiled Static libraries
+*.lai
+*.la
+*.a
+*.lib
+
+# Executables
+*.exe
+*.out
+*.app
+
+
diff --git a/README b/README
new file mode 100644
index 0000000..596d3a1
--- /dev/null
+++ b/README
@@ -0,0 +1,199 @@
+tizen-application-manager, how to port into agl-demom-platform for Automotive Grade Linux
+==========================================================================
+Release note
+ Application Manager is responsible for
+ * install/uninstall application
+ * launch/suspend application
+ * lifecycle management(event)
+ * save application data
+ * provide application information
+
+ tizen-application-manager provides the following common APIs to developers
+ * manage the application
+ - to launch/stop application
+ - to manage application information of database
+ * It doesn't provide efl event
+
+ToDo
+------------------
+* First setting(vconf etc.) for launching application from systemd
+* Change global user name to aglglobaluser
+* Documentation
+* Separate the dependencies of capi-*
+* Disable events of efl dependencies from app-core
+* Dynamicaly enable to install the application
+* Make events of appcore enabled independent of efl
+* Make events of appcore from unspecified runtime engine
+
+   
+Layer Dependencies
+------------------
+
+URI: git://git.yoctoproject.org/poky
+> branch: jethro,
+> revision: 118380bc5d01e52b5edc574abb4176f6e70a54a6
+
+URI: git://git.openembedded.org/meta-openembedded
+> layer: meta-oe, meta-multimedia, meta-efl, meta-networking, meta-python
+> branch: jethro-next or jethro or master
+> revision: 8ab04afbffb4bc5184cfe0655049de6f44269990
+
+URI: https://github.com/meta-qt5/meta-qt5.git
+> branch: master or jethro
+> revision: ea37a0bc987aa9484937ad68f762b4657c198617
+
+URI: https://gerrit.automotivelinux.org/gerrit/AGL/meta-agl
+> layer: meta-agl, meta-ivi-common
+> branch: master
+> revision: baa986abe444dbbfd59b63f6111a058b80891474
+> (or later)
+
+URI: https://gerrit.automotivelinux.org/gerrit/AGL/meta-agl-demo
+> branch: master
+> revision: 9a319937529cca7e263e987b85cb9d6fca0b468c
+> (or later)
+
+URI: https://gerrit.automotivelinux.org/gerrit/AGL/meta-renesas
+> layer: meta-rcar-gen2
+> branch: agl-1.0-bsp-1.8.0
+> revision: 82611ccadef36ab0b8a6fd6fb1cf055e115f1ef5
+> (or later)
+
+
+## The Renesas R-Car Gen2 (Porter) board depends in addition on: ##
+
+URI: https://gerrit.automotivelinux.org/gerrit/AGL/meta-renesas
+> branch: agl-1.0-bsp-1.8.0
+> revision: bf30de66badcac7ef82d3758aa44c116ee791a28
+> (or later)
+
+URI: https://gerrit.automotivelinux.org/gerrit/staging/tizen-application-manager
+> branch: master
+> revision:
+> (or later)
+
+Supported Machine
+-----------------
+
+* Renesas R-Car Gen2 (R-Car M2) - machine: porter
+
+Supported Target of bitbake
+------------------------
+* `agl-demo-platform-plus-application-manager` The image into which add tizen-application-manager
+
+Downloading the Source
+--------------------
+
+You can use repo tool to get all layers which are needed to build AGL Distribution.
+
+1. Installing Repo. Make sure you have a bin/ in your $HOME and it's included in your $PATH.
+ $ mkdir ~/bin
+ $ export PATH=~/bin:$PATH
+
+ Download the repo tool.
+ $ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
+ $ chmod a+x ~/bin/repo
+
+2. Preparing download. Create an empty directory to hold all recipes and build environment. You can make it as any name you like.
+ $ mkdir WORKING-DIRECTORY
+ $ cd WORKING-DIRECTORY
+
+3. Getting all layers.
+ $ repo init -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo
+ $ repo sync
+
+4. Getting modified tizen-application-manager
+ $ git clone https://gerrit.automotivelinux.org/gerrit/staging/tizen-application-manager
+
+
+Build a R-Car M2 (porter) image
+-------------------------------
+
+please refer to README in meta-agl-demo or meta-agl
+
+
+Build image
+-------------------------------
+
+You can build an image for porter using the following steps:
+
+1. change recipes and security_flags.inc
+ 1.1 remove or move freetype bbappend file
+ $ rm -rf ${METADIR}/meta-agl/meta-ivi-common/recipes-test/freetype
+
+ You can select the following process to setup.
+ 1.b is better to avoid mistakes.
+
+ 1.a Add the following setting into security_flags.inc
+ +SECURITY_CFLAGS_pn-efl = "${SECURITY_NO_PIE_CFLAGS}"
+ +SECURITY_CFLAGS_pn-poppler = "${SECURITY_NO_PIE_CFLAGS}"
+
+ 1.b Copy security_flags.inc
+ $ cd ${METADIR}/tizen-application-manager/
+ $ cp(mv) security_flags.inc ${METADIR}/poky/meta/conf/distro/include
+
+
+2. Run the following command:
+ $ cd ${METADIR}
+ $ source meta-agl/scripts/aglsetup.sh -m porter -b build-porter agl-demo
+
+3. Modify conf/bblayers
+
+ 3.1 Remove the meta-agl-bsp line
+ remove ${METADIR}/meta-agl/meta-agl/meta-agl-bsp \
+
+ 3.2 Add following environment variables in conf/bblayers.conf
+
+ BBLAYERS =+ " \
+ ${METADIR}/tizen-application-manager/meta-application-manager \
+ "
+
+4. Modify conf/local.conf
+
+ 4.1 Add the following environment variable in conf/bblayers.conf
+ BBMASK += "|meta-ivi-common/recipes-test/freetype/freetype_%.bbappend"
+
+5. bitbake the image
+ $ bitbake agl-demo-platform-plus-application-manager
+
+
+Deploying to SD card
+-------------------------------
+The process to refer to README in meta-agl-demo.
+Please change file name to agl-demo-platform-plus-application-manager from agl-demo-platform.
+
+ -> --file=agl-demo-platform-plus-application-manager-porter.tar.bz2
+
+How to use application manager
+-------------------------------
+The following process is how to launch sample application trying whether sample package
+can be searched from database.
+
+
+1. start up porter board and open the weston-terminal
+
+2. setting
+ # vconftool set -t string db/menu_widget/language "en-us"
+ # loginctl enable-linger tizenglobalapp
+ # useradd tizenglobalapp
+ if required to define password, please set the password you like.
+
+3. launch sample application from user
+ # login tizenglobalapp
+ $ launch_app org.tizen.amhelloworld
+ launch sample appli will fail.
+ $ pkg_createdb_user
+ $ pkg_initdb_user
+ $ launch_app org.tizen.amhelloworld
+ successfull to launch
+
+4. How to start native application
+ $ pkgcmd -l // to list all applications available.
+ $ app_launcher -s <pkgid>
+
+ For more information, please access the following URL
+ https://wiki.tizen.org/wiki/IVI/Tizen-IVI_3.0
+
+
+
+
diff --git a/meta-application-manager/classes/tizen_cmake.bbclass b/meta-application-manager/classes/tizen_cmake.bbclass
new file mode 100644
index 0000000..bb79403
--- /dev/null
+++ b/meta-application-manager/classes/tizen_cmake.bbclass
@@ -0,0 +1,70 @@
+# Path to the CMake file to process.
+OECMAKE_SOURCEPATH ?= "${S}"
+
+DEPENDS_prepend = "cmake-native "
+B = "${WORKDIR}/build"
+
+# We need to unset CCACHE otherwise cmake gets too confused
+CCACHE = ""
+
+# We want the staging and installing functions from autotools
+inherit autotools
+
+# C/C++ Compiler (without cpu arch/tune arguments)
+#OECMAKE_C_COMPILER ?= "`echo ${CC} | sed 's/^\([^ ]*\).*/\1/'`"
+#OECMAKE_CXX_COMPILER ?= "`echo ${CXX} | sed 's/^\([^ ]*\).*/\1/'`"
+
+# Compiler flags
+OECMAKE_C_FLAGS ?= "${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS} ${CFLAGS}"
+OECMAKE_CXX_FLAGS ?= "${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS} ${CXXFLAGS} -fpermissive"
+OECMAKE_C_FLAGS_RELEASE ?= "${SELECTED_OPTIMIZATION} ${CFLAGS} -DNDEBUG"
+OECMAKE_CXX_FLAGS_RELEASE ?= "${SELECTED_OPTIMIZATION} ${CXXFLAGS} -DNDEBUG"
+OECMAKE_C_LINK_FLAGS ?= "${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS} ${CPPFLAGS} ${LDFLAGS}"
+OECMAKE_CXX_LINK_FLAGS ?= "${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS} ${CXXFLAGS} ${LDFLAGS}"
+
+OECMAKE_RPATH ?= ""
+OECMAKE_PERLNATIVE_DIR ??= ""
+OECMAKE_EXTRA_ROOT_PATH ?= ""
+
+tizen_cmake_do_generate_toolchain_file() {
+ cat > ${WORKDIR}/toolchain.cmake << EOF
+# CMake system name must be something like "Linux".
+# This is important for cross-compiling.
+set( CMAKE_SYSTEM_NAME `echo ${TARGET_OS} | sed -e 's/^./\u&/' -e 's/^\(Linux\).*/\1/'` )
+set( CMAKE_SYSTEM_PROCESSOR ${TARGET_ARCH} )
+set( CMAKE_C_COMPILER ${OECMAKE_C_COMPILER} )
+set( CMAKE_CXX_COMPILER ${OECMAKE_CXX_COMPILER} )
+set( CMAKE_C_FLAGS "${OECMAKE_C_FLAGS}" CACHE STRING "CFLAGS" )
+set( CMAKE_CXX_FLAGS "${OECMAKE_CXX_FLAGS}" CACHE STRING "CXXFLAGS" )
+set( CMAKE_C_FLAGS_RELEASE "${OECMAKE_C_FLAGS_RELEASE}" CACHE STRING "CFLAGS for release" )
+set( CMAKE_CXX_FLAGS_RELEASE "${OECMAKE_CXX_FLAGS_RELEASE}" CACHE STRING "CXXFLAGS for release" )
+set( CMAKE_C_LINK_FLAGS "${OECMAKE_C_LINK_FLAGS}" CACHE STRING "LDFLAGS" )
+set( CMAKE_CXX_LINK_FLAGS "${OECMAKE_CXX_LINK_FLAGS}" CACHE STRING "LDFLAGS" )
+
+# only search in the paths provided so cmake doesnt pick
+# up libraries and tools from the native build machine
+set( CMAKE_FIND_ROOT_PATH ${STAGING_DIR_HOST} ${STAGING_DIR_NATIVE} ${CROSS_DIR} ${OECMAKE_PERLNATIVE_DIR} ${OECMAKE_EXTRA_ROOT_PATH} ${EXTERNAL_TOOLCHAIN})
+set( CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY )
+set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY )
+set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY )
+set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY )
+
+# Use qt.conf settings
+set( ENV{QT_CONF_PATH} ${WORKDIR}/qt.conf )
+
+# We need to set the rpath to the correct directory as cmake does not provide any
+# directory as rpath by default
+set( CMAKE_INSTALL_RPATH ${OECMAKE_RPATH} )
+
+# Use native cmake modules
+set( CMAKE_MODULE_PATH ${STAGING_DATADIR}/cmake/Modules/ )
+
+# add for non /usr/lib libdir, e.g. /usr/lib64
+set( CMAKE_LIBRARY_PATH ${libdir} ${base_libdir})
+
+EOF
+}
+
+addtask generate_toolchain_file after do_patch before do_configure
+
+EXPORT_FUNCTIONS do_generate_toolchain_file
diff --git a/meta-application-manager/conf/layer.conf b/meta-application-manager/conf/layer.conf
new file mode 100644
index 0000000..d5b4184
--- /dev/null
+++ b/meta-application-manager/conf/layer.conf
@@ -0,0 +1,11 @@
+# We have a conf and classes directory, add to BBPATH
+BBPATH .= ":${LAYERDIR}"
+
+# We have a packages directory, add to BBFILES
+BBFILES := "${BBFILES} \
+ ${LAYERDIR}/recipes-*/*/*.bb \
+ ${LAYERDIR}/recipes-*/*/*.bbappend"
+
+BBFILE_COLLECTIONS += "meta-application-manager"
+BBFILE_PATTERN_meta-application-manager := "^${LAYERDIR}/"
+BBFILE_PRIORITY_meta-application-manager = "8"
diff --git a/meta-application-manager/recipes-application-framework/ail/ail-extraconf.inc b/meta-application-manager/recipes-application-framework/ail/ail-extraconf.inc
new file mode 100644
index 0000000..44fb613
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/ail/ail-extraconf.inc
@@ -0,0 +1,15 @@
+
+SRC_URI_append_class-native = " file://remove-dlog-for-native-build.patch"
+
+RDEPENDS_${PN}_remove_class-native = "systemd-native"
+DEPENDS_remove_class-native = "dlog-native"
+
+DEPENDS_class-target += "ail-native"
+DEPENDS_class-target += "libslp-db-util"
+DEPENDS_class-target += "xdgmime"
+DEPENDS_class-target += "vconf"
+
+
+FILES_${PN} += "${prefix}/dbspace"
+FILES_${PN} += "${prefix}/share/applications"
+FILES_${PN} += "${prefix}/bin/ail_initdb_user" \ No newline at end of file
diff --git a/meta-application-manager/recipes-application-framework/ail/ail.inc b/meta-application-manager/recipes-application-framework/ail/ail.inc
new file mode 100644
index 0000000..e1857cf
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/ail/ail.inc
@@ -0,0 +1,202 @@
+DESCRIPTION = "Application Information Library"
+HOMEPAGE = "http://nohomepage.org"
+SECTION = "Application Framework/Libraries"
+LICENSE = "Apache-2.0"
+PV = "0.2.80"
+
+SRC_URI = ""
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by ail
+# the PROVIDES rules is ignore "libail = 0.2.80-0"
+PROVIDES += "libail"
+RPROVIDES_ail += "libail"
+
+
+#PROVIDES by ail-dev
+PROVIDES += "ail-dev"
+
+
+RDEPENDS = ""
+#RDEPENDS of ail-dev (${PN}-dev)
+RDEPENDS_${PN}-dev += "tizen-platform-config"
+RDEPENDS_${PN}-dev += "libail"
+RDEPENDS_${PN}-dev += "smack"
+
+
+DEPENDS = ""
+#DEPENDS of ail
+inherit tizen_cmake
+DEPENDS += "tizen-platform-config"
+inherit pkgconfig
+DEPENDS += "dlog"
+DEPENDS += "smack"
+DEPENDS += "sqlite3"
+DEPENDS += "xdgmime"
+DEPENDS += "vconf"
+DEPENDS += "libslp-db-util"
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q
+ cp ${S}/packaging/ail.manifest .
+
+
+}
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+ CFLAGS="$CFLAGS -fpic"
+
+
+
+ cmake \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
+ -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
+ -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
+ -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
+ -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
+ -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
+ -DCMAKE_SKIP_RPATH:BOOL=ON \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
+ ${EXTRA_OECMAKE} . -DTZ_SYS_RW_DESKTOP_APP=${prefix}/share/applications \
+ -DBUILD_PKGTYPE=rpm
+
+ oe_runmake ${PARALLEL_MAKE}
+
+
+
+}
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+
+ oe_runmake \
+ DESTDIR=${D} \
+ INSTALL_ROOT=${D} \
+ BINDIR=${prefix}/bin \
+ install
+ rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+
+
+}
+
+pkg_postinst_${PN}() {
+ #!/bin/sh -e
+
+ ldconfig
+ # Create tizenglobalapp user needed for global installation
+ useradd -d $D${prefix}/apps -m tizenglobalapp -r -c "system user for common applications" -g root
+ #mkdir -p %TZ_SYS_RW_APP/.config/xwalk-service/applications
+ #cd %TZ_SYS_RW_APP/
+ #ln -s .config/xwalk-service/applications/
+ vconftool set -t string db/ail/ail_info "0" -f -s system::vconf_inhouse
+ vconftool set -t string db/menuscreen/desktop "0" -f -s system::vconf_inhouse
+ vconftool set -t string db/menu_widget/language "en_US.utf8" -f -s system::vconf_inhouse
+ chsmack -a User $D${prefix}/kdb/db/ail
+ chsmack -a User $D${prefix}/kdb/db/ail/ail_info
+ chsmack -a User $D${prefix}/kdb/db/menuscreen
+ chsmack -a User $D${prefix}/kdb/db/menuscreen/desktop
+ chsmack -a User $D${prefix}/kdb/db/menu_widget
+ chsmack -a User $D${prefix}/kdb/db/menu_widget/language
+ mkdir -p $D${prefix}/share/applications
+ mkdir -p $D${prefix}/share/applications
+ mkdir -p $D${prefix}/apps
+ mkdir -p $D${prefix}/dbspace
+ mkdir -p $D${prefix}/share/icons/default/small
+ chsmack -a '*' $D${prefix}/dbspace
+ chsmack -a '*' $D${prefix}/apps
+ chsmack -a '*' $D${prefix}/share/applications
+ chsmack -a '*' $D${prefix}/share/applications
+ chsmack -a '*' $D${prefix}/share/icons
+ chsmack -a '*' $D${prefix}/share/icons/default
+ chsmack -a '*' $D${prefix}/share/icons/default/small/
+ chmod g+w $D${prefix}/share/applications
+ chmod g+w $D${prefix}/share/applications
+ chown tizenglobalapp:root $D${prefix}/share/applications
+ chown tizenglobalapp:root $D${prefix}/share/applications
+ chown tizenglobalapp:root $D${prefix}/apps
+ chown tizenglobalapp:root $D${prefix}/dbspace
+ chown tizenglobalapp:root $D${prefix}/dbspace
+ chown tizenglobalapp:root -R $D${prefix}/share/icons
+ ail_createdb 2>/dev/null
+ ail_syncdb 2>/dev/null
+ chsmack -a '*' $D${prefix}/dbspace/.app_info.db*
+
+
+}
+
+pkg_postrm_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+ if [ $1 == 0 ]; then
+ rm -f $D${prefix}/dbspace/.app_info.db*
+ fi
+
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " ail "
+PACKAGES += " ail-dev "
+
+ail_files = ""
+ail_files += "${prefix}/bin/ail_createdb"
+ail_files += "${prefix}/bin/ail_createdb_user"
+ail_files += "${prefix}/bin/ail_syncdb"
+ail_files += "${prefix}/bin/ail_syncdb_user"
+ail_files += "${prefix}/bin/ail_initdb"
+ail_files += "${prefix}/bin/ail_initdb_user"
+ail_files += "${prefix}/bin/ail_fota"
+ail_files += "${prefix}/bin/ail_desktop"
+ail_files += "${prefix}/bin/ail_filter"
+ail_files += "${prefix}/bin/ail_list"
+ail_files += "${prefix}/bin/ail_package"
+ail_files += "${prefix}/share/install-info/*"
+ail_files += "${prefix}/lib/libail.so.0"
+ail_files += "${prefix}/lib/libail.so.0.1.0"
+MANIFESTFILES_${PN} = "ail.manifest"
+
+ail-dev_files = ""
+ail-dev_files += "${prefix}/include/ail.h"
+ail-dev_files += "${prefix}/lib/libail.so"
+ail-dev_files += "${prefix}/lib/pkgconfig/ail.pc"
+MANIFESTFILES_${PN}-dev = "ail.manifest"
+
+FILES_${PN} = "${ail_files}"
+FILES_${PN}-dev = "${ail-dev_files}"
+
+PKG_ail= "ail"
+PKG_ail-dev= "ail-dev"
+
+require ail-extraconf.inc
+
diff --git a/meta-application-manager/recipes-application-framework/ail/ail_git.bb b/meta-application-manager/recipes-application-framework/ail/ail_git.bb
new file mode 100644
index 0000000..2868128
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/ail/ail_git.bb
@@ -0,0 +1,10 @@
+require ail.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI += "git://review.tizen.org/platform/core/appfw/ail;tag=6de70f2ffa8664b4b04693e9505566b118dc139a;nobranch=1"
+
+BBCLASSEXTEND += " native "
+
diff --git a/meta-application-manager/recipes-application-framework/ail/files/remove-dlog-for-native-build.patch b/meta-application-manager/recipes-application-framework/ail/files/remove-dlog-for-native-build.patch
new file mode 100644
index 0000000..e82ec08
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/ail/files/remove-dlog-for-native-build.patch
@@ -0,0 +1,65 @@
+From a89241fbcf9ce188e59b7e55f833cd377356b19d Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?K=C3=A9vin=20THIERRY?= <kevin.thierry@open.eurogiciel.org>
+Date: Tue, 26 Aug 2014 11:21:52 +0200
+Subject: [PATCH] Remove dlog for native build
+
+---
+ CMakeLists.txt | 2 +-
+ initdb/CMakeLists.txt | 2 +-
+ src/ail_private.h | 2 +-
+ tool/CMakeLists.txt | 4 ++--
+ 4 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 2c3fafe..9adea33 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -33,7 +33,7 @@ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
+
+ INCLUDE(FindPkgConfig)
+
+-pkg_check_modules(LPKGS REQUIRED glib-2.0 sqlite3 dlog db-util xdgmime vconf libtzplatform-config libsmack)
++pkg_check_modules(LPKGS REQUIRED glib-2.0 sqlite3 db-util xdgmime vconf libtzplatform-config libsmack)
+ STRING(REPLACE ";" " " EXTRA_CFLAGS "${LPKGS_CFLAGS}")
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fvisibility=hidden")
+
+diff --git a/src/ail_private.h b/src/ail_private.h
+index efa2f66..28ed80c 100755
+--- a/src/ail_private.h
++++ b/src/ail_private.h
+@@ -36,7 +36,7 @@
+ #undef LOG_TAG
+ #define LOG_TAG "AIL"
+
+-#if 1
++#if 0
+ #include <dlog.h>
+ #define _E(fmt, arg...) LOGE("[%s,%d] "fmt,__FUNCTION__,__LINE__,##arg)
+ #define _D(fmt, arg...) LOGD("[%s,%d] "fmt,__FUNCTION__,__LINE__,##arg)
+diff --git a/tool/CMakeLists.txt b/tool/CMakeLists.txt
+index e898c7e..e0dd903 100755
+--- a/tool/CMakeLists.txt
++++ b/tool/CMakeLists.txt
+@@ -15,7 +15,7 @@ SET(FILTERSRCS src/ail_filter.c)
+ SET(PKG ail_package)
+ SET(PKGSRCS src/ail_package.c)
+
+-pkg_check_modules(INITDB_PKGS REQUIRED libsmack vconf dlog db-util sqlite3)
++pkg_check_modules(INITDB_PKGS REQUIRED libsmack vconf db-util sqlite3)
+ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
+ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src)
+
+
+
+diff --git a/ail.pc.in b/ail.pc.in
+index a267813..33cbc37 100644
+--- a/ail.pc.in
++++ b/ail.pc.in
+@@ -6,6 +6,6 @@ includedir=@INCLUDEDIR@
+ Name: ail
+ Description: Application Information Library
+ Version: @VERSION@
+-Requires: sqlite3 vconf dlog db-util
++Requires: sqlite3 vconf db-util
+ Libs: -L@LIBDIR@ -lail @PC_LIB@
+ Cflags: -I@INCLUDEDIR@
diff --git a/meta-application-manager/recipes-application-framework/app-checker/app-checker-extraconf.inc b/meta-application-manager/recipes-application-framework/app-checker/app-checker-extraconf.inc
new file mode 100644
index 0000000..d5fd0cd
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/app-checker/app-checker-extraconf.inc
@@ -0,0 +1,10 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/app-checker:"
+
+SRC_URI += "file://0001-yocto-Correct-libdl-linking-issue.patch"
+SRC_URI_append_class-native = " file://remove-dlog-for-native-build.patch"
+
+DEPENDS_remove_class-native = "dlog-native"
+
+export LDFLAGS_append_class-native = " -ldl"
+
+DEPENDS += "binutils-native" \ No newline at end of file
diff --git a/meta-application-manager/recipes-application-framework/app-checker/app-checker.inc b/meta-application-manager/recipes-application-framework/app-checker/app-checker.inc
new file mode 100644
index 0000000..441db99
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/app-checker/app-checker.inc
@@ -0,0 +1,179 @@
+DESCRIPTION = "App Checker"
+HOMEPAGE = "http://nohomepage.org"
+SECTION = "System/Libraries"
+LICENSE = "Apache-2.0"
+PV = "0.0.16"
+
+SRC_URI = ""
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by app-checker-server-dev
+PROVIDES += "app-checker-server-dev"
+
+
+#PROVIDES by app-checker-dev
+PROVIDES += "app-checker-dev"
+
+
+#PROVIDES by app-checker
+
+
+#PROVIDES by app-checker-server
+PROVIDES += "app-checker-server"
+
+
+RDEPENDS = ""
+#RDEPENDS of app-checker-server-dev (${PN}-server-dev)
+RDEPENDS_${PN}-server-dev += "app-checker-server"
+
+#RDEPENDS of app-checker-dev (${PN}-dev)
+RDEPENDS_${PN}-dev += "app-checker"
+
+#RDEPENDS of app-checker-server (${PN}-server)
+RDEPENDS_${PN}-server += "app-checker"
+
+
+DEPENDS = ""
+#DEPENDS of app-checker
+inherit tizen_cmake
+inherit pkgconfig
+DEPENDS += "dlog"
+DEPENDS += "glib-2.0"
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q
+ cp ${S}/packaging/app-checker.manifest .
+
+
+
+}
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+
+
+ cmake \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
+ -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
+ -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
+ -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
+ -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
+ -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
+ -DCMAKE_SKIP_RPATH:BOOL=ON \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
+ ${EXTRA_OECMAKE} .
+
+ make ${PARALLEL_MAKE}
+
+
+
+}
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+ rm -rf ${D}
+
+ oe_runmake \
+ DESTDIR=${D} \
+ INSTALL_ROOT=${D} \
+ BINDIR=${prefix}/bin \
+ install
+ rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+ mkdir -p ${D}${prefix}/lib/ac-plugins
+
+ mkdir -p ${D}/usr/share/license
+ cp LICENSE ${D}/usr/share/license/app-checker
+ cp LICENSE ${D}/usr/share/license/app-checker-devel
+ cp LICENSE ${D}/usr/share/license/app-checker-server
+ cp LICENSE ${D}/usr/share/license/app-checker-server-devel
+
+
+}
+
+pkg_postinst_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+pkg_postrm_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " app-checker-server-dev "
+PACKAGES += " app-checker-server "
+PACKAGES += " app-checker "
+PACKAGES += " app-checker-dev "
+
+app-checker-server-dev_files = ""
+app-checker-server-dev_files += "${prefix}/lib/libapp-checker-server.so"
+app-checker-server-dev_files += "${prefix}/lib/pkgconfig/app-checker-server.pc"
+app-checker-server-dev_files += "${prefix}/include/app-checker/app-checker-server.h"
+app-checker-server-dev_files += "/usr/share/license/app-checker-server-devel"
+MANIFESTFILES_${PN}-server-dev = "app-checker.manifest"
+
+app-checker-server_files = ""
+app-checker-server_files += "${prefix}/lib/libapp-checker-server.so.0"
+app-checker-server_files += "${prefix}/lib/libapp-checker-server.so.0.1.0"
+app-checker-server_files += "/usr/share/license/app-checker-server"
+MANIFESTFILES_${PN}-server = "app-checker.manifest"
+
+app-checker_files = ""
+app-checker_files += "${prefix}/lib/libapp-checker.so.0"
+app-checker_files += "${prefix}/lib/libapp-checker.so.0.1.0"
+app-checker_files += "${prefix}/lib/ac-plugins"
+app-checker_files += "/usr/share/license/app-checker"
+MANIFESTFILES_${PN} = "app-checker.manifest"
+
+app-checker-dev_files = ""
+app-checker-dev_files += "${prefix}/lib/libapp-checker.so"
+app-checker-dev_files += "${prefix}/lib/pkgconfig/app-checker.pc"
+app-checker-dev_files += "${prefix}/include/app-checker/app-checker.h"
+app-checker-dev_files += "/usr/share/license/app-checker-devel"
+MANIFESTFILES_${PN}-dev = "app-checker.manifest"
+
+FILES_${PN}-server-dev = "${app-checker-server-dev_files}"
+FILES_${PN}-server = "${app-checker-server_files}"
+FILES_${PN} = "${app-checker_files}"
+FILES_${PN}-dev = "${app-checker-dev_files}"
+
+PKG_app-checker-server-dev= "app-checker-server-dev"
+PKG_app-checker-server= "app-checker-server"
+PKG_app-checker= "app-checker"
+PKG_app-checker-dev= "app-checker-dev"
+
+require app-checker-extraconf.inc
+
diff --git a/meta-application-manager/recipes-application-framework/app-checker/app-checker/0001-yocto-Correct-libdl-linking-issue.patch b/meta-application-manager/recipes-application-framework/app-checker/app-checker/0001-yocto-Correct-libdl-linking-issue.patch
new file mode 100644
index 0000000..09f7f63
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/app-checker/app-checker/0001-yocto-Correct-libdl-linking-issue.patch
@@ -0,0 +1,30 @@
+From 08d9a48423ff699e20eda48e07d78387f5aecb73 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?K=C3=A9vin=20THIERRY?= <kevin.thierry@open.eurogiciel.org>
+Date: Mon, 7 Jul 2014 14:01:46 +0200
+Subject: [PATCH] [yocto] Correct libdl linking issue
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Change-Id: Icedff39ddd6e458d0e567a519ba53ba51c5683b9
+Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 61416f8..a476415 100755
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -24,7 +24,7 @@ INCLUDE(FindPkgConfig)
+ pkg_check_modules(pkgs REQUIRED dlog glib-2.0)
+ pkg_check_modules(libpkgs REQUIRED dlog glib-2.0)
+
+-FIND_LIBRARY(LIB_DL dl)
++FIND_LIBRARY(LIB_DL NAMES dl libdl.so.2)
+
+ FOREACH(flag ${libpkgs_CFLAGS})
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+--
+1.8.1.4
+
diff --git a/meta-application-manager/recipes-application-framework/app-checker/app-checker/remove-dlog-for-native-build.patch b/meta-application-manager/recipes-application-framework/app-checker/app-checker/remove-dlog-for-native-build.patch
new file mode 100644
index 0000000..d258faf
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/app-checker/app-checker/remove-dlog-for-native-build.patch
@@ -0,0 +1,49 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 149d0a6..d77d931 100755
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -21,10 +21,9 @@ MESSAGE("Build type: ${CMAKE_BUILD_TYPE}")
+ # Set required packages
+ INCLUDE(FindPkgConfig)
+
+-pkg_check_modules(pkgs REQUIRED dlog glib-2.0)
+-pkg_check_modules(libpkgs REQUIRED dlog glib-2.0)
++pkg_check_modules(pkgs REQUIRED glib-2.0)
++pkg_check_modules(libpkgs REQUIRED glib-2.0)
+
+-FIND_LIBRARY(LIB_DL NAMES dl libdl.so.2)
+
+ FOREACH(flag ${libpkgs_CFLAGS})
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+@@ -79,7 +78,7 @@ add_library(${DAEMON_NAME} SHARED
+ src/ac_sock.c
+ )
+
+-target_link_libraries(${DAEMON_NAME} ${pkgs_LDFLAGS} ${LIB_DL})
++target_link_libraries(${DAEMON_NAME} ${pkgs_LDFLAGS} )
+ SET_TARGET_PROPERTIES(${DAEMON_NAME} PROPERTIES SOVERSION ${VERSION_MAJOR})
+ SET_TARGET_PROPERTIES(${DAEMON_NAME} PROPERTIES VERSION ${VERSION})
+
+diff --git a/include/internal.h b/include/internal.h
+index 731263d..9bdc438 100755
+--- a/include/internal.h
++++ b/include/internal.h
+@@ -25,7 +25,6 @@
+
+ #include <unistd.h>
+ #include <ctype.h>
+-#include <dlog.h>
+
+ #undef LOG_TAG
+ #define LOG_TAG "APP_CHECKER"
+@@ -39,8 +38,8 @@ struct ac_data {
+ int pid;
+ };
+
+-#define _E(fmt, arg...) LOGE(fmt,##arg)
+-#define _D(fmt, arg...) LOGD(fmt,##arg)
++#define _E(fmt, arg...) //LOGE(fmt,##arg)
++#define _D(fmt, arg...) //LOGD(fmt,##arg)
+
+ #define retvm_if(expr, val, fmt, arg...) do { \
+ if(expr) { \
diff --git a/meta-application-manager/recipes-application-framework/app-checker/app-checker_git.bb b/meta-application-manager/recipes-application-framework/app-checker/app-checker_git.bb
new file mode 100644
index 0000000..22b4790
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/app-checker/app-checker_git.bb
@@ -0,0 +1,10 @@
+require app-checker.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI += "git://review.tizen.org/platform/core/appfw/app-checker;tag=70200243a1e419ff81a30fa8a436571422a33a3d;nobranch=1"
+
+BBCLASSEXTEND += " native "
+
diff --git a/meta-application-manager/recipes-application-framework/app-core/app-core-extraconf.inc b/meta-application-manager/recipes-application-framework/app-core/app-core-extraconf.inc
new file mode 100644
index 0000000..38efefe
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/app-core/app-core-extraconf.inc
@@ -0,0 +1,8 @@
+app-core-common_files += "app-core.manifest"
+app-core-common_files += "/lib/libappcore-common.so.*"
+app-core-common_files += "/lib/systemd/user/core-efl.target"
+app-core-common_files += "/lib/systemd/user/core-efl.target.wants/"
+app-core-common_files += "/usr/share/license/app-core"
+
+SRC_URI_append_class-native = " file://remove-dlog-for-native-build.patch"
+DEPENDS_remove_class-native = "dlog-native" \ No newline at end of file
diff --git a/meta-application-manager/recipes-application-framework/app-core/app-core.inc b/meta-application-manager/recipes-application-framework/app-core/app-core.inc
new file mode 100644
index 0000000..8762a2a
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/app-core/app-core.inc
@@ -0,0 +1,209 @@
+DESCRIPTION = "Application basic"
+HOMEPAGE = "http://nohomepage.org"
+SECTION = "Application Framework/Libraries"
+LICENSE = "Apache-2.0"
+PV = "1.2"
+
+SRC_URI = " file://0001-hack-window-hide.patch "
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by app-core-efl
+PROVIDES += "app-core-efl"
+
+
+#PROVIDES by app-core-template
+PROVIDES += "app-core-template"
+
+
+#PROVIDES by app-core
+
+
+#PROVIDES by app-core-common-dev
+PROVIDES += "app-core-common-dev"
+
+
+#PROVIDES by app-core-common
+PROVIDES += "app-core-common"
+
+
+#PROVIDES by app-core-efl-dev
+PROVIDES += "app-core-efl-dev"
+
+
+RDEPENDS = ""
+#RDEPENDS of app-core-efl (${PN}-efl)
+RDEPENDS_${PN}-efl += "glibc"
+
+#RDEPENDS of app-core-common-dev (${PN}-common-dev)
+RDEPENDS_${PN}-common-dev += "elementary"
+RDEPENDS_${PN}-common-dev += "sensor"
+RDEPENDS_${PN}-common-dev += "app-core-common"
+RDEPENDS_${PN}-common-dev += "vconf"
+RDEPENDS_${PN}-common-dev += "aul"
+
+#RDEPENDS of app-core-common (${PN}-common)
+RDEPENDS_${PN}-common += "glibc"
+
+#RDEPENDS of app-core-efl-dev (${PN}-efl-dev)
+RDEPENDS_${PN}-efl-dev += "app-core-efl"
+RDEPENDS_${PN}-efl-dev += "app-core-common-dev"
+
+
+DEPENDS = ""
+#DEPENDS of app-core
+DEPENDS += "librua"
+inherit tizen_cmake
+DEPENDS += "tizen-platform-config"
+DEPENDS += "aul"
+DEPENDS += "dlog"
+inherit pkgconfig
+DEPENDS += "elementary"
+DEPENDS += "ecore"
+DEPENDS += "glib-2.0"
+DEPENDS += "sensor"
+DEPENDS += "vconf"
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q
+ cp ${S}/packaging/app-core.manifest .
+
+
+
+}
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+
+
+ cmake \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
+ -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
+ -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
+ -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
+ -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
+ -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
+ -DCMAKE_SKIP_RPATH:BOOL=ON \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
+ ${EXTRA_OECMAKE} . \
+ -Dwith_wayland=TRUE\
+ -DENABLE_GTK=OFF
+
+ make ${PARALLEL_MAKE}
+
+
+
+
+}
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+ rm -rf ${D}
+
+ oe_runmake \
+ DESTDIR=${D} \
+ INSTALL_ROOT=${D} \
+ BINDIR=${prefix}/bin \
+ install
+ rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+ install -d ${D}${prefix}/lib/systemd/user/core-efl.target.wants
+ install -m0644 ${S}/packaging/core-efl-wayland.target ${D}${prefix}/lib/systemd/user/core-efl.target
+
+
+
+}
+
+pkg_postinst_app-core-common() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+pkg_postinst_app-core-efl() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+pkg_postrm_app-core-efl() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+pkg_postrm_app-core-common() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " app-core-efl-dev "
+PACKAGES += " app-core-efl "
+PACKAGES += " app-core-common "
+PACKAGES += " app-core-common-dev "
+
+app-core-efl-dev_files = ""
+app-core-efl-dev_files += "${prefix}/include/appcore/appcore-efl.h"
+app-core-efl-dev_files += "${prefix}/lib/libappcore-efl.so"
+app-core-efl-dev_files += "${prefix}/lib/pkgconfig/appcore-efl.pc"
+MANIFESTFILES_${PN}-efl-dev = "app-core.manifest"
+
+app-core-efl_files = ""
+app-core-efl_files += "${prefix}/lib/libappcore-efl.so.*"
+MANIFESTFILES_${PN}-efl = "app-core.manifest"
+
+app-core-common_files = ""
+app-core-common_files += "${prefix}/lib/libappcore-common.so.*"
+app-core-common_files += "${prefix}/lib/systemd/user/core-efl.target"
+app-core-common_files += "${prefix}/lib/systemd/user/core-efl.target.wants/"
+MANIFESTFILES_${PN}-common = "app-core.manifest"
+
+app-core-common-dev_files = ""
+app-core-common-dev_files += "${prefix}/lib/libappcore-common.so"
+app-core-common-dev_files += "${prefix}/lib/pkgconfig/appcore-common.pc"
+app-core-common-dev_files += "${prefix}/include/appcore/appcore-common.h"
+app-core-common-dev_files += "${prefix}/include/SLP_Appcore_PG.h"
+MANIFESTFILES_${PN}-common-dev = "app-core.manifest"
+
+FILES_${PN}-efl-dev = "${app-core-efl-dev_files}"
+FILES_${PN}-efl = "${app-core-efl_files}"
+FILES_${PN}-common = "${app-core-common_files}"
+FILES_${PN}-common-dev = "${app-core-common-dev_files}"
+
+PKG_app-core-efl-dev= "app-core-efl-dev"
+PKG_app-core-efl= "app-core-efl"
+PKG_app-core-common= "app-core-common"
+PKG_app-core-common-dev= "app-core-common-dev"
+
+require app-core-extraconf.inc
+
diff --git a/meta-application-manager/recipes-application-framework/app-core/app-core_git.bb b/meta-application-manager/recipes-application-framework/app-core/app-core_git.bb
new file mode 100644
index 0000000..ba7ec7f
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/app-core/app-core_git.bb
@@ -0,0 +1,10 @@
+require app-core.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI += "git://review.tizen.org/platform/core/appfw/app-core;tag=d86d0066b93cf402badc408de591e54d6db6c164;nobranch=1"
+
+BBCLASSEXTEND += " native "
+
diff --git a/meta-application-manager/recipes-application-framework/app-core/files/0001-hack-window-hide.patch b/meta-application-manager/recipes-application-framework/app-core/files/0001-hack-window-hide.patch
new file mode 100644
index 0000000..69e904d
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/app-core/files/0001-hack-window-hide.patch
@@ -0,0 +1,88 @@
+--- a/src/appcore-efl.c
++++ b/src/appcore-efl.c
+@@ -610,7 +610,7 @@
+ static Eina_Bool __show_cb(void *data, int type, void *event)
+ {
+ #ifdef WAYLAND
+- Ecore_Wl_Event_Window_Activate *ev;
++ /*Ecore_Wl_Event_Window_Activate *ev;
+
+ ev = event;
+
+@@ -618,14 +618,14 @@
+ {
+ // This is child window. Skip!!!
+ return ECORE_CALLBACK_PASS_ON;
+- }
++ }*/
+
+- _DBG("[EVENT_TEST][EVENT] GET SHOW EVENT!!!. WIN:%x\n", ev->win);
++ _DBG("[EVENT_TEST][EVENT] GET SHOW EVENT!!!.\n");
+
+- if (!__exist_win((unsigned int)ev->win))
++ /*if (!__exist_win((unsigned int)ev->win))
+ __add_win((unsigned int)ev->win);
+ else
+- __update_win((unsigned int)ev->win, FALSE);
++ __update_win((unsigned int)ev->win, FALSE);*/
+
+ __visibility_cb(data, type, event);
+ #else
+@@ -661,14 +661,14 @@
+ static Eina_Bool __hide_cb(void *data, int type, void *event)
+ {
+ #ifdef WAYLAND
+- Ecore_Wl_Event_Window_Deactivate *ev;
++ //Ecore_Wl_Event_Window_Deactivate *ev;
+ int bvisibility = 0;
+
+- ev = event;
++ //ev = event;
+
+- _DBG("[EVENT_TEST][EVENT] GET HIDE EVENT!!!. WIN:%x\n", ev->win);
++ _DBG("[EVENT_TEST][EVENT] GET HIDE EVENT!!!.\n");
+
+- if (__exist_win((unsigned int)ev->win)) {
++ /*if (__exist_win((unsigned int)ev->win)) {
+ __delete_win((unsigned int)ev->win);
+
+ bvisibility = __check_visible();
+@@ -677,7 +677,7 @@
+ b_active = 0;
+ __do_app(AE_PAUSE, data, NULL);
+ }
+- }
++ }*/
+ #else
+ Ecore_X_Event_Window_Hide *ev;
+ int bvisibility = 0;
+@@ -704,12 +704,12 @@
+ static Eina_Bool __visibility_cb(void *data, int type, void *event)
+ {
+ #ifdef WAYLAND
+- Ecore_Wl_Event_Window_Activate *ev;
++ //Ecore_Wl_Event_Window_Activate *ev;
+ int bvisibility = 0;
+
+- ev = event;
++ //ev = event;
+
+- __update_win((unsigned int)ev->win, ev->fobscured);
++ //__update_win((unsigned int)ev->win, ev->fobscured);
+ #else
+ Ecore_X_Event_Window_Visibility_Change *ev;
+ int bvisibility = 0;
+@@ -777,10 +777,10 @@
+ {
+ _ret_if(ui == NULL);
+ #ifdef WAYLAND
+- ui->hshow =
++ /*ui->hshow =
+ ecore_event_handler_add(ECORE_WL_EVENT_WINDOW_ACTIVATE, __show_cb, ui);
+ ui->hhide =
+- ecore_event_handler_add(ECORE_WL_EVENT_WINDOW_DEACTIVATE, __hide_cb, ui);
++ ecore_event_handler_add(ECORE_WL_EVENT_WINDOW_DEACTIVATE, __hide_cb, ui);*/
+ #else
+ atom_parent = ecore_x_atom_get("_E_PARENT_BORDER_WINDOW");
+ if (!atom_parent)
+
diff --git a/meta-application-manager/recipes-application-framework/app-core/files/remove-dlog-for-native-build.patch b/meta-application-manager/recipes-application-framework/app-core/files/remove-dlog-for-native-build.patch
new file mode 100644
index 0000000..0199c60
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/app-core/files/remove-dlog-for-native-build.patch
@@ -0,0 +1,326 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index fd053b7..2403d3d 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -26,17 +26,14 @@ SET(APPCORE_COMMON "appcore-common")
+ SET(SRCS_common src/appcore.c src/appcore-i18n.c src/appcore-measure.c src/appcore-rotation.c)
+
+ IF (with_wayland)
+- ADD_DEFINITIONS("-DWAYLAND")
+ ENDIF (with_wayland)
+ IF (with_x11)
+- ADD_DEFINITIONS("-DX11")
+- SET(SRCS_common ${SRCS_common} src/appcore-X.c)
+ ENDIF (with_wayland)
+
+ SET(HEADERS_common appcore-common.h)
+
+ INCLUDE(FindPkgConfig)
+-SET(APPCORE_PKG_CHECK_MODULES "vconf sensor aul dlog libtzplatform-config ecore")
++SET(APPCORE_PKG_CHECK_MODULES "vconf sensor aul libtzplatform-config ecore")
+ IF (with_x11)
+ SET(APPCORE_PKG_CHECK_MODULES "${APPCORE_PKG_CHECK_MODULES} x11 ecore-x")
+ ENDIF (with_x11)
+@@ -75,7 +72,7 @@ SET(SRCS_efl src/appcore-efl.c)
+ SET(HEADERS_efl appcore-efl.h)
+
+ INCLUDE(FindPkgConfig)
+-SET(APPCORE_PKG_CHECK_MODULES2 "elementary dlog ecore gobject-2.0 glib-2.0 aul")
++SET(APPCORE_PKG_CHECK_MODULES2 "elementary ecore gobject-2.0 glib-2.0 aul")
+ IF (with_x11)
+ SET(APPCORE_PKG_CHECK_MODULES2 "${APPCORE_PKG_CHECK_MODULES2} ecore-x")
+ ENDIF (with_x11)
+diff --git a/include/appcore-internal.h b/include/appcore-internal.h
+index 038e2dc..8d8bcab 100755
+--- a/include/appcore-internal.h
++++ b/include/appcore-internal.h
+@@ -27,7 +27,7 @@
+ #define LOG_TAG "APP_CORE"
+
+ #include <stdio.h>
+-#include <dlog.h>
++
+ #include "appcore-common.h"
+
+
+diff --git a/src/appcore-efl.c b/src/appcore-efl.c
+index 9ef5f96..9b61ee0 100644
+--- a/src/appcore-efl.c
++++ b/src/appcore-efl.c
+@@ -369,13 +369,13 @@ static void __do_app(enum app_event event, void *data, bundle * b)
+ switch (event) {
+ case AE_RESET:
+ _DBG("[APP %d] RESET", _pid);
+- LOG(LOG_DEBUG, "LAUNCH", "[%s:Application:reset:start]",
+- ui->name);
++ //LOG(LOG_DEBUG, "LAUNCH", "[%s:Application:reset:start]",
++ // ui->name);
+ if (ui->ops->reset)
+ r = ui->ops->reset(b, ui->ops->data);
+ ui->state = AS_RUNNING;
+- LOG(LOG_DEBUG, "LAUNCH", "[%s:Application:reset:done]",
+- ui->name);
++ //LOG(LOG_DEBUG, "LAUNCH", "[%s:Application:reset:done]",
++ // ui->name);
+ break;
+ case AE_PAUSE:
+ if (ui->state == AS_RUNNING) {
+@@ -392,8 +392,8 @@ static void __do_app(enum app_event event, void *data, bundle * b)
+ _inform_backgrd();
+ break;
+ case AE_RESUME:
+- LOG(LOG_DEBUG, "LAUNCH", "[%s:Application:resume:start]",
+- ui->name);
++ //LOG(LOG_DEBUG, "LAUNCH", "[%s:Application:resume:start]",
++ // ui->name);
+ if (ui->state == AS_PAUSED || tmp_val == 1) {
+ _DBG("[APP %d] RESUME", _pid);
+ if (ui->ops->resume)
+@@ -403,10 +403,10 @@ static void __do_app(enum app_event event, void *data, bundle * b)
+ }
+ /*TODO : rotation start*/
+ //r = appcore_resume_rotation_cb();
+- LOG(LOG_DEBUG, "LAUNCH", "[%s:Application:resume:done]",
+- ui->name);
+- LOG(LOG_DEBUG, "LAUNCH", "[%s:Application:Launching:done]",
+- ui->name);
++ //LOG(LOG_DEBUG, "LAUNCH", "[%s:Application:resume:done]",
++ // ui->name);
++ //LOG(LOG_DEBUG, "LAUNCH", "[%s:Application:Launching:done]",
++ // ui->name);
+ _inform_foregrd();
+
+ break;
+@@ -609,131 +609,17 @@ Ecore_X_Atom atom_parent;
+
+ static Eina_Bool __show_cb(void *data, int type, void *event)
+ {
+-#ifdef WAYLAND
+- Ecore_Wl_Event_Window_Activate *ev;
+-
+- ev = event;
+-
+- if (ev->parent_win != 0)
+- {
+- // This is child window. Skip!!!
+- return ECORE_CALLBACK_PASS_ON;
+- }
+-
+- _DBG("[EVENT_TEST][EVENT] GET SHOW EVENT!!!. WIN:%x\n", ev->win);
+-
+- if (!__exist_win((unsigned int)ev->win))
+- __add_win((unsigned int)ev->win);
+- else
+- __update_win((unsigned int)ev->win, FALSE);
+-
+- __visibility_cb(data, type, event);
+-#else
+- Ecore_X_Event_Window_Show *ev;
+- int ret;
+- Ecore_X_Window parent;
+-
+- ev = event;
+-
+- ret = ecore_x_window_prop_window_get(ev->win, atom_parent, &parent, 1);
+- if (ret != 1)
+- {
+- // This is child window. Skip!!!
+- return ECORE_CALLBACK_PASS_ON;
+- }
+-
+- _DBG("[EVENT_TEST][EVENT] GET SHOW EVENT!!!. WIN:%x\n", ev->win);
+-
+- if (!__exist_win((unsigned int)ev->win)) {
+- /* WM_ROTATE */
+- if ((priv.wm_rot_supported) && (1 == priv.rot_started)) {
+- __set_wm_rotation_support(ev->win, 1);
+- }
+- __add_win((unsigned int)ev->win);
+- }
+- else
+- __update_win((unsigned int)ev->win, FALSE);
+-#endif
+-
+ return ECORE_CALLBACK_RENEW;
+ }
+
+ static Eina_Bool __hide_cb(void *data, int type, void *event)
+ {
+-#ifdef WAYLAND
+- Ecore_Wl_Event_Window_Deactivate *ev;
+- int bvisibility = 0;
+-
+- ev = event;
+-
+- _DBG("[EVENT_TEST][EVENT] GET HIDE EVENT!!!. WIN:%x\n", ev->win);
+-
+- if (__exist_win((unsigned int)ev->win)) {
+- __delete_win((unsigned int)ev->win);
+-
+- bvisibility = __check_visible();
+- if (!bvisibility && b_active == 1) {
+- _DBG(" Go to Pasue state \n");
+- b_active = 0;
+- __do_app(AE_PAUSE, data, NULL);
+- }
+- }
+-#else
+- Ecore_X_Event_Window_Hide *ev;
+- int bvisibility = 0;
+-
+- ev = event;
+-
+- _DBG("[EVENT_TEST][EVENT] GET HIDE EVENT!!!. WIN:%x\n", ev->win);
+-
+- if (__exist_win((unsigned int)ev->win)) {
+- __delete_win((unsigned int)ev->win);
+-
+- bvisibility = __check_visible();
+- if (!bvisibility && b_active == 1) {
+- _DBG(" Go to Pasue state \n");
+- b_active = 0;
+- __do_app(AE_PAUSE, data, NULL);
+- }
+- }
+-#endif
+-
+ return ECORE_CALLBACK_RENEW;
+ }
+
+ static Eina_Bool __visibility_cb(void *data, int type, void *event)
+ {
+-#ifdef WAYLAND
+- Ecore_Wl_Event_Window_Activate *ev;
+- int bvisibility = 0;
+-
+- ev = event;
+-
+- __update_win((unsigned int)ev->win, ev->fobscured);
+-#else
+- Ecore_X_Event_Window_Visibility_Change *ev;
+- int bvisibility = 0;
+-
+- ev = event;
+-
+- __update_win((unsigned int)ev->win, ev->fully_obscured);
+-#endif
+- bvisibility = __check_visible();
+-
+- if (bvisibility && b_active == 0) {
+- _DBG(" Go to Resume state\n");
+- b_active = 1;
+- __do_app(AE_RESUME, data, NULL);
+-
+- } else if (!bvisibility && b_active == 1) {
+- _DBG(" Go to Pasue state \n");
+- b_active = 0;
+- __do_app(AE_PAUSE, data, NULL);
+- } else
+- _DBG(" No change state \n");
+-
+ return ECORE_CALLBACK_RENEW;
+-
+ }
+
+ #ifdef X11
+@@ -776,35 +662,7 @@ static Eina_Bool __cmsg_cb(void *data, int type, void *event)
+ static void __add_climsg_cb(struct ui_priv *ui)
+ {
+ _ret_if(ui == NULL);
+-#ifdef WAYLAND
+- ui->hshow =
+- ecore_event_handler_add(ECORE_WL_EVENT_WINDOW_ACTIVATE, __show_cb, ui);
+- ui->hhide =
+- ecore_event_handler_add(ECORE_WL_EVENT_WINDOW_DEACTIVATE, __hide_cb, ui);
+-#else
+- atom_parent = ecore_x_atom_get("_E_PARENT_BORDER_WINDOW");
+- if (!atom_parent)
+- {
+- // Do Error Handling
+- }
+-
+- ui->hshow =
+- ecore_event_handler_add(ECORE_X_EVENT_WINDOW_SHOW, __show_cb, ui);
+- ui->hhide =
+- ecore_event_handler_add(ECORE_X_EVENT_WINDOW_HIDE, __hide_cb, ui);
+- ui->hvchange =
+- ecore_event_handler_add(ECORE_X_EVENT_WINDOW_VISIBILITY_CHANGE,
+- __visibility_cb, ui);
+
+- /* Add client message callback for WM_ROTATE */
+- if(!__check_wm_rotation_support())
+- {
+- ui->hcmsg =
+- ecore_event_handler_add(ECORE_X_EVENT_CLIENT_MESSAGE, __cmsg_cb, ui);
+- ui->wm_rot_supported = 1;
+- appcore_set_wm_rotation(&wm_rotate);
+- }
+-#endif
+ }
+
+ static int __before_loop(struct ui_priv *ui, int *argc, char ***argv)
+@@ -848,7 +706,7 @@ static int __before_loop(struct ui_priv *ui, int *argc, char ***argv)
+ r = appcore_init(ui->name, &efl_ops, *argc, *argv);
+ _retv_if(r == -1, -1);
+
+- LOG(LOG_DEBUG, "LAUNCH", "[%s:Platform:appcore_init:done]", ui->name);
++ //LOG(LOG_DEBUG, "LAUNCH", "[%s:Platform:appcore_init:done]", ui->name);
+ if (ui->ops && ui->ops->create) {
+ r = ui->ops->create(ui->ops->data);
+ if (r == -1) {
+@@ -857,8 +715,8 @@ static int __before_loop(struct ui_priv *ui, int *argc, char ***argv)
+ errno = ECANCELED;
+ return -1;
+ }
+- LOG(LOG_DEBUG, "LAUNCH", "[%s:Application:create:done]",
+- ui->name);
++ //LOG(LOG_DEBUG, "LAUNCH", "[%s:Application:create:done]",
++ // ui->name);
+ }
+ ui->state = AS_CREATED;
+
+@@ -1014,7 +872,7 @@ EXPORT_API int appcore_efl_main(const char *name, int *argc, char ***argv,
+ {
+ int r;
+
+- LOG(LOG_DEBUG, "LAUNCH", "[%s:Application:main:done]", name);
++ //LOG(LOG_DEBUG, "LAUNCH", "[%s:Application:main:done]", name);
+
+ r = __set_data(&priv, name, ops);
+ _retv_if(r == -1, -1);
+diff --git a/appcore-common-wayland.pc.in b/appcore-common-wayland.pc.in
+index 1b9e47d..82df9b0 100644
+--- a/appcore-common-wayland.pc.in
++++ b/appcore-common-wayland.pc.in
+@@ -8,6 +8,6 @@ includedir=@INCLUDEDIR@
+ Name: app-core-common
+ Description: SAMSUNG Linux platform application library
+ Version: @VERSION@
+-Requires: sensor vconf aul dlog
++Requires: sensor vconf aul
+ Libs: -L${libdir} -lappcore-common
+ Cflags: -I${includedir} -I${includedir}/appcore
+diff --git a/appcore-common-x.pc.in b/appcore-common-x.pc.in
+index f9b1519..b51804b 100644
+--- a/appcore-common-x.pc.in
++++ b/appcore-common-x.pc.in
+@@ -8,6 +8,6 @@ includedir=@INCLUDEDIR@
+ Name: app-core-common
+ Description: SAMSUNG Linux platform application library
+ Version: @VERSION@
+-Requires: sensor vconf aul dlog x11
++Requires: sensor vconf aul x11
+ Libs: -L${libdir} -lappcore-common
+ Cflags: -I${includedir} -I${includedir}/appcore
+diff --git a/appcore-efl.pc.in b/appcore-efl.pc.in
+index 741428e..d6c2526 100644
+--- a/appcore-efl.pc.in
++++ b/appcore-efl.pc.in
+@@ -8,6 +8,6 @@ includedir=@INCLUDEDIR@
+ Name: app-core-efl
+ Description: SAMSUNG Linux platform efl application library
+ Version: @VERSION@
+-Requires: elementary appcore-common dlog
++Requires: elementary appcore-common
+ Libs: -L${libdir} -lappcore-efl
+ Cflags: -I${includedir} -I${includedir}/appcore
diff --git a/meta-application-manager/recipes-application-framework/app-svc/app-svc-extraconf.inc b/meta-application-manager/recipes-application-framework/app-svc/app-svc-extraconf.inc
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/app-svc/app-svc-extraconf.inc
diff --git a/meta-application-manager/recipes-application-framework/app-svc/app-svc.inc b/meta-application-manager/recipes-application-framework/app-svc/app-svc.inc
new file mode 100644
index 0000000..4171e23
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/app-svc/app-svc.inc
@@ -0,0 +1,157 @@
+DESCRIPTION = "Application Service"
+HOMEPAGE = "http://nohomepage.org"
+SECTION = "Application Framework/Service"
+LICENSE = "Apache-2.0"
+PV = "0.1.53"
+
+SRC_URI = ""
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by app-svc
+
+
+#PROVIDES by app-svc-dev
+PROVIDES += "app-svc-dev"
+
+
+RDEPENDS = ""
+#RDEPENDS of app-svc (${PN})
+RDEPENDS_${PN} += "glibc"
+
+#RDEPENDS of app-svc-dev (${PN}-dev)
+RDEPENDS_${PN}-dev += "app-svc"
+
+
+DEPENDS = ""
+#DEPENDS of app-svc
+DEPENDS += "pkgmgr-info"
+DEPENDS += "libsoup-2.4"
+inherit tizen_cmake
+DEPENDS += "iniparser"
+DEPENDS += "tizen-platform-config"
+inherit pkgconfig
+DEPENDS += "dlog"
+DEPENDS += "aul"
+DEPENDS += "xdgmime"
+DEPENDS += "ail"
+DEPENDS += "bundle"
+DEPENDS += "sqlite3"
+DEPENDS += "ecore"
+DEPENDS += "libprivilege-control"
+DEPENDS += "glib-2.0"
+DEPENDS += "dbus-glib"
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q
+ sed -i ${S}/packaging/app-svc.manifest -e "s|TZ_SYS_DB|${prefix}/dbspace|g"
+ cp ${S}/packaging/app-svc.manifest .
+
+
+}
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+
+ cmake \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
+ -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
+ -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
+ -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
+ -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
+ -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
+ -DCMAKE_SKIP_RPATH:BOOL=ON \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
+ ${EXTRA_OECMAKE} . \
+ -Dwith_wayland=TRUE
+
+ make ${PARALLEL_MAKE}
+
+
+
+}
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+
+ oe_runmake \
+ DESTDIR=${D} \
+ INSTALL_ROOT=${D} \
+ BINDIR=${prefix}/bin \
+ install
+ rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+
+ # Create database
+ mkdir -p ${D}${prefix}/dbspace
+ sqlite3 ${D}${prefix}/dbspace/.appsvc.db < data/appsvc_db.sql
+
+
+}
+
+pkg_postinst_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+pkg_postrm_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " app-svc "
+PACKAGES += " app-svc-dev "
+
+app-svc_files = ""
+app-svc_files += "%verify(not md5 mtime size) %attr(664,root,users) ${prefix}/dbspace/.appsvc.db"
+app-svc_files += "%verify(not md5 mtime size) %attr(664,root,users) ${prefix}/dbspace/.appsvc.db-journal"
+app-svc_files += "${prefix}/bin/appsvc_test"
+app-svc_files += "${prefix}/lib/libappsvc.so.0"
+app-svc_files += "${prefix}/lib/libappsvc.so.0.1.0"
+MANIFESTFILES_${PN} = "app-svc.manifest"
+
+app-svc-dev_files = ""
+app-svc-dev_files += "${prefix}/lib/pkgconfig/appsvc.pc"
+app-svc-dev_files += "${prefix}/lib/libappsvc.so"
+app-svc-dev_files += "${prefix}/include/appsvc/appsvc.h"
+MANIFESTFILES_${PN}-dev = "app-svc.manifest"
+
+FILES_${PN} = "${app-svc_files}"
+FILES_${PN}-dev = "${app-svc-dev_files}"
+
+PKG_app-svc= "app-svc"
+PKG_app-svc-dev= "app-svc-dev"
+
+require app-svc-extraconf.inc
+
diff --git a/meta-application-manager/recipes-application-framework/app-svc/app-svc_git.bb b/meta-application-manager/recipes-application-framework/app-svc/app-svc_git.bb
new file mode 100644
index 0000000..66651b1
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/app-svc/app-svc_git.bb
@@ -0,0 +1,10 @@
+require app-svc.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI += "git://review.tizen.org/platform/core/appfw/app-svc;tag=859ec161b49125408a7c74cacc29e78ad27d9a3c;nobranch=1"
+
+BBCLASSEXTEND += " native "
+
diff --git a/meta-application-manager/recipes-application-framework/aul/aul-extraconf.inc b/meta-application-manager/recipes-application-framework/aul/aul-extraconf.inc
new file mode 100644
index 0000000..65d4b2a
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/aul/aul-extraconf.inc
@@ -0,0 +1,30 @@
+do_prep_append() {
+ sed -i 's!/usr/bin/mkdir -p!/bin/mkdir -p!g' ${S}/packaging/ac.service
+ # preload_list.txt and preexec_list.txt are generated from .in files so they are located in the build directory instead of the source one
+ sed -i 's@INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/legacy/preload_list.txt DESTINATION /usr/share/aul )@INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/legacy/preload_list.txt DESTINATION /usr/share/aul )@' ${S}/CMakeLists.txt
+ sed -i 's@INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/feature/preexec_list.txt DESTINATION /usr/share/aul )@INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/feature/preexec_list.txt DESTINATION /usr/share/aul )@' ${S}/CMakeLists.txt
+}
+
+SRC_URI_append_class-native = " file://remove-dlog-for-native-build.patch"
+aul_files += "${prefix}/share/aul/mida_db.sql"
+
+
+RDEPENDS_${PN}_remove_class-native = "systemd-native"
+RDEPENDS_${PN}_remove_class-native = "glibc-native"
+
+DEPENDS_remove_class-native = "dlog-native"
+
+EXTRA_OECMAKE+="-DCMAKE_AR:PATH=ar"
+
+do_install_append() {
+
+ mkdir -p ${D}${prefix}/lib/systemd/user/default.target.wants
+ ln -s ../amd_session_agent.service ${D}${prefix}/lib/systemd/user/default.target.wants/amd_session_agent.service
+
+ mkdir -p ${D}${systemd_unitdir}/system/default.target.wants
+ ln -s ../ac.service ${D}${systemd_unitdir}/system/default.target.wants/ac.service
+
+}
+
+FILES_${PN} += "${prefix}/lib/systemd/user/default.target.wants/amd_session_agent.service"
+FILES_${PN} += "${systemd_unitdir}/system/default.target.wants/ac.service" \ No newline at end of file
diff --git a/meta-application-manager/recipes-application-framework/aul/aul.inc b/meta-application-manager/recipes-application-framework/aul/aul.inc
new file mode 100644
index 0000000..366e59d
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/aul/aul.inc
@@ -0,0 +1,222 @@
+DESCRIPTION = "App utility library"
+HOMEPAGE = "http://nohomepage.org"
+SECTION = "System/Libraries"
+LICENSE = "Apache-2.0"
+PV = "0.0.300"
+
+SRC_URI = ""
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by aul
+
+
+#PROVIDES by aul-dev
+PROVIDES += "aul-dev"
+
+
+#PROVIDES by aul-test
+PROVIDES += "aul-test"
+
+
+RDEPENDS = ""
+#RDEPENDS of aul (${PN})
+RDEPENDS_${PN} += "glibc"
+RDEPENDS_${PN} += "systemd"
+
+#RDEPENDS of aul-dev (${PN}-dev)
+RDEPENDS_${PN}-dev += "aul"
+
+#RDEPENDS of aul-test (${PN}-test)
+RDEPENDS_${PN}-test += "aul"
+
+
+DEPENDS = ""
+#DEPENDS of aul
+DEPENDS += "pkgmgr-info"
+DEPENDS += "librua"
+inherit tizen_cmake
+DEPENDS += "attr"
+DEPENDS += "tizen-platform-config"
+DEPENDS += "privacy-manager-server"
+inherit pkgconfig
+DEPENDS += "bundle"
+DEPENDS += "ail"
+DEPENDS += "smack"
+DEPENDS += "dlog"
+DEPENDS += "sqlite3"
+DEPENDS += "xdgmime"
+DEPENDS += "libprivilege-control"
+DEPENDS += "app-checker"
+DEPENDS += "vconf"
+DEPENDS += "dbus-glib"
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q
+ sed -i 's|TZ_SYS_DB|${prefix}/dbspace|g' ${S}/packaging/aul.manifest
+ cp ${S}/packaging/aul.manifest .
+
+
+}
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+
+
+ cmake \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
+ -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
+ -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
+ -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
+ -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
+ -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
+ -DCMAKE_SKIP_RPATH:BOOL=ON \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
+ ${EXTRA_OECMAKE} .
+ oe_runmake ${PARALLEL_MAKE}
+
+
+
+}
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+ rm -rf ${D}
+
+ oe_runmake \
+ DESTDIR=${D} \
+ INSTALL_ROOT=${D} \
+ BINDIR=${prefix}/bin \
+ install
+ rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+
+ mkdir -p ${D}${sysconfdir}/init.d
+ install -m 755 launchpad_run ${D}${sysconfdir}/init.d
+
+ mkdir -p ${D}${sysconfdir}/rc.d/rc3.d
+ mkdir -p ${D}${sysconfdir}/rc.d/rc4.d
+ ln -sf ../../init.d/launchpad_run ${D}/${sysconfdir}/rc.d/rc3.d/S34launchpad_run
+ ln -sf ../../init.d/launchpad_run ${D}/${sysconfdir}/rc.d/rc4.d/S80launchpad_run
+
+ mkdir -p ${D}${prefix}/dbspace
+ sqlite3 ${D}${prefix}/dbspace/.mida.db < ${D}${prefix}/share/aul/mida_db.sql
+ rm -rf ${D}${prefix}/share/aul/mida_db.sql
+
+ mkdir -p ${D}${systemd_unitdir}/system
+ mkdir -p ${D}${prefix}/lib/systemd/user
+ install -m 0644 ${S}/packaging/ac.service ${D}${systemd_unitdir}/system/ac.service
+ install -m 0644 ${S}/packaging/amd_session_agent.service ${D}${prefix}/lib/systemd/user/amd_session_agent.service
+
+
+}
+
+pkg_postinst_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+ systemctl enable ac
+ systemctl --global enable amd_session_agent
+ systemctl daemon-reload
+ if [ $1 == 1 ]; then
+ systemctl restart ac.service
+ fi
+
+}
+
+pkg_prerm_${PN}() {
+ #!/bin/sh -e
+
+ if [ $1 == 0 ]; then
+ systemctl stop ac.service
+ systemctl disable ac
+ systemctl --global disable amd_session_agent
+ fi
+
+}
+
+pkg_postrm_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+ systemctl daemon-reload
+
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " aul "
+PACKAGES += " aul-dev "
+PACKAGES += " aul-test "
+
+aul_files = ""
+aul_files += "${prefix}/lib/libaul.so.0"
+aul_files += "${prefix}/lib/libaul.so.0.1.0"
+aul_files += "${sysconfdir}/init.d/launchpad_run"
+aul_files += "${sysconfdir}/rc.d/rc3.d/S34launchpad_run"
+aul_files += "${sysconfdir}/rc.d/rc4.d/S80launchpad_run"
+aul_files += "%attr(0644,root,users) ${prefix}/dbspace/.mida.db"
+aul_files += "%attr(0644,root,users) ${prefix}/dbspace/.mida.db-journal"
+aul_files += "${prefix}/bin/aul_mime.sh"
+aul_files += "${prefix}/bin/aul_test"
+aul_files += "${prefix}/bin/app_launcher"
+aul_files += "${prefix}/bin/amd_session_agent"
+aul_files += "${prefix}/share/aul/miregex/*"
+aul_files += "${prefix}/share/aul/service/*"
+aul_files += "${prefix}/share/aul/preload_list.txt"
+aul_files += "${prefix}/share/aul/preexec_list.txt"
+aul_files += "${systemd_unitdir}/system/ac.service"
+aul_files += "${prefix}/lib/systemd/user/amd_session_agent.service"
+aul_files += "${prefix}/bin/amd"
+aul_files += "${prefix}/bin/daemon-manager-release-agent"
+aul_files += "${prefix}/bin/daemon-manager-launch-agent"
+MANIFESTFILES_${PN} = "aul.manifest"
+
+aul-dev_files = ""
+aul-dev_files += "${prefix}/include/aul/*.h"
+aul-dev_files += "${prefix}/lib/*.so"
+aul-dev_files += "${prefix}/lib/pkgconfig/*.pc"
+
+aul-test_files = ""
+aul-test_files += "${prefix}/bin/launch_app"
+aul-test_files += "${prefix}/bin/open_app"
+aul-test_files += "${prefix}/bin/aul_service.sh"
+aul-test_files += "${prefix}/bin/aul_service_test.sh"
+
+FILES_${PN} = "${aul_files}"
+FILES_${PN}-dev = "${aul-dev_files}"
+FILES_${PN}-test = "${aul-test_files}"
+
+PKG_aul= "aul"
+PKG_aul-dev= "aul-dev"
+PKG_aul-test= "aul-test"
+
+require aul-extraconf.inc
+
diff --git a/meta-application-manager/recipes-application-framework/aul/aul_git.bb b/meta-application-manager/recipes-application-framework/aul/aul_git.bb
new file mode 100644
index 0000000..2816749
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/aul/aul_git.bb
@@ -0,0 +1,10 @@
+require aul.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI += "git://review.tizen.org/platform/core/appfw/aul-1;tag=ef7b405abf2577b9e5bf7aa24944e24552ca5b8e;nobranch=1"
+
+BBCLASSEXTEND += " native "
+
diff --git a/meta-application-manager/recipes-application-framework/aul/files/remove-dlog-for-native-build.patch b/meta-application-manager/recipes-application-framework/aul/files/remove-dlog-for-native-build.patch
new file mode 100644
index 0000000..183eb6c
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/aul/files/remove-dlog-for-native-build.patch
@@ -0,0 +1,393 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index c99e444..2753a59 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -19,11 +19,11 @@ MESSAGE("Build type: ${CMAKE_BUILD_TYPE}")
+
+ # Set required packages
+ INCLUDE(FindPkgConfig)
+-SET(AUL-1_PKG_CHECK_MODULES dlog libprivilege-control app-checker rua glib-2.0 vconf pkgmgr-info privacy-manager-client)
++SET(AUL-1_PKG_CHECK_MODULES libprivilege-control app-checker rua glib-2.0 vconf pkgmgr-info privacy-manager-client)
+ pkg_check_modules(pkgs REQUIRED ${AUL-1_PKG_CHECK_MODULES} )
+
+-pkg_check_modules(libpkgs REQUIRED dlog bundle dbus-glib-1 ail xdgmime app-checker libtzplatform-config)
+-PKG_CHECK_MODULES(PKGS REQUIRED glib-2.0 gio-2.0 dlog bundle)
++pkg_check_modules(libpkgs REQUIRED bundle dbus-glib-1 ail xdgmime app-checker libtzplatform-config)
++PKG_CHECK_MODULES(PKGS REQUIRED glib-2.0 gio-2.0 bundle)
+
+ FIND_LIBRARY(LIB_DL dl)
+
+diff --git a/am_daemon/amd_appinfo.c b/am_daemon/amd_appinfo.c
+index 0e1b862..990d784 100755
+--- a/am_daemon/amd_appinfo.c
++++ b/am_daemon/amd_appinfo.c
+@@ -197,7 +197,7 @@ static int __app_info_insert_handler (const pkgmgrinfo_appinfo_h handle, void *d
+ r = pkgmgrinfo_appinfo_get_pkgid(handle, &pkgid);
+ c->val[_AI_PKGID] = strdup(pkgid);
+
+- SECURE_LOGD("%s : %s : %s", c->val[_AI_FILE], c->val[_AI_COMP], c->val[_AI_TYPE]);
++ //SECURE_LOGD("%s : %s : %s", c->val[_AI_FILE], c->val[_AI_COMP], c->val[_AI_TYPE]);
+
+ g_hash_table_insert(cf->tbl, c->val[_AI_FILE], c);
+
+@@ -259,7 +259,7 @@ static void __vconf_cb(keynode_t *key, void *data)
+ return;
+ }
+
+- SECURE_LOGD("noti_string : %s",noti_string);
++ //SECURE_LOGD("noti_string : %s",noti_string);
+ type_string = strtok_r(noti_string, ":", &saveptr);
+ appid = strtok_r(NULL, ":", &saveptr);
+ uid_string = strtok_r(NULL, ":", &saveptr);
+@@ -278,7 +278,7 @@ static void __vconf_cb(keynode_t *key, void *data)
+ _E("pkgmgrinfo_appinfo_get_appinfo fail");
+ }
+
+- SECURE_LOGD("appid : %s /handle : %x", appid, handle);
++ //SECURE_LOGD("appid : %s /handle : %x", appid, handle);
+
+ __app_info_insert_handler(handle, data);
+
+@@ -304,7 +304,7 @@ int app_func(pkgmgrinfo_appinfo_h handle, void *user_data)
+
+ pkgmgrinfo_appinfo_get_appid(handle, &appid);
+ r = g_hash_table_remove(cf->tbl, appid);
+- SECURE_LOGD("upgrading... (%s)", appid);
++ //SECURE_LOGD("upgrading... (%s)", appid);
+
+ return 0;
+ }
+@@ -316,7 +316,7 @@ static int __cb(int req_id, const char *pkg_type,
+ int ret = 0;
+ pkgmgrinfo_pkginfo_h handle;
+
+- SECURE_LOGD("appid(%s), key(%s), value(%s)", pkgid, key, val);
++ //SECURE_LOGD("appid(%s), key(%s), value(%s)", pkgid, key, val);
+
+ if((strncmp(key,"start", 5) == 0) && (strncmp(val, "update", 6) == 0) ) {
+ ret = pkgmgrinfo_pkginfo_get_pkginfo(pkgid, &handle);
+@@ -533,7 +533,7 @@ const struct appinfo *appinfo_find(uid_t caller_uid, const char *appid)
+ r = pkgmgrinfo_appinfo_get_pkgid(handle, &pkgid);
+ res->val[_AI_PKGID] = strdup(pkgid);
+
+- SECURE_LOGD("%s : %s : %s", res->val[_AI_FILE], res->val[_AI_COMP], res->val[_AI_TYPE]);
++ //SECURE_LOGD("%s : %s : %s", res->val[_AI_FILE], res->val[_AI_COMP], res->val[_AI_TYPE]);
+
+ return res;
+ }
+@@ -563,7 +563,7 @@ const char *appinfo_get_filename(const struct appinfo *c)
+ {
+ if (!c) {
+ errno = EINVAL;
+- SECURE_LOGE("appinfo get filename: %s", strerror(errno));
++ //SECURE_LOGE("appinfo get filename: %s", strerror(errno));
+ return NULL;
+ }
+
+diff --git a/am_daemon/amd_launch.c b/am_daemon/amd_launch.c
+index 685699a..4993870 100755
+--- a/am_daemon/amd_launch.c
++++ b/am_daemon/amd_launch.c
+@@ -713,7 +713,7 @@ int _start_app(char* appid, bundle* kb, int cmd, int caller_pid, uid_t caller_ui
+ if (_status_get_app_info_status(pid) == STATUS_DYING) {
+ pid = -ETERMINATING;
+ } else if (caller_pid == pid) {
+- SECURE_LOGD("caller process & callee process is same.[%s:%d]", appid, pid);
++ //SECURE_LOGD("caller process & callee process is same.[%s:%d]", appid, pid);
+ pid = -ELOCALLAUNCH_ID;
+ } else {
+ if ((ret = __nofork_processing(cmd, pid, kb, fd)) < 0) {
+diff --git a/am_daemon/amd_request.c b/am_daemon/amd_request.c
+index 349cfd3..c1923bb 100755
+--- a/am_daemon/amd_request.c
++++ b/am_daemon/amd_request.c
+@@ -188,7 +188,7 @@ static gboolean __add_history_handler(gpointer user_data)
+ rec.arg = (char *)pkt_uid->pkt->data;
+ }
+
+- SECURE_LOGD("add rua history %s %s", rec.pkg_name, rec.app_path);
++ //SECURE_LOGD("add rua history %s %s", rec.pkg_name, rec.app_path);
+
+ ret = rua_add_history(&rec);
+ if (ret == -1)
+@@ -219,14 +219,14 @@ static int __release_srv(uid_t caller_uid, const char *filename)
+
+ ai = (struct appinfo *)appinfo_find(caller_uid, filename);
+ if (!ai) {
+- SECURE_LOGE("release service: '%s' not found", filename);
++ //SECURE_LOGE("release service: '%s' not found", filename);
+ return -1;
+ }
+
+ r = appinfo_get_boolean(ai, AIT_RESTART);
+ if (r == 1) {
+ /* Auto restart */
+- SECURE_LOGD("Auto restart set: '%s'", filename);
++ //SECURE_LOGD("Auto restart set: '%s'", filename);
+ return _start_srv(ai, NULL);
+ }
+
+@@ -349,7 +349,7 @@ static gboolean __request_handler(gpointer data)
+ appid = malloc(MAX_PACKAGE_STR_SIZE);
+ strncpy(appid, (const char*)pkt->data, MAX_PACKAGE_STR_SIZE-1);
+ ret = _status_app_is_running(appid, cr.uid);
+- SECURE_LOGD("APP_IS_RUNNING : %s : %d",appid, ret);
++ //SECURE_LOGD("APP_IS_RUNNING : %s : %d",appid, ret);
+ __send_result_to_client(clifd, ret);
+ free(appid);
+ break;
+diff --git a/am_daemon/amd_status.c b/am_daemon/amd_status.c
+index 12f595e..525134f 100755
+--- a/am_daemon/amd_status.c
++++ b/am_daemon/amd_status.c
+@@ -70,7 +70,7 @@ int _status_add_app_info_list(char *appid, char *app_path, int pid, int pad_pid,
+ {
+ info_t = (app_status_info_t *)iter->data;
+
+- SECURE_LOGD(" [%d] : %s, %d, %d", info_t->user, info_t->appid, info_t->pid, info_t->status);
++ //SECURE_LOGD(" [%d] : %s, %d, %d", info_t->user, info_t->appid, info_t->pid, info_t->status);
+ }
+
+ return 0;
+@@ -94,7 +94,7 @@ int _status_update_app_info_list(int pid, int status, uid_t uid)
+ {
+ info_t = (app_status_info_t *)iter->data;
+
+- //SECURE_LOGD("%s, %d, %d", info_t->appid, info_t->pid, info_t->status);
++ ////SECURE_LOGD("%s, %d, %d", info_t->appid, info_t->pid, info_t->status);
+ }
+
+ return 0;
+@@ -119,7 +119,7 @@ int _status_remove_app_info_list(int pid, uid_t uid)
+ {
+ info_t = (app_status_info_t *)iter->data;
+
+- //SECURE_LOGD("%s, %d, %d", info_t->appid, info_t->pid, info_t->status);
++ ////SECURE_LOGD("%s, %d, %d", info_t->appid, info_t->pid, info_t->status);
+ }
+
+ return 0;
+@@ -336,7 +336,7 @@ int _status_get_appid_bypid(int fd, int pid)
+ pkt->cmd = APP_GET_APPID_BYPID_ERROR;
+
+ if (__get_pkgname_bypid(pid, (char *)pkt->data, MAX_PACKAGE_STR_SIZE) == 0) {
+- SECURE_LOGD("appid for %d is %s", pid, pkt->data);
++ //SECURE_LOGD("appid for %d is %s", pid, pkt->data);
+ pkt->cmd = APP_GET_APPID_BYPID_OK;
+ goto out;
+ }
+diff --git a/include/simple_util.h b/include/simple_util.h
+index e0dc4c7..edb1600 100755
+--- a/include/simple_util.h
++++ b/include/simple_util.h
+@@ -25,7 +25,7 @@
+
+ #include <unistd.h>
+ #include <ctype.h>
+-#include <dlog.h>
++//#include <dlog.h>
+ #include <tzplatform_config.h>
+
+ #define GLOBAL_USER tzplatform_getuid(TZ_SYS_GLOBALAPP_USER)
+@@ -52,9 +52,9 @@
+ #define MAX_LOCAL_BUFSZ 128
+ #define MAX_PID_STR_BUFSZ 20
+
+-#define _E(fmt, arg...) LOGE(fmt, ##arg)
+-#define _D(fmt, arg...) LOGD(fmt, ##arg)
+-#define _W(fmt, arg...) LOGW(fmt, ##arg)
++#define _E(fmt, arg...) //LOGE(fmt, ##arg)
++#define _D(fmt, arg...) //LOGD(fmt, ##arg)
++#define _W(fmt, arg...) //LOGW(fmt, ##arg)
+
+ #define retvm_if(expr, val, fmt, arg...) do { \
+ if (expr) { \
+diff --git a/src/launch.c b/src/launch.c
+index 1e7a925..bc69a16 100755
+--- a/src/launch.c
++++ b/src/launch.c
+@@ -319,7 +319,7 @@ int app_request_to_launchpad(int cmd, const char *pkgname, bundle *kb)
+ int must_free = 0;
+ int ret = 0;
+
+- SECURE_LOGD("launch request : %s", pkgname);
++ //SECURE_LOGD("launch request : %s", pkgname);
+ if (kb == NULL) {
+ kb = bundle_create();
+ must_free = 1;
+diff --git a/src/mida.c b/src/mida.c
+index 9bb37fc..61dc852 100755
+--- a/src/mida.c
++++ b/src/mida.c
+@@ -334,7 +334,7 @@ int mida_add_app(const char *mime_type, const char *pkg_name)
+ cnt = __count_with_field(MIDA_TBL_NAME, MIDA_F_MIMETYPE, mime_type, 0);
+
+ if (cnt == 0) {
+- SECURE_LOGD("Inserting (%s, %s)", pkg_name, mime_type);
++ //SECURE_LOGD("Inserting (%s, %s)", pkg_name, mime_type);
+ /* insert */
+ _sqlbuf = sqlite3_mprintf(
+ "INSERT INTO %s (%s,%s) values (\"%s\", \"%s\");",
+@@ -344,7 +344,7 @@ int mida_add_app(const char *mime_type, const char *pkg_name)
+ rc = _exec(mida_db, _sqlbuf);
+ sqlite3_free(_sqlbuf);
+ } else {
+- SECURE_LOGD("Setting %s for %s", pkg_name, mime_type);
++ //SECURE_LOGD("Setting %s for %s", pkg_name, mime_type);
+ /* update */
+ _sqlbuf = sqlite3_mprintf(
+ "UPDATE %s SET %s = '%s' where %s = '%s';",
+@@ -443,7 +443,7 @@ int svc_add_app(const char *svc_name, const char *pkg_name)
+
+ if (cnt == 0) {
+ /* insert */
+- SECURE_LOGD("Inserting (%s, %s)", pkg_name, svc_name);
++ //SECURE_LOGD("Inserting (%s, %s)", pkg_name, svc_name);
+ _sqlbuf = sqlite3_mprintf(
+ "INSERT INTO %s (%s,%s) values (\"%s\", \"%s\");",
+ SVC_TBL_NAME, SVC_F_PKGNAME, SVC_F_SVCNAME, pkg_name,
+@@ -453,7 +453,7 @@ int svc_add_app(const char *svc_name, const char *pkg_name)
+ sqlite3_free(_sqlbuf);
+ } else {
+ /* update */
+- SECURE_LOGD("Setting %s for %s", pkg_name, svc_name);
++ //SECURE_LOGD("Setting %s for %s", pkg_name, svc_name);
+ _sqlbuf = sqlite3_mprintf(
+ "UPDATE %s SET %s = '%s' where %s = '%s';",
+ SVC_TBL_NAME, SVC_F_PKGNAME, pkg_name,
+@@ -509,7 +509,7 @@ int is_supported_svc(const char *svc_name)
+ if (cnt > 0)
+ rc = 1;
+ else
+- SECURE_LOGD("%s is not supported.", svc_name);
++ //SECURE_LOGD("%s is not supported.", svc_name);
+
+ __fini();
+ return rc;
+diff --git a/src/mime.c b/src/mime.c
+index 0649e16..6ef272b 100755
+--- a/src/mime.c
++++ b/src/mime.c
+@@ -70,7 +70,7 @@ SLPAPI int aul_get_mime_from_content(const char *content, char *mimetype,
+ if (__match_content_with_regex(content,
+ &(miregex_tbl->regex_preg))) {
+ founded = miregex_tbl->mimetype;
+- SECURE_LOGD("content %s => mimetype %s\n", content, founded);
++ //SECURE_LOGD("content %s => mimetype %s\n", content, founded);
+ break;
+ }
+ miregex_tbl = miregex_tbl->next;
+@@ -360,9 +360,9 @@ static int __launch_with_defapp(const char *mime_type, const char *mime_content)
+ if (_aul_get_defapp_from_mime
+ (mime_type, unaliased_mime_type, defapp,
+ sizeof(unaliased_mime_type), sizeof(defapp)) < 0) {
+- SECURE_LOGD("mimetype : %s, unaliased mimetype : %s, mime_content : %s,"
+- " no default app", mime_type,
+- unaliased_mime_type, mime_content);
++ //SECURE_LOGD("mimetype : %s, unaliased mimetype : %s, mime_content : %s,"
++ // " no default app", mime_type,
++ // unaliased_mime_type, mime_content);
+ bundle_add(kb, AUL_K_UNALIASED_MIME_TYPE, unaliased_mime_type);
+ ret = aul_launch_app(MIME_APP_SELECTOR, kb);
+ /* TODO: When launching MIME APP SELECTOR, what should
+@@ -379,22 +379,22 @@ static int __launch_with_defapp(const char *mime_type, const char *mime_content)
+
+ if (ail_ret == AIL_ERROR_OK) {
+ ail_destroy_appinfo(handle);
+- SECURE_LOGD("mimetype : %s, unaliased mimetype : %s, "
+- "mime_content : %s, defapp : %s", mime_type,
+- unaliased_mime_type,
+- mime_content, defapp);
++ //SECURE_LOGD("mimetype : %s, unaliased mimetype : %s, "
++ // "mime_content : %s, defapp : %s", mime_type,
++ // unaliased_mime_type,
++ // mime_content, defapp);
+ bundle_add(kb, AUL_K_UNALIASED_MIME_TYPE,
+ unaliased_mime_type);
+ ret = aul_launch_app(defapp, kb);
+ } else if (ail_ret == AIL_ERROR_NO_DATA) {
+- SECURE_LOGD("defapp %s for mimetype : %s, mime_content : %s "
+- "does NOT exist", defapp,
+- mime_type, mime_content);
++ //SECURE_LOGD("defapp %s for mimetype : %s, mime_content : %s "
++ // "does NOT exist", defapp,
++ // mime_type, mime_content);
+ mida_delete_with_pkgname(defapp);
+ ail_destroy_appinfo(handle);
+ goto retry;
+ } else {
+- SECURE_LOGE("ail_get_appinfo with %s failed", defapp);
++ //SECURE_LOGE("ail_get_appinfo with %s failed", defapp);
+ if (kb) {
+ bundle_free(kb);
+ kb = NULL;
+diff --git a/src/pkginfo.c b/src/pkginfo.c
+index 975c01e..7cb4771 100755
+--- a/src/pkginfo.c
++++ b/src/pkginfo.c
+@@ -123,7 +123,7 @@ SLPAPI int aul_app_get_appid_bypid(int pid, char *appid, int len)
+
+ if(pid == getpid() || getuid()==0 || geteuid()==0) {
+ if (__get_pkgname_bypid(pid, appid, len) == 0) {
+- SECURE_LOGD("appid for %d is %s", pid, appid);
++ //SECURE_LOGD("appid for %d is %s", pid, appid);
+ return AUL_R_OK;
+ }
+ /* support app launched by shell script*/diff --git a/am_session_agent/agent.c b/am_session_agent/agent.c
+index 1d1efd0..1968f49 100644
+--- a/am_session_agent/agent.c
++++ b/am_session_agent/agent.c
+@@ -216,13 +216,13 @@ _static_ void __real_launch(const char *app_path, bundle * kb)
+ for (i = 0; i < app_argc; i++) {
+ if( (i%2) == 1)
+ continue;
+- SECURE_LOGD("input argument %d : %s##", i, app_argv[i]);
++ //SECURE_LOGD("input argument %d : %s##", i, app_argv[i]);
+ }
+
+ PERF("setup argument done");
+
+ /* Temporary log: launch time checking */
+- LOG(LOG_DEBUG, "LAUNCH", "[%s:Platform:agent:done]", app_path);
++ //LOG(LOG_DEBUG, "LAUNCH", "[%s:Platform:agent:done]", app_path);
+ #ifdef PRELOAD_ACTIVATE
+ __preload_exec(app_argc, app_argv);
+ #endif
+@@ -347,7 +347,7 @@ _static_ void __modify_bundle(bundle * kb, int caller_pid,
+ char value[256];
+
+ ptr += flag;
+- SECURE_LOGD("parsing app_path: EXEC - %s\n", exe);
++ //SECURE_LOGD("parsing app_path: EXEC - %s\n", exe);
+
+ do {
+ flag = __parser(ptr, key, sizeof(key));
+@@ -604,7 +604,7 @@ _static_ void __agent_main_loop(int main_fd)
+ PERF("packet processing start");
+
+ pkg_name = bundle_get_val(kb, AUL_K_PKG_NAME);
+- SECURE_LOGD("pkg name : %s\n", pkg_name);
++ //SECURE_LOGD("pkg name : %s\n", pkg_name);
+
+ /* get caller uid and check if not coming from someone else than AMD */
+ uid = __get_caller_uid(kb);
+@@ -660,8 +660,8 @@ _static_ void __agent_main_loop(int main_fd)
+
+ if (__prepare_exec(pkg_name, app_path,
+ menu_info, kb) < 0) {
+- SECURE_LOGE("preparing work fail to launch - "
+- "can not launch %s\n", pkg_name);
++ //SECURE_LOGE("preparing work fail to launch - "
++ // "can not launch %s\n", pkg_name);
+ exit(-1);
+ }
+
+@@ -672,7 +672,7 @@ _static_ void __agent_main_loop(int main_fd)
+
+ exit(-1);
+ }
+- SECURE_LOGD("==> real launch pid : %d %s\n", pid, app_path);
++ //SECURE_LOGD("==> real launch pid : %d %s\n", pid, app_path);
+ is_real_launch = 1;
+ }
+ end:
diff --git a/meta-application-manager/recipes-application-framework/capi-base-common/capi-base-common-extraconf.inc b/meta-application-manager/recipes-application-framework/capi-base-common/capi-base-common-extraconf.inc
new file mode 100644
index 0000000..0dce5f5
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/capi-base-common/capi-base-common-extraconf.inc
@@ -0,0 +1,5 @@
+ALLOW_EMPTY_${PN} = "1"
+
+# Fix incorrect file list from upstream .spec file. Avoids
+# Bitbake QA error.
+capi-base-common-dev_files += "${libdir}/libcapi-base-common.so"
diff --git a/meta-application-manager/recipes-application-framework/capi-base-common/capi-base-common.inc b/meta-application-manager/recipes-application-framework/capi-base-common/capi-base-common.inc
new file mode 100644
index 0000000..13cb7f7
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/capi-base-common/capi-base-common.inc
@@ -0,0 +1,135 @@
+DESCRIPTION = "Common header files of Tizen Native API"
+HOMEPAGE = "http://nohomepage.org"
+SECTION = "System/API"
+LICENSE = "Apache-2.0"
+PV = "0.1.6"
+
+SRC_URI = ""
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by capi-base-common-dev
+PROVIDES += "capi-base-common-dev"
+
+
+#PROVIDES by capi-base-common
+
+
+RDEPENDS = ""
+#RDEPENDS of capi-base-common-dev (${PN}-dev)
+RDEPENDS_${PN}-dev += "capi-base-common"
+
+#RDEPENDS of capi-base-common (${PN})
+RDEPENDS_${PN} += "glibc"
+
+
+DEPENDS = ""
+#DEPENDS of capi-base-common
+inherit tizen_cmake
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q
+ cp ${S}/packaging/capi-base-common.manifest .
+
+
+}
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+ MAJORVER=`echo 0.1.6 | awk 'BEGIN {FS="."}{print $1}'`
+
+ cmake \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
+ -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
+ -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
+ -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
+ -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
+ -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
+ -DCMAKE_SKIP_RPATH:BOOL=ON \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
+ ${EXTRA_OECMAKE} . -DFULLVER=0.1.6 -DMAJORVER=${MAJORVER}
+ oe_runmake ${PARALLEL_MAKE}
+
+
+
+}
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+
+ oe_runmake \
+ DESTDIR=${D} \
+ INSTALL_ROOT=${D} \
+ BINDIR=${prefix}/bin \
+ install
+ rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+ mkdir -p ${D}${prefix}/share/license
+ cp LICENSE ${D}${prefix}/share/license/capi-base-common
+
+
+}
+
+pkg_postinst_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+pkg_postrm_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " capi-base-common-dev "
+PACKAGES += " capi-base-common "
+
+capi-base-common-dev_files = ""
+capi-base-common-dev_files += "${prefix}/include/*.h"
+capi-base-common-dev_files += "${prefix}/lib/pkgconfig/capi-base-common.pc"
+capi-base-common-dev_files += "${prefix}/share/license/capi-base-common"
+MANIFESTFILES_${PN}-dev = "capi-base-common.manifest"
+
+capi-base-common_files = ""
+capi-base-common_files += "${prefix}/lib/libcapi-base-common.so*"
+capi-base-common_files += "${prefix}/share/license/capi-base-common"
+MANIFESTFILES_${PN} = "capi-base-common.manifest"
+
+FILES_${PN}-dev = "${capi-base-common-dev_files}"
+FILES_${PN} = "${capi-base-common_files}"
+
+PKG_capi-base-common-dev= "capi-base-common-dev"
+PKG_capi-base-common= "capi-base-common"
+
+require capi-base-common-extraconf.inc
+
diff --git a/meta-application-manager/recipes-application-framework/capi-base-common/capi-base-common_git.bb b/meta-application-manager/recipes-application-framework/capi-base-common/capi-base-common_git.bb
new file mode 100644
index 0000000..3f9bcbe
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/capi-base-common/capi-base-common_git.bb
@@ -0,0 +1,10 @@
+require capi-base-common.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI += "git://review.tizen.org/platform/core/api/common;tag=9ab27c073081894717fa7f12905cbe3b60dfd9ec;nobranch=1"
+
+BBCLASSEXTEND += " native "
+
diff --git a/meta-application-manager/recipes-application-framework/capi-system-info/capi-system-info-extraconf.inc b/meta-application-manager/recipes-application-framework/capi-system-info/capi-system-info-extraconf.inc
new file mode 100644
index 0000000..1830479
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/capi-system-info/capi-system-info-extraconf.inc
@@ -0,0 +1,3 @@
+SRC_URI_append_class-native = " file://remove-dlog-for-native-build.patch"
+
+DEPENDS_remove_class-native = "dlog-native" \ No newline at end of file
diff --git a/meta-application-manager/recipes-application-framework/capi-system-info/capi-system-info.inc b/meta-application-manager/recipes-application-framework/capi-system-info/capi-system-info.inc
new file mode 100644
index 0000000..2eef94b
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/capi-system-info/capi-system-info.inc
@@ -0,0 +1,139 @@
+DESCRIPTION = "A System Information library in SLP C API"
+HOMEPAGE = "http://nohomepage.org"
+SECTION = "System/API"
+LICENSE = "Apache-2.0"
+PV = "0.2.0"
+
+SRC_URI = ""
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by capi-system-info-dev
+PROVIDES += "capi-system-info-dev"
+
+
+#PROVIDES by capi-system-info
+
+
+RDEPENDS = ""
+#RDEPENDS of capi-system-info-dev (${PN}-dev)
+RDEPENDS_${PN}-dev += "capi-system-info"
+
+
+DEPENDS = ""
+#DEPENDS of capi-system-info
+inherit tizen_cmake
+DEPENDS += "libxml2"
+inherit pkgconfig
+DEPENDS += "iniparser"
+DEPENDS += "dlog"
+DEPENDS += "ecore"
+DEPENDS += "vconf"
+DEPENDS += "capi-base-common"
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q
+ cp ${S}/packaging/capi-system-info.manifest .
+
+
+}
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+ MAJORVER=`echo 0.2.0 | awk 'BEGIN {FS="."}{print $1}'`
+
+ cmake \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
+ -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
+ -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
+ -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
+ -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
+ -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
+ -DCMAKE_SKIP_RPATH:BOOL=ON \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
+ ${EXTRA_OECMAKE} . -DFULLVER=0.2.0 -DMAJORVER=${MAJORVER} -DENABLE_WAYLAND=TRUE
+ oe_runmake ${PARALLEL_MAKE}
+
+
+
+}
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+
+ oe_runmake \
+ DESTDIR=${D} \
+ INSTALL_ROOT=${D} \
+ BINDIR=${prefix}/bin \
+ install
+ rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+ mkdir -p ${D}${prefix}/bin
+ cp -f script/make_info_file.sh ${D}${prefix}/bin/make_info_file.sh
+
+
+}
+
+pkg_postinst_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+pkg_postrm_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " capi-system-info-dev "
+PACKAGES += " capi-system-info "
+
+capi-system-info-dev_files = ""
+capi-system-info-dev_files += "${prefix}/include/system/system_info.h"
+capi-system-info-dev_files += "${prefix}/lib/pkgconfig/*.pc"
+capi-system-info-dev_files += "${prefix}/lib/libcapi-system-info.so"
+MANIFESTFILES_${PN}-dev = "capi-system-info.manifest"
+
+capi-system-info_files = ""
+capi-system-info_files += "${prefix}/lib/libcapi-system-info.so.*"
+capi-system-info_files += "${prefix}/bin/make_info_file.sh"
+MANIFESTFILES_${PN} = "capi-system-info.manifest"
+
+FILES_${PN}-dev = "${capi-system-info-dev_files}"
+FILES_${PN} = "${capi-system-info_files}"
+
+PKG_capi-system-info-dev= "capi-system-info-dev"
+PKG_capi-system-info= "capi-system-info"
+
+require capi-system-info-extraconf.inc
+
diff --git a/meta-application-manager/recipes-application-framework/capi-system-info/capi-system-info_git.bb b/meta-application-manager/recipes-application-framework/capi-system-info/capi-system-info_git.bb
new file mode 100644
index 0000000..0093c8a
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/capi-system-info/capi-system-info_git.bb
@@ -0,0 +1,10 @@
+require capi-system-info.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI += "git://review.tizen.org/platform/core/api/system-info;tag=7c1c890c5fdc4c80d99b6a74d1011bfb144ee5b3;nobranch=1"
+
+BBCLASSEXTEND += " native "
+
diff --git a/meta-application-manager/recipes-application-framework/capi-system-info/files/remove-dlog-for-native-build.patch b/meta-application-manager/recipes-application-framework/capi-system-info/files/remove-dlog-for-native-build.patch
new file mode 100644
index 0000000..83ee24b
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/capi-system-info/files/remove-dlog-for-native-build.patch
@@ -0,0 +1,491 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 2cc7e4e..1381725 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -12,9 +12,9 @@ INCLUDE_DIRECTORIES(${INC_DIR})
+
+ IF(ENABLE_WAYLAND)
+ ADD_DEFINITIONS("-DWAYLAND_PLATFORM")
+-SET(requires "dlog capi-base-common iniparser libxml-2.0")
++SET(requires "capi-base-common iniparser libxml-2.0")
+ ELSE(ENABLE_WAYLAND)
+-SET(requires "dlog capi-base-common xi xrandr iniparser libxml-2.0")
++SET(requires "capi-base-common xi xrandr iniparser libxml-2.0")
+ ENDIF(ENABLE_WAYLAND)
+ SET(pc_requires "capi-base-common")
+
+diff --git a/src/system_info.c b/src/system_info.c
+index 491f5b5..507499e 100644
+--- a/src/system_info.c
++++ b/src/system_info.c
+@@ -20,7 +20,7 @@
+ #include <string.h>
+ #include <unistd.h>
+
+-#include <dlog.h>
++//#include <dlog.h>
+
+ #include <system_info.h>
+ #include <system_info_private.h>
+@@ -170,7 +170,7 @@ void __attribute__((constructor)) system_info_init(void)
+ ret = system_info_get_platform_string("tizen.org/system/model_name", &str);
+
+ if (ret != SYSTEM_INFO_ERROR_NONE) {
+- LOGE("initialize error");
++ //LOGE("initialize error");
+ return;
+ }
+
+@@ -204,24 +204,24 @@ int system_info_get_value(system_info_key_e key, system_info_data_type_e data_ty
+ system_info_get_value_cb system_info_getter;
+
+ if (value == NULL) {
+- LOGE("INVALID_PARAMETER(0x%08x) : invalid output param", SYSTEM_INFO_ERROR_INVALID_PARAMETER);
++ //LOGE("INVALID_PARAMETER(0x%08x) : invalid output param", SYSTEM_INFO_ERROR_INVALID_PARAMETER);
+ return SYSTEM_INFO_ERROR_INVALID_PARAMETER;
+ }
+
+ if (system_info_get(key, &system_info)) {
+- LOGE("INVALID_PARAMETER(0x%08x) : invalid key", SYSTEM_INFO_ERROR_INVALID_PARAMETER);
++ //LOGE("INVALID_PARAMETER(0x%08x) : invalid key", SYSTEM_INFO_ERROR_INVALID_PARAMETER);
+ return SYSTEM_INFO_ERROR_INVALID_PARAMETER;
+ }
+
+ if (system_info->data_type != data_type) {
+- LOGE("INVALID_PARAMETER(0x%08x) : invalid data type", SYSTEM_INFO_ERROR_INVALID_PARAMETER);
++ //LOGE("INVALID_PARAMETER(0x%08x) : invalid data type", SYSTEM_INFO_ERROR_INVALID_PARAMETER);
+ return SYSTEM_INFO_ERROR_INVALID_PARAMETER;
+ }
+
+ system_info_getter = system_info->get_value_cb;
+
+ if (system_info_getter == NULL) {
+- LOGE("IO_ERROR(0x%08x) : failed to call getter for the system information", SYSTEM_INFO_ERROR_IO_ERROR);
++ //LOGE("IO_ERROR(0x%08x) : failed to call getter for the system information", SYSTEM_INFO_ERROR_IO_ERROR);
+ return SYSTEM_INFO_ERROR_IO_ERROR;
+ }
+
+@@ -257,13 +257,13 @@ API int system_info_get_platform_bool(const char *key, bool *value)
+ supported = (bool *)value;
+
+ if (access(CONFIG_FILE_PATH, R_OK)) {
+- LOGE("cannot find file %s!!!", CONFIG_FILE_PATH);
++ //LOGE("cannot find file %s!!!", CONFIG_FILE_PATH);
+ return SYSTEM_INFO_ERROR_IO_ERROR;
+ }
+
+ ret = system_info_get_value_from_config_xml(PLATFORM_TAG, key, BOOL_TYPE, &string);
+ if (ret) {
+- LOGE("cannot get %s", key);
++ //LOGE("cannot get %s", key);
+ return ret;
+ }
+
+@@ -286,13 +286,13 @@ API int system_info_get_platform_int(const char *key, int *value)
+ ret_val = (int *)value;
+
+ if (access(CONFIG_FILE_PATH, R_OK)) {
+- LOGE("cannot find file %s!!!", CONFIG_FILE_PATH);
++ //LOGE("cannot find file %s!!!", CONFIG_FILE_PATH);
+ return SYSTEM_INFO_ERROR_IO_ERROR;
+ }
+
+ ret = system_info_get_value_from_config_xml(PLATFORM_TAG, key, INT_TYPE, &string);
+ if (ret) {
+- LOGE("cannot get %s", key);
++ //LOGE("cannot get %s", key);
+ return ret;
+ }
+
+@@ -312,13 +312,13 @@ API int system_info_get_platform_double(const char *key, double *value)
+ ret_val = (double *)value;
+
+ if (access(CONFIG_FILE_PATH, R_OK)) {
+- LOGE("cannot find file %s!!!", CONFIG_FILE_PATH);
++ //LOGE("cannot find file %s!!!", CONFIG_FILE_PATH);
+ return SYSTEM_INFO_ERROR_IO_ERROR;
+ }
+
+ ret = system_info_get_value_from_config_xml(PLATFORM_TAG, key, DBL_TYPE, &string);
+ if (ret) {
+- LOGE("cannot get %s", key);
++ //LOGE("cannot get %s", key);
+ return ret;
+ }
+
+@@ -335,13 +335,13 @@ API int system_info_get_platform_string(const char *key, char **value)
+ char *string = NULL;
+
+ if (access(CONFIG_FILE_PATH, R_OK)) {
+- LOGE("cannot find file %s!!!", CONFIG_FILE_PATH);
++ //LOGE("cannot find file %s!!!", CONFIG_FILE_PATH);
+ return SYSTEM_INFO_ERROR_IO_ERROR;
+ }
+
+ ret = system_info_get_value_from_config_xml(PLATFORM_TAG, key, STR_TYPE, &string);
+ if (ret) {
+- LOGE("cannot get %s", key);
++ //LOGE("cannot get %s", key);
+ return ret;
+ }
+
+@@ -359,13 +359,13 @@ API int system_info_get_custom_bool(const char *key, bool *value)
+ supported = (bool *)value;
+
+ if (access(CONFIG_FILE_PATH, R_OK)) {
+- LOGE("cannot find file %s!!!", CONFIG_FILE_PATH);
++ //LOGE("cannot find file %s!!!", CONFIG_FILE_PATH);
+ return SYSTEM_INFO_ERROR_IO_ERROR;
+ }
+
+ ret = system_info_get_value_from_config_xml(CUSTOM_TAG, key, BOOL_TYPE, &string);
+ if (ret) {
+- LOGI("cannot get %s", key);
++ //LOGI("cannot get %s", key);
+ *supported = false;
+ return SYSTEM_INFO_ERROR_NONE;
+ }
+@@ -389,13 +389,13 @@ API int system_info_get_custom_int(const char *key, int *value)
+ ret_val = (int *)value;
+
+ if (access(CONFIG_FILE_PATH, R_OK)) {
+- LOGE("cannot find file %s!!!", CONFIG_FILE_PATH);
++ //LOGE("cannot find file %s!!!", CONFIG_FILE_PATH);
+ return SYSTEM_INFO_ERROR_IO_ERROR;
+ }
+
+ ret = system_info_get_value_from_config_xml(CUSTOM_TAG, key, INT_TYPE, &string);
+ if (ret) {
+- LOGI("cannot get %s", key);
++ //LOGI("cannot get %s", key);
+ *ret_val = 0;
+ return SYSTEM_INFO_ERROR_NONE;
+ }
+@@ -416,13 +416,13 @@ API int system_info_get_custom_double(const char *key, double *value)
+ ret_val = (double *)value;
+
+ if (access(CONFIG_FILE_PATH, R_OK)) {
+- LOGE("cannot find file %s!!!", CONFIG_FILE_PATH);
++ //LOGE("cannot find file %s!!!", CONFIG_FILE_PATH);
+ return SYSTEM_INFO_ERROR_IO_ERROR;
+ }
+
+ ret = system_info_get_value_from_config_xml(CUSTOM_TAG, key, DBL_TYPE, &string);
+ if (ret) {
+- LOGI("cannot get %s", key);
++ //LOGI("cannot get %s", key);
+ *ret_val = 0;
+ return SYSTEM_INFO_ERROR_NONE;
+ }
+@@ -440,13 +440,13 @@ API int system_info_get_custom_string(const char *key, char **value)
+ char *string = NULL;
+
+ if (access(CONFIG_FILE_PATH, R_OK)) {
+- LOGE("cannot find file %s!!!", CONFIG_FILE_PATH);
++ //LOGE("cannot find file %s!!!", CONFIG_FILE_PATH);
+ return SYSTEM_INFO_ERROR_IO_ERROR;
+ }
+
+ ret = system_info_get_value_from_config_xml(CUSTOM_TAG, key, STR_TYPE, &string);
+ if (ret) {
+- LOGE("cannot get %s info from %s!!!", key, CONFIG_FILE_PATH);
++ //LOGE("cannot get %s info from %s!!!", key, CONFIG_FILE_PATH);
+ return ret;
+ }
+
+diff --git a/src/system_info_device.c b/src/system_info_device.c
+index 18752e4..2826c61 100644
+--- a/src/system_info_device.c
++++ b/src/system_info_device.c
+@@ -19,7 +19,7 @@
+ #include <string.h>
+ #include <unistd.h>
+
+-#include <dlog.h>
++//#include <dlog.h>
+
+ #include <system_info.h>
+ #include <system_info_private.h>
+@@ -38,7 +38,7 @@ int system_info_get_manufacturer(system_info_key_e key, system_info_data_type_e
+
+ manufacturer = strdup("samsung");
+ if (manufacturer == NULL) {
+- LOGE("OUT_OF_MEMORY(0x%08x)", SYSTEM_INFO_ERROR_OUT_OF_MEMORY);
++ //LOGE("OUT_OF_MEMORY(0x%08x)", SYSTEM_INFO_ERROR_OUT_OF_MEMORY);
+ return SYSTEM_INFO_ERROR_OUT_OF_MEMORY;
+ }
+
+@@ -61,7 +61,7 @@ int system_info_get_tethering_supported(system_info_key_e key, system_info_data_
+ }
+
+ if (system_info_get_value_from_xml(TETHERING_INFO_FILE_PATH, model, "tethering-support", &string)) {
+- LOGE("cannot get tethering-support info from %s!!!", TETHERING_INFO_FILE_PATH);
++ //LOGE("cannot get tethering-support info from %s!!!", TETHERING_INFO_FILE_PATH);
+ return SYSTEM_INFO_ERROR_IO_ERROR;
+ }
+
+diff --git a/src/system_info_parse.c b/src/system_info_parse.c
+index 0bc6b88..f3b412f 100644
+--- a/src/system_info_parse.c
++++ b/src/system_info_parse.c
+@@ -19,7 +19,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+
+-#include <dlog.h>
++//#include <dlog.h>
+
+ #include <system_info.h>
+ #include <system_info_private.h>
+@@ -47,14 +47,14 @@ int system_info_ini_get_string(char *ini_file, char *key, char **output)
+ ini = iniparser_load(ini_file);
+
+ if (ini == NULL) {
+- LOGE("cannot file open %s file!!!", ini_file);
++ //LOGE("cannot file open %s file!!!", ini_file);
+ return SYSTEM_INFO_ERROR_IO_ERROR;
+ }
+
+ str = iniparser_getstring(ini, key, NULL);
+
+ if (str == NULL) {
+- LOGE("NOT found %s(0x%08x)", key, SYSTEM_INFO_ERROR_IO_ERROR);
++ //LOGE("NOT found %s(0x%08x)", key, SYSTEM_INFO_ERROR_IO_ERROR);
+ iniparser_freedict(ini);
+ return SYSTEM_INFO_ERROR_IO_ERROR;
+ }
+@@ -62,7 +62,7 @@ int system_info_ini_get_string(char *ini_file, char *key, char **output)
+ tmp = strdup(str);
+
+ if (tmp == NULL) {
+- LOGE("OUT_OF_MEMORY(0x%08x)", SYSTEM_INFO_ERROR_OUT_OF_MEMORY);
++ //LOGE("OUT_OF_MEMORY(0x%08x)", SYSTEM_INFO_ERROR_OUT_OF_MEMORY);
+ iniparser_freedict(ini);
+ return SYSTEM_INFO_ERROR_OUT_OF_MEMORY;
+ }
+@@ -86,13 +86,13 @@ int system_info_get_value_from_xml(char *xml_file_path, char *model, char *id_fi
+ doc = xmlParseFile(xml_file_path);
+
+ if (doc == NULL) {
+- LOGE("cannot file open %s file!!!", xml_file_path);
++ //LOGE("cannot file open %s file!!!", xml_file_path);
+ return SYSTEM_INFO_ERROR_IO_ERROR;
+ }
+
+ cur = xmlDocGetRootElement(doc);
+ if (cur == NULL) {
+- LOGE("empty document %s file!!!", xml_file_path);
++ //LOGE("empty document %s file!!!", xml_file_path);
+ xmlFreeDoc(doc);
+ return SYSTEM_INFO_ERROR_IO_ERROR;
+ }
+@@ -103,7 +103,7 @@ int system_info_get_value_from_xml(char *xml_file_path, char *model, char *id_fi
+ }
+
+ if (cur == NULL) {
+- LOGE("cannot find %s root element file!!!", "sys-info");
++ //LOGE("cannot find %s root element file!!!", "sys-info");
+ xmlFreeDoc(doc);
+ return SYSTEM_INFO_ERROR_IO_ERROR;
+ }
+@@ -137,7 +137,7 @@ int system_info_get_value_from_xml(char *xml_file_path, char *model, char *id_fi
+ free(string);
+ xmlFreeDoc(doc);
+ if (*value == NULL) {
+- LOGE("OUT_OF_MEMORY(0x%08x)", SYSTEM_INFO_ERROR_OUT_OF_MEMORY);
++ //LOGE("OUT_OF_MEMORY(0x%08x)", SYSTEM_INFO_ERROR_OUT_OF_MEMORY);
+ xmlFreeDoc(doc);
+ return SYSTEM_INFO_ERROR_OUT_OF_MEMORY;
+ }
+@@ -170,7 +170,7 @@ int system_info_get_value_from_xml(char *xml_file_path, char *model, char *id_fi
+ free(string);
+ xmlFreeDoc(doc);
+ if (*value == NULL) {
+- LOGE("OUT_OF_MEMORY(0x%08x)", SYSTEM_INFO_ERROR_OUT_OF_MEMORY);
++ //LOGE("OUT_OF_MEMORY(0x%08x)", SYSTEM_INFO_ERROR_OUT_OF_MEMORY);
+ xmlFreeDoc(doc);
+ return SYSTEM_INFO_ERROR_OUT_OF_MEMORY;
+ }
+@@ -183,7 +183,7 @@ int system_info_get_value_from_xml(char *xml_file_path, char *model, char *id_fi
+ }
+ }
+
+- LOGE("cannot find %s field from %s file!!!", id_field, xml_file_path);
++ //LOGE("cannot find %s field from %s file!!!", id_field, xml_file_path);
+ xmlFreeDoc(doc);
+ return SYSTEM_INFO_ERROR_IO_ERROR;
+ }
+@@ -201,13 +201,13 @@ int system_info_get_value_from_config_xml(char *feature_tag, const char *name_fi
+ doc = xmlParseFile(CONFIG_FILE_PATH);
+
+ if (doc == NULL) {
+- LOGE("cannot file open %s file!!!", CONFIG_FILE_PATH);
++ //LOGE("cannot file open %s file!!!", CONFIG_FILE_PATH);
+ return SYSTEM_INFO_ERROR_IO_ERROR;
+ }
+
+ cur = xmlDocGetRootElement(doc);
+ if (cur == NULL) {
+- LOGE("empty document %s file!!!", CONFIG_FILE_PATH);
++ //LOGE("empty document %s file!!!", CONFIG_FILE_PATH);
+ xmlFreeDoc(doc);
+ return SYSTEM_INFO_ERROR_IO_ERROR;
+ }
+@@ -218,7 +218,7 @@ int system_info_get_value_from_config_xml(char *feature_tag, const char *name_fi
+ }
+
+ if (cur == NULL) {
+- LOGE("cannot find %s root element file!!!", MODEL_CONFIG_TAG);
++ //LOGE("cannot find %s root element file!!!", MODEL_CONFIG_TAG);
+ xmlFreeDoc(doc);
+ return SYSTEM_INFO_ERROR_IO_ERROR;
+ }
+@@ -231,7 +231,7 @@ int system_info_get_value_from_config_xml(char *feature_tag, const char *name_fi
+ }
+
+ if (model_node == NULL) {
+- LOGE("cannot find %s field from %s file!!!", name_field, CONFIG_FILE_PATH);
++ //LOGE("cannot find %s field from %s file!!!", name_field, CONFIG_FILE_PATH);
+ xmlFreeDoc(doc);
+ return SYSTEM_INFO_ERROR_IO_ERROR;
+ }
+@@ -247,7 +247,7 @@ int system_info_get_value_from_config_xml(char *feature_tag, const char *name_fi
+ if (!strncmp(name, name_field, strlen(name))) {
+ if (!strncmp(name, name_field, strlen(name_field))) {
+ if (strncmp(type, type_field, strlen(type_field))) {
+- LOGE("INVALID_PARAMETER(0x%08x) : invalid output param", SYSTEM_INFO_ERROR_INVALID_PARAMETER);
++ //LOGE("INVALID_PARAMETER(0x%08x) : invalid output param", SYSTEM_INFO_ERROR_INVALID_PARAMETER);
+ free(name);
+ free(type);
+ xmlFreeDoc(doc);
+@@ -270,13 +270,13 @@ int system_info_get_value_from_config_xml(char *feature_tag, const char *name_fi
+ }
+
+ if (!cur_node) {
+- LOGE("cannot find %s field from %s file!!!", name_field, CONFIG_FILE_PATH);
++ //LOGE("cannot find %s field from %s file!!!", name_field, CONFIG_FILE_PATH);
+ xmlFreeDoc(doc);
+ return SYSTEM_INFO_ERROR_IO_ERROR;
+ }
+
+ if (*value == NULL) {
+- LOGE("OUT_OF_MEMORY(0x%08x)", SYSTEM_INFO_ERROR_OUT_OF_MEMORY);
++ //LOGE("OUT_OF_MEMORY(0x%08x)", SYSTEM_INFO_ERROR_OUT_OF_MEMORY);
+ xmlFreeDoc(doc);
+ return SYSTEM_INFO_ERROR_OUT_OF_MEMORY;
+ }
+diff --git a/src/system_info_platform.c b/src/system_info_platform.c
+index 405004f..82abf9c 100644
+--- a/src/system_info_platform.c
++++ b/src/system_info_platform.c
+@@ -20,7 +20,7 @@
+ #include <unistd.h>
+ #include <string.h>
+
+-#include <dlog.h>
++//#include <dlog.h>
+
+ #include <system_info.h>
+ #include <system_info_private.h>
+@@ -72,7 +72,7 @@ int system_info_get_core_cpu_arch(system_info_key_e key, system_info_data_type_e
+ CORE_CPU_ARCH = strdup("x86");
+
+ if (CORE_CPU_ARCH == NULL) {
+- LOGE("Unknown cpu");
++ //LOGE("Unknown cpu");
+ return SYSTEM_INFO_ERROR_IO_ERROR;
+ }
+
+@@ -92,7 +92,7 @@ int system_info_get_core_cpu_freq(system_info_key_e key, system_info_data_type_e
+ if (system_info_get_system_info_model_type() != SYSTEM_INFO_MODEL_TYPE_EMULATOR) {
+ cpuinfo_max_freq = fopen(CPU_INFO_MAX_FREQ_PATH, "r");
+ if (NULL == cpuinfo_max_freq) {
+- LOGE("cannot file open %s file!!!", CPU_INFO_MAX_FREQ_PATH);
++ //LOGE("cannot file open %s file!!!", CPU_INFO_MAX_FREQ_PATH);
+ return SYSTEM_INFO_ERROR_IO_ERROR;
+ } else {
+ if (fscanf(cpuinfo_max_freq, "%lf", &max_freq) < 1) {
+@@ -106,7 +106,7 @@ int system_info_get_core_cpu_freq(system_info_key_e key, system_info_data_type_e
+ /* Emulator */
+ cpuinfo = fopen(CPU_INFO_FILE_PATH, "r");
+ if (NULL == cpuinfo) {
+- LOGE("cannot file open %s file!!!", CPU_INFO_FILE_PATH);
++ //LOGE("cannot file open %s file!!!", CPU_INFO_FILE_PATH);
+ return SYSTEM_INFO_ERROR_IO_ERROR;
+ } else {
+ while (fgets(str, MAXBUFSIZE, cpuinfo)) {
+@@ -144,7 +144,7 @@ int system_info_get_tizen_version_name(system_info_key_e key, system_info_data_t
+
+ info = fopen(OS_RELEASE_FILE_PATH, "r");
+ if (NULL == info) {
+- LOGE("cannot file open %s file!!!", OS_RELEASE_FILE_PATH);
++ //LOGE("cannot file open %s file!!!", OS_RELEASE_FILE_PATH);
+ return SYSTEM_INFO_ERROR_IO_ERROR;
+ }
+
+@@ -159,7 +159,7 @@ int system_info_get_tizen_version_name(system_info_key_e key, system_info_data_t
+
+ TIZEN_VERSION_NAME = strdup(tmpStr);
+ if (TIZEN_VERSION_NAME == NULL) {
+- LOGE("OUT_OF_MEMORY(0x%08x)", SYSTEM_INFO_ERROR_OUT_OF_MEMORY);
++ //LOGE("OUT_OF_MEMORY(0x%08x)", SYSTEM_INFO_ERROR_OUT_OF_MEMORY);
+ fclose(info);
+ return SYSTEM_INFO_ERROR_OUT_OF_MEMORY;
+ }
+diff --git a/src/system_info_screen.c b/src/system_info_screen.c
+index 9af9f81..c9979d7 100644
+--- a/src/system_info_screen.c
++++ b/src/system_info_screen.c
+@@ -19,7 +19,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+
+-#include <dlog.h>
++//#include <dlog.h>
+
+ #ifndef WAYLAND_PLATFORM
+ #include <X11/Xlib.h>
+@@ -68,14 +68,14 @@ int system_info_screen_init()
+ memset(&g_pinfo, 0x0, sizeof(ProgInfo));
+ #ifdef WAYLAND_PLATFORM
+ //In wayland environment, noting to do in this function, FIXME if necessary.
+- LOGE("In wayland environment, system_info_screen_init Failed");
++ //LOGE("In wayland environment, system_info_screen_init Failed");
+ system_info_screen_initialized = 1;
+ return -1;
+ #else
+ int i;
+ g_pinfo.dpy = XOpenDisplay(NULL);
+ if (NULL == g_pinfo.dpy) {
+- LOGE("XOpenDisplay Failed");
++ //LOGE("XOpenDisplay Failed");
+ return -1;
+ }
+
+@@ -85,7 +85,7 @@ int system_info_screen_init()
+
+ if (!XRRQueryExtension(g_pinfo.dpy, &g_pinfo.event_base, &g_pinfo.error_base) ||
+ !XRRQueryVersion(g_pinfo.dpy, &g_pinfo.major, &g_pinfo.minor)) {
+- LOGE("XRRQuery Failed");
++ //LOGE("XRRQuery Failed");
+ XCloseDisplay(g_pinfo.dpy);
+ return -1;
+ }
+@@ -93,7 +93,7 @@ int system_info_screen_init()
+ g_pinfo.res = XRRGetScreenResources(g_pinfo.dpy, g_pinfo.root);
+
+ if (!g_pinfo.res) {
+- LOGE("XRRGetScreenResources Failed");
++ //LOGE("XRRGetScreenResources Failed");
+ XCloseDisplay(g_pinfo.dpy);
+ return -1;
+ }
+@@ -101,7 +101,7 @@ int system_info_screen_init()
+ for (i = 0; i < g_pinfo.res->noutput; i++) {
+ XRROutputInfo *output_info = XRRGetOutputInfo(g_pinfo.dpy, g_pinfo.res, g_pinfo.res->outputs[i]);
+ if (!output_info) {
+- LOGE("XRRGetOutputInfo Failed");
++ //LOGE("XRRGetOutputInfo Failed");
+ XCloseDisplay(g_pinfo.dpy);
+ return -1;
+ }
diff --git a/meta-application-manager/recipes-application-framework/capi-system-sensor/capi-system-sensor-extraconf.inc b/meta-application-manager/recipes-application-framework/capi-system-sensor/capi-system-sensor-extraconf.inc
new file mode 100644
index 0000000..9a88afb
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/capi-system-sensor/capi-system-sensor-extraconf.inc
@@ -0,0 +1 @@
+SRC_URI +="file://001-Add-version-to-CMakeList.patch"
diff --git a/meta-application-manager/recipes-application-framework/capi-system-sensor/capi-system-sensor.inc b/meta-application-manager/recipes-application-framework/capi-system-sensor/capi-system-sensor.inc
new file mode 100644
index 0000000..06a7cdf
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/capi-system-sensor/capi-system-sensor.inc
@@ -0,0 +1,137 @@
+DESCRIPTION = "A Sensor library in TIZEN C API"
+HOMEPAGE = "http://nohomepage.org"
+SECTION = "framework/system"
+LICENSE = "Apache-2.0"
+PV = "0.1.17"
+
+SRC_URI = ""
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by capi-system-sensor-dev
+PROVIDES += "capi-system-sensor-dev"
+
+
+#PROVIDES by capi-system-sensor
+
+
+RDEPENDS = ""
+#RDEPENDS of capi-system-sensor-dev (${PN}-dev)
+RDEPENDS_${PN}-dev += "capi-system-sensor"
+
+
+DEPENDS = ""
+#DEPENDS of capi-system-sensor
+DEPENDS += "sensor"
+inherit tizen_cmake
+inherit pkgconfig
+DEPENDS += "dlog"
+DEPENDS += "capi-base-common"
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q
+ cp ${S}/packaging/capi-system-sensor.manifest .
+
+
+
+}
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+ MAJORVER=`echo 0.1.17 | awk 'BEGIN {FS="."}{print $1}'`
+
+
+ cmake \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
+ -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
+ -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
+ -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
+ -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
+ -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
+ -DCMAKE_SKIP_RPATH:BOOL=ON \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
+ ${EXTRA_OECMAKE} . -DFULLVER=0.1.17 -DMAJORVER=${MAJORVER} -DVERSION="0.1.17"
+
+ oe_runmake ${PARALLEL_MAKE}
+
+
+
+
+}
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+
+ oe_runmake \
+ DESTDIR=${D} \
+ INSTALL_ROOT=${D} \
+ BINDIR=${prefix}/bin \
+ install
+ rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+
+
+}
+
+pkg_postinst_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+pkg_postrm_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " capi-system-sensor-dev "
+PACKAGES += " capi-system-sensor "
+
+capi-system-sensor-dev_files = ""
+capi-system-sensor-dev_files += "${prefix}/include/system/sensors.h"
+capi-system-sensor-dev_files += "${prefix}/lib/pkgconfig/*.pc"
+capi-system-sensor-dev_files += "${prefix}/lib/libcapi-system-sensor.so"
+MANIFESTFILES_${PN}-dev = "capi-system-sensor.manifest"
+
+capi-system-sensor_files = ""
+capi-system-sensor_files += "${prefix}/lib/libcapi-system-sensor.so.*"
+MANIFESTFILES_${PN} = "capi-system-sensor.manifest"
+
+FILES_${PN}-dev = "${capi-system-sensor-dev_files}"
+FILES_${PN} = "${capi-system-sensor_files}"
+
+PKG_capi-system-sensor-dev= "capi-system-sensor-dev"
+PKG_capi-system-sensor= "capi-system-sensor"
+
+require capi-system-sensor-extraconf.inc
+
diff --git a/meta-application-manager/recipes-application-framework/capi-system-sensor/capi-system-sensor_git.bb b/meta-application-manager/recipes-application-framework/capi-system-sensor/capi-system-sensor_git.bb
new file mode 100644
index 0000000..83bad0f
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/capi-system-sensor/capi-system-sensor_git.bb
@@ -0,0 +1,10 @@
+require capi-system-sensor.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI += "git://review.tizen.org/platform/core/api/sensor;tag=536527ac22998472146e004b6ccdb8476a444576;nobranch=1"
+
+BBCLASSEXTEND += " native "
+
diff --git a/meta-application-manager/recipes-application-framework/capi-system-sensor/files/001-Add-version-to-CMakeList.patch b/meta-application-manager/recipes-application-framework/capi-system-sensor/files/001-Add-version-to-CMakeList.patch
new file mode 100644
index 0000000..af13747
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/capi-system-sensor/files/001-Add-version-to-CMakeList.patch
@@ -0,0 +1,7 @@
+--- a/CMakeLists.txt 2014-06-11 15:33:14.110487872 +0200
++++ b/CMakeLists.txt 2014-06-11 15:32:42.708486993 +0200
+@@ -1,3 +1,4 @@
++SET(VERSION "0.1.17")
+
+ CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+ SET(fw_name "capi-system-sensor")
diff --git a/meta-application-manager/recipes-application-framework/heynoti/files/remove_dlog.patch b/meta-application-manager/recipes-application-framework/heynoti/files/remove_dlog.patch
new file mode 100644
index 0000000..00c9a84
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/heynoti/files/remove_dlog.patch
@@ -0,0 +1,15 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index c3c5f4d..6057c9e 100755
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -25,7 +25,9 @@ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
+ INCLUDE(FindPkgConfig)
+
+ pkg_check_modules(glib_pkg REQUIRED gobject-2.0)
+-pkg_check_modules(pkgs REQUIRED glib-2.0 dlog libtzplatform-config)
++pkg_check_modules(pkgs REQUIRED glib-2.0 libtzplatform-config)
++ADD_DEFINITIONS("-DUTIL_SYSLOG_OUT")
++
+ FOREACH(flag ${pkgs_CFLAGS})
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+ ENDFOREACH(flag)
diff --git a/meta-application-manager/recipes-application-framework/heynoti/heynoti-extraconf.inc b/meta-application-manager/recipes-application-framework/heynoti/heynoti-extraconf.inc
new file mode 100644
index 0000000..1104884
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/heynoti/heynoti-extraconf.inc
@@ -0,0 +1,3 @@
+DEPENDS_remove_class-native = "dlog-native"
+
+SRC_URI_append_class-native = " file://remove_dlog.patch" \ No newline at end of file
diff --git a/meta-application-manager/recipes-application-framework/heynoti/heynoti.inc b/meta-application-manager/recipes-application-framework/heynoti/heynoti.inc
new file mode 100644
index 0000000..a899abc
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/heynoti/heynoti.inc
@@ -0,0 +1,145 @@
+DESCRIPTION = "HEY (ligHt Easy speedy) notification library"
+HOMEPAGE = "http://nohomepage.org"
+SECTION = "System/Libraries"
+LICENSE = "Apache-2.0"
+PV = "0.0.2"
+
+SRC_URI = ""
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by heynoti
+
+
+#PROVIDES by heynoti-dev
+PROVIDES += "heynoti-dev"
+
+
+RDEPENDS = ""
+#RDEPENDS of heynoti-dev (${PN}-dev)
+RDEPENDS_${PN}-dev += "heynoti"
+
+
+DEPENDS = ""
+#DEPENDS of heynoti
+inherit tizen_cmake
+DEPENDS += "tizen-platform-config"
+inherit pkgconfig
+DEPENDS += "dlog"
+DEPENDS += "glib-2.0"
+DEPENDS += "ecore"
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q
+ cp ${S}/packaging/heynoti.manifest .
+
+
+
+}
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+
+ cmake \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
+ -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
+ -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
+ -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
+ -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
+ -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
+ -DCMAKE_SKIP_RPATH:BOOL=ON \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
+ ${EXTRA_OECMAKE} . -DCMAKE_BUILD_TYPE="Debug"
+
+
+ make ${PARALLEL_MAKE}
+
+
+
+}
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+
+ oe_runmake \
+ DESTDIR=${D} \
+ INSTALL_ROOT=${D} \
+ BINDIR=${prefix}/bin \
+ install
+ rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+
+ mkdir -p ${D}${prefix}/share/noti
+ mkdir -p ${D}/usr/share/license
+ install LICENSE ${D}/usr/share/license/heynoti
+
+
+}
+
+pkg_postinst_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+pkg_postrm_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " heynoti "
+PACKAGES += " heynoti-dev "
+
+heynoti_files = ""
+heynoti_files += "${prefix}/lib/libheynoti.so.0"
+heynoti_files += "${prefix}/lib/libheynoti.so.0.0.2"
+heynoti_files += "${prefix}/bin/heynotitool"
+heynoti_files += "${prefix}/share/noti"
+heynoti_files += "/usr/share/license/heynoti"
+MANIFESTFILES_${PN} = "heynoti.manifest"
+
+heynoti-dev_files = ""
+heynoti-dev_files += "${prefix}/include/heynoti/SLP_Heynoti_PG.h"
+heynoti-dev_files += "${prefix}/include/heynoti/heynoti.h"
+heynoti-dev_files += "${prefix}/lib/pkgconfig/heynoti.pc"
+heynoti-dev_files += "${prefix}/lib/libheynoti.so"
+MANIFESTFILES_${PN}-dev = "heynoti.manifest"
+
+FILES_${PN} = "${heynoti_files}"
+FILES_${PN}-dev = "${heynoti-dev_files}"
+
+PKG_heynoti= "heynoti"
+PKG_heynoti-dev= "heynoti-dev"
+
+require heynoti-extraconf.inc
+
diff --git a/meta-application-manager/recipes-application-framework/heynoti/heynoti_git.bb b/meta-application-manager/recipes-application-framework/heynoti/heynoti_git.bb
new file mode 100644
index 0000000..d1b16a6
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/heynoti/heynoti_git.bb
@@ -0,0 +1,10 @@
+require heynoti.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI += "git://review.tizen.org/platform/core/appfw/heynoti;tag=3f82d6115368fb5a2d799436aecc7b339e6ae373;nobranch=1"
+
+BBCLASSEXTEND += " native "
+
diff --git a/meta-application-manager/recipes-application-framework/libcom-core/files/0001-remove-dbus-check.patch b/meta-application-manager/recipes-application-framework/libcom-core/files/0001-remove-dbus-check.patch
new file mode 100644
index 0000000..dd1a6d3
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/libcom-core/files/0001-remove-dbus-check.patch
@@ -0,0 +1,13 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -17,7 +17,7 @@
+ pkg_check_modules(pkgs REQUIRED
+ glib-2.0
+ dlog
+- libsystemd-daemon
+-)
++)
++
+
+ FOREACH(flag ${pkgs_CFLAGS})
+
diff --git a/meta-application-manager/recipes-application-framework/libcom-core/libcom-core-extraconf.inc b/meta-application-manager/recipes-application-framework/libcom-core/libcom-core-extraconf.inc
new file mode 100644
index 0000000..dfdcea3
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/libcom-core/libcom-core-extraconf.inc
@@ -0,0 +1 @@
+INSANE_SKIP_${PN} = "dev-so" \ No newline at end of file
diff --git a/meta-application-manager/recipes-application-framework/libcom-core/libcom-core.inc b/meta-application-manager/recipes-application-framework/libcom-core/libcom-core.inc
new file mode 100644
index 0000000..19d99ee
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/libcom-core/libcom-core.inc
@@ -0,0 +1,141 @@
+DESCRIPTION = "Library for the light-weight IPC"
+HOMEPAGE = "http://nohomepage.org"
+SECTION = "Base/IPC"
+LICENSE = "Apache-2.0"
+PV = "0.5.9"
+
+SRC_URI = "file://0001-remove-dbus-check.patch "
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by libcom-core
+
+
+#PROVIDES by libcom-core-dev
+PROVIDES += "libcom-core-dev"
+
+
+RDEPENDS = ""
+#RDEPENDS of libcom-core-dev (${PN}-dev)
+RDEPENDS_${PN}-dev += "libcom-core"
+
+
+DEPENDS = ""
+#DEPENDS of libcom-core
+#Replace "DEPENDS" on gettext by "inherit gettext"
+inherit gettext
+inherit tizen_cmake
+DEPENDS += "systemd"
+DEPENDS += "dlog"
+inherit pkgconfig
+DEPENDS += "glib-2.0"
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q
+ cp ${S}/packaging/libcom-core.manifest .
+
+
+}
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+
+
+ cmake \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
+ -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
+ -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
+ -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
+ -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
+ -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
+ -DCMAKE_SKIP_RPATH:BOOL=ON \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
+ ${EXTRA_OECMAKE}
+ make ${PARALLEL_MAKE}
+
+
+
+}
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+ rm -rf ${D}
+
+ oe_runmake \
+ DESTDIR=${D} \
+ INSTALL_ROOT=${D} \
+ BINDIR=${prefix}/bin \
+ install
+ rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+ mkdir -p ${D}${prefix}/share/license
+
+
+}
+
+pkg_postinst_libcom-core() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+pkg_postrm_libcom-core() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " libcom-core "
+PACKAGES += " libcom-core-dev "
+
+libcom-core_files = ""
+libcom-core_files += "${prefix}/lib/*.so*"
+libcom-core_files += "${prefix}/share/license/*"
+MANIFESTFILES_${PN} = "libcom-core.manifest"
+
+libcom-core-dev_files = ""
+libcom-core-dev_files += "${prefix}/include/com-core/com-core.h"
+libcom-core-dev_files += "${prefix}/include/com-core/packet.h"
+libcom-core-dev_files += "${prefix}/include/com-core/com-core_packet.h"
+libcom-core-dev_files += "${prefix}/include/com-core/com-core_thread.h"
+libcom-core-dev_files += "${prefix}/include/com-core/secure_socket.h"
+libcom-core-dev_files += "${prefix}/lib/pkgconfig/*.pc"
+MANIFESTFILES_${PN}-dev = "libcom-core.manifest"
+
+FILES_${PN} = "${libcom-core_files}"
+FILES_${PN}-dev = "${libcom-core-dev_files}"
+
+PKG_libcom-core= "libcom-core"
+PKG_libcom-core-dev= "libcom-core-dev"
+
+require libcom-core-extraconf.inc
+
diff --git a/meta-application-manager/recipes-application-framework/libcom-core/libcom-core_git.bb b/meta-application-manager/recipes-application-framework/libcom-core/libcom-core_git.bb
new file mode 100644
index 0000000..f21c2de
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/libcom-core/libcom-core_git.bb
@@ -0,0 +1,10 @@
+require libcom-core.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI += "git://review.tizen.org/platform/core/appfw/com-core;tag=dbfd87c27e0f73b95b2ae16d0b76e059484d5375;nobranch=1"
+
+BBCLASSEXTEND += " native "
+
diff --git a/meta-application-manager/recipes-application-framework/librua/librua-extraconf.inc b/meta-application-manager/recipes-application-framework/librua/librua-extraconf.inc
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/librua/librua-extraconf.inc
diff --git a/meta-application-manager/recipes-application-framework/librua/librua.inc b/meta-application-manager/recipes-application-framework/librua/librua.inc
new file mode 100644
index 0000000..b614bc4
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/librua/librua.inc
@@ -0,0 +1,149 @@
+DESCRIPTION = "Recently used application"
+HOMEPAGE = "http://nohomepage.org"
+SECTION = "Application Framework/Libraries"
+LICENSE = "Apache-2.0"
+PV = "0.1.0"
+
+SRC_URI = ""
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by librua
+
+
+#PROVIDES by librua-dev
+PROVIDES += "librua-dev"
+
+
+#PROVIDES by librua-test
+PROVIDES += "librua-test"
+
+
+RDEPENDS = ""
+#RDEPENDS of librua-dev (${PN}-dev)
+RDEPENDS_${PN}-dev += "librua"
+
+#RDEPENDS of librua-test (${PN}-test)
+RDEPENDS_${PN}-test += "librua"
+
+
+DEPENDS = ""
+#DEPENDS of librua
+DEPENDS += "sqlite3"
+DEPENDS += "tizen-platform-config"
+inherit tizen_cmake
+inherit pkgconfig
+DEPENDS += "libslp-db-util"
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q
+ cp ${S}/packaging/librua.manifest .
+
+
+}
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+
+ cmake \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
+ -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
+ -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
+ -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
+ -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
+ -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
+ -DCMAKE_SKIP_RPATH:BOOL=ON \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
+ ${EXTRA_OECMAKE} .
+ make ${PARALLEL_MAKE}
+
+
+
+}
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+
+ oe_runmake \
+ DESTDIR=${D} \
+ INSTALL_ROOT=${D} \
+ BINDIR=${prefix}/bin \
+ install
+ rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+
+
+}
+
+pkg_postinst_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+pkg_postrm_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " librua "
+PACKAGES += " librua-dev "
+PACKAGES += " librua-test "
+
+librua_files = ""
+librua_files += "${prefix}/lib/librua.so.*"
+MANIFESTFILES_${PN} = "librua.manifest"
+
+librua-dev_files = ""
+librua-dev_files += "${prefix}/include/rua"
+librua-dev_files += "${prefix}/include/rua/*.h"
+librua-dev_files += "${prefix}/lib/librua.so"
+librua-dev_files += "${prefix}/lib/pkgconfig/rua.pc"
+MANIFESTFILES_${PN}-dev = "librua.manifest"
+DIRFILES_${PN}-dev = ""
+DIRFILES_${PN}-dev += "${prefix}/include/rua"
+
+librua-test_files = ""
+librua-test_files += "${prefix}/bin/rua-test"
+MANIFESTFILES_${PN}-test = "librua.manifest"
+
+FILES_${PN} = "${librua_files}"
+FILES_${PN}-dev = "${librua-dev_files}"
+FILES_${PN}-test = "${librua-test_files}"
+
+PKG_librua= "librua"
+PKG_librua-dev= "librua-dev"
+PKG_librua-test= "librua-test"
+
+require librua-extraconf.inc
+
diff --git a/meta-application-manager/recipes-application-framework/librua/librua_git.bb b/meta-application-manager/recipes-application-framework/librua/librua_git.bb
new file mode 100644
index 0000000..6095e25
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/librua/librua_git.bb
@@ -0,0 +1,10 @@
+require librua.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI += "git://review.tizen.org/platform/core/appfw/librua;tag=b3f0019b1e8c118e7f96248d143f43a02c05a4e7;nobranch=1"
+
+BBCLASSEXTEND += " native "
+
diff --git a/meta-application-manager/recipes-application-framework/pkgmgr-info/pkgmgr-info-extraconf.inc b/meta-application-manager/recipes-application-framework/pkgmgr-info/pkgmgr-info-extraconf.inc
new file mode 100644
index 0000000..19d3f61
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/pkgmgr-info/pkgmgr-info-extraconf.inc
@@ -0,0 +1,4 @@
+#SRC_URI += "file://TizenCommonCMakeMacro.patch"
+
+DEPENDS_remove_class-native = "dlog-native"
+SRC_URI_append_class-native = " file://remove-dlog-for-native-build.patch" \ No newline at end of file
diff --git a/meta-application-manager/recipes-application-framework/pkgmgr-info/pkgmgr-info.inc b/meta-application-manager/recipes-application-framework/pkgmgr-info/pkgmgr-info.inc
new file mode 100644
index 0000000..be9193a
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/pkgmgr-info/pkgmgr-info.inc
@@ -0,0 +1,203 @@
+DESCRIPTION = "Packager Manager infomation api for package"
+HOMEPAGE = "http://nohomepage.org"
+SECTION = "Application Framework/Package Management"
+LICENSE = "Apache-2.0"
+PV = "0.0.134"
+
+SRC_URI = " file://TizenCommonCMakeMacro.patch "
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by pkgmgr-info-parser
+PROVIDES += "pkgmgr-info-parser"
+
+
+#PROVIDES by pkgmgr-info-parser-dev
+PROVIDES += "pkgmgr-info-parser-dev"
+
+
+#PROVIDES by pkgmgr-info
+
+
+#PROVIDES by pkgmgr-info-dev
+PROVIDES += "pkgmgr-info-dev"
+
+
+RDEPENDS = ""
+#RDEPENDS of pkgmgr-info-parser (${PN}-parser)
+RDEPENDS_${PN}-parser += "pkgmgr-info"
+
+#RDEPENDS of pkgmgr-info-dev (${PN}-dev)
+RDEPENDS_${PN}-dev += "pkgmgr-info"
+
+#RDEPENDS of pkgmgr-info-parser-dev (${PN}-parser-dev)
+RDEPENDS_${PN}-parser-dev += "tizen-platform-config"
+RDEPENDS_${PN}-parser-dev += "pkgmgr-info"
+
+
+DEPENDS = ""
+#DEPENDS of pkgmgr-info
+inherit tizen_cmake
+DEPENDS += "libxml2"
+DEPENDS += "dbus"
+DEPENDS += "tizen-platform-config"
+inherit pkgconfig
+DEPENDS += "dlog"
+DEPENDS += "smack"
+DEPENDS += "dbus-glib"
+DEPENDS += "sqlite3"
+DEPENDS += "vconf"
+DEPENDS += "libslp-db-util"
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q
+ cp ${S}/packaging/pkgmgr-info.manifest .
+
+
+}
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+
+ cmake \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
+ -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
+ -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
+ -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
+ -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
+ -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
+ -DCMAKE_SKIP_RPATH:BOOL=ON \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
+ ${EXTRA_OECMAKE} .
+ make ${PARALLEL_MAKE}
+
+
+
+}
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+
+ oe_runmake \
+ DESTDIR=${D} \
+ INSTALL_ROOT=${D} \
+ BINDIR=${prefix}/bin \
+ install
+ rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+
+ # create the directory for hosting Read-Write application manifest files
+ mkdir -p ${D}${prefix}/share/packages
+
+
+}
+
+pkg_postinst_pkgmgr-info-parser() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+pkg_postinst_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+ chsmack -a '*' $D${prefix}/share/packages
+
+}
+
+pkg_postrm_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+pkg_postrm_pkgmgr-info-parser() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " pkgmgr-info-parser "
+PACKAGES += " pkgmgr-info "
+PACKAGES += " pkgmgr-info-parser-dev "
+PACKAGES += " pkgmgr-info-dev "
+
+pkgmgr-info-parser_files = ""
+pkgmgr-info-parser_files += "${prefix}/lib/libpkgmgr_parser.so.*"
+pkgmgr-info-parser_files += "/package-manager/preload/preload_list.txt"
+pkgmgr-info-parser_files += "/package-manager/preload/manifest.xsd"
+pkgmgr-info-parser_files += "/package-manager/preload/xml.xsd"
+pkgmgr-info-parser_files += "/package-manager/parser_path.conf"
+pkgmgr-info-parser_files += "/package-manager/parserlib/metadata/mdparser_list.txt"
+pkgmgr-info-parser_files += "/package-manager/parserlib/category/category_parser_list.txt"
+pkgmgr-info-parser_files += "/package-manager/parserlib/tag_parser_list.txt"
+CONFFILES_${PN}-parser = ""
+CONFFILES_${PN}-parser += "/package-manager/preload/preload_list.txt"
+CONFFILES_${PN}-parser += "/package-manager/preload/manifest.xsd"
+CONFFILES_${PN}-parser += "/package-manager/preload/xml.xsd"
+CONFFILES_${PN}-parser += "/package-manager/parser_path.conf"
+CONFFILES_${PN}-parser += "/package-manager/parserlib/metadata/mdparser_list.txt"
+CONFFILES_${PN}-parser += "/package-manager/parserlib/category/category_parser_list.txt"
+CONFFILES_${PN}-parser += "/package-manager/parserlib/tag_parser_list.txt"
+MANIFESTFILES_${PN}-parser = "pkgmgr-info.manifest"
+
+pkgmgr-info_files = ""
+pkgmgr-info_files += "${prefix}/lib/libpkgmgr-info.so.*"
+pkgmgr-info_files += "%dir ${prefix}/share/packages"
+MANIFESTFILES_${PN} = "pkgmgr-info.manifest"
+
+pkgmgr-info-parser-dev_files = ""
+pkgmgr-info-parser-dev_files += "${prefix}/include/pkgmgr/pkgmgr_parser.h"
+pkgmgr-info-parser-dev_files += "${prefix}/include/pkgmgr/pkgmgr_parser_db.h"
+pkgmgr-info-parser-dev_files += "${prefix}/lib/pkgconfig/pkgmgr-parser.pc"
+pkgmgr-info-parser-dev_files += "${prefix}/lib/libpkgmgr_parser.so"
+MANIFESTFILES_${PN}-parser-dev = "pkgmgr-info.manifest"
+
+pkgmgr-info-dev_files = ""
+pkgmgr-info-dev_files += "${prefix}/include/pkgmgr-info.h"
+pkgmgr-info-dev_files += "${prefix}/lib/pkgconfig/pkgmgr-info.pc"
+pkgmgr-info-dev_files += "${prefix}/lib/libpkgmgr-info.so"
+MANIFESTFILES_${PN}-dev = "pkgmgr-info.manifest"
+
+FILES_${PN}-parser = "${pkgmgr-info-parser_files}"
+FILES_${PN} = "${pkgmgr-info_files}"
+FILES_${PN}-parser-dev = "${pkgmgr-info-parser-dev_files}"
+FILES_${PN}-dev = "${pkgmgr-info-dev_files}"
+
+PKG_pkgmgr-info-parser= "pkgmgr-info-parser"
+PKG_pkgmgr-info= "pkgmgr-info"
+PKG_pkgmgr-info-parser-dev= "pkgmgr-info-parser-dev"
+PKG_pkgmgr-info-dev= "pkgmgr-info-dev"
+
+require pkgmgr-info-extraconf.inc
+
diff --git a/meta-application-manager/recipes-application-framework/pkgmgr-info/pkgmgr-info/TizenCommonCMakeMacro.patch b/meta-application-manager/recipes-application-framework/pkgmgr-info/pkgmgr-info/TizenCommonCMakeMacro.patch
new file mode 100644
index 0000000..1983693
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/pkgmgr-info/pkgmgr-info/TizenCommonCMakeMacro.patch
@@ -0,0 +1,38 @@
+From fba91e42f737956fb27ef8ef75955ada9eef0539 Mon Sep 17 00:00:00 2001
+From: Xavier Roche <xavrock.os@gmail.com>
+Date: Fri, 16 May 2014 18:05:01 +0200
+Subject: [PATCH] Removing TizenCommon macro in packaging
+
+Signed-off-by: Xavier Roche <xavrock.os@gmail.com>
+---
+ CMakeLists.txt | 1 -
+ parser/CMakeLists.txt | 1 -
+ 2 files changed, 2 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index bd24c9c..513d28a 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -5,7 +5,6 @@ PROJECT(pkgmgr-info C)
+
+ SET(VERSION 0.0.17)
+ SET(VERSION_MAJOR 0)
+-INCLUDE(TizenCommon)
+
+ SET(PREFIX ${CMAKE_INSTALL_PREFIX})
+ SET(EXEC_PREFIX "\${prefix}")
+diff --git a/parser/CMakeLists.txt b/parser/CMakeLists.txt
+index 8904ecc..f183758 100755
+--- a/parser/CMakeLists.txt
++++ b/parser/CMakeLists.txt
+@@ -6,7 +6,6 @@ cmake_minimum_required(VERSION 2.6)
+ #set(CMAKE_SKIP_BUILD_RPATH true)
+ set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
+
+-INCLUDE(TizenCommon)
+
+ ### Versioning
+ if(DEFINED ${VERSION})
+--
+1.7.9.5
+
diff --git a/meta-application-manager/recipes-application-framework/pkgmgr-info/pkgmgr-info/remove-dlog-for-native-build.patch b/meta-application-manager/recipes-application-framework/pkgmgr-info/pkgmgr-info/remove-dlog-for-native-build.patch
new file mode 100644
index 0000000..bf83830
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/pkgmgr-info/pkgmgr-info/remove-dlog-for-native-build.patch
@@ -0,0 +1,71 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 7b9f75d..216d778 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -18,14 +18,14 @@ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/src ${CMAKE_
+
+ ### Required packages
+ INCLUDE(FindPkgConfig)
+-pkg_check_modules(pkgs REQUIRED glib-2.0 dlog vconf sqlite3 db-util libxml-2.0 dbus-1 dbus-glib-1 libtzplatform-config libsmack)
++pkg_check_modules(pkgs REQUIRED glib-2.0 vconf sqlite3 db-util libxml-2.0 dbus-1 dbus-glib-1 libtzplatform-config libsmack)
+
+ FOREACH(flag ${pkgs_CFLAGS})
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+ ENDFOREACH(flag)
+
+
+-pkg_check_modules(libpkgs REQUIRED glib-2.0 dlog vconf sqlite3 db-util libxml-2.0 dbus-1 dbus-glib-1 libtzplatform-config libsmack)
++pkg_check_modules(libpkgs REQUIRED glib-2.0 vconf sqlite3 db-util libxml-2.0 dbus-1 dbus-glib-1 libtzplatform-config libsmack)
+
+ FOREACH(flag ${libpkgs_CFLAGS})
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+diff --git a/parser/CMakeLists.txt b/parser/CMakeLists.txt
+index 8904ecc..1968805 100755
+--- a/parser/CMakeLists.txt
++++ b/parser/CMakeLists.txt
+@@ -26,7 +26,7 @@ message(STATUS "version/major : ${VERSION} / ${VERSION_MAJOR}")
+ ### Get required CFLAGS, LDFLAGS from pkg-config
+
+ include(FindPkgConfig)
+-pkg_check_modules(parser_pkgs REQUIRED dlog libxml-2.0 glib-2.0 sqlite3 db-util vconf)
++pkg_check_modules(parser_pkgs REQUIRED libxml-2.0 glib-2.0 sqlite3 db-util vconf)
+
+ foreach(flag ${parser_pkgs_CFLAGS})
+ set(parser_pkgs_CFLAGS_str "${parser_pkgs_CFLAGS_str} ${flag}")
+diff --git a/include/pkgmgr-info-debug.h b/include/pkgmgr-info-debug.h
+index 061fc50..809c048 100644
+--- a/include/pkgmgr-info-debug.h
++++ b/include/pkgmgr-info-debug.h
+@@ -22,12 +22,14 @@
+ #ifndef __PKGMGR_INFO_DEBUG_H__
+ #define __PKGMGR_INFO_DEBUG_H__
+
+-#include <dlog.h>
+-
+-#define _LOGE(fmt, arg...) LOGE(fmt, ##arg)
+-#define _LOGD(fmt, arg...) LOGD(fmt, ##arg)
++#define NATIVEFAKELOG(fmt, ...) \
++ do\
++ {\
++ printf("\n [%s: %s(): %d] " fmt"\n", rindex(__FILE__, '/')+1, __FUNCTION__, __LINE__, ##__VA_ARGS__);\
++ } while (0)
+
+-#define PKGMGR_INFO_ENABLE_DLOG
++#define _LOGE(fmt, arg...) NATIVEFAKELOG(fmt, ##arg)
++#define _LOGD(fmt, arg...) NATIVEFAKELOG(fmt, ##arg)
+
+ #define COLOR_RED "\033[0;31m"
+ #define COLOR_BLUE "\033[0;34m"
+@@ -60,6 +62,12 @@
+ while( 0 )
+
+ #else
++#define PKGMGR_INFO_DEBUG_ERR(fmt, ...)\
++ do\
++ {\
++ printf("\n [%s: %s(): %d] " fmt"\n", rindex(__FILE__, '/')+1, __FUNCTION__, __LINE__, ##__VA_ARGS__);\
++ }while (0)
++
+ #define PKGMGR_INFO_DEBUG(fmt, ...) \
+ do\
+ {\
diff --git a/meta-application-manager/recipes-application-framework/pkgmgr-info/pkgmgr-info_git.bb b/meta-application-manager/recipes-application-framework/pkgmgr-info/pkgmgr-info_git.bb
new file mode 100644
index 0000000..8c50da2
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/pkgmgr-info/pkgmgr-info_git.bb
@@ -0,0 +1,10 @@
+require pkgmgr-info.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI += "git://review.tizen.org/platform/core/appfw/pkgmgr-info;tag=b5c4655153dd8ba3619f1c15f85d2549812daf06;nobranch=1"
+
+BBCLASSEXTEND += " native "
+
diff --git a/meta-application-manager/recipes-application-framework/pkgmgr/files/0001-remove-TizenConfig.patch b/meta-application-manager/recipes-application-framework/pkgmgr/files/0001-remove-TizenConfig.patch
new file mode 100644
index 0000000..80e3396
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/pkgmgr/files/0001-remove-TizenConfig.patch
@@ -0,0 +1,12 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -6,8 +6,7 @@
+ CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+ SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
+
+ PROJECT(package-manager C)
+-INCLUDE(TizenCommon)
+
+ SET(VERSION 0.1.68)
+ SET(VERSION_MAJOR 0)
+
diff --git a/meta-application-manager/recipes-application-framework/pkgmgr/files/Add_extralib.diff b/meta-application-manager/recipes-application-framework/pkgmgr/files/Add_extralib.diff
new file mode 100644
index 0000000..efd9553
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/pkgmgr/files/Add_extralib.diff
@@ -0,0 +1,28 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index e0a9211..96a28f1 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-#
++#
+ # Copyright (c) 2008 ~ 2010 Samsung Electronics Co., Ltd.
+ # All rights reserved
+ #
+@@ -37,7 +37,7 @@ FOREACH(flag ${pkgs_CFLAGS})
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+ ENDFOREACH(flag)
+
+-pkg_check_modules(libpkgs REQUIRED dbus-glib-1 dlog ail pkgmgr-parser pkgmgr-info iniparser libtzplatform-config notification)
++pkg_check_modules(libpkgs REQUIRED dbus-glib-1 dlog ail pkgmgr-parser pkgmgr-info iniparser libtzplatform-config notification xdgmime security-server)
+
+ FOREACH(flag ${libpkgs_CFLAGS})
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+@@ -76,7 +76,7 @@ ADD_LIBRARY(${PKGMGR_CLIENT} SHARED ${libpkgmgr-client_SOURCES})
+ SET_TARGET_PROPERTIES(${PKGMGR_CLIENT} PROPERTIES SOVERSION ${VERSION_MAJOR})
+ SET_TARGET_PROPERTIES(${PKGMGR_CLIENT} PROPERTIES VERSION ${VERSION})
+ SET_TARGET_PROPERTIES(${PKGMGR_CLIENT} PROPERTIES COMPILE_FLAGS "${libpkgmgr-client_CFLAGS}")
+-TARGET_LINK_LIBRARIES(${PKGMGR_CLIENT} pkgmgr_installer_client pkgmgr_installer_status_broadcast_server pkgmgr-info ${libpkgs_LDFLAGS})
++TARGET_LINK_LIBRARIES(${PKGMGR_CLIENT} pkgmgr_installer_client pkgmgr_installer_status_broadcast_server pkgmgr-info ${libpkgs_LDFLAGS} -ldl)
+ ###################################################################################################
+
+ ###################################################################################################
diff --git a/meta-application-manager/recipes-application-framework/pkgmgr/files/remove-dlog-for-native-build.patch b/meta-application-manager/recipes-application-framework/pkgmgr/files/remove-dlog-for-native-build.patch
new file mode 100644
index 0000000..8b0d257
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/pkgmgr/files/remove-dlog-for-native-build.patch
@@ -0,0 +1,213 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 96a28f1..471bb77 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -18,6 +18,8 @@ SET(LIBDIR ${LIB_INSTALL_DIR})
+ SET(INCLUDEDIR "\${prefix}/include")
+
+
++ADD_DEFINITIONS("-DNDEBUG")
++
+ set(CMAKE_SKIP_BUILD_RPATH true)
+
+ #Verbose
+@@ -28,16 +28,16 @@ INCLUDE(FindPkgConfig)
+ OPTION(X11_SUPPORT "Enable X support" ON)
+ IF(X11_SUPPORT)
+ ADD_DEFINITIONS("-DHAVE_X11")
+- pkg_check_modules(pkgs REQUIRED security-server dlog elementary evas ecore appcore-efl ecore-x ail ecore-file pkgmgr-parser pkgmgr-info iniparser libtzplatform-config)
++ pkg_check_modules(pkgs REQUIRED security-server elementary evas ecore appcore-efl ecore-x ail ecore-file pkgmgr-parser pkgmgr-info iniparser libtzplatform-config)
+ ELSE()
+- pkg_check_modules(pkgs REQUIRED security-server dlog elementary evas ecore appcore-efl ecore-wayland ail ecore-file pkgmgr-parser pkgmgr-info iniparser libtzplatform-config)
++ pkg_check_modules(pkgs REQUIRED security-server elementary evas ecore appcore-efl ail ecore-file pkgmgr-parser pkgmgr-info iniparser libtzplatform-config)
+ ENDIF(X11_SUPPORT)
+
+ FOREACH(flag ${pkgs_CFLAGS})
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+ ENDFOREACH(flag)
+
+-pkg_check_modules(libpkgs REQUIRED dbus-glib-1 dlog ail pkgmgr-parser pkgmgr-info iniparser libtzplatform-config xdgmime)
++pkg_check_modules(libpkgs REQUIRED dbus-glib-1 ail pkgmgr-parser pkgmgr-info iniparser libtzplatform-config xdgmime)
+
+ FOREACH(flag ${libpkgs_CFLAGS})
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+diff --git a/client/include/pkgmgr-debug.h b/client/include/pkgmgr-debug.h
+index 7ec0523..7599fd1 100644
+--- a/client/include/pkgmgr-debug.h
++++ b/client/include/pkgmgr-debug.h
+@@ -22,10 +22,14 @@
+ #ifndef __PKGMGR_DEBUG_H__
+ #define __PKGMGR_DEBUG_H__
+
+-#include <dlog.h>
+-
+-#define _LOGE(fmt, arg...) LOGE(fmt, ##arg)
+-#define _LOGD(fmt, arg...) LOGD(fmt, ##arg)
++//#include <dlog.h>
++#define NATIVEFAKELOG(fmt, ...) \
++ do\
++ {\
++ printf("\n [%s: %s(): %d] " fmt"\n", rindex(__FILE__, '/')+1, __FUNCTION__, __LINE__, ##__VA_ARGS__);\
++ } while (0)
++#define _LOGE(fmt, arg...) NATIVEFAKELOG(fmt, ##arg)
++#define _LOGD(fmt, arg...) NATIVEFAKELOG(fmt, ##arg)
+
+
+ #define COLOR_RED "\033[0;31m"
+@@ -35,25 +35,21 @@
+ #define PKGMGR_DEBUG(fmt, ...)\
+ do\
+ {\
+- LOGD("[%s(): %d]" fmt, __FUNCTION__, __LINE__,##__VA_ARGS__);\
+ } while (0)
+
+ #define PKGMGR_DEBUG_ERR(fmt, ...)\
+ do\
+ {\
+- LOGE(COLOR_RED"[%s(): %d]" fmt COLOR_END, __FUNCTION__, __LINE__,##__VA_ARGS__);\
+ }while (0)
+
+ #define PKGMGR_BEGIN() \
+ do\
+ {\
+- LOGD(COLOR_BLUE"[%s(): %d] BEGIN >>>>"COLOR_END, __FUNCTION__ ,__LINE__);\
+ } while( 0 )
+
+ #define PKGMGR_END() \
+ do\
+ {\
+- LOGD(COLOR_BLUE"[%s(): %d] END <<<<"COLOR_END, __FUNCTION__,__LINE__ );\
+ } \
+ while( 0 )
+
+diff --git a/comm/CMakeLists.txt b/comm/CMakeLists.txt
+index 7378df5..fd5a714 100755
+--- a/comm/CMakeLists.txt
++++ b/comm/CMakeLists.txt
+@@ -25,7 +25,7 @@ message(STATUS "version/major : ${VERSION} / ${VERSION_MAJOR}")
+ ### Get required CFLAGS, LDFLAGS from pkg-config
+
+ include(FindPkgConfig)
+-pkg_check_modules(comm_pkgs REQUIRED dbus-1 dbus-glib-1 dlog pkgmgr-info)
++pkg_check_modules(comm_pkgs REQUIRED dbus-1 dbus-glib-1 pkgmgr-info)
+
+ foreach(flag ${comm_pkgs_CFLAGS})
+ set(comm_pkgs_CFLAGS_str "${comm_pkgs_CFLAGS_str} ${flag}")
+diff --git a/comm/comm_config.h b/comm/comm_config.h
+index 6fa50a9..7570b93 100755
+--- a/comm/comm_config.h
++++ b/comm/comm_config.h
+@@ -36,7 +36,7 @@
+ #endif
+
+ /* Debug message macro */
+-#define USE_DLOG 1 /* Use dlog! */
++//#define USE_DLOG 1 /* Use dlog! */
+
+ #ifndef NDEBUG
+ #ifdef USE_DLOG
+@@ -54,14 +54,14 @@
+ #include <sys/types.h>
+ #include <unistd.h>
+ #define dbg(fmtstr, args...) \
+- do {
++ do {\
+ fprintf(stdout, "[%d:comm]%s:%d:%s(): " \
+ fmtstr "\n", getpid(),\
+ basename(__FILE__), __LINE__, __func__, ##args);\
+ } while (0)
+
+ #define ERR(fmtstr, args...) \
+- do {
++ do {\
+ fprintf(stderr, "[%d:comm]%s:%d:%s(): " \
+ fmtstr "\n", getpid(),\
+ basename(__FILE__), __LINE__, __func__, ##args);\
+@@ -69,6 +69,14 @@
+ #endif /* USE_DLOG */
+ #else
+ #define dbg(fmtstr, args...)
++#define NATIVEFAKELOG(fmt, ...) \
++ do\
++ {\
++ printf("\n [%s: %s(): %d] " fmt"\n", rindex(__FILE__, '/')+1, __FUNCTION__, __LINE__, ##__VA_ARGS__);\
++ } while (0)
++#define ERR(fmt, arg...) NATIVEFAKELOG(fmt, ##arg)
++#define LOGD(fmt, arg...) NATIVEFAKELOG(fmt, ##arg)
++#define LOGE(fmt, arg...) NATIVEFAKELOG(fmt, ##arg)
+ #endif
+
+ /* from comm_pkg_mgr.xml
+diff --git a/comm/pkgmgr_installer.h b/comm/pkgmgr_installer.h
+index 661249b..126b893 100755
+--- a/comm/pkgmgr_installer.h
++++ b/comm/pkgmgr_installer.h
+@@ -40,7 +40,7 @@ extern "C" {
+
+ #include <stdlib.h>
+ #include <getopt.h>
+-#include <dlog.h>
++//#include <dlog.h>
+
+
+
+diff --git a/comm/test/CMakeLists.txt b/comm/test/CMakeLists.txt
+index 016aca7..48c547e 100755
+--- a/comm/test/CMakeLists.txt
++++ b/comm/test/CMakeLists.txt
+@@ -1,5 +1,5 @@
+ include(FindPkgConfig)
+-pkg_check_modules(test_pkgs REQUIRED dbus-glib-1 glib-2.0 dlog)
++pkg_check_modules(test_pkgs REQUIRED dbus-glib-1 glib-2.0 )
+
+ add_definitions(${test_pkgs_CFLAGS})
+
+diff --git a/installers/sample/CMakeLists.txt b/installers/sample/CMakeLists.txt
+index 162c8f4..6a027a1 100755
+--- a/installers/sample/CMakeLists.txt
++++ b/installers/sample/CMakeLists.txt
+@@ -1,5 +1,5 @@
+ include(FindPkgConfig)
+-pkg_check_modules(parser_pkgs REQUIRED dlog libxml-2.0)
++pkg_check_modules(parser_pkgs REQUIRED libxml-2.0)
+
+ foreach(flag ${parser_pkgs_CFLAGS})
+ set(parser_pkgs_CFLAGS_str "${parser_pkgs_CFLAGS_str} ${flag}")
+diff --git a/installers/sample/sample_parserlib.c b/installers/sample/sample_parserlib.c
+index 4eb175b..d017318 100755
+--- a/installers/sample/sample_parserlib.c
++++ b/installers/sample/sample_parserlib.c
+@@ -33,7 +33,7 @@
+ #include <libxml/xmlreader.h>
+
+ /* debug output */
+-#include <dlog.h>
++//#include <dlog.h>
+ #undef LOG_TAG
+ #define LOG_TAG "PKGMGR_PARSER"
+
+diff --git a/tool/CMakeLists.txt b/tool/CMakeLists.txt
+index 0eeb65b..f2f951b 100755
+--- a/tool/CMakeLists.txt
++++ b/tool/CMakeLists.txt
+@@ -17,7 +17,7 @@ FOREACH(flag ${pkgs_test_CFLAGS})
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+ ENDFOREACH(flag)
+
+-pkg_check_modules(toolpkgs REQUIRED appcore-efl dlog bundle glib-2.0 pkgmgr-parser vconf security-server pkgmgr-info libtzplatform-config)
++pkg_check_modules(toolpkgs REQUIRED appcore-efl bundle glib-2.0 pkgmgr-parser vconf security-server pkgmgr-info libtzplatform-config)
+ FOREACH(flag ${libpkgs_CFLAGS})
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+ ENDFOREACH(flag)
+diff --git a/server/src/pkgmgr-server.c b/server/src/pkgmgr-server.c
+index 8865c2f..45a775f 100755
+--- a/server/src/pkgmgr-server.c
++++ b/server/src/pkgmgr-server.c
+@@ -59,6 +59,7 @@
+
+ /* debug output */
+ #if defined(NDEBUG)
++#define DBGE(fmt, args...)
+ #define DBG(fmt, args...)
+ #define __SET_DBG_OUTPUT(fp)
+ #elif defined(PRINT)
diff --git a/meta-application-manager/recipes-application-framework/pkgmgr/pkgmgr-extraconf.inc b/meta-application-manager/recipes-application-framework/pkgmgr/pkgmgr-extraconf.inc
new file mode 100644
index 0000000..914d02b
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/pkgmgr/pkgmgr-extraconf.inc
@@ -0,0 +1,18 @@
+SRC_URI += "file://Add_extralib.diff"
+SRC_URI_append_class-native = " file://remove-dlog-for-native-build.patch"
+
+do_compile_prepend_class-native() {
+ sed -i "s@"/usr/bin/pkginfo@"${STAGING_BINDIR_NATIVE}/pkginfo@g" ${S}/tool/pkg_initdb.c
+}
+
+do_install_append() {
+ rm -fr "${D}${prefix}/bin/pkgcmd.real"
+ rm -fr "${D}${prefix}/bin/pkgcmd.wrapper"
+}
+
+RDEPENDS_${PN}_remove_class-native = "systemd-native"
+DEPENDS_remove_class-native = "dlog-native"
+
+RDEPENDS_${PN}-client += "pkgmgr-server"
+
+EXTRA_OECMAKE+="-DCMAKE_AR:PATH=ar" \ No newline at end of file
diff --git a/meta-application-manager/recipes-application-framework/pkgmgr/pkgmgr.inc b/meta-application-manager/recipes-application-framework/pkgmgr/pkgmgr.inc
new file mode 100644
index 0000000..144d882
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/pkgmgr/pkgmgr.inc
@@ -0,0 +1,308 @@
+DESCRIPTION = "Packager Manager client library package"
+HOMEPAGE = "http://nohomepage.org"
+SECTION = "Application Framework/Package Management"
+LICENSE = "Apache-2.0"
+PV = "0.2.89"
+PR = "r1"
+
+SRC_URI = " file://0001-remove-TizenConfig.patch "
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by pkgmgr-client
+PROVIDES += "pkgmgr-client"
+
+
+#PROVIDES by pkgmgr
+
+
+#PROVIDES by pkgmgr-server
+PROVIDES += "pkgmgr-server"
+
+
+#PROVIDES by pkgmgr-types-dev
+PROVIDES += "pkgmgr-types-dev"
+
+
+#PROVIDES by pkgmgr-client-dev
+PROVIDES += "pkgmgr-client-dev"
+
+
+#PROVIDES by pkgmgr-installer-dev
+PROVIDES += "pkgmgr-installer-dev"
+
+
+#PROVIDES by pkgmgr-installer
+PROVIDES += "pkgmgr-installer"
+
+
+RDEPENDS = ""
+#RDEPENDS of pkgmgr-client (${PN}-client)
+RDEPENDS_${PN}-client += "shared-mime-info"
+RDEPENDS_${PN}-client += "pkgmgr"
+
+#RDEPENDS of pkgmgr-server (${PN}-server)
+RDEPENDS_${PN}-server += "pkgmgr"
+
+#RDEPENDS of pkgmgr-types-dev (${PN}-types-dev)
+RDEPENDS_${PN}-types-dev += "pkgmgr"
+
+#RDEPENDS of pkgmgr-client-dev (${PN}-client-dev)
+RDEPENDS_${PN}-client-dev += "pkgmgr"
+
+#RDEPENDS of pkgmgr-installer-dev (${PN}-installer-dev)
+RDEPENDS_${PN}-installer-dev += "pkgmgr"
+
+#RDEPENDS of pkgmgr-installer (${PN}-installer)
+RDEPENDS_${PN}-installer += "pkgmgr"
+
+
+DEPENDS = ""
+#DEPENDS of pkgmgr
+DEPENDS += "pkgmgr-info"
+#Replace "DEPENDS" on gettext by "inherit gettext"
+inherit gettext
+DEPENDS += "unzip"
+inherit tizen_cmake
+DEPENDS += "iniparser"
+DEPENDS += "notification"
+DEPENDS += "dbus"
+inherit pkgconfig
+DEPENDS += "dlog"
+DEPENDS += "security-server"
+DEPENDS += "ail"
+DEPENDS += "smack"
+DEPENDS += "bundle"
+DEPENDS += "ecore"
+DEPENDS += "app-core"
+DEPENDS += "tizen-platform-config"
+DEPENDS += "dbus-glib"
+DEPENDS_append_class-native = " fdupes-native"
+DEPENDS_append_class-target = " fdupes-native"
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q
+ cp ${S}/packaging/pkgmgr.manifest ${S}/packaging/pkgmgr-client.manifest ${S}/packaging/pkgmgr-client-devel.manifest ${S}/packaging/pkgmgr-server.manifest ${S}/packaging/pkgmgr-installer.manifest ${S}/packaging/pkgmgr-installer-devel.manifest ${S}/packaging/pkgmgr-types-devel.manifest .
+
+
+}
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+
+ cmake \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_INSTALL_PREFIX:PATH=/usr \
+ -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib \
+ -DINCLUDE_INSTALL_DIR:PATH=/usr/include \
+ -DLIB_INSTALL_DIR:PATH=/usr/lib \
+ -DSYSCONF_INSTALL_DIR:PATH=/etc/ \
+ -DSHARE_INSTALL_PREFIX:PATH=/usr/share \
+ -DCMAKE_SKIP_RPATH:BOOL=ON \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
+ ${EXTRA_OECMAKE} .
+
+ oe_runmake ${PARALLEL_MAKE}
+
+
+
+}
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+
+ oe_runmake \
+ DESTDIR=${D} \
+ INSTALL_ROOT=${D} \
+ BINDIR=/usr/bin \
+ install
+ rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+ rm -f ${D}/usr/bin/pkgmgr_backend_sample
+ rm -f ${D}/usr/lib/libpkgmgr_backend_lib_sample.so
+ rm -f ${D}/usr/lib/libpkgmgr_parser_lib_sample.so
+
+ mkdir -p ${D}/package-manager/backend
+ mkdir -p ${D}/package-manager/backendlib
+ mkdir -p ${D}/opt/upgrade
+
+ mkdir -p ${D}/package-manager/server
+
+ #find_lang package-manager
+
+ #fdupes ${D}
+
+
+}
+
+pkg_postinst_pkgmgr-installer() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+pkg_postinst_pkgmgr-server() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+pkg_postinst_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+ # For pkgmgr-install:
+ # Update mime database to support package mime types
+ update-mime-database $D/usr/share/mime
+ chsmack -a '*' $D/usr/share/packages
+
+}
+
+pkg_postinst_pkgmgr-client() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+pkg_postrm_pkgmgr-client() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+pkg_postrm_pkgmgr-installer() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " pkgmgr-client "
+PACKAGES += " pkgmgr "
+PACKAGES += " pkgmgr-server "
+PACKAGES += " pkgmgr-types-dev "
+PACKAGES += " pkgmgr-client-dev "
+PACKAGES += " pkgmgr-installer-dev "
+PACKAGES += " pkgmgr-installer "
+
+pkgmgr-client_files = ""
+pkgmgr-client_files += "/package-manager"
+pkgmgr-client_files += "/package-manager/pkg_path.conf"
+pkgmgr-client_files += "/usr/lib/libpkgmgr-client.so.*"
+CONFFILES_${PN}-client = ""
+CONFFILES_${PN}-client += "/package-manager/pkg_path.conf"
+MANIFESTFILES_${PN}-client = "pkgmgr-client.manifest"
+DIRFILES_${PN}-client = ""
+DIRFILES_${PN}-client += "/package-manager"
+
+pkgmgr_files = ""
+pkgmgr_files += "/package-manager/backend"
+pkgmgr_files += "/package-manager/backendlib"
+pkgmgr_files += "/opt/upgrade"
+pkgmgr_files += "/opt/upgrade/pkgmgr.patch.sh"
+pkgmgr_files += "/usr/bin/pkgcmd"
+pkgmgr_files += "/usr/bin/pkg_createdb"
+pkgmgr_files += "/usr/bin/pkg_createdb_user"
+pkgmgr_files += "/usr/bin/pkg_syncdb"
+pkgmgr_files += "/usr/bin/pkg_syncdb_user"
+pkgmgr_files += "/usr/bin/pkg_initdb"
+pkgmgr_files += "/usr/bin/pkg_initdb_user"
+pkgmgr_files += "/usr/bin/pkg_getsize"
+pkgmgr_files += "/usr/bin/pkginfo"
+pkgmgr_files += "/usr/bin/pkgmgr-install"
+pkgmgr_files += "%dir /usr/share/packages"
+pkgmgr_files += "/usr/share/packages/org.tizen.pkgmgr-install.xml"
+pkgmgr_files += "/usr/share/mime/packages/mime.wac.xml"
+pkgmgr_files += "/usr/share/mime/packages/mime.tpk.xml"
+MANIFESTFILES_${PN} = "pkgmgr.manifest"
+DIRFILES_${PN} = ""
+DIRFILES_${PN} += "/package-manager/backend"
+DIRFILES_${PN} += "/package-manager/backendlib"
+DIRFILES_${PN} += "/opt/upgrade"
+
+pkgmgr-server_files = ""
+pkgmgr-server_files += "/usr/share/dbus-1/system-services/org.tizen.slp.pkgmgr.service"
+pkgmgr-server_files += "/dbus-1/system.d/org.tizen.slp.pkgmgr.conf"
+pkgmgr-server_files += "/usr/bin/pkgmgr-server"
+pkgmgr-server_files += "/package-manager/server"
+CONFFILES_${PN}-server = ""
+CONFFILES_${PN}-server += "/dbus-1/system.d/org.tizen.slp.pkgmgr.conf"
+MANIFESTFILES_${PN}-server = "pkgmgr-server.manifest"
+
+pkgmgr-types-dev_files = ""
+pkgmgr-types-dev_files += "/usr/include/package-manager-types.h"
+pkgmgr-types-dev_files += "/usr/include/package-manager-plugin.h"
+pkgmgr-types-dev_files += "/usr/lib/pkgconfig/pkgmgr-types.pc"
+MANIFESTFILES_${PN}-types-dev = "pkgmgr-types-devel.manifest"
+
+pkgmgr-client-dev_files = ""
+pkgmgr-client-dev_files += "/usr/include/package-manager.h"
+pkgmgr-client-dev_files += "/usr/include/pkgmgr-dbinfo.h"
+pkgmgr-client-dev_files += "/usr/lib/pkgconfig/pkgmgr.pc"
+pkgmgr-client-dev_files += "/usr/lib/libpkgmgr-client.so"
+MANIFESTFILES_${PN}-client-dev = "pkgmgr-client-devel.manifest"
+
+pkgmgr-installer-dev_files = ""
+pkgmgr-installer-dev_files += "/usr/include/pkgmgr"
+pkgmgr-installer-dev_files += "/usr/include/pkgmgr/pkgmgr_installer.h"
+pkgmgr-installer-dev_files += "/usr/lib/pkgconfig/pkgmgr-installer-status-broadcast-server.pc"
+pkgmgr-installer-dev_files += "/usr/lib/pkgconfig/pkgmgr-installer.pc"
+pkgmgr-installer-dev_files += "/usr/lib/pkgconfig/pkgmgr-installer-client.pc"
+pkgmgr-installer-dev_files += "/usr/lib/libpkgmgr_installer.so"
+pkgmgr-installer-dev_files += "/usr/lib/libpkgmgr_installer_client.so"
+pkgmgr-installer-dev_files += "/usr/lib/libpkgmgr_installer_status_broadcast_server.so"
+MANIFESTFILES_${PN}-installer-dev = "pkgmgr-installer-devel.manifest"
+DIRFILES_${PN}-installer-dev = ""
+DIRFILES_${PN}-installer-dev += "/usr/include/pkgmgr"
+
+pkgmgr-installer_files = ""
+pkgmgr-installer_files += "/usr/lib/libpkgmgr_installer.so.*"
+pkgmgr-installer_files += "/usr/lib/libpkgmgr_installer_status_broadcast_server.so.*"
+pkgmgr-installer_files += "/usr/lib/libpkgmgr_installer_client.so.*"
+MANIFESTFILES_${PN}-installer = "pkgmgr-installer.manifest"
+
+FILES_${PN}-client = "${pkgmgr-client_files}"
+FILES_${PN} = "${pkgmgr_files}"
+FILES_${PN}-server = "${pkgmgr-server_files}"
+FILES_${PN}-types-dev = "${pkgmgr-types-dev_files}"
+FILES_${PN}-client-dev = "${pkgmgr-client-dev_files}"
+FILES_${PN}-installer-dev = "${pkgmgr-installer-dev_files}"
+FILES_${PN}-installer = "${pkgmgr-installer_files}"
+
+PKG_pkgmgr-client= "pkgmgr-client"
+PKG_pkgmgr= "pkgmgr"
+PKG_pkgmgr-server= "pkgmgr-server"
+PKG_pkgmgr-types-dev= "pkgmgr-types-dev"
+PKG_pkgmgr-client-dev= "pkgmgr-client-dev"
+PKG_pkgmgr-installer-dev= "pkgmgr-installer-dev"
+PKG_pkgmgr-installer= "pkgmgr-installer"
+
+require pkgmgr-extraconf.inc
+
diff --git a/meta-application-manager/recipes-application-framework/pkgmgr/pkgmgr_git.bb b/meta-application-manager/recipes-application-framework/pkgmgr/pkgmgr_git.bb
new file mode 100644
index 0000000..74a3593
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/pkgmgr/pkgmgr_git.bb
@@ -0,0 +1,10 @@
+require pkgmgr.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI += "git://review.tizen.org/platform/core/appfw/slp-pkgmgr;tag=ceb738c1b4e04b9b07cbbc87ec0f4c949e4fbab3;nobranch=1"
+
+BBCLASSEXTEND += " native "
+
diff --git a/meta-application-manager/recipes-application-framework/vconf-internal-keys/vconf-internal-keys-extraconf.inc b/meta-application-manager/recipes-application-framework/vconf-internal-keys/vconf-internal-keys-extraconf.inc
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/vconf-internal-keys/vconf-internal-keys-extraconf.inc
diff --git a/meta-application-manager/recipes-application-framework/vconf-internal-keys/vconf-internal-keys.inc b/meta-application-manager/recipes-application-framework/vconf-internal-keys/vconf-internal-keys.inc
new file mode 100644
index 0000000..e5fbf31
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/vconf-internal-keys/vconf-internal-keys.inc
@@ -0,0 +1,107 @@
+DESCRIPTION = "Internal shared keys for vconf"
+HOMEPAGE = "http://nohomepage.org"
+SECTION = "Application Framework/Development"
+LICENSE = "Apache-2.0"
+PV = "0.0.82"
+
+SRC_URI = ""
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by vconf-internal-keys
+
+
+#PROVIDES by vconf-internal-keys-dev
+PROVIDES += "vconf-internal-keys-dev"
+
+
+RDEPENDS = ""
+
+DEPENDS = ""
+#DEPENDS of vconf-internal-keys
+inherit tizen_cmake
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q
+ cp ${S}/packaging/vconf-internal-keys.manifest .
+
+
+}
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+
+ cmake \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
+ -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
+ -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
+ -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
+ -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
+ -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
+ -DCMAKE_SKIP_RPATH:BOOL=ON \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
+ ${EXTRA_OECMAKE} .
+
+ make ${PARALLEL_MAKE}
+
+
+
+}
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+
+ oe_runmake \
+ DESTDIR=${D} \
+ INSTALL_ROOT=${D} \
+ BINDIR=${prefix}/bin \
+ install
+ rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+
+
+
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " vconf-internal-keys-dev "
+
+vconf-internal-keys-dev_files = ""
+vconf-internal-keys-dev_files += "${prefix}/include/vconf/*"
+vconf-internal-keys-dev_files += "${prefix}/lib/pkgconfig/*.pc"
+MANIFESTFILES_${PN}-dev = "vconf-internal-keys.manifest"
+
+FILES_${PN}-dev = "${vconf-internal-keys-dev_files}"
+
+PKG_vconf-internal-keys-dev= "vconf-internal-keys-dev"
+
+require vconf-internal-keys-extraconf.inc
+
diff --git a/meta-application-manager/recipes-application-framework/vconf-internal-keys/vconf-internal-keys_git.bb b/meta-application-manager/recipes-application-framework/vconf-internal-keys/vconf-internal-keys_git.bb
new file mode 100644
index 0000000..0aff6fa
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/vconf-internal-keys/vconf-internal-keys_git.bb
@@ -0,0 +1,10 @@
+require vconf-internal-keys.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI += "git://review.tizen.org/platform/core/appfw/vconf-internal-keys;tag=9d1f756ba5062a60eeea11cf0b2b7fd60461bcf5;nobranch=1"
+
+BBCLASSEXTEND += " native "
+
diff --git a/meta-application-manager/recipes-application-framework/vconf/files/0002_compiler_changes.patch b/meta-application-manager/recipes-application-framework/vconf/files/0002_compiler_changes.patch
new file mode 100644
index 0000000..e80c6b0
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/vconf/files/0002_compiler_changes.patch
@@ -0,0 +1,46 @@
+--- a/include/vconf-internals.h
++++ b/include/vconf-internals.h
+@@ -189,6 +189,6 @@
+ int _vconf_keynode_set_keyname(keynode_t *keynode, const char *keyname);
+-inline void _vconf_keynode_set_null(keynode_t *keynode);
+-inline keynode_t *_vconf_keynode_new(void);
+-inline void _vconf_keynode_free(keynode_t *keynode);
++void _vconf_keynode_set_null(keynode_t *keynode);
++keynode_t *_vconf_keynode_new(void);
++void _vconf_keynode_free(keynode_t *keynode);
+
+ #endif
+--- a/vconf.c
++++ b/vconf.c
+@@ -119,7 +119,7 @@
+ }
+
+-inline void _vconf_keynode_set_null(keynode_t *keynode)
++void _vconf_keynode_set_null(keynode_t *keynode)
+ {
+ keynode->type = VCONF_TYPE_NONE;
+ //keynode->value.d = NULL;
+ }
+--- a/vconf.c
++++ b/vconf.c
+@@ -130,7 +130,7 @@
+ return keynode->next;
+ }
+
+-inline keynode_t *_vconf_keynode_new(void)
++keynode_t *_vconf_keynode_new(void)
+ {
+ keynode_t *keynode;
+ keynode = calloc(1, sizeof(keynode_t));
+--- a/vconf.c
++++ b/vconf.c
+@@ -138,7 +138,7 @@
+ }
+
+-inline void _vconf_keynode_free(keynode_t *keynode)
++void _vconf_keynode_free(keynode_t *keynode)
+ {
+ if(keynode) {
+ if (keynode->keyname)
+ free(keynode->keyname);
+
diff --git a/meta-application-manager/recipes-application-framework/vconf/files/remove-dlog-for-native.patch b/meta-application-manager/recipes-application-framework/vconf/files/remove-dlog-for-native.patch
new file mode 100644
index 0000000..b714d45
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/vconf/files/remove-dlog-for-native.patch
@@ -0,0 +1,25 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 28d168d..9dd6e52 100755
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -17,7 +17,7 @@ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
+
+ INCLUDE(FindPkgConfig)
+ pkg_check_modules(glib_pkg REQUIRED gobject-2.0)
+-pkg_check_modules(pkgs REQUIRED glib-2.0 dlog libtzplatform-config vconf-internal-keys)
++pkg_check_modules(pkgs REQUIRED glib-2.0 libtzplatform-config vconf-internal-keys)
+
+ FOREACH(flag ${pkgs_CFLAGS})
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+diff --git a/include/vconf-log.h b/include/vconf-log.h
+index fa53102..f70d1e1 100755
+--- a/include/vconf-log.h
++++ b/include/vconf-log.h
+@@ -26,7 +26,6 @@
+ #include <unistd.h>
+ #include <stdlib.h>
+
+-#define VCONF_DLOG_OUT
+
+ /************** Error ***************/
+ #ifdef VCONF_SYSLOG_OUT
diff --git a/meta-application-manager/recipes-application-framework/vconf/vconf-extraconf.inc b/meta-application-manager/recipes-application-framework/vconf/vconf-extraconf.inc
new file mode 100644
index 0000000..abc8292
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/vconf/vconf-extraconf.inc
@@ -0,0 +1,28 @@
+SRC_URI_append_class-native = " file://remove-dlog-for-native.patch \
+ "
+SRC_URI_append = " file://0002_compiler_changes.patch \
+ "
+
+RDEPENDS_${PN}_remove_class-native = "glibc-native"
+RDEPENDS_${PN}_remove_class-native = "systemd-native"
+DEPENDS_remove_class-native = "dlog-native"
+
+DEPENDS_class-target += "glib-2.0"
+DEPENDS_class-target += "vconf-native"
+DEPENDS_class-target += "vconf-internal-keys"
+DEPENDS_class-target += "dlog"
+
+do_install_append_class-native() {
+ sed -i "s@source /etc/tizen-platform.conf@source ${sysconfdir}/tizen-platform.conf@g" ${D}${prefix}/bin/vconf-init
+}
+
+pkg_postinst_${PN}() {
+ #!/bin/sh -e
+
+ [ "x\$D" == "x" ] && ldconfig
+ [ "x\$D" == "x" ] && systemctl daemon-reload
+ chsmack -a 'User' $D${prefix}/kdb
+ chsmack -a 'User' $D${prefix}/kdb/db
+ chsmack -a 'User' $D${prefix}/kdb/db/.backup
+
+}
diff --git a/meta-application-manager/recipes-application-framework/vconf/vconf.inc b/meta-application-manager/recipes-application-framework/vconf/vconf.inc
new file mode 100644
index 0000000..dccda42
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/vconf/vconf.inc
@@ -0,0 +1,181 @@
+DESCRIPTION = "Configuration system library"
+HOMEPAGE = "http://nohomepage.org"
+SECTION = "System/Libraries"
+LICENSE = "Apache-2.0"
+PV = "0.2.51"
+
+SRC_URI = ""
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by vconf-keys-dev
+PROVIDES += "vconf-keys-dev"
+
+
+#PROVIDES by vconf
+
+
+#PROVIDES by vconf-dev
+PROVIDES += "vconf-dev"
+
+
+RDEPENDS = ""
+#RDEPENDS of vconf-keys-dev (${PN}-keys-dev)
+RDEPENDS_${PN}-keys-dev += "vconf"
+RDEPENDS_${PN}-keys-dev += "vconf-internal-keys-dev"
+
+#RDEPENDS of vconf (${PN})
+RDEPENDS_${PN} += "glibc"
+RDEPENDS_${PN} += "systemd"
+
+#RDEPENDS of vconf-dev (${PN}-dev)
+RDEPENDS_${PN}-dev += "vconf"
+RDEPENDS_${PN}-dev += "glib-2.0"
+
+
+DEPENDS = ""
+#DEPENDS of vconf
+inherit tizen_cmake
+DEPENDS += "vconf-internal-keys"
+DEPENDS += "tizen-platform-config"
+inherit pkgconfig
+DEPENDS += "dlog"
+DEPENDS += "glib-2.0"
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q -n vconf-0.2.51
+ cp ${S}/packaging/vconf.manifest .
+
+
+}
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+
+ cmake \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
+ -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
+ -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
+ -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
+ -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
+ -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
+ -DCMAKE_SKIP_RPATH:BOOL=ON \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
+ ${EXTRA_OECMAKE} . \
+ -DTZ_SYS_CONFIG=${prefix}/kdb
+
+ make ${PARALLEL_MAKE}
+
+
+
+}
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+
+ oe_runmake \
+ DESTDIR=${D} \
+ INSTALL_ROOT=${D} \
+ BINDIR=${prefix}/bin \
+ install
+ rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+ mkdir -p ${D}${prefix}/kdb/db
+ mkdir -p ${D}${prefix}/kdb/db/.backup
+ mkdir -p ${D}${systemd_unitdir}/system/basic.target.wants
+ mkdir -p ${D}${prefix}/lib/tmpfiles.d
+ install -m0644 ${S}/packaging/vconf-setup.service ${D}${systemd_unitdir}/system/
+ install -m0644 ${S}/packaging/vconf-setup.conf ${D}${prefix}/lib/tmpfiles.d/
+ ln -sf ../vconf-setup.service ${D}${systemd_unitdir}/system/basic.target.wants/
+
+
+}
+
+pkg_postinst_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+ systemctl daemon-reload
+ chsmack -a 'User' $D${prefix}/kdb
+ chsmack -a 'User' $D${prefix}/kdb/db
+ chsmack -a 'User' $D${prefix}/kdb/db/.backup
+
+}
+
+pkg_postrm_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+ systemctl daemon-reload
+
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " vconf-keys-dev "
+PACKAGES += " vconf "
+PACKAGES += " vconf-dev "
+
+vconf-keys-dev_files = ""
+vconf-keys-dev_files += "${prefix}/include/vconf/vconf-keys.h"
+MANIFESTFILES_${PN}-keys-dev = "vconf.manifest"
+
+vconf_files = ""
+vconf_files += "${sysconfdir}/preconf.d/vconf-setup"
+vconf_files += "${prefix}/bin/vconftool"
+vconf_files += "${prefix}/bin/vconf-init"
+vconf_files += "${prefix}/kdb/kdb_first_boot"
+vconf_files += "${prefix}/lib/*.so.*"
+vconf_files += "%attr(777,root,users) ${prefix}/kdb/db"
+vconf_files += "%attr(777,root,root) ${prefix}/kdb/db/.backup"
+vconf_files += "${systemd_unitdir}/system/basic.target.wants/vconf-setup.service"
+vconf_files += "${systemd_unitdir}/system/vconf-setup.service"
+vconf_files += "${prefix}/lib/tmpfiles.d/vconf-setup.conf"
+MANIFESTFILES_${PN} = "vconf.manifest"
+DIRFILES_${PN} = ""
+DIRFILES_${PN} += "%attr(777,root,users) ${prefix}/kdb/db"
+DIRFILES_${PN} += "%attr(777,root,root) ${prefix}/kdb/db/.backup"
+
+vconf-dev_files = ""
+vconf-dev_files += "${prefix}/include/vconf/vconf.h"
+vconf-dev_files += "${prefix}/lib/pkgconfig/*.pc"
+vconf-dev_files += "${prefix}/lib/*.so"
+MANIFESTFILES_${PN}-dev = "vconf.manifest"
+
+FILES_${PN}-keys-dev = "${vconf-keys-dev_files}"
+FILES_${PN} = "${vconf_files}"
+FILES_${PN}-dev = "${vconf-dev_files}"
+
+PKG_vconf-keys-dev= "vconf-keys-dev"
+PKG_vconf= "vconf"
+PKG_vconf-dev= "vconf-dev"
+
+require vconf-extraconf.inc
+
diff --git a/meta-application-manager/recipes-application-framework/vconf/vconf_git.bb b/meta-application-manager/recipes-application-framework/vconf/vconf_git.bb
new file mode 100644
index 0000000..bc66995
--- /dev/null
+++ b/meta-application-manager/recipes-application-framework/vconf/vconf_git.bb
@@ -0,0 +1,10 @@
+require vconf.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI += "git://review.tizen.org/platform/core/appfw/vconf;tag=4743f153c4f30c05e65c895ee03b689fafa29a43;nobranch=1"
+
+BBCLASSEXTEND += " native "
+
diff --git a/meta-application-manager/recipes-examples/amhelloworld/amhelloworld-extraconf.inc b/meta-application-manager/recipes-examples/amhelloworld/amhelloworld-extraconf.inc
new file mode 100644
index 0000000..139597f
--- /dev/null
+++ b/meta-application-manager/recipes-examples/amhelloworld/amhelloworld-extraconf.inc
@@ -0,0 +1,2 @@
+
+
diff --git a/meta-application-manager/recipes-examples/amhelloworld/amhelloworld.inc b/meta-application-manager/recipes-examples/amhelloworld/amhelloworld.inc
new file mode 100644
index 0000000..9a1f8c9
--- /dev/null
+++ b/meta-application-manager/recipes-examples/amhelloworld/amhelloworld.inc
@@ -0,0 +1,96 @@
+DESCRIPTION = "APP-CORE example app"
+HOMEPAGE = "https://wiki.tizen.org/wiki/IVI/Tizen-Core-development-EFL"
+SECTION = "Application Framework/Libraries"
+LICENSE = "Apache-2.0"
+PV = "1.0"
+
+SRC_URI = ""
+
+S = "${WORKDIR}"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+
+RDEPENDS = ""
+
+inherit tizen_cmake
+DEPENDS += "app-core app-core-efl-dev"
+inherit pkgconfig
+DEPENDS += "ecore"
+DEPENDS += "elementary"
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q
+ #cp ${S}/packaging/ail.manifest .
+}
+
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+ CFLAGS="$CFLAGS -fpic"
+
+ cmake \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
+ -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
+ -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
+ -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
+ -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
+ -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
+ -DCMAKE_SKIP_RPATH:BOOL=ON \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
+ ${EXTRA_OECMAKE} . \
+ -DBUILD_PKGTYPE=deb
+
+ oe_runmake ${PARALLEL_MAKE}
+}
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+ oe_runmake \
+ DESTDIR=${D} \
+ INSTALL_ROOT=${D} \
+ BINDIR=${prefix}/bin \
+ install
+ #rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+}
+
+amhelloworld_files = ""
+amhelloworld_files += "${prefix}/packages/org.tizen.amhelloworld.xml"
+amhelloworld_files += "${prefix}/share/packages/org.tizen.amhelloworld.xml"
+amhelloworld_files += "${prefix}/bin/amhelloworld"
+MANIFESTFILES_${PN} = "org.tizen.amhelloworld.manifest"
+
+
+FILES_${PN} = "${amhelloworld_files}"
+
+PKG_aul= "amhelloworld"
+
+require amhelloworld-extraconf.inc
+
diff --git a/meta-application-manager/recipes-examples/amhelloworld/amhelloworld_1.0.bb b/meta-application-manager/recipes-examples/amhelloworld/amhelloworld_1.0.bb
new file mode 100644
index 0000000..6fd0107
--- /dev/null
+++ b/meta-application-manager/recipes-examples/amhelloworld/amhelloworld_1.0.bb
@@ -0,0 +1,15 @@
+require amhelloworld.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://README;md5=d41d8cd98f00b204e9800998ecf8427e"
+
+SRC_URI += "file://amhelloworld.h \
+ file://amhelloworld.c \
+ file://org.tizen.amhelloworld.manifest \
+ file://org.tizen.amhelloworld.spec \
+ file://org.tizen.amhelloworld.xml \
+ file://README \
+ file://CMakeLists.txt \
+ "
+
diff --git a/meta-application-manager/recipes-examples/amhelloworld/files/CMakeLists.txt b/meta-application-manager/recipes-examples/amhelloworld/files/CMakeLists.txt
new file mode 100644
index 0000000..affd644
--- /dev/null
+++ b/meta-application-manager/recipes-examples/amhelloworld/files/CMakeLists.txt
@@ -0,0 +1,46 @@
+CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+
+PROJECT(amhelloworld C)
+SET(VERSION_MAJOR 1)
+SET(VERSION "${VERSION_MAJOR}.0.0")
+
+
+ADD_DEFINITIONS("-DINSTALL_DIR_APPS=\"${INSTALL_DIR_APPS}\"")
+
+ADD_DEFINITIONS("-DBINDIR=\"${BINDIR}\"")
+ADD_DEFINITIONS("-DEDJDIR=\"${EDJDIR}\"")
+
+
+INCLUDE(FindPkgConfig)
+SET(AMHELLOWORLD-1_PKG_CHECK_MODULES aul appcore-efl appcore-common)
+pkg_check_modules(pkgs REQUIRED ${AMHELLOWORLD-1_PKG_CHECK_MODULES} )
+
+
+pkg_check_modules(libpkgs REQUIRED appcore-efl appcore-common)
+
+FOREACH(flag ${libpkgs_CFLAGS})
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+ENDFOREACH(flag)
+
+FOREACH(flag ${pkgs_CFLAGS})
+ SET(TEST_CFLAGS "${TEST_CFLAGS} ${flag}")
+ENDFOREACH(flag)
+
+SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -Wl,-zdefs" )
+SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fvisibility=hidden")
+SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fpic")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${TEST_CFLAGS}")
+SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
+SET(CMAKE_C_FLAGS_RELEASE "-O2")
+
+ADD_EXECUTABLE(${PROJECT_NAME}
+ amhelloworld.c)
+TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS} "-pie" ${LIB_M})
+
+INSTALL(TARGETS ${PROJECT_NAME} DESTINATION bin)
+
+# desktop icon
+set(PREFIX ${CMAKE_INSTALL_PREFIX})
+install(FILES ${CMAKE_SOURCE_DIR}/org.tizen.amhelloworld.xml DESTINATION /usr/share/packages)
+
diff --git a/meta-application-manager/recipes-examples/amhelloworld/files/README b/meta-application-manager/recipes-examples/amhelloworld/files/README
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/meta-application-manager/recipes-examples/amhelloworld/files/README
diff --git a/meta-application-manager/recipes-examples/amhelloworld/files/amhelloworld.c b/meta-application-manager/recipes-examples/amhelloworld/files/amhelloworld.c
new file mode 100644
index 0000000..d473c37
--- /dev/null
+++ b/meta-application-manager/recipes-examples/amhelloworld/files/amhelloworld.c
@@ -0,0 +1,55 @@
+// taken from https://wiki.tizen.org/wiki/IVI/Tizen-Core-development-EFL
+
+#include <stdio.h>
+
+#include <appcore-efl.h>
+#include "amhelloworld.h"
+
+
+static int app_create(void *data) {
+ // appcore measure time example
+ printf("from AUL to %s(): %d msec\n", __func__,appcore_measure_time_from("APP_START_TIME"));
+
+ appcore_measure_start();
+ return 0;
+}
+
+static int app_terminate(void *data) { // terminate callback
+ printf("from AUL to %s(): %d msec\n", __func__,appcore_measure_time_from("APP_START_TIME"));
+
+ return 0;
+}
+
+static int app_pause(void *data) { // pause callback
+ printf("from AUL to %s(): %d msec\n", __func__,appcore_measure_time_from("APP_START_TIME"));
+ return 0;
+}
+
+static int app_resume(void *data) { // resume callback
+ printf("from AUL to %s(): %d msec\n", __func__,appcore_measure_time_from("APP_START_TIME"));
+ return 0;
+}
+
+static int app_reset(bundle *b, void *data) { // reset callback
+ // appcore measure time example
+ printf("from AUL to %s(): %d msec\n", __func__,appcore_measure_time_from("APP_START_TIME"));
+ printf("from create to %s(): %d msec\n", __func__,appcore_measure_time());
+
+ return 0;
+}
+
+int main(int argc, char *argv[]) {
+ struct appcore_ops ops = { // fill the appcore_ops with callback functions
+ .create = app_create,
+ .terminate = app_terminate,
+ .pause = app_pause,
+ .resume = app_resume,
+ .reset = app_reset,
+ };
+
+ // appcore measure time example
+ printf("from AUL to %s(): %d msec\n", __func__,appcore_measure_time_from("APP_START_TIME"));
+
+ return appcore_efl_main(PACKAGE, &argc, &argv, &ops); // start mainloop
+}
+
diff --git a/meta-application-manager/recipes-examples/amhelloworld/files/amhelloworld.h b/meta-application-manager/recipes-examples/amhelloworld/files/amhelloworld.h
new file mode 100644
index 0000000..9d53d35
--- /dev/null
+++ b/meta-application-manager/recipes-examples/amhelloworld/files/amhelloworld.h
@@ -0,0 +1,12 @@
+// taken from https://wiki.tizen.org/wiki/IVI/Tizen-Core-development-EFL
+#ifndef __AMHELLOWORLD_H__
+#define __AMHELLOWORLD_H__
+
+#include <Elementary.h>
+
+#if !defined(PACKAGE)
+#define PACKAGE "org.tizen.amhelloworld" // for appcore_set_i18n()
+#endif
+
+#endif // __AMHELLOWORLD_H__
+
diff --git a/meta-application-manager/recipes-examples/amhelloworld/files/org.tizen.amhelloworld.manifest b/meta-application-manager/recipes-examples/amhelloworld/files/org.tizen.amhelloworld.manifest
new file mode 100644
index 0000000..a5a5d94
--- /dev/null
+++ b/meta-application-manager/recipes-examples/amhelloworld/files/org.tizen.amhelloworld.manifest
@@ -0,0 +1,20 @@
+<manifest>
+
+ <define>
+
+ <domain name="org.tizen.amhelloworld" />
+
+ </define>
+ <assign>
+
+ <filesystem path="/usr/share/applications/org.tizen.amhelloworld.desktop" label="_" />
+
+ </assign>
+ <request>
+
+ <domain name="org.tizen.amhelloworld" />
+
+ </request>
+
+</manifest>
+
diff --git a/meta-application-manager/recipes-examples/amhelloworld/files/org.tizen.amhelloworld.spec b/meta-application-manager/recipes-examples/amhelloworld/files/org.tizen.amhelloworld.spec
new file mode 100644
index 0000000..4149875
--- /dev/null
+++ b/meta-application-manager/recipes-examples/amhelloworld/files/org.tizen.amhelloworld.spec
@@ -0,0 +1,13 @@
+%install
+
+rm -rf %{buildroot}
+%make_install
+
+%files
+%manifest org.tizen.amhelloworld.manifest
+
+%defattr(-,root,root,-)
+%attr(-,inhouse,inhouse)
+/usr/apps/org.tizen.amhelloworld/bin/amhelloworld
+/usr/share/packages/org.tizen.amhelloworld.xml
+
diff --git a/meta-application-manager/recipes-examples/amhelloworld/files/org.tizen.amhelloworld.xml b/meta-application-manager/recipes-examples/amhelloworld/files/org.tizen.amhelloworld.xml
new file mode 100644
index 0000000..2a61369
--- /dev/null
+++ b/meta-application-manager/recipes-examples/amhelloworld/files/org.tizen.amhelloworld.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<manifest xmlns="http://tizen.org/ns/packages" package="org.tizen.amhelloworld" version="0.0.1" install-location="internal-only">
+
+ <label>AMHelloWorld</label>
+ <description>AMHelloWorld</description>
+ <ui-application appid="org.tizen.amhelloworld" exec="/usr/apps/org.tizen.amhelloworld/bin/amhelloworld" nodisplay="false" multiple="false" type="capp" taskmanage="true">
+
+ <label>AMHelloWorld</label>
+ <label xml:lang="en-us">AMHelloWorld</label>
+
+ </ui-application>
+
+</manifest>
+
diff --git a/meta-application-manager/recipes-extended/efl/efl_%.bbappend b/meta-application-manager/recipes-extended/efl/efl_%.bbappend
new file mode 100644
index 0000000..11b7db0
--- /dev/null
+++ b/meta-application-manager/recipes-extended/efl/efl_%.bbappend
@@ -0,0 +1,11 @@
+DEPENDS_remove = "libxext-native libxext virtual/libx11 libxdamage libxrender libxcursor libxcomposite libxinerama libxrandr libxtst libxscrnsaver"
+#RDEPENDS_remove = "libxkbcommon"
+#RDEPENDS_ecore_remove ="ecore-x libxkbcommon"
+RDEPENDS_ecore_remove ="ecore-x"
+
+EXTRA_OECONF_append_class-target = " \
+ --with-x11=none \
+"
+
+
+
diff --git a/meta-application-manager/recipes-extended/linux-renesas/linux-renesas_3.10.bbappend b/meta-application-manager/recipes-extended/linux-renesas/linux-renesas_3.10.bbappend
new file mode 100644
index 0000000..3229f5e
--- /dev/null
+++ b/meta-application-manager/recipes-extended/linux-renesas/linux-renesas_3.10.bbappend
@@ -0,0 +1,27 @@
+PR_append := ".1"
+
+# smack patches from 3.10-rc1 to 3.14
+SRC_URI_append = " \
+ file://smack/0001-Smack-Local-IPv6-port-based-controls.patch \
+ file://smack/0002-Smack-Improve-access-check-performance.patch \
+ file://smack/0003-Smack-Add-smkfstransmute-mount-option.patch \
+ file://smack/0004-Smack-Fix-possible-NULL-pointer-dereference-at-smk_n.patch \
+ file://smack/0005-Smack-Fix-the-bug-smackcipso-can-t-set-CIPSO-correct.patch \
+ file://smack/0006-Security-Add-Hook-to-test-if-the-particular-xattr-is.patch \
+ file://smack/0007-xattr-Constify-name-member-of-struct-xattr.patch \
+ file://smack/0008-security-smack-fix-memleak-in-smk_write_rules_list.patch \
+ file://smack/0009-security-smack-add-a-hash-table-to-quicken-smk_find_.patch \
+ file://smack/0010-Smack-network-label-match-fix.patch \
+ file://smack/0011-Smack-IPv6-casting-error-fix-for-3.11.patch \
+ file://smack/0012-Smack-parse-multiple-rules-per-write-to-load2-up-to-.patch \
+ file://smack/0013-Smack-Implement-lock-security-mode.patch \
+ file://smack/0014-Smack-Ptrace-access-check-mode.patch \
+ file://smack/0015-smack-fix-allow-either-entry-be-missing-on-access-ac.patch \
+ file://smack/0016-Smack-Prevent-the-and-labels-from-being-used-in-SMAC.patch \
+ file://smack/0017-Smack-Make-the-syslog-control-configurable.patch \
+ file://smack/0018-Smack-change-rule-cap-check.patch \
+ file://smack/0019-Smack-Rationalize-mount-restrictions.patch \
+ file://smack/0020-Smack-File-receive-audit-correction.patch \
+ file://smack/0021-smack-call-WARN_ONCE-instead-of-calling-audit_log_st.patch \
+"
+
diff --git a/meta-application-manager/recipes-others/bullet/bullet-extraconf.inc b/meta-application-manager/recipes-others/bullet/bullet-extraconf.inc
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/meta-application-manager/recipes-others/bullet/bullet-extraconf.inc
diff --git a/meta-application-manager/recipes-others/bullet/bullet.inc b/meta-application-manager/recipes-others/bullet/bullet.inc
new file mode 100644
index 0000000..1a02eb3
--- /dev/null
+++ b/meta-application-manager/recipes-others/bullet/bullet.inc
@@ -0,0 +1,135 @@
+DESCRIPTION = "Bullet Continuous Collision Detection and Physics Library"
+HOMEPAGE = "http://nohomepage.org"
+SECTION = "System/Libraries"
+LICENSE = "Zlib"
+PV = "2.81"
+
+SRC_URI = ""
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by bullet-dev
+PROVIDES += "bullet-dev"
+
+
+#PROVIDES by libbullet
+PROVIDES += "libbullet"
+
+
+#PROVIDES by bullet
+
+
+RDEPENDS = ""
+#RDEPENDS of bullet-dev (${PN}-dev)
+RDEPENDS_${PN}-dev += "libbullet"
+
+
+DEPENDS = ""
+#DEPENDS of bullet
+inherit tizen_cmake
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q
+ cp ${S}/packaging/bullet.manifest .
+
+
+}
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+
+
+ cmake \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
+ -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
+ -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
+ -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
+ -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
+ -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
+ -DCMAKE_SKIP_RPATH:BOOL=ON \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
+ ${EXTRA_OECMAKE} . -G "Unix Makefiles" -DBUILD_SHARED_LIBS=ON -DBUILD_EXTRAS=OFF -DBUILD_DEMOS=OFF -DBUILD_CPU_DEMOS=OFF -DUSE_GRAPHICAL_BENCHMARK=OFF -DCMAKE_INSTALL_PREFIX=/usr -DUSE_GLUT=OFF
+
+ make ${PARALLEL_MAKE}
+
+
+
+}
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+
+ oe_runmake \
+ DESTDIR=${D} \
+ INSTALL_ROOT=${D} \
+ BINDIR=${prefix}/bin \
+ install
+ rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+
+
+}
+
+pkg_postinst_libbullet() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+pkg_postrm_libbullet() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " bullet-dev "
+PACKAGES += " libbullet "
+
+bullet-dev_files = ""
+bullet-dev_files += "${prefix}/include/*"
+bullet-dev_files += "${prefix}/lib/*.so"
+bullet-dev_files += "${prefix}/lib/pkgconfig/*"
+MANIFESTFILES_${PN}-dev = "bullet.manifest"
+
+libbullet_files = ""
+libbullet_files += "${prefix}/lib/*.so.2.81"
+libbullet_files += ""
+MANIFESTFILES_lib${PN} = "bullet.manifest"
+
+FILES_${PN}-dev = "${bullet-dev_files}"
+FILES_lib${PN} = "${libbullet_files}"
+
+PKG_bullet-dev= "bullet-dev"
+PKG_libbullet= "libbullet"
+
+require bullet-extraconf.inc
+
diff --git a/meta-application-manager/recipes-others/bullet/bullet_git.bb b/meta-application-manager/recipes-others/bullet/bullet_git.bb
new file mode 100644
index 0000000..1989d19
--- /dev/null
+++ b/meta-application-manager/recipes-others/bullet/bullet_git.bb
@@ -0,0 +1,10 @@
+require bullet.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI += "git://review.tizen.org/platform/upstream/libbullet;tag=03875b02d03ae029f38cb35dc90ee3ff6d5fe696;nobranch=1"
+
+BBCLASSEXTEND += " native "
+
diff --git a/meta-application-manager/recipes-others/bundle/bundle-extraconf.inc b/meta-application-manager/recipes-others/bundle/bundle-extraconf.inc
new file mode 100644
index 0000000..e7b965d
--- /dev/null
+++ b/meta-application-manager/recipes-others/bundle/bundle-extraconf.inc
@@ -0,0 +1,2 @@
+DEPENDS_remove_class-native = "dlog-native"
+SRC_URI_append_class-native = " file://remove-dlog-for-native-build.patch" \ No newline at end of file
diff --git a/meta-application-manager/recipes-others/bundle/bundle.inc b/meta-application-manager/recipes-others/bundle/bundle.inc
new file mode 100644
index 0000000..cad8be0
--- /dev/null
+++ b/meta-application-manager/recipes-others/bundle/bundle.inc
@@ -0,0 +1,132 @@
+DESCRIPTION = "String key-val dictionary ADT"
+HOMEPAGE = "http://nohomepage.org"
+SECTION = "System/Libraries"
+LICENSE = "Apache-2.0"
+PV = "0.1.31"
+
+SRC_URI = ""
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by bundle-dev
+PROVIDES += "bundle-dev"
+
+
+#PROVIDES by bundle
+
+
+RDEPENDS = ""
+#RDEPENDS of bundle-dev (${PN}-dev)
+RDEPENDS_${PN}-dev += "bundle"
+
+
+DEPENDS = ""
+#DEPENDS of bundle
+inherit tizen_cmake
+inherit pkgconfig
+DEPENDS += "dlog"
+DEPENDS += "glib-2.0"
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q -n bundle-0.1.31
+ cp ${S}/packaging/bundle.manifest .
+
+
+
+}
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+
+ cmake \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
+ -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
+ -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
+ -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
+ -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
+ -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
+ -DCMAKE_SKIP_RPATH:BOOL=ON \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
+ ${EXTRA_OECMAKE} .
+ make ${PARALLEL_MAKE}
+
+
+
+}
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+
+ oe_runmake \
+ DESTDIR=${D} \
+ INSTALL_ROOT=${D} \
+ BINDIR=${prefix}/bin \
+ install
+ rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+
+}
+
+pkg_postinst_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+pkg_postrm_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " bundle-dev "
+PACKAGES += " bundle "
+
+bundle-dev_files = ""
+bundle-dev_files += "${prefix}/include/bundle.h"
+bundle-dev_files += "${prefix}/include/SLP_bundle_PG.h"
+bundle-dev_files += "${prefix}/lib/pkgconfig/bundle.pc"
+bundle-dev_files += "${prefix}/lib/libbundle.so"
+MANIFESTFILES_${PN}-dev = "bundle.manifest"
+
+bundle_files = ""
+bundle_files += "${prefix}/lib/libbundle.so.*"
+MANIFESTFILES_${PN} = "bundle.manifest"
+
+FILES_${PN}-dev = "${bundle-dev_files}"
+FILES_${PN} = "${bundle_files}"
+
+PKG_bundle-dev= "bundle-dev"
+PKG_bundle= "bundle"
+
+require bundle-extraconf.inc
+
diff --git a/meta-application-manager/recipes-others/bundle/bundle.incorg b/meta-application-manager/recipes-others/bundle/bundle.incorg
new file mode 100644
index 0000000..b9a3844
--- /dev/null
+++ b/meta-application-manager/recipes-others/bundle/bundle.incorg
@@ -0,0 +1,135 @@
+DESCRIPTION = "String key-val dictionary ADT"
+HOMEPAGE = "http://nohomepage.org"
+SECTION = "System/Libraries"
+LICENSE = "Apache-2.0"
+PV = "0.1.31"
+
+SRC_URI = ""
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by bundle-dev
+PROVIDES += "bundle-dev"
+
+
+#PROVIDES by bundle
+
+
+RDEPENDS = ""
+#RDEPENDS of bundle-dev (${PN}-dev)
+RDEPENDS_${PN}-dev += "bundle"
+
+
+DEPENDS = ""
+#DEPENDS of bundle
+inherit tizen_cmake
+inherit pkgconfig
+DEPENDS += "dlog"
+DEPENDS += "glib-2.0"
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q -n bundle-0.1.31
+ cp ${S}/packaging/bundle.manifest .
+
+
+
+}
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+
+ cmake \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
+ -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
+ -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
+ -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
+ -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
+ -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
+ -DCMAKE_SKIP_RPATH:BOOL=ON \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
+ ${EXTRA_OECMAKE} .
+ make ${PARALLEL_MAKE}
+
+
+
+}
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+
+ oe_runmake \
+ DESTDIR=${D} \
+ INSTALL_ROOT=${D} \
+ BINDIR=${prefix}/bin \
+ install
+ rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+
+ mkdir -p ${D}/usr/share/license
+
+
+}
+
+pkg_postinst_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+pkg_postrm_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " bundle-dev "
+PACKAGES += " bundle "
+
+bundle-dev_files = ""
+bundle-dev_files += "${prefix}/include/bundle.h"
+bundle-dev_files += "${prefix}/include/SLP_bundle_PG.h"
+bundle-dev_files += "${prefix}/lib/pkgconfig/bundle.pc"
+bundle-dev_files += "${prefix}/lib/libbundle.so"
+MANIFESTFILES_${PN}-dev = "bundle.manifest"
+
+bundle_files = ""
+bundle_files += "${prefix}/lib/libbundle.so.*"
+MANIFESTFILES_${PN} = "bundle.manifest"
+
+FILES_${PN}-dev = "${bundle-dev_files}"
+FILES_${PN} = "${bundle_files}"
+
+PKG_bundle-dev= "bundle-dev"
+PKG_bundle= "bundle"
+
+require bundle-extraconf.inc
+
diff --git a/meta-application-manager/recipes-others/bundle/bundle_git.bb b/meta-application-manager/recipes-others/bundle/bundle_git.bb
new file mode 100644
index 0000000..173475d
--- /dev/null
+++ b/meta-application-manager/recipes-others/bundle/bundle_git.bb
@@ -0,0 +1,10 @@
+require bundle.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI += "git://review.tizen.org/platform/core/base/bundle;tag=71b36b170c377bfd15cb5601c49340ba95a1a30d;nobranch=1"
+
+BBCLASSEXTEND += " native "
+
diff --git a/meta-application-manager/recipes-others/bundle/diff_bundle b/meta-application-manager/recipes-others/bundle/diff_bundle
new file mode 100644
index 0000000..9171935
--- /dev/null
+++ b/meta-application-manager/recipes-others/bundle/diff_bundle
@@ -0,0 +1,12 @@
+--- bundle.inc 2016-06-02 20:56:35.000000000 +0900
++++ bundle.incorg 2016-07-21 14:40:54.348023451 +0900
+@@ -93,9 +93,6 @@
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+
+- mkdir -p ${D}/usr/share/license
+-
+-
+ }
+
+ pkg_postinst_${PN}() {
diff --git a/meta-application-manager/recipes-others/bundle/files/remove-dlog-for-native-build.patch b/meta-application-manager/recipes-others/bundle/files/remove-dlog-for-native-build.patch
new file mode 100644
index 0000000..57faaaf
--- /dev/null
+++ b/meta-application-manager/recipes-others/bundle/files/remove-dlog-for-native-build.patch
@@ -0,0 +1,36 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 539e9fe..2d8453b 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -3,7 +3,7 @@ PROJECT(bundle C)
+
+ ### Required packages
+ INCLUDE(FindPkgConfig)
+-pkg_check_modules(pkgs REQUIRED glib-2.0 dlog)
++pkg_check_modules(pkgs REQUIRED glib-2.0 )
+ FOREACH(flag ${pkgs_CFLAGS})
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+ ENDFOREACH(flag)diff --git a/include/bundle_log.h b/include/bundle_log.h
+index 192c283..4b6d3a7 100755
+--- a/include/bundle_log.h
++++ b/include/bundle_log.h
+@@ -21,7 +21,7 @@
+ */
+
+
+-#include <dlog/dlog.h>
++
+ #ifdef LOG_TAG
+ #undef LOG_TAG
+ #endif
+@@ -36,7 +36,7 @@
+ #define BUNDLE_ASSERT_PRINT(FMT, ARG...) do { printf("%5d", getpid()); printf
+ ("%s() : "FMT"\n", __FUNCTION__, ##ARG); } while (false)
+ #else
+-#define BUNDLE_LOG_PRINT(FMT, ARG...) SLOGD(FMT, ##ARG);
+-#define BUNDLE_EXCEPTION_PRINT(FMT, ARG...) SLOGW(FMT, ##ARG);
+-#define BUNDLE_ASSERT_PRINT(FMT, ARG...) SLOGE(FMT, ##ARG);
++#define BUNDLE_LOG_PRINT(FMT, ARG...) //SLOGD(FMT, ##ARG);
++#define BUNDLE_EXCEPTION_PRINT(FMT, ARG...) //SLOGW(FMT, ##ARG);
++#define BUNDLE_ASSERT_PRINT(FMT, ARG...) //SLOGE(FMT, ##ARG);
+ #endif
diff --git a/meta-application-manager/recipes-others/dlog/dlog-extraconf.inc b/meta-application-manager/recipes-others/dlog/dlog-extraconf.inc
new file mode 100644
index 0000000..1afa799
--- /dev/null
+++ b/meta-application-manager/recipes-others/dlog/dlog-extraconf.inc
@@ -0,0 +1 @@
+DEPENDS_remove_class-native = "systemd-native" \ No newline at end of file
diff --git a/meta-application-manager/recipes-others/dlog/dlog.inc b/meta-application-manager/recipes-others/dlog/dlog.inc
new file mode 100644
index 0000000..c94b2b7
--- /dev/null
+++ b/meta-application-manager/recipes-others/dlog/dlog.inc
@@ -0,0 +1,144 @@
+DESCRIPTION = "Logging service"
+HOMEPAGE = "http://nohomepage.org"
+SECTION = "System/Libraries"
+LICENSE = "Apache-2.0"
+PV = "0.4.1"
+
+SRC_URI = " file://libsystemd-journal_is_now_in_libsystemd.patch;patch=1"
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by libdlog
+PROVIDES += "libdlog"
+
+
+#PROVIDES by dlogutil
+PROVIDES += "dlogutil"
+
+
+#PROVIDES by dlog
+
+
+#PROVIDES by libdlog-dev
+PROVIDES += "libdlog-dev"
+
+
+RDEPENDS = ""
+#RDEPENDS of dlogutil (${PN}util)
+RDEPENDS_${PN}util += "libdlog"
+
+#RDEPENDS of libdlog-dev (lib${PN}-dev)
+RDEPENDS_lib${PN}-dev += "libdlog"
+
+
+DEPENDS = ""
+#DEPENDS of dlog
+DEPENDS += "systemd"
+DEPENDS += "tizen-platform-config"
+inherit pkgconfig
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q
+ cp ${S}/packaging/dlog.manifest .
+
+
+}
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+
+ autotools_do_configure
+ oe_runmake ${PARALLEL_MAKE}
+
+
+
+}
+EXTRA_OECONF += " --disable-static"
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+
+ oe_runmake \
+ DESTDIR=${D} \
+ INSTALL_ROOT=${D} \
+ BINDIR=${prefix}/bin \
+ install
+ rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+ mkdir -p ${D}${sysconfdir}/dlog
+ cp platformlog.conf ${D}${sysconfdir}/dlog/platformlog.conf
+ cp dlogctrl ${D}${prefix}/bin/dlogctrl
+
+
+}
+
+pkg_postinst_libdlog() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+pkg_postrm_libdlog() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " libdlog "
+PACKAGES += " dlogutil "
+PACKAGES += " libdlog-dev "
+
+libdlog_files = ""
+libdlog_files += "${sysconfdir}/dlog/platformlog.conf"
+libdlog_files += "${prefix}/lib/libdlog.so.*"
+CONFFILES_lib${PN} = ""
+CONFFILES_lib${PN} += "${sysconfdir}/dlog/platformlog.conf"
+MANIFESTFILES_lib${PN} = "dlog.manifest"
+
+dlogutil_files = ""
+dlogutil_files += "${prefix}/bin/dlogctrl"
+MANIFESTFILES_${PN}util = "dlog.manifest"
+
+libdlog-dev_files = ""
+libdlog-dev_files += "${prefix}/include/dlog/dlog.h"
+libdlog-dev_files += "${prefix}/lib/pkgconfig/dlog.pc"
+libdlog-dev_files += "${prefix}/lib/libdlog.so"
+MANIFESTFILES_lib${PN}-dev = "dlog.manifest"
+
+FILES_lib${PN} = "${libdlog_files}"
+FILES_${PN}util = "${dlogutil_files}"
+FILES_lib${PN}-dev = "${libdlog-dev_files}"
+
+PKG_libdlog= "libdlog"
+PKG_dlogutil= "dlogutil"
+PKG_libdlog-dev= "libdlog-dev"
+
+require dlog-extraconf.inc
+
diff --git a/meta-application-manager/recipes-others/dlog/dlog_git.bb b/meta-application-manager/recipes-others/dlog/dlog_git.bb
new file mode 100644
index 0000000..c24ced4
--- /dev/null
+++ b/meta-application-manager/recipes-others/dlog/dlog_git.bb
@@ -0,0 +1,10 @@
+require dlog.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI += "git://review.tizen.org/platform/core/system/dlog;tag=c43bce370f4aaa09f48df4e2c1d2b99f133526d0;nobranch=1"
+
+BBCLASSEXTEND += " native "
+
diff --git a/meta-application-manager/recipes-others/dlog/files/libsystemd-journal_is_now_in_libsystemd.patch b/meta-application-manager/recipes-others/dlog/files/libsystemd-journal_is_now_in_libsystemd.patch
new file mode 100644
index 0000000..347f470
--- /dev/null
+++ b/meta-application-manager/recipes-others/dlog/files/libsystemd-journal_is_now_in_libsystemd.patch
@@ -0,0 +1,11 @@
+--- a/Makefile.am 2016-01-08 07:47:34.902312000 -0800
++++ b/Makefile.am 2016-01-08 08:01:43.986280740 -0800
+@@ -10,7 +10,7 @@
+ log.c \
+ log-common.c
+
+-libdlog_la_LIBADD = $(TZPLATFORM_CONFIG_LIBS) -lsystemd-journal
++libdlog_la_LIBADD = $(TZPLATFORM_CONFIG_LIBS) -lsystemd
+
+ bin_PROGRAMS= dlogctrl
+
diff --git a/meta-application-manager/recipes-others/fdupes/fdupes-extraconf.inc b/meta-application-manager/recipes-others/fdupes/fdupes-extraconf.inc
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/meta-application-manager/recipes-others/fdupes/fdupes-extraconf.inc
diff --git a/meta-application-manager/recipes-others/fdupes/fdupes.inc b/meta-application-manager/recipes-others/fdupes/fdupes.inc
new file mode 100644
index 0000000..35de095
--- /dev/null
+++ b/meta-application-manager/recipes-others/fdupes/fdupes.inc
@@ -0,0 +1,84 @@
+DESCRIPTION = "Identifying or deleting duplicate files"
+HOMEPAGE = "http://premium.caribe.net/~adrian2/fdupes.html"
+SECTION = "Base/Compression"
+LICENSE = "MIT"
+PV = "1.40"
+
+SRC_URI = ""
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by fdupes
+
+
+RDEPENDS = ""
+
+DEPENDS = ""
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q
+ cp ${S}/packaging/fdupes.manifest .
+
+
+}
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+ make
+
+
+
+}
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+ install -D -m755 fdupes ${D}${prefix}/bin/fdupes
+ install -D -m644 fdupes.1 ${D}${mandir}/man1/fdupes.1
+ install -D -m644 ${S}/packaging/macros.fdupes ${D}${sysconfdir}/rpm/macros.fdupes
+
+
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " fdupes "
+
+fdupes_files = ""
+fdupes_files += "CHANGES"
+fdupes_files += "${prefix}/bin/fdupes"
+fdupes_files += "${mandir}/*/*"
+fdupes_files += "${sysconfdir}/rpm"
+CONFFILES_${PN} = ""
+CONFFILES_${PN} += "${sysconfdir}/rpm"
+MANIFESTFILES_${PN} = "fdupes.manifest"
+
+FILES_${PN} = "${fdupes_files}"
+
+PKG_fdupes= "fdupes"
+
+require fdupes-extraconf.inc
+
diff --git a/meta-application-manager/recipes-others/fdupes/fdupes_git.bb b/meta-application-manager/recipes-others/fdupes/fdupes_git.bb
new file mode 100644
index 0000000..800f686
--- /dev/null
+++ b/meta-application-manager/recipes-others/fdupes/fdupes_git.bb
@@ -0,0 +1,10 @@
+require fdupes.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI += "git://review.tizen.org/platform/upstream/fdupes;tag=796ff677d7ed1bdd2fb8d3b48572dba6a8e111f6;nobranch=1"
+
+BBCLASSEXTEND += " native "
+
diff --git a/meta-application-manager/recipes-others/images/agl-demo-platform-plus-application-manager.bb b/meta-application-manager/recipes-others/images/agl-demo-platform-plus-application-manager.bb
new file mode 100644
index 0000000..7f150e4
--- /dev/null
+++ b/meta-application-manager/recipes-others/images/agl-demo-platform-plus-application-manager.bb
@@ -0,0 +1,66 @@
+# Base image
+require recipes-ivi/images/agl-image-ivi.inc
+
+DESCRIPTION = "AGL Demo Platform image currently contains a simple HMI and \
+demos."
+
+IMAGE_FEATURES_append = " \
+ "
+
+# add packages for demo platform (include demo apps) here
+IMAGE_INSTALL_append = " \
+ packagegroup-agl-core \
+ packagegroup-agl-ivi \
+ packagegroup-ivi-common-core \
+ packagegroup-agl-demo-platform \
+ \
+ libegl libegl-dev libgbm-dev \
+ \
+ gles-kernel-module \
+ \
+ tizen-platform-wrapper \
+ tizen-platform-config \
+ xdgmime \
+ libdlog \
+ dlogutil \
+ libiri \
+ \
+ smack \
+ libprivilege-control \
+ libslp-db-util \
+ \
+ vconf \
+ capi-base-common \
+ ail \
+ \
+ sensor \
+ libsf-common \
+ \
+ iniparser \
+ efl \
+ app-svc \
+ heynoti \
+ notification \
+ app-core-efl \
+ app-core-common \
+ capi-system-info \
+ \
+ pkgmgr-info \
+ librua \
+ bundle \
+ app-checker \
+ \
+ libcom-core \
+ privacy-manager-server \
+ pkgmgr \
+ pkgmgr-info \
+ pkgmgr-info-parser \
+ aul \
+ aul-test \
+ \
+ dlt-daemon \
+ dlt-daemon-systemd \
+ \
+ amhelloworld \
+ "
+
diff --git a/meta-application-manager/recipes-others/iniparser/iniparser-extraconf.inc b/meta-application-manager/recipes-others/iniparser/iniparser-extraconf.inc
new file mode 100644
index 0000000..98ed794
--- /dev/null
+++ b/meta-application-manager/recipes-others/iniparser/iniparser-extraconf.inc
@@ -0,0 +1,10 @@
+EXTRA_OEMAKE = "'CC=${CC} -fPIC' 'MYCFLAGS=${CFLAGS}' MYLDFLAGS='${LDFLAGS}'"
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+ oe_runmake prefix=${prefix} ${PARALLEL_MAKE} CFLAGS="${CFLAGS} -fPIC"
+} \ No newline at end of file
diff --git a/meta-application-manager/recipes-others/iniparser/iniparser.inc b/meta-application-manager/recipes-others/iniparser/iniparser.inc
new file mode 100644
index 0000000..71d01e8
--- /dev/null
+++ b/meta-application-manager/recipes-others/iniparser/iniparser.inc
@@ -0,0 +1,124 @@
+DESCRIPTION = "Stand-alone ini file parsing library"
+HOMEPAGE = "http://ndevilla.free.fr/iniparser/"
+SECTION = "System/Libraries"
+LICENSE = "MIT"
+PV = "2.17"
+
+SRC_URI = ""
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by iniparser-dev
+PROVIDES += "iniparser-dev"
+
+
+#PROVIDES by iniparser
+
+
+RDEPENDS = ""
+#RDEPENDS of iniparser-dev (${PN}-dev)
+RDEPENDS_${PN}-dev += "iniparser"
+
+
+DEPENDS = ""
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q
+ cp ${S}/packaging/iniparser.manifest .
+
+
+}
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+ make prefix=${prefix} ${PARALLEL_MAKE} CFLAGS="$CFLAGS -fPIC"
+
+
+
+}
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+
+ mkdir -p ${D}${prefix}/lib
+ install -m 755 libiniparser.so.0 ${D}${prefix}/lib
+ ln -s libiniparser.so.0 ${D}${prefix}/lib/libiniparser.so
+ mkdir -p ${D}${prefix}/include
+ install -m 644 src/*.h ${D}${prefix}/include
+ install -m 644 src/*.h ${D}${prefix}/include
+ mkdir -p ${D}${prefix}/lib/pkgconfig
+ cat > ${D}${prefix}/lib/pkgconfig/iniparser.pc <<EOF
+ prefix = ${prefix}
+ exec_prefix = ${prefix}
+ libdir = ${prefix}/lib
+ includedir = ${prefix}/include
+
+ Name : iniparser
+ Description : a free stand-alone ini file parsing library.
+ Version : 2.17
+ Libs : -L\${libdir} -liniparser
+ Cflags : -I\${includedir}
+
+EOF
+
+}
+
+pkg_postinst_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+pkg_postrm_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " iniparser-dev "
+PACKAGES += " iniparser "
+
+iniparser-dev_files = ""
+iniparser-dev_files += "${prefix}/include/*.h"
+iniparser-dev_files += "${prefix}/lib/*.so"
+iniparser-dev_files += "${prefix}/lib/pkgconfig/*.pc"
+MANIFESTFILES_${PN}-dev = "iniparser.manifest"
+
+iniparser_files = ""
+iniparser_files += "${prefix}/lib/*.so.*"
+MANIFESTFILES_${PN} = "iniparser.manifest"
+
+FILES_${PN}-dev = "${iniparser-dev_files}"
+FILES_${PN} = "${iniparser_files}"
+
+PKG_iniparser-dev= "iniparser-dev"
+PKG_iniparser= "iniparser"
+
+require iniparser-extraconf.inc
+
diff --git a/meta-application-manager/recipes-others/iniparser/iniparser_git.bb b/meta-application-manager/recipes-others/iniparser/iniparser_git.bb
new file mode 100644
index 0000000..311b1dd
--- /dev/null
+++ b/meta-application-manager/recipes-others/iniparser/iniparser_git.bb
@@ -0,0 +1,10 @@
+require iniparser.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI += "git://review.tizen.org/platform/upstream/iniparser;tag=42358b2425b18976b324e773bd780342f6f57fcd;nobranch=1"
+
+BBCLASSEXTEND += " native "
+
diff --git a/meta-application-manager/recipes-others/libiri/libiri-extraconf.inc b/meta-application-manager/recipes-others/libiri/libiri-extraconf.inc
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/meta-application-manager/recipes-others/libiri/libiri-extraconf.inc
diff --git a/meta-application-manager/recipes-others/libiri/libiri.inc b/meta-application-manager/recipes-others/libiri/libiri.inc
new file mode 100644
index 0000000..a1a5b54
--- /dev/null
+++ b/meta-application-manager/recipes-others/libiri/libiri.inc
@@ -0,0 +1,112 @@
+DESCRIPTION = "An IRI parsing library"
+HOMEPAGE = "http://code.google.com/p/libiri/"
+SECTION = "System/Libraries"
+LICENSE = "BSD-3-Clause"
+PV = "1.1"
+
+SRC_URI = ""
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by libiri-dev
+PROVIDES += "libiri-dev"
+
+
+#PROVIDES by libiri
+
+
+RDEPENDS = ""
+#RDEPENDS of libiri-dev (${PN}-dev)
+RDEPENDS_${PN}-dev += "libiri"
+
+
+DEPENDS = ""
+#DEPENDS of libiri
+DEPENDS_append_class-native = " autoconf-native"
+DEPENDS_append_class-target = " autoconf-native"
+DEPENDS_append_class-native = " libtool"
+DEPENDS_append_class-target = " libtool-cross"
+DEPENDS_append_class-native = " automake-native"
+DEPENDS_append_class-target = " automake-native"
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q
+ cp ${S}/packaging/libiri.manifest .
+
+
+}
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+
+ autotools_do_configure
+ make ${PARALLEL_MAKE}
+
+
+
+}
+EXTRA_OECONF += ""
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+
+ oe_runmake \
+ DESTDIR=${D} \
+ INSTALL_ROOT=${D} \
+ BINDIR=${prefix}/bin \
+ install
+ rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+
+
+
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " libiri-dev "
+PACKAGES += " libiri "
+
+libiri-dev_files = ""
+libiri-dev_files += "${prefix}/lib/pkgconfig/*.pc"
+libiri-dev_files += "${prefix}/include/*.h"
+libiri-dev_files += "/usr/bin/iri-config"
+MANIFESTFILES_${PN}-dev = "libiri.manifest"
+
+libiri_files = ""
+libiri_files += "${prefix}/lib/*.so"
+MANIFESTFILES_${PN} = "libiri.manifest"
+
+FILES_${PN}-dev = "${libiri-dev_files}"
+FILES_${PN} = "${libiri_files}"
+
+PKG_libiri-dev= "libiri-dev"
+PKG_libiri= "libiri"
+
+require libiri-extraconf.inc
+
diff --git a/meta-application-manager/recipes-others/libiri/libiri_git.bb b/meta-application-manager/recipes-others/libiri/libiri_git.bb
new file mode 100644
index 0000000..5d71a1a
--- /dev/null
+++ b/meta-application-manager/recipes-others/libiri/libiri_git.bb
@@ -0,0 +1,10 @@
+require libiri.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI += "git://review.tizen.org/platform/upstream/libiri;tag=e6020f87d9bacfc89811c619fef77cfca895dbc0;nobranch=1"
+
+BBCLASSEXTEND += " native "
+
diff --git a/meta-application-manager/recipes-others/libprivilege-control/libprivilege-control-extraconf.inc b/meta-application-manager/recipes-others/libprivilege-control/libprivilege-control-extraconf.inc
new file mode 100644
index 0000000..ff3f0af
--- /dev/null
+++ b/meta-application-manager/recipes-others/libprivilege-control/libprivilege-control-extraconf.inc
@@ -0,0 +1,9 @@
+do_configure() {
+ sed -i 's@source /etc/tizen-platform.conf@source ${STAGING_DIR_NATIVE}/etc/tizen-platform.conf@' ${S}/db/updater.sh
+}
+CFLAGS += " -Wno-implicit-function-declaration"
+
+DEPENDS_remove_class-native = "dlog-native"
+
+SRC_URI_append_class-native = " file://remove-dlog-for-native-build.patch"
+SRC_URI_append_class-native = " file://missing_header.patch"
diff --git a/meta-application-manager/recipes-others/libprivilege-control/libprivilege-control.inc b/meta-application-manager/recipes-others/libprivilege-control/libprivilege-control.inc
new file mode 100644
index 0000000..16e206f
--- /dev/null
+++ b/meta-application-manager/recipes-others/libprivilege-control/libprivilege-control.inc
@@ -0,0 +1,176 @@
+DESCRIPTION = "Library to control privilege of application"
+HOMEPAGE = "http://nohomepage.org"
+SECTION = "Security/Access Control"
+LICENSE = "Apache-2.0"
+PV = "0.0.43.TIZEN"
+
+SRC_URI = ""
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by libprivilege-control
+
+
+#PROVIDES by libprivilege-control-conf
+PROVIDES += "libprivilege-control-conf"
+
+
+#PROVIDES by libprivilege-control-dev
+PROVIDES += "libprivilege-control-dev"
+
+
+RDEPENDS = ""
+#RDEPENDS of libprivilege-control-conf (${PN}-conf)
+RDEPENDS_${PN}-conf += "libprivilege-control"
+
+#RDEPENDS of libprivilege-control-dev (${PN}-dev)
+RDEPENDS_${PN}-dev += "libprivilege-control"
+
+
+DEPENDS = ""
+#DEPENDS of libprivilege-control
+inherit tizen_cmake
+DEPENDS += "tizen-platform-config"
+inherit pkgconfig
+DEPENDS += "dlog"
+DEPENDS += "libiri"
+DEPENDS += "smack"
+DEPENDS += "sqlite3"
+DEPENDS += "libcap"
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q
+ cp ${S}/packaging/libprivilege-control.manifest .
+
+
+}
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+
+ export CFLAGS="${CFLAGS} -Wno-implicit-function-declaration"
+
+ cmake \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
+ -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
+ -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
+ -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
+ -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
+ -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
+ -DCMAKE_SKIP_RPATH:BOOL=ON \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
+ ${EXTRA_OECMAKE} . -DCMAKE_BUILD_TYPE=RELEASE \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DTZ_SYS_DB=${prefix}/dbspace \
+ -DTZ_SYS_HOME=/home \
+ -DTZ_SYS_ETC=${sysconfdir} \
+ -DSYSTEMD_UNIT_DIR=${systemd_unitdir}/system
+
+ VERBOSE=1 oe_runmake ${PARALLEL_MAKE}
+
+
+
+}
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+
+ oe_runmake \
+ DESTDIR=${D} \
+ INSTALL_ROOT=${D} \
+ BINDIR=${prefix}/bin \
+ install
+ rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+ mkdir -p ${D}${prefix}/share/privilege-control/
+ mkdir -p ${D}${systemd_unitdir}/system/multi-user.target.wants
+ ln -sf ${systemd_unitdir}/system/smack-rules.service ${D}${systemd_unitdir}/system/multi-user.target.wants/smack-rules.service
+ mkdir -p ${D}${prefix}/dbspace
+ sed -i 's|TZ_SYS_DB|${prefix}/dbspace|g' ${S}/packaging/libprivilege-control.manifest
+
+
+}
+
+pkg_postinst_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+ $D${prefix}/share/privilege-control/db/updater.sh
+ chsmack -a 'System' $D${prefix}/dbspace/.rules-db.db3*
+
+}
+
+pkg_postrm_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " libprivilege-control "
+PACKAGES += " libprivilege-control-conf "
+PACKAGES += " libprivilege-control-dev "
+
+libprivilege-control_files = ""
+libprivilege-control_files += "${prefix}/lib/*.so.*"
+libprivilege-control_files += "${prefix}/lib/librules-db-sql-udf.so"
+libprivilege-control_files += "${systemd_unitdir}/system/smack-rules.service"
+libprivilege-control_files += "${prefix}/bin/api_feature_loader"
+libprivilege-control_files += "${systemd_unitdir}/system/multi-user.target.wants/smack-rules.service"
+libprivilege-control_files += "${prefix}/share/privilege-control/db/rules-db.sql"
+libprivilege-control_files += "${prefix}/share/privilege-control/db/rules-db-data.sql"
+libprivilege-control_files += "${prefix}/share/privilege-control/db/updater.sh"
+libprivilege-control_files += "${prefix}/share/privilege-control/db/updates/*"
+libprivilege-control_files += "${prefix}/share/privilege-control/db/load-rules-db.sql"
+libprivilege-control_files += "${sysconfdir}/opt/upgrade/220.libprivilege-updater.patch.sh"
+libprivilege-control_files += "%dir ${prefix}/dbspace"
+MANIFESTFILES_${PN} = "libprivilege-control.manifest"
+
+libprivilege-control-conf_files = ""
+libprivilege-control-conf_files += "${prefix}/dbspace/.privilege_control*.db"
+MANIFESTFILES_${PN}-conf = "libprivilege-control.manifest"
+
+libprivilege-control-dev_files = ""
+libprivilege-control-dev_files += "${prefix}/include/*.h"
+libprivilege-control-dev_files += "${prefix}/lib/*.so"
+libprivilege-control-dev_files += "${prefix}/lib/pkgconfig/*.pc"
+MANIFESTFILES_${PN}-dev = "libprivilege-control.manifest"
+
+FILES_${PN} = "${libprivilege-control_files}"
+FILES_${PN}-conf = "${libprivilege-control-conf_files}"
+FILES_${PN}-dev = "${libprivilege-control-dev_files}"
+
+PKG_libprivilege-control= "libprivilege-control"
+PKG_libprivilege-control-conf= "libprivilege-control-conf"
+PKG_libprivilege-control-dev= "libprivilege-control-dev"
+
+require libprivilege-control-extraconf.inc
+
diff --git a/meta-application-manager/recipes-others/libprivilege-control/libprivilege-control/missing_header.patch b/meta-application-manager/recipes-others/libprivilege-control/libprivilege-control/missing_header.patch
new file mode 100644
index 0000000..14e8b07
--- /dev/null
+++ b/meta-application-manager/recipes-others/libprivilege-control/libprivilege-control/missing_header.patch
@@ -0,0 +1,25 @@
+diff --git a/include/common.h b/include/common.h
+index 07894d9..f7243fe 100644
+--- a/include/common.h
++++ b/include/common.h
+@@ -23,6 +23,7 @@
+ #define COMMON_H_
+
+ #include <stdio.h>
++#include <string.h>
+ #include <fts.h>
+ #include <stdbool.h>
+ #include <sys/smack.h>
+diff --git a/src/privilege-control.c b/src/privilege-control.c
+index 39cf437..4815262 100644
+--- a/src/privilege-control.c
++++ b/src/privilege-control.c
+@@ -38,6 +38,8 @@
+ #include <sys/smack.h>
+ #include <linux/capability.h>
+ #include <linux/xattr.h>
++#include <attr/xattr.h>
++#include <stdarg.h>
+ #include <sys/capability.h>
+ #include <sys/mman.h>
+ #include <stdbool.h>
diff --git a/meta-application-manager/recipes-others/libprivilege-control/libprivilege-control/remove-dlog-for-native-build.patch b/meta-application-manager/recipes-others/libprivilege-control/libprivilege-control/remove-dlog-for-native-build.patch
new file mode 100644
index 0000000..12c761e
--- /dev/null
+++ b/meta-application-manager/recipes-others/libprivilege-control/libprivilege-control/remove-dlog-for-native-build.patch
@@ -0,0 +1,55 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index e2d4439..51dd041 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -14,7 +14,7 @@ SET(VERSION "${VERSION_MAJOR}.0.2")
+ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
+
+ INCLUDE(FindPkgConfig)
+-pkg_check_modules(pkgs REQUIRED libsmack libiri dlog sqlite3 libtzplatform-config)
++pkg_check_modules(pkgs REQUIRED libsmack libiri sqlite3 libtzplatform-config)
+
+ FOREACH(flag ${pkgs_CFLAGS})
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+@@ -25,7 +25,7 @@ ENDFOREACH(flag)
+ # will be expanded to empty instruction.
+
+ SET(CMAKE_C_FLAGS_CCOV "--coverage")
+-SET(CMAKE_C_FLAGS_DEBUG "-O0 -g -ggdb -DDLOG_DEBUG_ENABLED -DTIZEN_DEBUG_ENABLE")
++SET(CMAKE_C_FLAGS_DEBUG "-O0 -g -ggdb -DTIZEN_DEBUG_ENABLE")
+ SET(CMAKE_C_FLAGS_RELEASE "-O2 -g")
+
+ SET(src_dir "./src")
+@@ -39,8 +39,6 @@ ADD_DEFINITIONS("-DHOMEDIR=${HOMEDIR}")
+ ADD_DEFINITIONS("-DLIBDIR=\"${LIB_INSTALL_DIR}\"")
+ ADD_DEFINITIONS("-Wall -Werror -Wextra")
+
+-ADD_DEFINITIONS("-DDLOG_WARN_ENABLED")
+-ADD_DEFINITIONS("-DDLOG_ERROR_ENABLED")
+
+ ###################################################################################################
+ ## for libprivilege-control.so (library)
+diff --git a/include/common.h b/include/common.h
+index a0bc6ef..07894d9 100644
+--- a/include/common.h
++++ b/include/common.h
+@@ -23,7 +23,6 @@
+ #define COMMON_H_
+
+ #include <stdio.h>
+-#include <dlog.h>
+ #include <fts.h>
+ #include <stdbool.h>
+ #include <sys/smack.h>
+diff --git a/src/access-db.c b/src/access-db.c
+index de8bb1b..15123e2 100644
+--- a/src/access-db.c
++++ b/src/access-db.c
+@@ -25,7 +25,6 @@
+ #include <errno.h>
+ #include <string.h>
+ #include <sys/smack.h>
+-#include <dlog.h>
+ #include <ctype.h>
+ #include <tzplatform_config.h>
+
diff --git a/meta-application-manager/recipes-others/libprivilege-control/libprivilege-control_git.bb b/meta-application-manager/recipes-others/libprivilege-control/libprivilege-control_git.bb
new file mode 100644
index 0000000..73a611c
--- /dev/null
+++ b/meta-application-manager/recipes-others/libprivilege-control/libprivilege-control_git.bb
@@ -0,0 +1,10 @@
+require libprivilege-control.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI += "git://review.tizen.org/platform/core/security/libprivilege-control;tag=e613fc4d3632b7cc79187ade3186d1e07ec79170;nobranch=1"
+
+BBCLASSEXTEND += " native "
+
diff --git a/meta-application-manager/recipes-others/libsf-common/files/remove-dlog-for-native-build.patch b/meta-application-manager/recipes-others/libsf-common/files/remove-dlog-for-native-build.patch
new file mode 100644
index 0000000..26f331a
--- /dev/null
+++ b/meta-application-manager/recipes-others/libsf-common/files/remove-dlog-for-native-build.patch
@@ -0,0 +1,50 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 5da7d7d..ba2216e 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -13,7 +13,7 @@ set(PROJECT_RELEASE_VERSION "1")
+ set(CMAKE_VERBOSE_MAKEFILE OFF)
+
+ include(FindPkgConfig)
+-pkg_check_modules(rpkgs REQUIRED dlog)
++pkg_check_modules(rpkgs REQUIRED )
+ add_definitions(${rpkgs_CFLAGS})
+
+ add_definitions(-DPREFIX="${CMAKE_INSTALL_PREFIX}")
+diff --git a/src/common.cpp b/src/common.cpp
+index a047203..6a4ead9 100755
+--- a/src/common.cpp
++++ b/src/common.cpp
+@@ -30,7 +30,6 @@
+ #include <unistd.h>
+ #include <string.h>
+ #include <common.h>
+-#include <dlog.h>
+ #include <stdarg.h>
+
+ #ifndef EXTAPI
+@@ -80,24 +79,6 @@ EXTAPI void sf_log(int type , int priority , const char *tag , const char *fmt ,
+
+ vsyslog(syslog_prio, fmt, ap);
+ break;
+-
+- case SF_LOG_DLOG:
+- if (tag) {
+- switch (priority) {
+- case SF_LOG_ERR:
+- SLOG_VA(LOG_ERROR, tag ? tag : "NULL" , fmt ? fmt : "NULL" , ap);
+- break;
+-
+- case SF_LOG_DBG:
+- SLOG_VA(LOG_DEBUG, tag ? tag : "NULL", fmt ? fmt : "NULL" , ap);
+- break;
+-
+- case SF_LOG_INFO:
+- SLOG_VA(LOG_INFO, tag ? tag : "NULL" , fmt ? fmt : "NULL" , ap);
+- break;
+- }
+- }
+- break;
+ }
+
+ va_end(ap);
diff --git a/meta-application-manager/recipes-others/libsf-common/libsf-common-extraconf.inc b/meta-application-manager/recipes-others/libsf-common/libsf-common-extraconf.inc
new file mode 100644
index 0000000..7a9df25
--- /dev/null
+++ b/meta-application-manager/recipes-others/libsf-common/libsf-common-extraconf.inc
@@ -0,0 +1,2 @@
+DEPENDS_remove_class-native = "dlog-native"
+SRC_URI_append_class-native = " file://remove-dlog-for-native-build.patch"
diff --git a/meta-application-manager/recipes-others/libsf-common/libsf-common.inc b/meta-application-manager/recipes-others/libsf-common/libsf-common.inc
new file mode 100644
index 0000000..e0cff09
--- /dev/null
+++ b/meta-application-manager/recipes-others/libsf-common/libsf-common.inc
@@ -0,0 +1,123 @@
+DESCRIPTION = "Sensor framework common library"
+HOMEPAGE = "http://nohomepage.org"
+SECTION = "System/Sensor Framework"
+LICENSE = "Apache-2.0"
+PV = "0.3.20"
+
+SRC_URI = ""
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by libsf-common
+
+
+#PROVIDES by libsf-common-dev
+PROVIDES += "libsf-common-dev"
+
+
+RDEPENDS = ""
+#RDEPENDS of libsf-common-dev (${PN}-dev)
+RDEPENDS_${PN}-dev += "libsf-common"
+
+
+DEPENDS = ""
+#DEPENDS of libsf-common
+inherit tizen_cmake
+DEPENDS += "attr"
+DEPENDS += "dlog"
+inherit pkgconfig
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q
+ cp ${S}/packaging/libsf-common.manifest .
+
+
+}
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+
+ cmake \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
+ -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
+ -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
+ -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
+ -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
+ -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
+ -DCMAKE_SKIP_RPATH:BOOL=ON \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
+ ${EXTRA_OECMAKE} .
+
+ make ${PARALLEL_MAKE}
+
+
+
+}
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+
+ oe_runmake \
+ DESTDIR=${D} \
+ INSTALL_ROOT=${D} \
+ BINDIR=${prefix}/bin \
+ install
+ rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+
+ mkdir -p ${D}${prefix}/share/license
+ cp LICENSE ${D}${prefix}/share/license/libsf-common
+
+
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " libsf-common "
+PACKAGES += " libsf-common-dev "
+
+libsf-common_files = ""
+libsf-common_files += "${prefix}/lib/libsf_common.so"
+libsf-common_files += "${prefix}/share/license/libsf-common"
+MANIFESTFILES_${PN} = "libsf-common.manifest"
+
+libsf-common-dev_files = ""
+libsf-common-dev_files += "${prefix}/include/sf_common/*.h"
+libsf-common-dev_files += "${prefix}/lib/pkgconfig/sf_common.pc"
+MANIFESTFILES_${PN}-dev = "libsf-common.manifest"
+
+FILES_${PN} = "${libsf-common_files}"
+FILES_${PN}-dev = "${libsf-common-dev_files}"
+
+PKG_libsf-common= "libsf-common"
+PKG_libsf-common-dev= "libsf-common-dev"
+
+require libsf-common-extraconf.inc
+
diff --git a/meta-application-manager/recipes-others/libsf-common/libsf-common_git.bb b/meta-application-manager/recipes-others/libsf-common/libsf-common_git.bb
new file mode 100644
index 0000000..f49cac3
--- /dev/null
+++ b/meta-application-manager/recipes-others/libsf-common/libsf-common_git.bb
@@ -0,0 +1,10 @@
+require libsf-common.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI += "git://review.tizen.org/platform/core/system/libsf-common;tag=d2dbdc7e801b265a71faf8a2f027d79e72b92424;nobranch=1"
+
+BBCLASSEXTEND += " native "
+
diff --git a/meta-application-manager/recipes-others/libslp-db-util/files/remove-dlog-for-native-build.patch b/meta-application-manager/recipes-others/libslp-db-util/files/remove-dlog-for-native-build.patch
new file mode 100644
index 0000000..5e72552
--- /dev/null
+++ b/meta-application-manager/recipes-others/libslp-db-util/files/remove-dlog-for-native-build.patch
@@ -0,0 +1,33 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index eb292f3..b57a806 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -14,7 +14,6 @@ INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
+ INCLUDE(FindPkgConfig)
+ pkg_check_modules(pkgs REQUIRED
+ sqlite3
+- dlog
+ glib-2.0
+ icu-i18n
+ )
+@@ -29,7 +28,7 @@ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
+
+ ADD_DEFINITIONS("-DPREFIX=\"${PREFIX}\"")
+ ADD_DEFINITIONS("-DFACTORYFS=\"$ENV{FACTORYFS}\"")
+-ADD_DEFINITIONS("-DDB_UTIL_USING_PLATFORM_DBG")
++#ADD_DEFINITIONS("-DDB_UTIL_USING_PLATFORM_DBG")
+ ADD_DEFINITIONS("-DDB_UTIL_ENABLE_TRACE")
+ ##ADD_DEFINITIONS("-DDB_UTIL_ENABLE_DEVDEBUG")
+
+diff --git a/db-util.pc.in b/db-util.pc.in
+index a1df72b..5f7e6f6 100644
+--- a/db-util.pc.in
++++ b/db-util.pc.in
+@@ -8,6 +8,6 @@ includedir=@INCLUDEDIR@
+ Name: db-util
+ Description: DB Utility
+ Version: @VERSION@
+-Requires: sqlite3 dlog glib-2.0 icu-i18n
++Requires: sqlite3 glib-2.0 icu-i18n
+ Libs: -L${libdir} -lSLP-db-util
+ Cflags: -I${includedir}
diff --git a/meta-application-manager/recipes-others/libslp-db-util/libslp-db-util-extraconf.inc b/meta-application-manager/recipes-others/libslp-db-util/libslp-db-util-extraconf.inc
new file mode 100644
index 0000000..1830479
--- /dev/null
+++ b/meta-application-manager/recipes-others/libslp-db-util/libslp-db-util-extraconf.inc
@@ -0,0 +1,3 @@
+SRC_URI_append_class-native = " file://remove-dlog-for-native-build.patch"
+
+DEPENDS_remove_class-native = "dlog-native" \ No newline at end of file
diff --git a/meta-application-manager/recipes-others/libslp-db-util/libslp-db-util.inc b/meta-application-manager/recipes-others/libslp-db-util/libslp-db-util.inc
new file mode 100644
index 0000000..93a655c
--- /dev/null
+++ b/meta-application-manager/recipes-others/libslp-db-util/libslp-db-util.inc
@@ -0,0 +1,137 @@
+DESCRIPTION = "DB Utility"
+HOMEPAGE = "http://nohomepage.org"
+SECTION = "Application Framework/Database"
+LICENSE = "Apache-2.0"
+PV = "0.1.1"
+
+SRC_URI = ""
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by libslp-db-util-dev
+PROVIDES += "libslp-db-util-dev"
+
+
+#PROVIDES by libslp-db-util
+
+
+RDEPENDS = ""
+#RDEPENDS of libslp-db-util-dev (${PN}-dev)
+RDEPENDS_${PN}-dev += "libslp-db-util"
+
+
+DEPENDS = ""
+#DEPENDS of libslp-db-util
+inherit tizen_cmake
+inherit pkgconfig
+DEPENDS += "dlog"
+DEPENDS += "glib-2.0"
+DEPENDS += "sqlite3"
+DEPENDS += "icu"
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q
+ cp ${S}/packaging/libslp-db-util.manifest ${S}/packaging/libslp-db-util-devel.manifest .
+
+
+}
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+
+ cmake \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
+ -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
+ -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
+ -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
+ -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
+ -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
+ -DCMAKE_SKIP_RPATH:BOOL=ON \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
+ ${EXTRA_OECMAKE} .
+ make ${PARALLEL_MAKE}
+
+
+
+}
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+
+ oe_runmake \
+ DESTDIR=${D} \
+ INSTALL_ROOT=${D} \
+ BINDIR=${prefix}/bin \
+ install
+ rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+
+
+}
+
+pkg_postinst_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+pkg_postrm_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " libslp-db-util-dev "
+PACKAGES += " libslp-db-util "
+
+libslp-db-util-dev_files = ""
+libslp-db-util-dev_files += "${prefix}/include/db-util"
+libslp-db-util-dev_files += "${prefix}/include/db-util/*.h"
+libslp-db-util-dev_files += "${prefix}/lib/pkgconfig/db-util.pc"
+libslp-db-util-dev_files += "${prefix}/lib/libSLP-db-util.so"
+MANIFESTFILES_${PN}-dev = "libslp-db-util-devel.manifest"
+DIRFILES_${PN}-dev = ""
+DIRFILES_${PN}-dev += "${prefix}/include/db-util"
+
+libslp-db-util_files = ""
+libslp-db-util_files += "${prefix}/lib/libSLP-db-util.so.0"
+libslp-db-util_files += "${prefix}/lib/libSLP-db-util.so.0.1.0"
+MANIFESTFILES_${PN} = "libslp-db-util.manifest"
+
+FILES_${PN}-dev = "${libslp-db-util-dev_files}"
+FILES_${PN} = "${libslp-db-util_files}"
+
+PKG_libslp-db-util-dev= "libslp-db-util-dev"
+PKG_libslp-db-util= "libslp-db-util"
+
+require libslp-db-util-extraconf.inc
+
diff --git a/meta-application-manager/recipes-others/libslp-db-util/libslp-db-util_git.bb b/meta-application-manager/recipes-others/libslp-db-util/libslp-db-util_git.bb
new file mode 100644
index 0000000..f27650d
--- /dev/null
+++ b/meta-application-manager/recipes-others/libslp-db-util/libslp-db-util_git.bb
@@ -0,0 +1,10 @@
+require libslp-db-util.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI += "git://review.tizen.org/platform/core/appfw/libslp-db-util;tag=4ef37c0712f5f5043768c66ffef2a7f5b76ba940;nobranch=1"
+
+BBCLASSEXTEND += " native "
+
diff --git a/meta-application-manager/recipes-others/luajit/luajit_2.0.4.bbappend b/meta-application-manager/recipes-others/luajit/luajit_2.0.4.bbappend
new file mode 100644
index 0000000..0948aa4
--- /dev/null
+++ b/meta-application-manager/recipes-others/luajit/luajit_2.0.4.bbappend
@@ -0,0 +1,4 @@
+FILES_${PN} += "${libdir}/libluajit-5.1.so.2 \
+ ${libdir}/libluajit-5.1.so.2 \
+"
+
diff --git a/meta-application-manager/recipes-others/notification/notification-extraconf.inc b/meta-application-manager/recipes-others/notification/notification-extraconf.inc
new file mode 100644
index 0000000..dfdcea3
--- /dev/null
+++ b/meta-application-manager/recipes-others/notification/notification-extraconf.inc
@@ -0,0 +1 @@
+INSANE_SKIP_${PN} = "dev-so" \ No newline at end of file
diff --git a/meta-application-manager/recipes-others/notification/notification.inc b/meta-application-manager/recipes-others/notification/notification.inc
new file mode 100644
index 0000000..381ca68
--- /dev/null
+++ b/meta-application-manager/recipes-others/notification/notification.inc
@@ -0,0 +1,176 @@
+DESCRIPTION = "Notification Library"
+HOMEPAGE = "http://nohomepage.org"
+SECTION = "System/API"
+LICENSE = "Apache-2.0"
+PV = "0.2.3"
+
+SRC_URI = ""
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by notification-service-dev
+PROVIDES += "notification-service-dev"
+
+
+#PROVIDES by notification
+
+
+#PROVIDES by notification-dev
+PROVIDES += "notification-dev"
+
+
+RDEPENDS = ""
+#RDEPENDS of notification-service-dev (${PN}-service-dev)
+RDEPENDS_${PN}-service-dev += "notification"
+
+#RDEPENDS of notification (${PN})
+RDEPENDS_${PN} += "sqlite3"
+RDEPENDS_${PN} += "glibc"
+RDEPENDS_${PN} += "libtzplatform-config"
+
+#RDEPENDS of notification-dev (${PN}-dev)
+RDEPENDS_${PN}-dev += "notification"
+
+
+DEPENDS = ""
+#DEPENDS of notification
+inherit tizen_cmake
+DEPENDS += "dbus-glib"
+DEPENDS += "eina"
+DEPENDS += "dbus"
+DEPENDS += "app-svc"
+DEPENDS += "tizen-platform-config"
+inherit pkgconfig
+DEPENDS += "bundle"
+DEPENDS += "aul"
+DEPENDS += "ail"
+DEPENDS += "dlog"
+DEPENDS += "ecore"
+DEPENDS += "sqlite3"
+DEPENDS += "heynoti"
+DEPENDS += "libcom-core"
+DEPENDS += "vconf"
+DEPENDS += "libslp-db-util"
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q
+ cp ${S}/packaging/notification.manifest .
+
+
+}
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+
+ cmake \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
+ -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
+ -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
+ -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
+ -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
+ -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
+ -DCMAKE_SKIP_RPATH:BOOL=ON \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
+ ${EXTRA_OECMAKE} .
+ make ${PARALLEL_MAKE}
+
+
+
+}
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+ rm -rf ${D}
+
+ oe_runmake \
+ DESTDIR=${D} \
+ INSTALL_ROOT=${D} \
+ BINDIR=${prefix}/bin \
+ install
+ rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+
+ mkdir -p ${D}/usr/share/license
+ cp -f LICENSE.APLv2.0 ${D}/usr/share/license/notification
+
+
+}
+
+pkg_postinst_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+ $D${prefix}/share/notification/notification_DB_init.sh
+
+}
+
+pkg_postrm_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " notification-service-dev "
+PACKAGES += " notification "
+PACKAGES += " notification-dev "
+
+notification-service-dev_files = ""
+notification-service-dev_files += "${prefix}/include/notification/service/notification_ipc.h"
+notification-service-dev_files += "${prefix}/include/notification/service/notification_noti.h"
+notification-service-dev_files += "${prefix}/include/notification/service/notification_setting_service.h"
+notification-service-dev_files += "${prefix}/lib/pkgconfig/notification-service.pc"
+
+notification_files = ""
+notification_files += "${prefix}/lib/libnotification.so*"
+notification_files += "${prefix}/share/notification/notification_DB_init.sh"
+notification_files += "/usr/share/license/notification"
+MANIFESTFILES_${PN} = "notification.manifest"
+
+notification-dev_files = ""
+notification-dev_files += "${prefix}/include/notification/notification.h"
+notification-dev_files += "${prefix}/include/notification/notification_error.h"
+notification-dev_files += "${prefix}/include/notification/notification_type.h"
+notification-dev_files += "${prefix}/include/notification/notification_list.h"
+notification-dev_files += "${prefix}/include/notification/notification_status.h"
+notification-dev_files += "${prefix}/include/notification/notification_setting.h"
+notification-dev_files += "${prefix}/lib/pkgconfig/notification.pc"
+
+FILES_${PN}-service-dev = "${notification-service-dev_files}"
+FILES_${PN} = "${notification_files}"
+FILES_${PN}-dev = "${notification-dev_files}"
+
+PKG_notification-service-dev= "notification-service-dev"
+PKG_notification= "notification"
+PKG_notification-dev= "notification-dev"
+
+require notification-extraconf.inc
+
diff --git a/meta-application-manager/recipes-others/notification/notification_git.bb b/meta-application-manager/recipes-others/notification/notification_git.bb
new file mode 100644
index 0000000..af5adcf
--- /dev/null
+++ b/meta-application-manager/recipes-others/notification/notification_git.bb
@@ -0,0 +1,10 @@
+require notification.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI += "git://review.tizen.org/platform/core/api/notification;tag=6d3c4efa9d5285bb6fb9eef61a32ee5ce2c3b632;nobranch=1"
+
+BBCLASSEXTEND += " native "
+
diff --git a/meta-application-manager/recipes-others/privacy-manager-server/files/0001-add-fPIC-to-gcc.patch b/meta-application-manager/recipes-others/privacy-manager-server/files/0001-add-fPIC-to-gcc.patch
new file mode 100644
index 0000000..73df4d8
--- /dev/null
+++ b/meta-application-manager/recipes-others/privacy-manager-server/files/0001-add-fPIC-to-gcc.patch
@@ -0,0 +1,69 @@
+--- a/server/CMakeLists.txt
++++ b/server/CMakeLists.txt
+@@ -14,12 +14,12 @@
+ ENDFOREACH(flag)
+
+ SET(CMAKE_C_FLAGS_PROFILING " -g -pg")
+-SET(CMAKE_CXX_FLAGS_PROFILING " -std=c++0x -g -pg")
++SET(CMAKE_CXX_FLAGS_PROFILING " -std=c++0x -g -pg -fPIC ")
+ SET(CMAKE_C_FLAGS_DEBUG " -g")
+-SET(CMAKE_CXX_FLAGS_DEBUG " -std=c++0x -g")
++SET(CMAKE_CXX_FLAGS_DEBUG " -std=c++0x -g -fPIC ")
+ SET(CMAKE_C_FLAGS_RELEASE " -g")
+-SET(CMAKE_CXX_FLAGS_RELEASE " -std=c++0x -g")
++SET(CMAKE_CXX_FLAGS_RELEASE " -std=c++0x -g -fPIC ")
+ SET(CMAKE_C_FLAGS_CCOV " -g --coverage")
+-SET(CMAKE_CXX_FLAGS_CCOV " -std=c++0x -g --coverage")
++SET(CMAKE_CXX_FLAGS_CCOV " -std=c++0x -g --coverage -fPIC ")
+
+ SET(server_src_dir "${CMAKE_SOURCE_DIR}/server/src")
+
+
+--- a/client/CMakeLists.txt
++++ b/client/CMakeLists.txt
+@@ -15,12 +15,12 @@
+ ENDFOREACH(flag)
+
+ SET(CMAKE_C_FLAGS_PROFILING " -g -pg")
+-SET(CMAKE_CXX_FLAGS_PROFILING " -std=c++0x -g -pg")
++SET(CMAKE_CXX_FLAGS_PROFILING " -std=c++0x -g -pg -fPIC ")
+ SET(CMAKE_C_FLAGS_DEBUG " -g")
+-SET(CMAKE_CXX_FLAGS_DEBUG " -std=c++0x -g")
++SET(CMAKE_CXX_FLAGS_DEBUG " -std=c++0x -g -fPIC ")
+ SET(CMAKE_C_FLAGS_RELEASE " -g")
+-SET(CMAKE_CXX_FLAGS_RELEASE " -std=c++0x -g")
++SET(CMAKE_CXX_FLAGS_RELEASE " -std=c++0x -g -fPIC ")
+ SET(CMAKE_C_FLAGS_CCOV " -g --coverage")
+-SET(CMAKE_CXX_FLAGS_CCOV " -std=c++0x -g --coverage")
++SET(CMAKE_CXX_FLAGS_CCOV " -std=c++0x -g --coverage -fPIC ")
+
+ SET(client_src_dir "${CMAKE_SOURCE_DIR}/client/src")
+
+--- a/pkgmgr_plugin/CMakeLists.txt
++++ b/pkgmgr_plugin/CMakeLists.txt
+@@ -24,15 +24,15 @@
+ ADD_DEFINITIONS("-DDLOG_ERROR_ENABLED")
+ ADD_DEFINITIONS("-DLOG_TAG=\"PRIVILEGE_PLUGIN\"")
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -Wall" )
+
+-SET(CMAKE_C_FLAGS_PROFILING " -g -pg")
+-SET(CMAKE_CXX_FLAGS_PROFILING " -std=c++0x -g -pg")
+-SET(CMAKE_C_FLAGS_DEBUG " -g")
+-SET(CMAKE_CXX_FLAGS_DEBUG " -std=c++0x -g")
+-SET(CMAKE_C_FLAGS_RELEASE " -g")
+-SET(CMAKE_CXX_FLAGS_RELEASE " -std=c++0x -g")
+-SET(CMAKE_C_FLAGS_CCOV " -g --coverage")
+-SET(CMAKE_CXX_FLAGS_CCOV " -std=c++0x -g --coverage")
++SET(CMAKE_C_FLAGS_PROFILING " -g -pg")
++SET(CMAKE_CXX_FLAGS_PROFILING " -std=c++0x -g -pg -fPIC ")
++SET(CMAKE_C_FLAGS_DEBUG " -g")
++SET(CMAKE_CXX_FLAGS_DEBUG " -std=c++0x -g -fPIC ")
++SET(CMAKE_C_FLAGS_RELEASE " -g")
++SET(CMAKE_CXX_FLAGS_RELEASE " -std=c++0x -g -fPIC ")
++SET(CMAKE_C_FLAGS_CCOV " -g --coverage")
++SET(CMAKE_CXX_FLAGS_CCOV " -std=c++0x -g --coverage -fPIC ")
+
+ ## Create Library
+ ADD_LIBRARY (${this_target} SHARED ${${this_target}_SOURCE_FILES} )
+
+
diff --git a/meta-application-manager/recipes-others/privacy-manager-server/files/0002-remove-strip.patch b/meta-application-manager/recipes-others/privacy-manager-server/files/0002-remove-strip.patch
new file mode 100644
index 0000000..545176e
--- /dev/null
+++ b/meta-application-manager/recipes-others/privacy-manager-server/files/0002-remove-strip.patch
@@ -0,0 +1,12 @@
+--- a/pkgmgr_plugin/CMakeLists.txt
++++ b/pkgmgr_plugin/CMakeLists.txt
+@@ -57,8 +57,6 @@
+ ADD_CUSTOM_COMMAND(TARGET ${this_target}
+ POST_BUILD
+ COMMAND ${CMAKE_COMMAND} -E copy ${LIBRARY_OUTPUT_PATH}/${CMAKE_SHARED_LIBRARY_PREFIX}${this_target}${CMAKE_SHARED_LIBRARY_SUFFIX} ${LIBRARY_OUTPUT_PATH}/debug/${CMAKE_SHARED_LIBRARY_PREFIX}${this_target}${CMAKE_SHARED_LIBRARY_SUFFIX}
+- COMMAND ${CMAKE_STRIP} --strip-unneeded ${LIBRARY_OUTPUT_PATH}/${CMAKE_SHARED_LIBRARY_PREFIX}${this_target}${CMAKE_SHARED_LIBRARY_SUFFIX}
+- COMMENT "strip ${this_target}"
+ )
+
+ INSTALL(TARGETS ${this_target} DESTINATION "../etc/package-manager/parserlib")
+
diff --git a/meta-application-manager/recipes-others/privacy-manager-server/files/fix-include-directories-in-CMakeList.txt.patch b/meta-application-manager/recipes-others/privacy-manager-server/files/fix-include-directories-in-CMakeList.txt.patch
new file mode 100644
index 0000000..7af70a8
--- /dev/null
+++ b/meta-application-manager/recipes-others/privacy-manager-server/files/fix-include-directories-in-CMakeList.txt.patch
@@ -0,0 +1,19 @@
+diff --git a/pkgmgr_plugin/CMakeLists.txt b/pkgmgr_plugin/CMakeLists.txt
+index b8a0488..00f8428 100644
+--- a/pkgmgr_plugin/CMakeLists.txt
++++ b/pkgmgr_plugin/CMakeLists.txt
+@@ -12,11 +12,7 @@ FOREACH(flag ${privileges_CFLAGS})
+ ENDFOREACH(flag)
+
+ INCLUDE_DIRECTORIES(
+- /usr/include
+- /usr/include/glib-2.0
+- /usr/include/libxml2
+- /usr/include/package_manager
+- /usr/include/dlog
++ "${pkg_INCLUDE_DIRS}"
+ "${CMAKE_SOURCE_DIR}/client/inc/"
+ "${CMAKE_SOURCE_DIR}/common/inc/"
+ )
+
+
diff --git a/meta-application-manager/recipes-others/privacy-manager-server/files/fix-include-directories-in-CMakeList_2.patch b/meta-application-manager/recipes-others/privacy-manager-server/files/fix-include-directories-in-CMakeList_2.patch
new file mode 100644
index 0000000..8f5ccba
--- /dev/null
+++ b/meta-application-manager/recipes-others/privacy-manager-server/files/fix-include-directories-in-CMakeList_2.patch
@@ -0,0 +1,27 @@
+diff --git a/server/CMakeLists.txt b/server/CMakeLists.txt
+index ec51d1a..bba409f 100644
+--- a/server/CMakeLists.txt
++++ b/server/CMakeLists.txt
+@@ -26,7 +26,7 @@ SET(server_src_dir "${CMAKE_SOURCE_DIR}/server/src")
+ SET(server_include_dir "${CMAKE_SOURCE_DIR}/server/inc/")
+ SET(common_src_dir "${CMAKE_SOURCE_DIR}/common/src/")
+ SET(common_include_dir "${CMAKE_SOURCE_DIR}/common/inc/")
+-SET(dbus_include_dir "/usr/include/dbus-1.0")
++SET(dbus_include_dir "${pkg_INCLUDE_DIRS}/dbus-1.0")
+
+ ## Additional flag
+ ADD_DEFINITIONS("-fvisibility=hidden")
+@@ -43,11 +43,11 @@ ENDIF(FILTER_LISTED_PKG)
+ INCLUDE_DIRECTORIES(
+ ${pkgs_INCLUDE_DIRS}
+ ${server_include_dir}
+- ${common_include_dir}
++ ${common_include_dir}
+ ${dbus_include_dir}
+ )
+
+-SET(PRIVACY_MANAGER_SERVER_SOURCES
++SET(PRIVACY_MANAGER_SERVER_SOURCES
+ ${common_src_dir}/SocketConnection.cpp
+ ${common_src_dir}/SocketStream.cpp
+ ${common_src_dir}/PrivacyDb.cpp
diff --git a/meta-application-manager/recipes-others/privacy-manager-server/files/remove-dlog-for-native-build.patch b/meta-application-manager/recipes-others/privacy-manager-server/files/remove-dlog-for-native-build.patch
new file mode 100644
index 0000000..19f7d16
--- /dev/null
+++ b/meta-application-manager/recipes-others/privacy-manager-server/files/remove-dlog-for-native-build.patch
@@ -0,0 +1,965 @@
+diff --git a/capi/CMakeLists.txt b/capi/CMakeLists.txt
+index ee547f7..1c81906 100644
+--- a/capi/CMakeLists.txt
++++ b/capi/CMakeLists.txt
+@@ -16,7 +16,7 @@ INCLUDE_DIRECTORIES(${INC_DIR}
+ SET(pc_requires "capi-base-common")
+
+ INCLUDE(FindPkgConfig)
+-pkg_check_modules(${fw_name} REQUIRED capi-base-common dlog glib-2.0)
++pkg_check_modules(${fw_name} REQUIRED capi-base-common glib-2.0)
+ FOREACH(flag ${${fw_name}_CFLAGS})
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+ ENDFOREACH(flag)
+diff --git a/capi/src/privacy_manager.c b/capi/src/privacy_manager.c
+index 8be76fe..14f23c9 100644
+--- a/capi/src/privacy_manager.c
++++ b/capi/src/privacy_manager.c
+@@ -22,14 +22,14 @@
+ #include <privacy_info_client.h>
+ #include <privacy_manager_client.h>
+ #include <privacy_manager_types_private.h>
+-#include <dlog.h>
++//#include <dlog.h>
+
+
+ static int _privacy_manager_convert_error(int error)
+ {
+ int ret = PRIV_MGR_ERROR_SUCCESS;
+
+- LOGD("before error : %d", error);
++ //LOGD("before error : %d", error);
+
+ switch (error)
+ {
+@@ -55,7 +55,7 @@ static int _privacy_manager_convert_error(int error)
+ ret = PRIVACY_MANAGER_ERROR_IPC_FAILED;
+ break;
+ }
+- LOGD("after error : %d", ret);
++ //LOGD("after error : %d", ret);
+ return ret;
+ }
+
+diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt
+index 4a6f526..770a7f0 100644
+--- a/client/CMakeLists.txt
++++ b/client/CMakeLists.txt
+@@ -8,7 +8,7 @@ SET(LIBDIR ${LIB_INSTALL_DIR})
+ SET(INCLUDEDIR ${INCLUDE_INSTALL_DIR})
+
+ INCLUDE(FindPkgConfig)
+-pkg_check_modules(privacy-manager-client REQUIRED dlog sqlite3 dbus-1 dbus-glib-1 db-util pkgmgr-info libtzplatform-config)
++pkg_check_modules(privacy-manager-client REQUIRED sqlite3 dbus-1 dbus-glib-1 db-util pkgmgr-info libtzplatform-config)
+
+ FOREACH(flag ${pkgs_CFLAGS})
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+@@ -35,7 +35,7 @@ SET(common_include_dir "${CMAKE_SOURCE_DIR}/common/inc/")
+ ## Additional flag
+ ADD_DEFINITIONS("-fvisibility=hidden")
+ ADD_DEFINITIONS("-Wall -Werror")
+-ADD_DEFINITIONS("-DDLOG_ERROR_ENABLED")
++
+ OPTION (FILTER_LISTED_PKG "FILTER PKG BY LIST" ON)
+ IF(FILTER_LISTED_PKG)
+ MESSAGE("FILTER PKGs BY FILTERING LIST")
+@@ -75,7 +75,6 @@ SET(PRIVACY_MANAGER_CLIENT_LDFLAGS " -module -avoid-version ")
+ SET(PRIVACY_MANAGER_CLIENT_CFLAGS " ${CFLAGS} -fPIC ")
+ #SET(PRIVACY_MANAGER_CLIENT_LIBADD " ")
+
+-ADD_DEFINITIONS("-DLOG_TAG=\"PRIVACY-MANAGER-CLIENT\"")
+ ADD_LIBRARY(privacy-manager-client SHARED ${PRIVACY_MANAGER_CLIENT_SOURCES})
+ TARGET_LINK_LIBRARIES(privacy-manager-client ${pkgs_LDFLAGS} ${pkgs_LIBRARIES})
+ SET_TARGET_PROPERTIES(privacy-manager-client PROPERTIES COMPILE_FLAGS "${PRIVACY_MANAGER_CLIENT_CFLAGS}")
+diff --git a/client/inc/SocketClient.h b/client/inc/SocketClient.h
+index d2713b1..d2ca79a 100644
+--- a/client/inc/SocketClient.h
++++ b/client/inc/SocketClient.h
+@@ -19,7 +19,7 @@
+
+ #include <memory>
+ #include <string>
+-#include <dlog.h>
++//#include <dlog.h>
+ #include "SocketConnection.h"
+
+ /* IMPORTANT:
+diff --git a/client/src/PrivacyChecker.cpp b/client/src/PrivacyChecker.cpp
+index c856f85..2164795 100644
+--- a/client/src/PrivacyChecker.cpp
++++ b/client/src/PrivacyChecker.cpp
+@@ -21,7 +21,7 @@
+ #include <algorithm>
+ #include <memory>
+ #include <Utils.h>
+-#include <dlog.h>
++//#include <dlog.h>
+ #include <sqlite3.h>
+ #include <dbus/dbus-glib-lowlevel.h>
+ #include <sys/types.h>
+@@ -81,7 +81,7 @@ void*
+ PrivacyChecker::runSignalListenerThread(void* pData)
+ {
+ pthread_detach(pthread_self());
+- LOGI("Running g main loop for signal");
++ //LOGI("Running g main loop for signal");
+
+ initializeDbus();
+
+@@ -149,7 +149,7 @@ PrivacyChecker::handleNotification(DBusConnection* connection, DBusMessage* mess
+
+ if (std::string(pPkgId) == m_pkgId)
+ {
+- LOGI("Current app pkg privacy information updated");
++ //LOGI("Current app pkg privacy information updated");
+ updateCache(m_pkgId, pPrivacyId, m_privacyCache);
+ //printCache();
+ }
+@@ -157,7 +157,7 @@ PrivacyChecker::handleNotification(DBusConnection* connection, DBusMessage* mess
+ std::map < std::string, std::map < std::string, bool > > :: iterator iter = m_privacyInfoCache.find(std::string(pPkgId));
+ if (iter != m_privacyInfoCache.end())
+ {
+- LOGI("Current pkg privacy is in cache");
++ //LOGI("Current pkg privacy is in cache");
+ updateCache(std::string(pPkgId), pPrivacyId, iter->second);
+ }
+
+@@ -197,12 +197,12 @@ PrivacyChecker::check(const std::string privacyId, std::map < std::string, bool
+ iter = privacyMap.find(privacyId);
+ if (iter == privacyMap.end() )
+ {
+- LOGD("The application cannot access the privacy inforamtion.");
++ //LOGD("The application cannot access the privacy inforamtion.");
+ return PRIV_MGR_ERROR_USER_NOT_CONSENTED;
+ }
+ else if (!iter->second)
+ {
+- LOGD("User does not consented to access the privacy information");
++ //LOGD("User does not consented to access the privacy information");
+ return PRIV_MGR_ERROR_USER_NOT_CONSENTED;
+ }
+
+@@ -310,7 +310,7 @@ PrivacyChecker::printCache(void)
+ std::map < std::string, bool >::const_iterator iter = m_privacyCache.begin();
+ for (; iter != m_privacyCache.end(); ++iter)
+ {
+- LOGD(" %s : %d", iter->first.c_str(), iter->second);
++ //LOGD(" %s : %d", iter->first.c_str(), iter->second);
+ }
+ }
+
+@@ -331,7 +331,7 @@ PrivacyChecker::updateCache(const std::string pkgId, std::string privacyId, std:
+ {
+ bool privacyEnabled = sqlite3_column_int(pPrivacyStmt.get(), 0) > 0 ? true : false;
+
+- SECURE_LOGD("Set result : %s : %d", privacyId.c_str(), privacyEnabled );
++ //SECURE_LOGD("Set result : %s : %d", privacyId.c_str(), privacyEnabled );
+ pkgCacheMap.erase(privacyId);
+ pkgCacheMap.insert(std::map < std::string, bool >::value_type(privacyId, privacyEnabled));
+ }
+@@ -358,7 +358,7 @@ PrivacyChecker::updateCache(std::string pkgId, std::map < std::string, bool >& p
+
+ pkgCacheMap.insert(std::map < std::string, bool >::value_type(std::string(privacyId), privacyEnabled));
+
+- SECURE_LOGD("Privacy found : %s %d", privacyId, privacyEnabled);
++ //SECURE_LOGD("Privacy found : %s %d", privacyId, privacyEnabled);
+ }
+ return PRIV_MGR_ERROR_SUCCESS;
+ }
+diff --git a/client/src/privacy_manager_client.cpp b/client/src/privacy_manager_client.cpp
+index fc01694..6397d60 100644
+--- a/client/src/privacy_manager_client.cpp
++++ b/client/src/privacy_manager_client.cpp
+@@ -17,7 +17,7 @@
+ #include <string.h>
+ #include <string>
+ #include <memory>
+-#include <dlog.h>
++//#include <dlog.h>
+ #include <PrivacyManagerClient.h>
+ #include <PrivacyIdInfo.h>
+ #include <privacy_manager_client.h>
+diff --git a/common/inc/SocketStream.h b/common/inc/SocketStream.h
+index 0788a9d..20bcd6e 100644
+--- a/common/inc/SocketStream.h
++++ b/common/inc/SocketStream.h
+@@ -28,7 +28,7 @@ public:
+ , m_bytesRead(0)
+ ,m_bytesWrote(0)
+ {
+- LOGI("Created");
++ //LOGI("Created");
+ }
+
+ int readStream(size_t num, void * bytes);
+diff --git a/common/src/PrivacyDb.cpp b/common/src/PrivacyDb.cpp
+index f577edd..da853de 100644
+--- a/common/src/PrivacyDb.cpp
++++ b/common/src/PrivacyDb.cpp
+@@ -16,7 +16,8 @@
+
+ #include <sstream>
+ #include <fstream>
+-#include <dlog.h>
++//#include <dlog.h>
++#include <string.h>
+ #include <Utils.h>
+ #include <PrivacyDb.h>
+ #include <PrivacyManagerTypes.h>
+@@ -101,12 +101,12 @@ PrivacyDb::getPrivacyAppPackages(std::list <std::string>& list) const
+ {
+ const char* pValue = reinterpret_cast < const char* > (sqlite3_column_text(pStmt.get(), 0));
+
+- SECURE_LOGD("PkgId found : %s ", pValue);
++ //SECURE_LOGD("PkgId found : %s ", pValue);
+ std::string pkgId = std::string(pValue);
+
+ if (isFilteredPackage(pkgId))
+ {
+- SECURE_LOGD("%s is Filtered", pValue);
++ //SECURE_LOGD("%s is Filtered", pValue);
+ continue;
+ }
+ list.push_back(std::string(pValue));
+@@ -133,7 +133,7 @@ PrivacyDb::getAppPackagePrivacyInfo(const std::string pkgId, std::list < std::pa
+
+ privacyInfoList.push_back( std::pair <std::string, bool> (std::string(privacyId), privacyEnabled) );
+
+- SECURE_LOGD("Privacy found : %s %d", privacyId, privacyEnabled);
++ //SECURE_LOGD("Privacy found : %s %d", privacyId, privacyEnabled);
+ }
+
+ return 0;
+@@ -160,7 +160,7 @@ PrivacyDb::addAppPackagePrivacyInfo(const std::string pkgId, const std::list < s
+
+ for ( std::list <std::string>::const_iterator iter = privilegeList.begin(); iter != privilegeList.end(); ++iter)
+ {
+- SECURE_LOGD("install privacy: %s", iter->c_str());
++ //SECURE_LOGD("install privacy: %s", iter->c_str());
+ prepareDb(pDbHandler, privacyQuery.c_str(), pPrivacyStmt);
+
+ res = sqlite3_bind_text(pPrivacyStmt.get(), 1, pkgId.c_str(), -1, SQLITE_TRANSIENT);
+@@ -219,7 +219,7 @@ PrivacyDb::isUserPrompted(const std::string pkgId, bool& isPrompted) const
+
+ if (isFilteredPackage(pkgId))
+ {
+- SECURE_LOGD("%s is Filtered", pkgId.c_str());
++ //SECURE_LOGD("%s is Filtered", pkgId.c_str());
+ return 0;
+ }
+
+@@ -237,7 +237,7 @@ PrivacyDb::isUserPrompted(const std::string pkgId, bool& isPrompted) const
+ }
+ else
+ {
+- SECURE_LOGE("The package[%s] can not access privacy", pkgId.c_str());
++ //SECURE_LOGE("The package[%s] can not access privacy", pkgId.c_str());
+ return PRIV_MGR_ERROR_SUCCESS;
+ }
+
+@@ -274,7 +274,7 @@ PrivacyDb::getAppPackagesbyPrivacyId(std::string privacyId, std::list < std::pai
+ openDb(PRIVACY_DB_PATH, pDbHandler, SQLITE_OPEN_READWRITE);
+ prepareDb(pDbHandler, sql.c_str(), pStmt);
+
+- SECURE_LOGD("privacy id : %s", privacyId.c_str());
++ //SECURE_LOGD("privacy id : %s", privacyId.c_str());
+ int res = sqlite3_bind_text(pStmt.get(), 1, privacyId.c_str(), -1, SQLITE_TRANSIENT);
+ TryReturn( res == SQLITE_OK, PRIV_MGR_ERROR_DB_ERROR, , "sqlite3_bind_text : %d", res);
+
+@@ -286,7 +286,7 @@ PrivacyDb::getAppPackagesbyPrivacyId(std::string privacyId, std::list < std::pai
+ std::string pkgId = std::string(pPkgId);
+ if (isFilteredPackage(pkgId))
+ {
+- SECURE_LOGD("%s is Filtered", pPkgId);
++ //SECURE_LOGD("%s is Filtered", pPkgId);
+ continue;
+ }
+
+@@ -300,7 +300,7 @@ PrivacyDb::PrivacyDb(void)
+ {
+
+ #ifdef __FILTER_LISTED_PKG
+- SECURE_LOGD("Construct with filter list");
++ //SECURE_LOGD("Construct with filter list");
+ std::ifstream inFile;
+ inFile.open(PRIVACY_FILTER_LIST_FILE);
+ TryReturn(inFile.is_open(), , , "Cannot find %s file.", PRIVACY_FILTER_LIST_FILE.c_str());
+@@ -312,13 +312,13 @@ PrivacyDb::PrivacyDb(void)
+ continue;
+ if (strncmp(FILTER_KEY.c_str(), inputLine, FILTER_KEY.length()) != 0)
+ {
+- SECURE_LOGD("Invalid Key[%s]", inputLine);
++ //SECURE_LOGD("Invalid Key[%s]", inputLine);
+ continue;
+ }
+ std::string pkgId = std::string(inputLine).substr(FILTER_KEY.length() + 1);
+ if (!pkgId.empty())
+ m_filteredPkgList.insert ( std::pair < std::string, bool > (pkgId, true) );
+- SECURE_LOGD("Filter PKG: %s", pkgId.c_str());
++ //SECURE_LOGD("Filter PKG: %s", pkgId.c_str());
+ }
+ #endif
+
+diff --git a/common/src/PrivacyIdInfo.cpp b/common/src/PrivacyIdInfo.cpp
+index ba651d8..94a4369 100644
+--- a/common/src/PrivacyIdInfo.cpp
++++ b/common/src/PrivacyIdInfo.cpp
+@@ -17,7 +17,7 @@
+ #include <PrivacyIdInfo.h>
+ #include <privacy_manager_client_types.h>
+ #include <PrivacyManagerTypes.h>
+-#include <dlog.h>
++//#include <dlog.h>
+ #include <set>
+ #include <Utils.h>
+ #include <libintl.h>
+@@ -45,7 +45,7 @@ PrivacyIdInfo::initialize(void)
+ res = sqlite3_bind_text(pStmtPrivacyInfo.get(), 1, privacyId, -1, SQLITE_TRANSIENT);
+ TryReturn(res == SQLITE_OK, PRIV_MGR_ERROR_DB_ERROR, , "sqlite3_bind_text : %d", res);
+ res = sqlite3_step(pStmtPrivacyInfo.get());
+- LOGD("privacy id : %s", privacyId);
++ //LOGD("privacy id : %s", privacyId);
+ TryReturn(res == SQLITE_DONE || res == SQLITE_ROW, PRIV_MGR_ERROR_DB_ERROR, , "sqlite3_step : %d", res);
+
+ const char* feature = reinterpret_cast < const char* > (sqlite3_column_text(pStmtPrivacyInfo.get(), 0));
+@@ -107,7 +107,7 @@ PrivacyIdInfo::getPrivilegeListFromPrivacyId(const std::string privacyId, std::l
+
+ if (privilegeList.size() == 0)
+ {
+- LOGE("PrivilegeList of %s privacy is empty!", privacyId.c_str());
++ //LOGE("PrivilegeList of %s privacy is empty!", privacyId.c_str());
+ return PRIV_MGR_ERROR_NO_DATA;
+ }
+
+@@ -162,7 +162,7 @@ PrivacyIdInfo::getAllPrivacyId(std::list< std::string >& privacyIdList)
+ {
+ const char* privacyId = reinterpret_cast < const char* > (sqlite3_column_text(pStmt.get(), 0));
+ const char* feature = reinterpret_cast < const char* > (sqlite3_column_text(pStmt.get(), 1));
+- LOGD("privacy: %s, feature: %s", privacyId, feature);
++ //LOGD("privacy: %s, feature: %s", privacyId, feature);
+
+ if (feature != NULL)
+ {
+@@ -176,7 +176,7 @@ PrivacyIdInfo::getAllPrivacyId(std::list< std::string >& privacyIdList)
+ }
+
+ privacyIdList.push_back(std::string(privacyId));
+- SECURE_LOGD(" privacy Id : %s", privacyId);
++ //SECURE_LOGD(" privacy Id : %s", privacyId);
+ }
+
+ return PRIV_MGR_ERROR_SUCCESS;
+@@ -214,7 +214,7 @@ PrivacyIdInfo::getPrivaycDisplayName(const std::string privacyId, std::string& d
+ }
+ else
+ {
+- LOGI("Cannot find privacy string %s ", privacyId.c_str());
++ ////LOGI("Cannot find privacy string %s ", privacyId.c_str());
+ return PRIV_MGR_ERROR_NO_DATA;
+ }
+
+@@ -246,7 +246,7 @@ PrivacyIdInfo::getPrivaycDescription(const std::string privacyId, std::string& d
+ }
+ else
+ {
+- LOGI("Cannot find privacy string %s ", privacyId.c_str());
++ ////LOGI("Cannot find privacy string %s ", privacyId.c_str());
+ return PRIV_MGR_ERROR_NO_DATA;
+ }
+
+diff --git a/common/src/SocketStream.cpp b/common/src/SocketStream.cpp
+index 4337c3e..e72515c 100644
+--- a/common/src/SocketStream.cpp
++++ b/common/src/SocketStream.cpp
+@@ -20,7 +20,7 @@
+ #include <errno.h>
+ #include <cstring>
+ #include <unistd.h>
+-#include <dlog.h>
++//#include <dlog.h>
+ #include <Utils.h>
+ #include "SocketStream.h"
+
+@@ -33,7 +33,7 @@
+ int
+ SocketStream::throwWithErrnoMessage(std::string function_name)
+ {
+- LOGE("%s : %s", function_name.c_str(), strerror(errno));
++ //LOGE("%s : %s", function_name.c_str(), strerror(errno));
+ return errno;
+ }
+
+@@ -74,7 +74,7 @@ SocketStream::readStream(size_t num, void* pBytes)
+ {
+ if (errno == EINTR)
+ continue;
+- LOGD("pselect : %s", strerror(errno));
++ //LOGD("pselect : %s", strerror(errno));
+ return -1;
+ }
+ //This means pselect got timedout
+@@ -89,11 +89,11 @@ SocketStream::readStream(size_t num, void* pBytes)
+ {
+ if(errno == ECONNRESET || errno == ENOTCONN || errno == ETIMEDOUT)
+ {
+- LOGI("Connection closed : %s", strerror(errno));
++ //LOGI("Connection closed : %s", strerror(errno));
+ return -1;
+ }
+ else if (errno != EAGAIN && errno != EWOULDBLOCK){
+- LOGI("read()");
++ //LOGI("read()");
+ return -1;
+ }
+ }
+@@ -145,7 +145,7 @@ SocketStream::writeStream(size_t num, const void* pBytes)
+ {
+ if(errno == EINTR)
+ continue;
+- LOGD("pselect : %s", strerror(errno));
++ //LOGD("pselect : %s", strerror(errno));
+ return -1;
+ }
+
+@@ -155,13 +155,13 @@ SocketStream::writeStream(size_t num, const void* pBytes)
+ {
+ if(errno == ECONNRESET || errno == EPIPE)
+ {
+- LOGI("Connection closed : %s", strerror(errno));
++ //LOGI("Connection closed : %s", strerror(errno));
+ return -1;
+
+ }
+ else if(errno != EAGAIN && errno != EWOULDBLOCK)
+ {
+- LOGE("write()");
++ //LOGE("write()");
+ return -1;
+ }
+ }
+diff --git a/pkgmgr_plugin/privileges.cpp b/pkgmgr_plugin/privileges.cpp
+index 1e6d61d..5eaad41 100644
+--- a/pkgmgr_plugin/privileges.cpp
++++ b/pkgmgr_plugin/privileges.cpp
+@@ -19,7 +19,8 @@
+ #include <libxml/parser.h>
+ #include <libxml/tree.h>
+ #include <privacy_manager_client.h>
+-#include <dlog.h>
++//#include <dlog.h>
++#include <string.h>
+ #include <list>
+ #include <string>
+
+@@ -49,7 +49,7 @@ int PKGMGR_PARSER_PLUGIN_INSTALL(xmlDocPtr docPtr, const char* packageId)
+ curPtr = curPtr->xmlChildrenNode;
+ if (curPtr == NULL)
+ {
+- LOGD("No privileges");
++ //LOGD("No privileges");
+ return 0;
+ }
+
+@@ -62,7 +62,7 @@ int PKGMGR_PARSER_PLUGIN_INSTALL(xmlDocPtr docPtr, const char* packageId)
+
+ if (pPrivilege == NULL)
+ {
+- LOGE("Failed to get value");
++ //LOGE("Failed to get value");
+ return -EINVAL;
+ }
+ else
+@@ -98,7 +98,7 @@ int PKGMGR_PARSER_PLUGIN_INSTALL(xmlDocPtr docPtr, const char* packageId)
+ destroy_char_list(ppPrivilegeList, privilegeList.size() + 1);
+ if (ret != PRIV_MGR_ERROR_SUCCESS)
+ {
+- LOGD("Failed to install privacy info: %d", ret);
++ //LOGD("Failed to install privacy info: %d", ret);
+ return -EINVAL;
+ }
+
+@@ -112,12 +112,12 @@ int PKGMGR_PARSER_PLUGIN_UNINSTALL(xmlDocPtr docPtr, const char* packageId)
+ int res = privacy_manager_client_uninstall_privacy_by_server(packageId);
+ if (res != PRIV_MGR_ERROR_SUCCESS)
+ {
+- LOGD("Failed to uninstall privacy info in server: %d", res);
++ //LOGD("Failed to uninstall privacy info in server: %d", res);
+
+ res = privacy_manager_client_uninstall_privacy(packageId);
+ if (res != PRIV_MGR_ERROR_SUCCESS)
+ {
+- LOGD("Failed to uninstall privacy info: %d", res);
++ //LOGD("Failed to uninstall privacy info: %d", res);
+ return -EINVAL;
+ }
+ }
+@@ -131,18 +131,18 @@ int PKGMGR_PARSER_PLUGIN_UPGRADE(xmlDocPtr docPtr, const char* packageId)
+ {
+ int res = 0;
+
+- LOGD("Update privacy Info");
++ //LOGD("Update privacy Info");
+
+ res = PKGMGR_PARSER_PLUGIN_UNINSTALL(docPtr, packageId);
+ if (res != 0)
+ {
+- LOGD("Privacy info can be already uninstalled");
++ //LOGD("Privacy info can be already uninstalled");
+ }
+
+ res = PKGMGR_PARSER_PLUGIN_INSTALL(docPtr, packageId);
+ if (res != 0)
+ {
+- LOGD("Failed to install privacy Info: %d", res);
++ //LOGD("Failed to install privacy Info: %d", res);
+ }
+ return res;
+ }
+diff --git a/server/CMakeLists.txt b/server/CMakeLists.txt
+index ec51d1a..945fe14 100644
+--- a/server/CMakeLists.txt
++++ b/server/CMakeLists.txt
+@@ -7,7 +7,7 @@ SET(EXEC_PREFIX "\${prefix}")
+ SET(INCLUDEDIR "\${prefix}/include")
+
+ INCLUDE(FindPkgConfig)
+-pkg_check_modules(pkgs REQUIRED dlog sqlite3 dbus-1 dbus-glib-1 db-util pkgmgr-info capi-system-info libtzplatform-config)
++pkg_check_modules(pkgs REQUIRED sqlite3 dbus-1 dbus-glib-1 db-util pkgmgr-info capi-system-info libtzplatform-config)
+
+ FOREACH(flag ${pkgs_CFLAGS})
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+@@ -70,7 +69,6 @@ SET(PRIVACY_MANAGER_SERVER_LDFLAGS " -module -avoid-version ")
+ SET(PRIVACY_MANAGER_SERVER_CFLAGS " ${CFLAGS} -fPIC ")
+ #SET(PRIVACY_MANAGER_SERVER_LIBADD " ")
+
+-ADD_DEFINITIONS("-DLOG_TAG=\"PRIVACY-MANAGER-SERVER\"")
+ ADD_LIBRARY(privacy-manager-server SHARED ${PRIVACY_MANAGER_SERVER_SOURCES})
+ TARGET_LINK_LIBRARIES(privacy-manager-server ${pkgs_LDFLAGS} ${pkgs_LIBRARIES})
+ SET_TARGET_PROPERTIES(privacy-manager-server PROPERTIES COMPILE_FLAGS "${PRIVACY_MANAGER_SERVER_CFLAGS}")
+diff --git a/server/src/PrivacyManagerServer.cpp b/server/src/PrivacyManagerServer.cpp
+index b1b50f2..4ca68e8 100644
+--- a/server/src/PrivacyManagerServer.cpp
++++ b/server/src/PrivacyManagerServer.cpp
+@@ -15,7 +15,7 @@
+ */
+
+ #include <sstream>
+-#include <dlog.h>
++//#include <dlog.h>
+ #include <Utils.h>
+ #include <PrivacyManagerServer.h>
+ #include <PrivacyManagerTypes.h>
+diff --git a/server/src/SocketService.cpp b/server/src/SocketService.cpp
+index 296525e..93951d1 100644
+--- a/server/src/SocketService.cpp
++++ b/server/src/SocketService.cpp
+@@ -25,7 +25,7 @@
+ #include <unistd.h>
+ #include <fcntl.h>
+ #include <memory>
+-#include <dlog.h>
++//#include <dlog.h>
+ #include <PrivacyManagerTypes.h>
+ #include <Utils.h>
+ #include "SocketService.h"
+@@ -49,7 +49,7 @@ SocketService::~SocketService(void)
+ int
+ SocketService::initialize(void)
+ {
+- LOGI("SocketService initializing");
++ //LOGI("SocketService initializing");
+
+ m_listenFd = socket(AF_UNIX, SOCK_STREAM, 0);
+ TryReturn( m_listenFd != -1, PRIV_MGR_ERROR_SYSTEM_ERROR, , "socket : %s", strerror(errno));
+@@ -76,7 +76,7 @@ SocketService::initialize(void)
+
+ umask(original_umask);
+
+- LOGI("SocketService initialized");
++ //LOGI("SocketService initialized");
+
+ return PRIV_MGR_ERROR_SUCCESS;
+ }
+@@ -84,13 +84,13 @@ SocketService::initialize(void)
+ int
+ SocketService::start(void)
+ {
+- LOGI("SocketService starting");
++ //LOGI("SocketService starting");
+
+ sigset_t sigset;
+ sigemptyset(&sigset);
+ // if ( sigaddset(&sigset, m_signalToClose) == -1 )
+ // {
+-// LOGE("Failed to sigaddset : %s", strerror(errno));
++// //LOGE("Failed to sigaddset : %s", strerror(errno));
+ // return -1;
+ // }
+
+@@ -104,7 +104,7 @@ SocketService::start(void)
+
+ m_mainThread = mainThread;
+
+- LOGI("SocketService started");
++ //LOGI("SocketService started");
+
+ return PRIV_MGR_ERROR_SUCCESS;
+ }
+@@ -114,7 +114,7 @@ SocketService::serverThread(void* pData)
+ {
+ pthread_detach(pthread_self());
+ SocketService &t = *static_cast< SocketService* > (pData);
+- LOGI("Running main thread");
++ //LOGI("Running main thread");
+ int ret = t.mainloop();
+ if (ret < 0)
+ {
+@@ -127,7 +127,7 @@ int
+ SocketService::mainloop(void)
+ {
+ if( listen(m_listenFd, MAX_LISTEN) == -1 ){
+- LOGE("listen : %s", strerror(errno));
++ //LOGE("listen : %s", strerror(errno));
+ return PRIV_MGR_ERROR_IPC_ERROR;
+ }
+
+@@ -139,7 +139,7 @@ SocketService::mainloop(void)
+ TryReturn( res != -1, PRIV_MGR_ERROR_SYSTEM_ERROR, , "sigemptyset : %s", strerror(errno));
+
+ // if( sigaddset(&sigset, m_signalToClose) == -1) {
+-// LOGE("sigaddset : %s", strerror(errno));
++// //LOGE("sigaddset : %s", strerror(errno));
+ // return -1;
+ // }
+ signal_fd = signalfd(-1, &sigset, 0);
+@@ -167,13 +167,13 @@ SocketService::mainloop(void)
+ if(pselect(maxfd, &rset, NULL, NULL, NULL, NULL) == -1)
+ {
+ closeConnections();
+- LOGE("pselect()");
++ //LOGE("pselect()");
+ return PRIV_MGR_ERROR_SYSTEM_ERROR;
+ }
+
+ if(FD_ISSET(signal_fd, &rset))
+ {
+- LOGI("Got signal to close");
++ //LOGI("Got signal to close");
+ signalfd_siginfo siginfo;
+ ssize_t res;
+ res = read(signal_fd, &siginfo, sizeof(siginfo));
+@@ -182,13 +182,13 @@ SocketService::mainloop(void)
+
+ if((int)siginfo.ssi_signo == m_signalToClose)
+ {
+- LOGI("Server thread got signal to close");
++ //LOGI("Server thread got signal to close");
+ closeConnections();
+ return PRIV_MGR_ERROR_SUCCESS;
+ }
+ else
+ {
+- LOGI("Got not handled signal");
++ //LOGI("Got not handled signal");
+ }
+ }
+ if(FD_ISSET(m_listenFd, &rset))
+@@ -197,7 +197,7 @@ SocketService::mainloop(void)
+ clientFd = accept(m_listenFd, NULL, NULL);
+ TryReturn( clientFd != -1, PRIV_MGR_ERROR_IPC_ERROR, closeConnections();, "accept : %s", strerror(errno));
+
+- LOGI("Got incoming connection");
++ //LOGI("Got incoming connection");
+ ConnectionInfo * connection = new ConnectionInfo(clientFd, (void *)this);
+ int res;
+ pthread_t client_thread;
+@@ -206,7 +206,7 @@ SocketService::mainloop(void)
+ delete connection;
+ errno = res;
+ closeConnections();
+- LOGE("pthread_create()");
++ //LOGE("pthread_create()");
+ return PRIV_MGR_ERROR_SYSTEM_ERROR;
+ }
+ addClientSocket(clientFd);
+@@ -220,16 +220,16 @@ SocketService::connectionThread(void* pData)
+ pthread_detach(pthread_self());
+ std::unique_ptr<ConnectionInfo> connectionInfo (static_cast<ConnectionInfo *>(pData));
+ SocketService &t = *static_cast<SocketService *>(connectionInfo->pData);
+- LOGI("Starting connection thread");
++ //LOGI("Starting connection thread");
+ int ret = t.connectionService(connectionInfo->connFd);
+ if (ret < 0)
+ {
+- LOGE("Connection thread error");
++ //LOGE("Connection thread error");
+ t.removeClientSocket(connectionInfo->connFd);
+ close(connectionInfo->connFd);
+ return (void*)1;
+ }
+- LOGI("Client serviced");
++ //LOGI("Client serviced");
+ return (void*)0;
+ }
+
+@@ -243,40 +243,40 @@ SocketService::connectionService(int fd)
+ int res = connector.read(&interfaceName, &methodName);
+ if (res != PRIV_MGR_ERROR_SUCCESS)
+ {
+- LOGE("read : %d", res);
++ //LOGE("read : %d", res);
+ return res;
+ }
+
+- LOGD("Got interface : %s", interfaceName.c_str());
+- LOGD("Got method : %s", methodName.c_str());
++ //LOGD("Got interface : %s", interfaceName.c_str());
++ //LOGD("Got method : %s", methodName.c_str());
+
+ if( m_callbackMap.find(interfaceName) == m_callbackMap.end())
+ {
+- LOGE("Unknown interface : %s", interfaceName.c_str());
++ //LOGE("Unknown interface : %s", interfaceName.c_str());
+ return PRIV_MGR_ERROR_NO_DATA;
+ }
+
+ if(m_callbackMap[interfaceName].find(methodName) == m_callbackMap[interfaceName].end())
+ {
+- LOGE("Unknown method : %s", methodName.c_str());
++ //LOGE("Unknown method : %s", methodName.c_str());
+ return PRIV_MGR_ERROR_NO_DATA;
+ }
+
+ // if(m_callbackMap[interfaceName][methodName]->securityCallback != NULL){
+ // if(!m_callbackMap[interfaceName][methodName]->securityCallback(fd)){
+-// LOGE("Security check returned false");
++// //LOGE("Security check returned false");
+ // return -1;
+ // }
+ // }
+
+- LOGI("Calling service");
++ //LOGI("Calling service");
+ m_callbackMap[interfaceName][methodName]->serviceCallback(&connector);
+
+- LOGI("Removing client");
++ //LOGI("Removing client");
+ removeClientSocket(fd);
+ close(fd);
+
+- LOGI("Call served");
++ //LOGI("Call served");
+
+ return PRIV_MGR_ERROR_SUCCESS;
+ }
+@@ -284,11 +284,11 @@ SocketService::connectionService(int fd)
+ int
+ SocketService::stop(void)
+ {
+- LOGI("Stopping");
++ //LOGI("Stopping");
+ if(close(m_listenFd) == -1)
+ if(errno != ENOTCONN)
+ {
+- LOGE("close() : %s", strerror(errno));
++ //LOGE("close() : %s", strerror(errno));
+ return PRIV_MGR_ERROR_IPC_ERROR;
+ }
+
+@@ -296,12 +296,12 @@ SocketService::stop(void)
+ if((returned_value = pthread_kill(m_mainThread, m_signalToClose)) < 0)
+ {
+ errno = returned_value;
+- LOGE("pthread_kill() : %s", strerror(errno));
++ //LOGE("pthread_kill() : %s", strerror(errno));
+ return PRIV_MGR_ERROR_IPC_ERROR;
+ }
+ pthread_join(m_mainThread, NULL);
+
+- LOGI("Stopped");
++ //LOGI("Stopped");
+ return PRIV_MGR_ERROR_SUCCESS;
+ }
+
+@@ -316,12 +316,12 @@ SocketService::registerServiceCallback(const std::string &interfaceName, const
+ {
+ if(NULL == callbackMethod)
+ {
+- LOGE("Null callback");
++ //LOGE("Null callback");
+ return PRIV_MGR_ERROR_INVALID_PARAMETER;
+ }
+ if(interfaceName.empty() || methodName.empty())
+ {
+- LOGE("Interface and method name cannot be empty");
++ //LOGE("Interface and method name cannot be empty");
+ return PRIV_MGR_ERROR_INVALID_PARAMETER;
+ }
+
+@@ -361,14 +361,14 @@ void
+ SocketService::closeConnections(void)
+ {
+ int clientSocket;
+- LOGI("Closing client sockets");
++ //LOGI("Closing client sockets");
+ while(popClientSocket(&clientSocket))
+ {
+ if(close(clientSocket) == -1)
+ {
+- LOGE("close() : %s", strerror(errno));
++ //LOGE("close() : %s", strerror(errno));
+ }
+ }
+
+- LOGI("Connections closed");
++ //LOGI("Connections closed");
+ }
+diff --git a/server/src/service/PrivacyInfoService.cpp b/server/src/service/PrivacyInfoService.cpp
+index bffda01..d71a2e1 100644
+--- a/server/src/service/PrivacyInfoService.cpp
++++ b/server/src/service/PrivacyInfoService.cpp
+@@ -16,7 +16,7 @@
+
+ #include <PrivacyInfoService.h>
+ #include <PrivacyManagerServer.h>
+-#include <dlog.h>
++//#include <dlog.h>
+ #include <Utils.h>
+
+ void
+@@ -114,7 +114,7 @@ PrivacyInfoService::setUserPrompted(SocketConnection* pConnector)
+ PrivacyManagerServer* pPrivacyManagerServer = PrivacyManagerServer::getInstance();
+
+ int res = pPrivacyManagerServer->setUserPrompted(pkgId, prompted);
+- LOGI("write");
++ //LOGI("write");
+ pConnector->write( res );
+
+ }
+diff --git a/pkgmgr_plugin/CMakeLists.txt b/pkgmgr_plugin/CMakeLists.txt
+index 00f8428..319ebd9 100644
+--- a/pkgmgr_plugin/CMakeLists.txt
++++ b/pkgmgr_plugin/CMakeLists.txt
+@@ -5,7 +5,7 @@ SET (this_target privileges)
+ SET(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/cmake_build_tmp/output)
+
+ INCLUDE(FindPkgConfig)
+-pkg_check_modules(pkg REQUIRED glib-2.0 dlog libxml-2.0 )
++pkg_check_modules(pkg REQUIRED glib-2.0 libxml-2.0 )
+
+ FOREACH(flag ${privileges_CFLAGS})
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
+@@ -21,8 +21,6 @@ SET (${this_target}_SOURCE_FILES
+ privileges.cpp
+ )
+
+-ADD_DEFINITIONS("-DDLOG_ERROR_ENABLED")
+-ADD_DEFINITIONS("-DLOG_TAG=\"PRIVILEGE_PLUGIN\"")
+ SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -Wall" )
+
+ SET(CMAKE_C_FLAGS_PROFILING " -g -pg")
+diff --git a/common/inc/Utils.h b/common/inc/Utils.h
+index 53bd238..6eb2b87 100644
+--- a/common/inc/Utils.h
++++ b/common/inc/Utils.h
+@@ -20,7 +20,6 @@
+ #include <vector>
+ #include <iostream>
+ #include <algorithm>
+-#include <dlog.h>
+ #include <sqlite3.h>
+ #include <memory>
+ #include <string>
+@@ -28,13 +27,11 @@
+ #include <db-util.h>
+
+ #define TryCatchLogReturn(condition, expr, r, logFormat) if (!(condition)) { \
+- LOGE(logFormat); \
+ expr; \
+ return r; \
+ } else {;}
+
+ #define TryCatchResLogReturn(condition, expr, r, logFormat, res) if (!(condition)) { \
+- LOGE(logFormat, res); \
+ expr; \
+ return r; \
+ } else {;}
+@@ -42,7 +39,6 @@
+
+ #define TryReturn(condition, r, expr, ...) \
+ if ( !(condition) ) { \
+- LOGE(__VA_ARGS__); \
+ expr; \
+ return r; \
+ } else {;}
+@@ -75,7 +71,6 @@ static const int SLEEP_TIME = 50000;
+ }\
+ else\
+ {\
+- LOGE("[DbRetryCount][%d]: Database is busy!", dbRetryCount); \
+ usleep(SLEEP_TIME);\
+ }\
+ }\
+diff --git a/client/src/SocketClient.cpp b/client/src/SocketClient.cpp
+index a144628..7ccdad8 100644
+--- a/client/src/SocketClient.cpp
++++ b/client/src/SocketClient.cpp
+@@ -26,7 +26,6 @@
+ #include <Utils.h>
+
+ #define throwWithErrnoMessage(specificInfo) do {\
+- LOGE("%s : %s", specificInfo, strerror(errno)); \
+ return -1; \
+ } while(0)
+
+@@ -34,7 +33,7 @@ SocketClient::SocketClient(const std::string& interfaceName)
+ {
+ m_interfaceName = interfaceName;
+ m_serverAddress = SERVER_ADDRESS;
+- LOGI("Client created");
++ //LOGI("Client created");
+ }
+
+ int SocketClient::connect()
+@@ -59,7 +58,7 @@ int SocketClient::connect()
+
+ m_socketConnector.reset(new SocketConnection(m_socketFd));
+
+- LOGI("Client connected");
++ //LOGI("Client connected");
+
+ return PRIV_MGR_ERROR_SUCCESS;
+ }
+@@ -69,7 +68,7 @@ int SocketClient::disconnect()
+ //Socket should be already closed by server side,
+ //even though we should close it in case of any errors
+ close(m_socketFd);
+- LOGI("Client disconnected");
++ //LOGI("Client disconnected");
+
+ return PRIV_MGR_ERROR_SUCCESS;
+ }
+diff --git a/common/inc/SocketConnection.h b/common/inc/SocketConnection.h
+index d6bd88c..d8d64e5 100644
+--- a/common/inc/SocketConnection.h
++++ b/common/inc/SocketConnection.h
+@@ -16,8 +16,8 @@
+
+ #ifndef _SOCKET_CONNECTION_H_
+ #define _SOCKET_CONNECTION_H_
+-
+-#include <dlog.h>
++#include <string.h>
++//#include <dlog.h>
+ #include <new>
+ #include <list>
+ #include <utility>
+@@ -41,7 +41,7 @@ class EXTERN_API SocketConnection
+ public:
+
+ explicit SocketConnection(int socket_fd) : m_socketStream(socket_fd){
+- LOGI("Created");
++ //LOGI("Created");
+ }
+
+ template<typename T, typename ...Args>
diff --git a/meta-application-manager/recipes-others/privacy-manager-server/privacy-manager-server-extraconf.inc b/meta-application-manager/recipes-others/privacy-manager-server/privacy-manager-server-extraconf.inc
new file mode 100644
index 0000000..3b586a7
--- /dev/null
+++ b/meta-application-manager/recipes-others/privacy-manager-server/privacy-manager-server-extraconf.inc
@@ -0,0 +1,17 @@
+SRC_URI += "file://fix-include-directories-in-CMakeList.txt.patch"
+SRC_URI += "file://fix-include-directories-in-CMakeList_2.patch"
+
+SRC_URI_append_class-native = " file://remove-dlog-for-native-build.patch "
+
+INSANE_SKIP_${PN} = "already-stripped dev-so"
+INSANE_SKIP_privacy-manager-client = "dev-so"
+
+do_configure() {
+ sed -i 's@source /etc/tizen-platform.conf@source $D/etc/tizen-platform.conf@' ${S}/res/usr/bin/privacy_manager_create_clean_db.sh
+}
+
+DEPENDS += "binutils-native"
+DEPENDS_remove_class-native = "dlog-native"
+RDEPENDS_${PN}_remove_class-native = "glibc-native"
+
+EXTRA_OECMAKE+="-DCMAKE_STRIP:PATH=strip"
diff --git a/meta-application-manager/recipes-others/privacy-manager-server/privacy-manager-server.inc b/meta-application-manager/recipes-others/privacy-manager-server/privacy-manager-server.inc
new file mode 100644
index 0000000..bb43774
--- /dev/null
+++ b/meta-application-manager/recipes-others/privacy-manager-server/privacy-manager-server.inc
@@ -0,0 +1,266 @@
+DESCRIPTION = "Privacy Management"
+HOMEPAGE = "http://nohomepage.org"
+SECTION = "Security/Libraries"
+LICENSE = "Apache-2.0"
+PV = "0.0.4"
+
+SRC_URI = " file://0001-add-fPIC-to-gcc.patch \
+ file://0002-remove-strip.patch \
+"
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by privacy-manager-client
+PROVIDES += "privacy-manager-client"
+
+
+#PROVIDES by privacy-manager-server
+
+
+#PROVIDES by privacy-manager-server-dev
+PROVIDES += "privacy-manager-server-dev"
+
+
+#PROVIDES by capi-security-privacy-manager
+PROVIDES += "capi-security-privacy-manager"
+
+
+#PROVIDES by privacy-manager-client-dev
+PROVIDES += "privacy-manager-client-dev"
+
+
+#PROVIDES by capi-security-privacy-manager-dev
+PROVIDES += "capi-security-privacy-manager-dev"
+
+
+RDEPENDS = ""
+#RDEPENDS of privacy-manager-client (privacy-manager-client)
+RDEPENDS_privacy-manager-client += "privacy-manager-server"
+
+#RDEPENDS of privacy-manager-server (${PN})
+RDEPENDS_${PN} += "glibc"
+
+#RDEPENDS of privacy-manager-server-dev (${PN}-dev)
+RDEPENDS_${PN}-dev += "privacy-manager-server"
+
+#RDEPENDS of capi-security-privacy-manager (capi-security-privacy-manager)
+RDEPENDS_capi-security-privacy-manager += "privacy-manager-client"
+
+#RDEPENDS of privacy-manager-client-dev (privacy-manager-client-dev)
+RDEPENDS_privacy-manager-client-dev += "privacy-manager-client"
+
+#RDEPENDS of capi-security-privacy-manager-dev (capi-security-privacy-manager-dev)
+RDEPENDS_capi-security-privacy-manager-dev += "capi-security-privacy-manager"
+
+
+DEPENDS = ""
+#DEPENDS of privacy-manager-server
+DEPENDS += "pkgmgr-info"
+#Replace "DEPENDS" on gettext by "inherit gettext"
+inherit gettext
+inherit tizen_cmake
+DEPENDS += "capi-system-info"
+DEPENDS += "dbus-glib"
+DEPENDS += "libxml2"
+DEPENDS += "dbus"
+inherit pkgconfig
+DEPENDS += "dlog"
+DEPENDS += "glib-2.0"
+DEPENDS += "capi-base-common"
+DEPENDS += "sqlite3"
+DEPENDS += "tizen-platform-config"
+DEPENDS += "libslp-db-util"
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q
+ cp ${S}/packaging/privacy-manager-server.manifest .
+ cp ${S}/packaging/privacy-manager-server-devel.manifest .
+ cp ${S}/packaging/privacy-manager-client.manifest .
+ cp ${S}/packaging/privacy-manager-client-devel.manifest .
+ cp ${S}/packaging/capi-security-privacy-manager.manifest .
+ cp ${S}/packaging/capi-security-privacy-manager-devel.manifest .
+
+
+}
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+
+
+ cmake \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
+ -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
+ -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
+ -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
+ -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
+ -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
+ -DCMAKE_SKIP_RPATH:BOOL=ON \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
+ ${EXTRA_OECMAKE} . -DPREFIX=${prefix} \
+ -DEXEC_PREFIX=${prefix} \
+ -DLIBDIR=${prefix}/lib \
+ -DINCLUDEDIR=${prefix}/include \
+ -DCMAKE_BUILD_TYPE="Release" \
+ -DVERSION=0.0.4 \
+ -DFILTER_LISTED_PKG=ON \
+ -DPRIVACY_POPUP=OFF
+ oe_runmake ${PARALLEL_MAKE}
+
+
+
+}
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+ mkdir -p ${D}${prefix}/bin
+ cp res/usr/bin/* ${D}${prefix}/bin/
+ mkdir -p ${D}${prefix}/dbspace
+ cp res/opt/dbspace/.privacylist.db /${D}${prefix}/dbspace
+ mkdir -p ${D}${prefix}/share/privacy-manager/
+ cp res/usr/share/privacy-manager/privacy-filter-list.ini ${D}${prefix}/share/privacy-manager/
+
+
+ oe_runmake \
+ DESTDIR=${D} \
+ INSTALL_ROOT=${D} \
+ BINDIR=${prefix}/bin \
+ install
+ rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+
+ #mkdir -p %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants
+ #install -m 0644 %{SOURCE1} %{buildroot}%{_libdir}/systemd/system/privacy-manager-server.service
+ #ln -sf /usr/lib/systemd/system/privacy-manager-server.service %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants/privacy-manager-server.service
+
+
+
+}
+
+pkg_postinst_privacy-manager-client() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+pkg_postinst_privacy-manager-server() {
+ #!/bin/sh -e
+
+ ldconfig
+ echo "Check privacy DB"
+ if [ ! -f $D${prefix}/dbspace/.privacy.db ]
+ then
+ echo "Create privacy DB"
+ privacy_manager_create_clean_db.sh
+ fi
+ chsmack -a 'User' $D${prefix}/dbspace/.privacy.db*
+ chsmack -a 'User' $D${prefix}/dbspace/.privacylist.db*
+
+}
+
+pkg_postinst_capi-security-privacy-manager() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+pkg_postrm_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+pkg_postrm_capi-security-privacy-manager() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+pkg_postrm_privacy-manager-client() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " privacy-manager-client "
+PACKAGES += " privacy-manager-server "
+PACKAGES += " privacy-manager-server-dev "
+PACKAGES += " capi-security-privacy-manager "
+PACKAGES += " privacy-manager-client-dev "
+PACKAGES += " capi-security-privacy-manager-dev "
+
+privacy-manager-client_files = ""
+privacy-manager-client_files += "${prefix}/lib/libprivacy-manager-client.so*"
+privacy-manager-client_files += "${prefix}/share/privacy-manager/privacy-filter-list.ini"
+privacy-manager-client_files += "${sysconfdir}/package-manager/parserlib/libprivileges.so"
+MANIFESTFILES_privacy-manager-client = "privacy-manager-client.manifest"
+
+privacy-manager-server_files = ""
+privacy-manager-server_files += "${prefix}/lib/libprivacy-manager-server.so*"
+privacy-manager-server_files += "${prefix}/dbspace/.privacylist.db"
+privacy-manager-server_files += "${prefix}/bin/*"
+MANIFESTFILES_${PN} = "privacy-manager-server.manifest"
+
+privacy-manager-server-dev_files = ""
+privacy-manager-server-dev_files += "${prefix}/include/privacy_manager/server/privacy_manager_daemon.h"
+privacy-manager-server-dev_files += "${prefix}/lib/pkgconfig/privacy-manager-server.pc"
+
+capi-security-privacy-manager_files = ""
+capi-security-privacy-manager_files += "${prefix}/lib/libcapi-security-privacy-manager.so.*"
+MANIFESTFILES_capi-security-privacy-manager = "capi-security-privacy-manager.manifest"
+
+privacy-manager-client-dev_files = ""
+privacy-manager-client-dev_files += "${prefix}/include/*"
+privacy-manager-client-dev_files += "${prefix}/lib/pkgconfig/privacy-manager-client.pc"
+MANIFESTFILES_privacy-manager-client-dev = "privacy-manager-client-devel.manifest"
+
+capi-security-privacy-manager-dev_files = ""
+capi-security-privacy-manager-dev_files += "${prefix}/include/privacymgr/*.h"
+capi-security-privacy-manager-dev_files += "${prefix}/lib/libcapi-security-privacy-manager.so"
+capi-security-privacy-manager-dev_files += "${prefix}/lib/pkgconfig/capi-security-privacy-manager.pc"
+MANIFESTFILES_capi-security-privacy-manager-dev = "capi-security-privacy-manager-devel.manifest"
+
+FILES_privacy-manager-client = "${privacy-manager-client_files}"
+FILES_${PN} = "${privacy-manager-server_files}"
+FILES_${PN}-dev = "${privacy-manager-server-dev_files}"
+FILES_capi-security-privacy-manager = "${capi-security-privacy-manager_files}"
+FILES_privacy-manager-client-dev = "${privacy-manager-client-dev_files}"
+FILES_capi-security-privacy-manager-dev = "${capi-security-privacy-manager-dev_files}"
+
+PKG_privacy-manager-client= "privacy-manager-client"
+PKG_privacy-manager-server= "privacy-manager-server"
+PKG_privacy-manager-server-dev= "privacy-manager-server-dev"
+PKG_capi-security-privacy-manager= "capi-security-privacy-manager"
+PKG_privacy-manager-client-dev= "privacy-manager-client-dev"
+PKG_capi-security-privacy-manager-dev= "capi-security-privacy-manager-dev"
+
+require privacy-manager-server-extraconf.inc
+
diff --git a/meta-application-manager/recipes-others/privacy-manager-server/privacy-manager-server_git.bb b/meta-application-manager/recipes-others/privacy-manager-server/privacy-manager-server_git.bb
new file mode 100644
index 0000000..c975ba9
--- /dev/null
+++ b/meta-application-manager/recipes-others/privacy-manager-server/privacy-manager-server_git.bb
@@ -0,0 +1,10 @@
+require privacy-manager-server.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI += "git://review.tizen.org/platform/core/security/privacy-manager;tag=866b0492038f7515b22f415f40c6edfa02e8cb84;nobranch=1"
+
+BBCLASSEXTEND += " native "
+
diff --git a/meta-application-manager/recipes-others/security-server/security-server-extraconf.inc b/meta-application-manager/recipes-others/security-server/security-server-extraconf.inc
new file mode 100644
index 0000000..b1d96e9
--- /dev/null
+++ b/meta-application-manager/recipes-others/security-server/security-server-extraconf.inc
@@ -0,0 +1,9 @@
+SRC_URI += "file://0001-PATCH-link-to-the-pthread-library.patch \
+ file://0003-remove-rpath.patch"
+SRC_URI_append_class-native = " file://remove-dlog-for-native-build.patch"
+
+CXXFLAGS += "-std=c++11"
+
+RDEPENDS_${PN}_remove_class-native = "systemd-native"
+DEPENDS_remove_class-native = "systemd-native"
+DEPENDS_remove_class-native = "dlog-native"
diff --git a/meta-application-manager/recipes-others/security-server/security-server.inc b/meta-application-manager/recipes-others/security-server/security-server.inc
new file mode 100644
index 0000000..90b4899
--- /dev/null
+++ b/meta-application-manager/recipes-others/security-server/security-server.inc
@@ -0,0 +1,258 @@
+DESCRIPTION = "Security server and utilities"
+HOMEPAGE = "http://nohomepage.org"
+SECTION = "Security/Service"
+LICENSE = "Apache-2.0"
+PV = "0.1.1"
+
+SRC_URI = "file://0001-remove-dbus-check.patch "
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by security-server-certs
+PROVIDES += "security-server-certs"
+
+
+#PROVIDES by libsecurity-server-client
+PROVIDES += "libsecurity-server-client"
+
+
+#PROVIDES by security-server
+
+
+#PROVIDES by security-server-dev
+PROVIDES += "security-server-dev"
+
+
+#PROVIDES by libsecurity-server-client-dev
+PROVIDES += "libsecurity-server-client-dev"
+
+
+RDEPENDS = ""
+#RDEPENDS of security-server-certs (${PN}-certs)
+RDEPENDS_${PN}-certs += "security-server"
+
+#RDEPENDS of libsecurity-server-client (lib${PN}-client)
+RDEPENDS_lib${PN}-client += "glibc"
+RDEPENDS_lib${PN}-client += "security-server"
+
+#RDEPENDS of libsecurity-server-client-dev (lib${PN}-client-dev)
+RDEPENDS_lib${PN}-client-dev += "libprivilege-control-dev"
+RDEPENDS_lib${PN}-client-dev += "libsecurity-server-client"
+
+#RDEPENDS of security-server-dev (${PN}-dev)
+RDEPENDS_${PN}-dev += "security-server"
+
+#RDEPENDS of security-server (${PN})
+RDEPENDS_${PN} += "systemd"
+
+
+DEPENDS = ""
+#DEPENDS of security-server
+DEPENDS += "systemd"
+inherit tizen_cmake
+DEPENDS += "attr"
+DEPENDS += "zip"
+DEPENDS += "openssl"
+DEPENDS += "dlog"
+inherit pkgconfig
+DEPENDS += "smack"
+DEPENDS += "libcap"
+DEPENDS += "libprivilege-control"
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q
+ cp ${S}/packaging/security-server.manifest .
+ cp ${S}/packaging/libsecurity-server-client.manifest .
+
+
+}
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+ cmake \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
+ -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
+ -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
+ -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
+ -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
+ -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
+ -DCMAKE_SKIP_RPATH:BOOL=ON \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
+ ${EXTRA_OECMAKE} . -DVERSION=0.1.1 \
+ -DCMAKE_BUILD_TYPE=RELEASE \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DSYSTEMD_DIR=${systemd_unitdir}/system
+
+ oe_runmake ${PARALLEL_MAKE}
+
+
+
+}
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+ rm -rf ${D}
+ mkdir -p ${D}${prefix}/share/license
+ cp LICENSE ${D}${prefix}/share/license/security-server
+ cp LICENSE ${D}${prefix}/share/license/libsecurity-server-client
+ mkdir -p ${D}${sysconfdir}/security/
+ cp security-server-audit.conf ${D}${sysconfdir}/security/
+
+ oe_runmake \
+ DESTDIR=${D} \
+ INSTALL_ROOT=${D} \
+ BINDIR=${prefix}/bin \
+ install
+ rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+
+ mkdir -p ${D}${systemd_unitdir}/system/multi-user.target.wants
+ mkdir -p ${D}${systemd_unitdir}/system/sockets.target.wants
+ ln -s ../security-server.service ${D}${systemd_unitdir}/system/multi-user.target.wants/security-server.service
+ ln -s ../security-server-data-share.socket ${D}${systemd_unitdir}/system/sockets.target.wants/security-server-data-share.socket
+ ln -s ../security-server-get-gid.socket ${D}${systemd_unitdir}/system/sockets.target.wants/security-server-get-gid.socket
+ ln -s ../security-server-privilege-by-pid.socket ${D}${systemd_unitdir}/system/sockets.target.wants/security-server-privilege-by-pid.socket
+ ln -s ../security-server-cookie-get.socket ${D}${systemd_unitdir}/system/sockets.target.wants/security-server-cookie-get.socket
+ ln -s ../security-server-cookie-check.socket ${D}${systemd_unitdir}/system/sockets.target.wants/security-server-cookie-check.socket
+ ln -s ../security-server-app-privilege-by-name.socket ${D}${systemd_unitdir}/system/sockets.target.wants/security-server-app-privilege-by-name.socket
+ ln -s ../security-server-password-check.socket ${D}${systemd_unitdir}/system/sockets.target.wants/security-server-password-check.socket
+ ln -s ../security-server-password-set.socket ${D}${systemd_unitdir}/system/sockets.target.wants/security-server-password-set.socket
+ ln -s ../security-server-password-reset.socket ${D}${systemd_unitdir}/system/sockets.target.wants/security-server-password-reset.socket
+
+
+}
+
+pkg_postinst_${PN}() {
+ #!/bin/sh -e
+
+ ldconfig
+ systemctl daemon-reload
+ if [ $1 = 1 ]; then
+ # installation
+ systemctl start security-server.service
+ fi
+ if [ $1 = 2 ]; then
+ # update
+ systemctl restart security-server.service
+ fi
+
+}
+
+pkg_postinst_libsecurity-server-client() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+pkg_prerm_${PN}() {
+ #!/bin/sh -e
+
+ if [ $1 = 0 ]; then
+ # unistall
+ systemctl stop security-server.service
+ fi
+
+}
+
+pkg_postrm_libsecurity-server-client() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+pkg_postrm_${PN}() {
+ #!/bin/sh -e
+
+ ldconfig
+ if [ $1 = 0 ]; then
+ # unistall
+ systemctl daemon-reload
+ fi
+
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " security-server "
+PACKAGES += " libsecurity-server-client "
+PACKAGES += " libsecurity-server-client-dev "
+
+security-server_files = ""
+security-server_files += "${prefix}/bin/security-server"
+security-server_files += "${prefix}/lib/libsecurity-server-commons.so.*"
+security-server_files += "${systemd_unitdir}/system/multi-user.target.wants/security-server.service"
+security-server_files += "${systemd_unitdir}/system/security-server.service"
+security-server_files += "${systemd_unitdir}/system/security-server.target"
+security-server_files += "${systemd_unitdir}/system/sockets.target.wants/security-server-data-share.socket"
+security-server_files += "${systemd_unitdir}/system/security-server-data-share.socket"
+security-server_files += "${systemd_unitdir}/system/sockets.target.wants/security-server-get-gid.socket"
+security-server_files += "${systemd_unitdir}/system/security-server-get-gid.socket"
+security-server_files += "${systemd_unitdir}/system/sockets.target.wants/security-server-privilege-by-pid.socket"
+security-server_files += "${systemd_unitdir}/system/security-server-privilege-by-pid.socket"
+security-server_files += "${systemd_unitdir}/system/sockets.target.wants/security-server-cookie-get.socket"
+security-server_files += "${systemd_unitdir}/system/security-server-cookie-get.socket"
+security-server_files += "${systemd_unitdir}/system/sockets.target.wants/security-server-cookie-check.socket"
+security-server_files += "${systemd_unitdir}/system/security-server-cookie-check.socket"
+security-server_files += "${systemd_unitdir}/system/sockets.target.wants/security-server-app-privilege-by-name.socket"
+security-server_files += "${systemd_unitdir}/system/security-server-app-privilege-by-name.socket"
+security-server_files += "%attr(-,root,root) ${sysconfdir}/security/security-server-audit.conf"
+security-server_files += "${systemd_unitdir}/system/sockets.target.wants/security-server-password-check.socket"
+security-server_files += "${systemd_unitdir}/system/security-server-password-check.socket"
+security-server_files += "${systemd_unitdir}/system/sockets.target.wants/security-server-password-set.socket"
+security-server_files += "${systemd_unitdir}/system/security-server-password-set.socket"
+security-server_files += "${systemd_unitdir}/system/sockets.target.wants/security-server-password-reset.socket"
+security-server_files += "${systemd_unitdir}/system/security-server-password-reset.socket"
+security-server_files += "${prefix}/share/license/security-server"
+CONFFILES_${PN} = ""
+CONFFILES_${PN} += "%attr(-,root,root) ${sysconfdir}/security/security-server-audit.conf"
+MANIFESTFILES_${PN} = "security-server.manifest"
+
+libsecurity-server-client_files = ""
+libsecurity-server-client_files += "${prefix}/lib/libsecurity-server-client.so.*"
+libsecurity-server-client_files += "${prefix}/share/license/libsecurity-server-client"
+MANIFESTFILES_lib${PN}-client = "libsecurity-server-client.manifest"
+
+libsecurity-server-client-dev_files = ""
+libsecurity-server-client-dev_files += "${prefix}/lib/libsecurity-server-client.so"
+libsecurity-server-client-dev_files += "${prefix}/lib/libsecurity-server-commons.so"
+libsecurity-server-client-dev_files += "${prefix}/include/security-server/security-server.h"
+libsecurity-server-client-dev_files += "${prefix}/lib/pkgconfig/*.pc"
+MANIFESTFILES_lib${PN}-client-dev = "security-server.manifest"
+
+FILES_${PN} = "${security-server_files}"
+FILES_lib${PN}-client = "${libsecurity-server-client_files}"
+FILES_lib${PN}-client-dev = "${libsecurity-server-client-dev_files}"
+
+PKG_security-server= "security-server"
+PKG_libsecurity-server-client= "libsecurity-server-client"
+PKG_libsecurity-server-client-dev= "libsecurity-server-client-dev"
+
+require security-server-extraconf.inc
+
diff --git a/meta-application-manager/recipes-others/security-server/security-server/0001-PATCH-link-to-the-pthread-library.patch b/meta-application-manager/recipes-others/security-server/security-server/0001-PATCH-link-to-the-pthread-library.patch
new file mode 100644
index 0000000..89ddb4a
--- /dev/null
+++ b/meta-application-manager/recipes-others/security-server/security-server/0001-PATCH-link-to-the-pthread-library.patch
@@ -0,0 +1,14 @@
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -54,7 +54,7 @@ ADD_EXECUTABLE(${TARGET_SECURITY_SERVER} ${SECURITY_SERVER_SOURCES})
+ TARGET_LINK_LIBRARIES(${TARGET_SECURITY_SERVER}
+ ${SECURITY_SERVER_DEP_LIBRARIES}
+ ${TARGET_SERVER_COMMON}
+- -lcap
++ -lcap -lpthread -lsystemd
+ )
+
+ ################################################################################
+--
+1.8.1.4
+
diff --git a/meta-application-manager/recipes-others/security-server/security-server/0001-remove-dbus-check.patch b/meta-application-manager/recipes-others/security-server/security-server/0001-remove-dbus-check.patch
new file mode 100644
index 0000000..8242cca
--- /dev/null
+++ b/meta-application-manager/recipes-others/security-server/security-server/0001-remove-dbus-check.patch
@@ -0,0 +1,12 @@
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -1,9 +1,8 @@
+ PKG_CHECK_MODULES(SECURITY_SERVER_DEP
+ dlog
+ openssl
+ libsmack
+ libprivilege-control
+- libsystemd-daemon
+ REQUIRED
+ )
+
diff --git a/meta-application-manager/recipes-others/security-server/security-server/0003-remove-rpath.patch b/meta-application-manager/recipes-others/security-server/security-server/0003-remove-rpath.patch
new file mode 100644
index 0000000..d77b3f8
--- /dev/null
+++ b/meta-application-manager/recipes-others/security-server/security-server/0003-remove-rpath.patch
@@ -0,0 +1,10 @@
+--- a/packaging/security-server.spec
++++ b/packaging/security-server.spec
+@@ -68,7 +68,6 @@
+ export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
+ %endif
+
+-export LDFLAGS="${LDFLAGS} -Wl,--rpath=%{_libdir}"
+
+ %cmake . -DVERSION=%{version} \
+ -DCMAKE_BUILD_TYPE=%{?build_type:%build_type}%{!?build_type:RELEASE} \
diff --git a/meta-application-manager/recipes-others/security-server/security-server/remove-dlog-for-native-build.patch b/meta-application-manager/recipes-others/security-server/security-server/remove-dlog-for-native-build.patch
new file mode 100644
index 0000000..b5bbff9
--- /dev/null
+++ b/meta-application-manager/recipes-others/security-server/security-server/remove-dlog-for-native-build.patch
@@ -0,0 +1,136 @@
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 1bb5feb..cf169e2 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -1,9 +1,7 @@
+ PKG_CHECK_MODULES(SECURITY_SERVER_DEP
+- dlog
+ openssl
+ libsmack
+ libprivilege-control
+- libsystemd-daemon
+ REQUIRED
+ )
+
+
+diff --git a/src/server/CMakeLists.txt b/src/server/CMakeLists.txt
+index 0fad220..d4aa492 100644
+--- a/src/server/CMakeLists.txt
++++ b/src/server/CMakeLists.txt
+@@ -1,5 +1,4 @@
+ PKG_CHECK_MODULES(COMMON_DEP
+- dlog
+ REQUIRED
+ )
+
+@@ -10,7 +9,6 @@ SET(COMMON_SOURCES
+ ${COMMON_PATH}/common/message-buffer.cpp
+ ${COMMON_PATH}/common/smack-check.cpp
+ ${COMMON_PATH}/dpl/log/src/abstract_log_provider.cpp
+- ${COMMON_PATH}/dpl/log/src/dlog_log_provider.cpp
+ ${COMMON_PATH}/dpl/log/src/log.cpp
+ ${COMMON_PATH}/dpl/log/src/old_style_log_provider.cpp
+ ${COMMON_PATH}/dpl/log/src/audit-smack-log.cpp
+diff --git a/src/server/dpl/log/src/log.cpp b/src/server/dpl/log/src/log.cpp
+index ef67fb2..4db0665 100644
+--- a/src/server/dpl/log/src/log.cpp
++++ b/src/server/dpl/log/src/log.cpp
+@@ -24,7 +24,6 @@
+
+ #include <dpl/log/log.h>
+ #include <dpl/singleton_impl.h>
+-#include <dpl/log/dlog_log_provider.h>
+ #include <dpl/log/old_style_log_provider.h>
+ #include <dpl/log/audit-smack-log.h>
+
+@@ -118,12 +117,7 @@ LogSystem::LogSystem() :
+ oldStyleWarningLogs,
+ oldStyleErrorLogs,
+ oldStylePedanticLogs));
+- } else {
+- // DLOG
+- AddProvider(new DLOGLogProvider());
+ }
+-#else // BUILD_TYPE_DEBUG
+- AddProvider(new DLOGLogProvider());
+ #endif // BUILD_TYPE_DEBUG
+ }
+
+diff --git a/src/server/dpl/log/src/old_style_log_provider.cpp b/src/server/dpl/log/src/old_style_log_provider.cpp
+index 4c10749..497d955 100644
+--- a/src/server/dpl/log/src/old_style_log_provider.cpp
++++ b/src/server/dpl/log/src/old_style_log_provider.cpp
+@@ -27,7 +27,6 @@
+ #include <sstream>
+ #include <sys/time.h>
+ #include <unistd.h>
+-#include <dlog.h>
+
+ namespace SecurityServer {
+ namespace Log {
+diff --git a/src/server/main/socket-manager.cpp b/src/server/main/socket-manager.cpp
+index 69b278e..cc3f2f2 100644
+--- a/src/server/main/socket-manager.cpp
++++ b/src/server/main/socket-manager.cpp
+@@ -38,7 +38,7 @@
+ #include <errno.h>
+ #include <time.h>
+
+-#include <systemd/sd-daemon.h>
++//#include <systemd/sd-daemon.h>
+
+ #include <dpl/log/log.h>
+ #include <dpl/assert.h>
+@@ -339,8 +339,6 @@ void SocketManager::MainLoop() {
+ // uncomment it after removing old security-server code
+ // sd_listen_fds(1);
+
+- // Daemon is ready to work.
+- sd_notify(0, "READY=1");
+
+ m_working = true;
+ while(m_working) {
+@@ -451,34 +449,6 @@ void SocketManager::MainLoopStop()
+ NotifyMe();
+ }
+
+-int SocketManager::GetSocketFromSystemD(
+- const GenericSocketService::ServiceDescription &desc)
+-{
+- int fd;
+-
+- // TODO optimalization - do it once in object constructor
+- // and remember all information path->sockfd
+- int n = sd_listen_fds(0);
+-
+- LogInfo("sd_listen_fds returns: " << n);
+-
+- if (n < 0) {
+- LogError("Error in sd_listend_fds");
+- ThrowMsg(Exception::InitFailed, "Error in sd_listend_fds");
+- }
+-
+- for(fd = SD_LISTEN_FDS_START; fd < SD_LISTEN_FDS_START+n; ++fd) {
+- if (0 < sd_is_socket_unix(fd, SOCK_STREAM, 1,
+- desc.serviceHandlerPath.c_str(), 0))
+- {
+- LogInfo("Useable socket " << desc.serviceHandlerPath <<
+- " was passed by SystemD under descriptor " << fd);
+- return fd;
+- }
+- }
+- LogInfo("No useable sockets were passed by systemd.");
+- return -1;
+-}
+
+ int SocketManager::CreateDomainSocketHelp(
+ const GenericSocketService::ServiceDescription &desc)
+@@ -552,7 +522,7 @@ void SocketManager::CreateDomainSocket(
+ GenericSocketService *service,
+ const GenericSocketService::ServiceDescription &desc)
+ {
+- int sockfd = GetSocketFromSystemD(desc);
++ int sockfd = -1;
+ if (-1 == sockfd)
+ sockfd = CreateDomainSocketHelp(desc);
+
diff --git a/meta-application-manager/recipes-others/security-server/security-server_git.bb b/meta-application-manager/recipes-others/security-server/security-server_git.bb
new file mode 100644
index 0000000..1ac572b
--- /dev/null
+++ b/meta-application-manager/recipes-others/security-server/security-server_git.bb
@@ -0,0 +1,10 @@
+require security-server.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI += "git://review.tizen.org/platform/core/security/security-server;tag=ae009054afbe5b8885da76af1a8127daa63742f6;nobranch=1"
+
+BBCLASSEXTEND += " native "
+
diff --git a/meta-application-manager/recipes-others/sensor/sensor-extraconf.inc b/meta-application-manager/recipes-others/sensor/sensor-extraconf.inc
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/meta-application-manager/recipes-others/sensor/sensor-extraconf.inc
diff --git a/meta-application-manager/recipes-others/sensor/sensor.inc b/meta-application-manager/recipes-others/sensor/sensor.inc
new file mode 100644
index 0000000..43e4237
--- /dev/null
+++ b/meta-application-manager/recipes-others/sensor/sensor.inc
@@ -0,0 +1,134 @@
+DESCRIPTION = "Sensor framework client library"
+HOMEPAGE = "http://nohomepage.org"
+SECTION = "System/Sensor Framework"
+LICENSE = "Apache-2.0"
+PV = "0.5.27"
+
+SRC_URI = ""
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by sensor
+
+
+#PROVIDES by sensor-dev
+PROVIDES += "sensor-dev"
+
+
+RDEPENDS = ""
+#RDEPENDS of sensor-dev (${PN}-dev)
+RDEPENDS_${PN}-dev += "sensor"
+
+
+DEPENDS = ""
+#DEPENDS of sensor
+DEPENDS += "libsf-common"
+DEPENDS += "glib-2.0"
+inherit tizen_cmake
+DEPENDS += "vconf"
+inherit pkgconfig
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q -n sensor-0.5.27
+ cp ${S}/packaging/sensor.manifest ${S}/packaging/sensor-devel.manifest .
+
+
+}
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+
+ cmake \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
+ -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
+ -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
+ -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
+ -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
+ -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
+ -DCMAKE_SKIP_RPATH:BOOL=ON \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
+ ${EXTRA_OECMAKE} .
+
+
+ make ${PARALLEL_MAKE}
+
+
+
+}
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+
+ oe_runmake \
+ DESTDIR=${D} \
+ INSTALL_ROOT=${D} \
+ BINDIR=${prefix}/bin \
+ install
+ rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+
+
+}
+
+pkg_postinst_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+pkg_postrm_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " sensor "
+PACKAGES += " sensor-dev "
+
+sensor_files = ""
+sensor_files += "${prefix}/lib/libsensor.so.*"
+MANIFESTFILES_${PN} = "sensor.manifest"
+
+sensor-dev_files = ""
+sensor-dev_files += "${prefix}/include/sensor/*.h"
+sensor-dev_files += "${prefix}/lib/libsensor.so"
+sensor-dev_files += "${prefix}/lib/pkgconfig/sensor.pc"
+MANIFESTFILES_${PN}-dev = "sensor-devel.manifest"
+
+FILES_${PN} = "${sensor_files}"
+FILES_${PN}-dev = "${sensor-dev_files}"
+
+PKG_sensor= "sensor"
+PKG_sensor-dev= "sensor-dev"
+
+require sensor-extraconf.inc
+
diff --git a/meta-application-manager/recipes-others/sensor/sensor_git.bb b/meta-application-manager/recipes-others/sensor/sensor_git.bb
new file mode 100644
index 0000000..3b5b05a
--- /dev/null
+++ b/meta-application-manager/recipes-others/sensor/sensor_git.bb
@@ -0,0 +1,10 @@
+require sensor.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI += "git://review.tizen.org/platform/core/system/libslp-sensor;tag=0b466302afcb0ce0e23f0d8f1e1e9820e42326dc;nobranch=1"
+
+BBCLASSEXTEND += " native "
+
diff --git a/meta-application-manager/recipes-others/smack/smack-extraconf.inc b/meta-application-manager/recipes-others/smack/smack-extraconf.inc
new file mode 100644
index 0000000..c385181
--- /dev/null
+++ b/meta-application-manager/recipes-others/smack/smack-extraconf.inc
@@ -0,0 +1,6 @@
+BBCLASSEXTEND_append = " nativesdk "
+
+do_configure() {
+ sed -i 's@systemd_new=no@systemd_new=yes@' ${S}/configure.ac
+ sed -i '/PKG_CHECK_MODULES(/,/)/{s/b/r/p;d}' ${S}/configure.ac
+}
diff --git a/meta-application-manager/recipes-others/smack/smack.inc b/meta-application-manager/recipes-others/smack/smack.inc
new file mode 100644
index 0000000..bb41991
--- /dev/null
+++ b/meta-application-manager/recipes-others/smack/smack.inc
@@ -0,0 +1,152 @@
+DESCRIPTION = "Selection of tools for developers working with Smack"
+HOMEPAGE = "http://nohomepage.org"
+SECTION = "Security/Access Control"
+LICENSE = "LGPL-2.1"
+PV = "1.0.5"
+
+SRC_URI = ""
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by smack-dev
+PROVIDES += "smack-dev"
+
+
+#PROVIDES by smack
+
+
+#PROVIDES by libsmack
+PROVIDES += "libsmack"
+
+
+#PROVIDES by smack-docs
+PROVIDES += "smack-docs "
+
+
+RDEPENDS = ""
+#RDEPENDS of smack-dev (${PN}-dev)
+RDEPENDS_${PN}-dev += "smack"
+
+
+DEPENDS = ""
+#DEPENDS of smack
+DEPENDS_append_class-native = " autoconf-native"
+DEPENDS_append_class-target = " autoconf-native"
+DEPENDS_append_class-native = " libtool"
+DEPENDS_append_class-target = " libtool-cross"
+inherit pkgconfig
+DEPENDS_append_class-native = " automake-native"
+DEPENDS_append_class-target = " automake-native"
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q
+ cp ${S}/packaging/smack.manifest .
+
+
+}
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+
+ autotools_do_configure
+
+ make ${PARALLEL_MAKE}
+
+
+
+}
+EXTRA_OECONF += " --with-systemdsystemunitdir=${systemd_unitdir}/system"
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+
+ oe_runmake \
+ DESTDIR=${D} \
+ INSTALL_ROOT=${D} \
+ BINDIR=${prefix}/bin \
+ install
+ rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+ install -d ${D}${sysconfdir}/smack/accesses.d
+ install -d ${D}${sysconfdir}/smack/cipso.d
+ install -d ${D}${sysconfdir}/smack/netlabel.d
+
+
+}
+
+pkg_postinst_libsmack() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+pkg_postrm_libsmack() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " smack-dev "
+PACKAGES += " smack "
+PACKAGES += " libsmack "
+PACKAGES += " smack-docs "
+
+smack-dev_files = ""
+smack-dev_files += "${prefix}/include/sys/smack.h"
+smack-dev_files += "${prefix}/lib/libsmack.so"
+smack-dev_files += "${prefix}/lib/pkgconfig/libsmack.pc"
+MANIFESTFILES_${PN}-dev = "smack.manifest"
+
+smack_files = ""
+smack_files += "${sysconfdir}/smack"
+smack_files += "${sysconfdir}/smack/accesses.d"
+smack_files += "${sysconfdir}/smack/cipso.d"
+smack_files += "${sysconfdir}/smack/netlabel.d"
+smack_files += "${prefix}/bin/*"
+MANIFESTFILES_${PN} = "smack.manifest"
+
+libsmack_files = ""
+libsmack_files += "${prefix}/lib/libsmack.so.*"
+MANIFESTFILES_lib${PN} = "smack.manifest"
+
+smack-docs_files = ""
+
+FILES_${PN}-dev = "${smack-dev_files}"
+FILES_${PN} = "${smack_files}"
+FILES_lib${PN} = "${libsmack_files}"
+FILES_${PN}-docs = "${smack-docs_files}"
+
+PKG_smack-dev= "smack-dev"
+PKG_smack= "smack"
+PKG_libsmack= "libsmack"
+PKG_smack-docs= "smack-docs"
+
+require smack-extraconf.inc
+
diff --git a/meta-application-manager/recipes-others/smack/smack_git.bb b/meta-application-manager/recipes-others/smack/smack_git.bb
new file mode 100644
index 0000000..f200db7
--- /dev/null
+++ b/meta-application-manager/recipes-others/smack/smack_git.bb
@@ -0,0 +1,10 @@
+require smack.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI += "git://review.tizen.org/platform/upstream/smack;tag=66a110344be79ff2968ff6817ec72f569d852c17;nobranch=1"
+
+BBCLASSEXTEND += " native "
+
diff --git a/meta-application-manager/recipes-others/tizen-platform-config/tizen-platform-config-extraconf.inc b/meta-application-manager/recipes-others/tizen-platform-config/tizen-platform-config-extraconf.inc
new file mode 100644
index 0000000..99df362
--- /dev/null
+++ b/meta-application-manager/recipes-others/tizen-platform-config/tizen-platform-config-extraconf.inc
@@ -0,0 +1,19 @@
+INSANE_SKIP_libtzplatform-config-dev = "staticdev"
+
+DEPENDS_append_class-native = " tizen-platform-wrapper-native"
+DEPENDS_append_class-target = " tizen-platform-wrapper-native"
+
+do_configure() {
+ sed -i 's@wrappersrcdir=.*@wrappersrcdir=$(PKG_CONFIG_SYSROOT_DIR)$(datadir)@' ${S}/src/Makefile.am
+}
+
+do_install_append() {
+ sed -i "s@=/home@=\$SYSROOT/home@g" ${D}${sysconfdir}/tizen-platform.conf
+ sed -i "s@=/opt@=\$SYSROOT/opt@g" ${D}${sysconfdir}/tizen-platform.conf
+ sed -i "s@=/usr@=\$SYSROOT/usr@g" ${D}${sysconfdir}/tizen-platform.conf
+ sed -i "s@=/etc@=\$SYSROOT/etc@g" ${D}${sysconfdir}/tizen-platform.conf
+ sed -i "s@=/root@=\$SYSROOT/root@g" ${D}${sysconfdir}/tizen-platform.conf
+ sed -i "s@=/var@=\$SYSROOT/var@g" ${D}${sysconfdir}/tizen-platform.conf
+
+}
+
diff --git a/meta-application-manager/recipes-others/tizen-platform-config/tizen-platform-config.inc b/meta-application-manager/recipes-others/tizen-platform-config/tizen-platform-config.inc
new file mode 100644
index 0000000..ed09c1a
--- /dev/null
+++ b/meta-application-manager/recipes-others/tizen-platform-config/tizen-platform-config.inc
@@ -0,0 +1,155 @@
+DESCRIPTION = "Tizen Platform Configuration"
+HOMEPAGE = "http://www.tizen.org"
+SECTION = "System/Configuration"
+LICENSE = "MIT"
+PV = "2.0"
+
+
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by tizen-platform-config
+
+
+#PROVIDES by libtzplatform-config-dev
+PROVIDES += "libtzplatform-config-dev"
+
+
+#PROVIDES by tizen-platform-config-tools
+PROVIDES += "tizen-platform-config-tools"
+
+
+#PROVIDES by libtzplatform-config
+PROVIDES += "libtzplatform-config"
+
+
+RDEPENDS = ""
+#RDEPENDS of tizen-platform-config-tools (${PN}-tools)
+RDEPENDS_${PN}-tools += "libtzplatform-config"
+
+#RDEPENDS of libtzplatform-config-dev (libtzplatform-config-dev)
+RDEPENDS_libtzplatform-config-dev += "libtzplatform-config"
+
+#RDEPENDS of libtzplatform-config (libtzplatform-config)
+RDEPENDS_libtzplatform-config += "tizen-platform-config"
+
+
+DEPENDS = ""
+#DEPENDS of tizen-platform-config
+DEPENDS += "tizen-platform-wrapper"
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q
+ cp ${S}/packaging/tizen-platform-config.manifest .
+
+
+}
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+
+ autotools_do_configure
+ oe_runmake ${PARALLEL_MAKE}
+
+ exit 0
+ oe_runmake check
+
+
+
+}
+EXTRA_OECONF += " --enable-static"
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+
+ oe_runmake \
+ DESTDIR=${D} \
+ INSTALL_ROOT=${D} \
+ BINDIR=${prefix}/bin \
+ install
+ rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+
+
+
+}
+
+pkg_postinst_libtzplatform-config() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+pkg_postrm_libtzplatform-config() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " libtzplatform-config-dev "
+PACKAGES += " tizen-platform-config-tools "
+PACKAGES += " tizen-platform-config "
+PACKAGES += " libtzplatform-config "
+
+libtzplatform-config-dev_files = ""
+libtzplatform-config-dev_files += "${prefix}/lib/*.so"
+libtzplatform-config-dev_files += "${prefix}/lib/pkgconfig/*.pc"
+libtzplatform-config-dev_files += "${prefix}/include/*.h"
+libtzplatform-config-dev_files += "${sysconfdir}/rpm/macros.tizen-platform"
+libtzplatform-config-dev_files += "${prefix}/lib/*.a"
+CONFFILES_libtzplatform-config-dev = ""
+CONFFILES_libtzplatform-config-dev += "${sysconfdir}/rpm/macros.tizen-platform"
+MANIFESTFILES_libtzplatform-config-dev = "tizen-platform-config.manifest"
+
+tizen-platform-config-tools_files = ""
+tizen-platform-config-tools_files += "${prefix}/bin/*"
+MANIFESTFILES_${PN}-tools = "tizen-platform-config.manifest"
+
+tizen-platform-config_files = ""
+tizen-platform-config_files += "${sysconfdir}/tizen-platform.conf"
+CONFFILES_${PN} = ""
+CONFFILES_${PN} += "${sysconfdir}/tizen-platform.conf"
+MANIFESTFILES_${PN} = "tizen-platform-config.manifest"
+
+libtzplatform-config_files = ""
+libtzplatform-config_files += "${prefix}/lib/*.so.*"
+MANIFESTFILES_libtzplatform-config = "tizen-platform-config.manifest"
+
+FILES_libtzplatform-config-dev = "${libtzplatform-config-dev_files}"
+FILES_${PN}-tools = "${tizen-platform-config-tools_files}"
+FILES_${PN} = "${tizen-platform-config_files}"
+FILES_libtzplatform-config = "${libtzplatform-config_files}"
+
+PKG_libtzplatform-config-dev= "libtzplatform-config-dev"
+PKG_tizen-platform-config-tools= "tizen-platform-config-tools"
+PKG_tizen-platform-config= "tizen-platform-config"
+PKG_libtzplatform-config= "libtzplatform-config"
+
+require tizen-platform-config-extraconf.inc
+
diff --git a/meta-application-manager/recipes-others/tizen-platform-config/tizen-platform-config_git.bb b/meta-application-manager/recipes-others/tizen-platform-config/tizen-platform-config_git.bb
new file mode 100644
index 0000000..6d0a3b8
--- /dev/null
+++ b/meta-application-manager/recipes-others/tizen-platform-config/tizen-platform-config_git.bb
@@ -0,0 +1,10 @@
+require tizen-platform-config.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI += "git://review.tizen.org/platform/core/appfw/tizen-platform-config;tag=c2b552bd395f4d28f0e369cc1ead4ff18d89a126;nobranch=1"
+
+BBCLASSEXTEND += " native "
+
diff --git a/meta-application-manager/recipes-others/tizen-platform-wrapper/files/0001-Add-env-value-SYSROOT-for-root-fs-prefix.patch b/meta-application-manager/recipes-others/tizen-platform-wrapper/files/0001-Add-env-value-SYSROOT-for-root-fs-prefix.patch
new file mode 100644
index 0000000..ea36d81
--- /dev/null
+++ b/meta-application-manager/recipes-others/tizen-platform-wrapper/files/0001-Add-env-value-SYSROOT-for-root-fs-prefix.patch
@@ -0,0 +1,127 @@
+From 3f698caea8b6e35f89963e8ad633a9f6ca8f4970 Mon Sep 17 00:00:00 2001
+From: Ronan Le Martret <ronan@fridu.net>
+Date: Tue, 08 Jul 2014 10:40:21 +0200
+Subject: [PATCH] Add env value SYSROOT for root fs prefix
+
+Change-Id: I5c57494317473dcd74c85cbc2bce19a6d68c2739
+Signed-off-by: Ronan Le Martret <ronan@fridu.net>
+---
+
+diff --git a/src/foreign.c b/src/foreign.c
+index a19f6ad..6b172b2 100644
+--- a/src/foreign.c
++++ b/src/foreign.c
+@@ -85,6 +85,11 @@
+ default: break;
+ }
+ }
++#if _FOREIGN_HAS_(SYSROOT)
++ else if (length == 7)
++ if (name[0]=='S' && name[1]=='Y' && name[2]=='S' && name[3]=='R' && name[4]=='O' && name[5]=='O' && name[6]=='T')
++ return SYSROOT;
++#endif
+ return _FOREIGN_INVALID_;
+ }
+
+diff --git a/src/foreign.h b/src/foreign.h
+index 646a41d..6b1ea06 100644
+--- a/src/foreign.h
++++ b/src/foreign.h
+@@ -24,26 +24,28 @@
+ #ifndef FOREIGN_H
+ #define FOREIGN_H
+
+-#define _FOREIGN_MASK_HOME_ 1
+-#define _FOREIGN_MASK_UID_ 2
+-#define _FOREIGN_MASK_USER_ 4
+-#define _FOREIGN_MASK_GID_ 8
+-#define _FOREIGN_MASK_EHOME_ 16
+-#define _FOREIGN_MASK_EUID_ 32
+-#define _FOREIGN_MASK_EUSER_ 64
++#define _FOREIGN_MASK_HOME_ 1
++#define _FOREIGN_MASK_UID_ 2
++#define _FOREIGN_MASK_USER_ 4
++#define _FOREIGN_MASK_GID_ 8
++#define _FOREIGN_MASK_EHOME_ 16
++#define _FOREIGN_MASK_EUID_ 32
++#define _FOREIGN_MASK_EUSER_ 64
++#define _FOREIGN_MASK_SYSROOT_ 128
+
+ #define _FOREIGNS_TO_USE_ ( _FOREIGN_MASK_HOME_ \
+- | _FOREIGN_MASK_USER_ )
++ | _FOREIGN_MASK_USER_ \
++ | _FOREIGN_MASK_SYSROOT_)
+
+ #define _FOREIGN_HAS_(x) (0 != ((_FOREIGNS_TO_USE_) & (_FOREIGN_MASK_##x##_)))
+
+ enum fkey {
+- _FOREIGN_INVALID_ = -1,
++ _FOREIGN_INVALID_ = -1,
+ #if _FOREIGN_HAS_(HOME)
+ HOME,
+ #endif
+ #if _FOREIGN_HAS_(UID)
+- UID,
++ UID,
+ #endif
+ #if _FOREIGN_HAS_(USER)
+ USER,
+@@ -52,14 +54,17 @@
+ GID,
+ #endif
+ #if _FOREIGN_HAS_(EHOME)
+- EHOME,
++ EHOME,
+ #endif
+ #if _FOREIGN_HAS_(EUID)
+- EUID,
++ EUID,
+ #endif
+ #if _FOREIGN_HAS_(EUSER)
+ EUSER,
+ #endif
++#if _FOREIGN_HAS_(SYSROOT)
++ SYSROOT,
++#endif
+ _FOREIGN_COUNT_
+ };
+
+diff --git a/src/init.c b/src/init.c
+index 76868cc..9d16d86 100644
+--- a/src/init.c
++++ b/src/init.c
+@@ -63,7 +63,8 @@
+
+ #define _HAS_IDS_ ( _FOREIGN_HAS_(UID) \
+ || _FOREIGN_HAS_(EUID) \
+- || _FOREIGN_HAS_(GID) )
++ || _FOREIGN_HAS_(GID) \
++ || _FOREIGN_HAS_(SYSROOT) )
+
+ #define _HAS_PWS_ ( _FOREIGN_HAS_(HOME) \
+ || _FOREIGN_HAS_(USER) \
+@@ -275,7 +276,7 @@
+ }
+
+ /* callback for solving variables */
+-static const char *getcb( struct parsing *parsing,
++static const char *getcb( struct parsing *parsing,
+ const char *key, size_t length,
+ size_t begin_pos, size_t end_pos)
+ {
+@@ -284,6 +285,15 @@
+ size_t offset;
+ struct reading *reading = parsing->data;
+ int id;
++ char *res_sysroot;
++
++ if (strncmp( key, "SYSROOT", 7) == 0) {
++ res_sysroot = getenv("SYSROOT");
++ if (res_sysroot == NULL)
++ return "";
++ else
++ return res_sysroot;
++ }
+
+ /* try to find a tzplatform variable */
+ id = hashid(key, length);
diff --git a/meta-application-manager/recipes-others/tizen-platform-wrapper/files/0002_compiler_changes.patch b/meta-application-manager/recipes-others/tizen-platform-wrapper/files/0002_compiler_changes.patch
new file mode 100644
index 0000000..10a92bf
--- /dev/null
+++ b/meta-application-manager/recipes-others/tizen-platform-wrapper/files/0002_compiler_changes.patch
@@ -0,0 +1,66 @@
+--- a/src/init.c 2016-01-21 13:05:31.824488419 +0100
++++ b/src/init.c 2016-01-20 16:51:37.607210000 +0100
+@@ -373,7 +373,7 @@
+ }
+
+ /* initialize the environment */
+-inline void initialize(struct tzplatform_context *context)
++void initialize(struct tzplatform_context *context)
+ {
+ struct buffer buffer;
+ struct parsing parsing;
+--- a/src/init.h 2016-01-21 13:05:31.828488419 +0100
++++ b/src/init.h 2016-01-20 16:51:33.035210000 +0100
+@@ -24,7 +24,7 @@
+ #ifndef INIT_H
+ #define INIT_H
+
+-inline void initialize(struct tzplatform_context *context);
++void initialize(struct tzplatform_context *context);
+
+ #endif
+
+--- a/src/context.c 2016-01-21 13:05:31.820488419 +0100
++++ b/src/context.c 2016-01-20 16:50:03.351213000 +0100
+@@ -42,7 +42,7 @@
+ #include "context.h"
+
+
+-inline uid_t get_uid(struct tzplatform_context *context)
++uid_t get_uid(struct tzplatform_context *context)
+ {
+ uid_t result;
+
+--- a/src/context.h 2016-01-21 13:05:31.820488419 +0100
++++ b/src/context.h 2016-01-20 16:50:10.435213000 +0100
+@@ -46,7 +46,7 @@
+ const char *values[_TZPLATFORM_VARIABLES_COUNT_];
+ };
+
+-inline uid_t get_uid(struct tzplatform_context *context);
++uid_t get_uid(struct tzplatform_context *context);
+
+ #if _FOREIGN_HAS_(EUID)
+ inline uid_t get_euid(struct tzplatform_context *context);
+--- a/src/hashing.c 2016-01-21 13:05:31.824488419 +0100
++++ b/src/hashing.c 2016-01-20 16:49:52.771214000 +0100
+@@ -35,7 +35,7 @@
+
+ static const char *var_names[_TZPLATFORM_VARIABLES_COUNT_];
+
+-inline int hashid(const char *text, unsigned int len)
++int hashid(const char *text, unsigned int len)
+ {
+ const struct varassoc *vara = hashvar(text, len);
+ return vara ? vara->id : -1;
+--- a/src/hashing.h 2016-01-21 13:05:31.824488419 +0100
++++ b/src/hashing.h 2016-01-20 16:49:49.439214000 +0100
+@@ -24,7 +24,7 @@
+ #ifndef HASHING_H
+ #define HASHING_H
+
+-inline int hashid(const char *text, unsigned int len);
++int hashid(const char *text, unsigned int len);
+ const char *keyname(int id);
+
+ #endif
diff --git a/meta-application-manager/recipes-others/tizen-platform-wrapper/tizen-platform-wrapper-extraconf.inc b/meta-application-manager/recipes-others/tizen-platform-wrapper/tizen-platform-wrapper-extraconf.inc
new file mode 100644
index 0000000..290e582
--- /dev/null
+++ b/meta-application-manager/recipes-others/tizen-platform-wrapper/tizen-platform-wrapper-extraconf.inc
@@ -0,0 +1,10 @@
+SRC_URI += "file://0001-Add-env-value-SYSROOT-for-root-fs-prefix.patch \
+ file://0002_compiler_changes.patch \
+ "
+
+do_configure_append_class-native() {
+ sed -i "s@\"/etc/tizen-platform.conf\"@\"${sysconfdir}/tizen-platform.conf\"@g" ${S}/src/init.c
+ sed -i "s@\"/etc/tizen-platform.conf\"@\"${sysconfdir}/tizen-platform.conf\"@g" ${S}/src/toolbox.c
+}
+
+
diff --git a/meta-application-manager/recipes-others/tizen-platform-wrapper/tizen-platform-wrapper.inc b/meta-application-manager/recipes-others/tizen-platform-wrapper/tizen-platform-wrapper.inc
new file mode 100644
index 0000000..452383e
--- /dev/null
+++ b/meta-application-manager/recipes-others/tizen-platform-wrapper/tizen-platform-wrapper.inc
@@ -0,0 +1,94 @@
+DESCRIPTION = "A toolkit to generate the libtizen-platform-config library"
+HOMEPAGE = "http://www.tizen.org"
+SECTION = "Development/Tools"
+LICENSE = "LGPL-2.0"
+PV = "2.0"
+
+SRC_URI = ""
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by tizen-platform-wrapper
+
+
+RDEPENDS = ""
+#RDEPENDS of tizen-platform-wrapper (${PN})
+RDEPENDS_${PN} += "coreutils"
+RDEPENDS_${PN} += "gperf"
+
+
+DEPENDS = ""
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q
+ cp ${S}/packaging/tizen-platform-wrapper.manifest .
+
+
+}
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+
+ autotools_do_configure
+ oe_runmake ${PARALLEL_MAKE}
+
+
+
+}
+EXTRA_OECONF += ""
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+
+ oe_runmake \
+ DESTDIR=${D} \
+ INSTALL_ROOT=${D} \
+ BINDIR=${prefix}/bin \
+ install
+ rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+
+
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " tizen-platform-wrapper "
+
+tizen-platform-wrapper_files = ""
+tizen-platform-wrapper_files += "${prefix}/bin/*"
+tizen-platform-wrapper_files += "${prefix}/share/tizen-platform-wrapper/*"
+tizen-platform-wrapper_files += "${prefix}/lib/pkgconfig/tizen-platform-wrapper.pc"
+MANIFESTFILES_${PN} = "tizen-platform-wrapper.manifest"
+
+FILES_${PN} = "${tizen-platform-wrapper_files}"
+
+PKG_tizen-platform-wrapper= "tizen-platform-wrapper"
+
+require tizen-platform-wrapper-extraconf.inc
+
diff --git a/meta-application-manager/recipes-others/tizen-platform-wrapper/tizen-platform-wrapper_git.bb b/meta-application-manager/recipes-others/tizen-platform-wrapper/tizen-platform-wrapper_git.bb
new file mode 100644
index 0000000..19e16c2
--- /dev/null
+++ b/meta-application-manager/recipes-others/tizen-platform-wrapper/tizen-platform-wrapper_git.bb
@@ -0,0 +1,10 @@
+require tizen-platform-wrapper.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI += "git://review.tizen.org/platform/core/appfw/tizen-platform-wrapper;tag=8b5967cd28a02dd169920f84722d5946d76b1690;nobranch=1"
+
+BBCLASSEXTEND += " native "
+
diff --git a/meta-application-manager/recipes-others/xdgmime/xdgmime-extraconf.inc b/meta-application-manager/recipes-others/xdgmime/xdgmime-extraconf.inc
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/meta-application-manager/recipes-others/xdgmime/xdgmime-extraconf.inc
diff --git a/meta-application-manager/recipes-others/xdgmime/xdgmime.inc b/meta-application-manager/recipes-others/xdgmime/xdgmime.inc
new file mode 100644
index 0000000..6ad7d5c
--- /dev/null
+++ b/meta-application-manager/recipes-others/xdgmime/xdgmime.inc
@@ -0,0 +1,128 @@
+DESCRIPTION = "Querying information about file type"
+HOMEPAGE = "http://nohomepage.org"
+SECTION = "Applications/Other"
+LICENSE = "LGPL-2.0 & AFL-2.0"
+PV = "0.0.12"
+
+SRC_URI = ""
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND = ""
+PROVIDES = ""
+
+#PROVIDES by xdgmime-dev
+PROVIDES += "xdgmime-dev"
+
+
+#PROVIDES by xdgmime
+
+
+RDEPENDS = ""
+#RDEPENDS of xdgmime-dev (${PN}-dev)
+RDEPENDS_${PN}-dev += "xdgmime"
+
+
+DEPENDS = ""
+#DEPENDS of xdgmime
+inherit tizen_cmake
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q
+ cp ${S}/packaging/xdgmime.manifest .
+
+
+}
+do_patch_append() {
+ bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+
+ cmake \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
+ -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
+ -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
+ -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
+ -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
+ -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
+ -DCMAKE_SKIP_RPATH:BOOL=ON \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
+ ${EXTRA_OECMAKE} .
+ oe_runmake ${PARALLEL_MAKE}
+
+
+
+}
+
+do_install() {
+ export RPM_BUILD_ROOT=${D}
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf ${D}
+ mkdir -p ${D}
+
+
+ oe_runmake \
+ DESTDIR=${D} \
+ INSTALL_ROOT=${D} \
+ BINDIR=${prefix}/bin \
+ install
+ rm -f ${D}${infodir}/dir
+ find ${D} -regex ".*\.la$" | xargs rm -f --
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+
+
+}
+
+pkg_postinst_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+pkg_postrm_${PN}() {
+ #!/bin/sh -e
+
+ [ "x$D" == "x" ] && ldconfig
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
+PACKAGES += " xdgmime-dev "
+PACKAGES += " xdgmime "
+
+xdgmime-dev_files = ""
+xdgmime-dev_files += "${prefix}/include/xdgmime.h"
+xdgmime-dev_files += "${prefix}/lib/libxdgmime.so"
+xdgmime-dev_files += "${prefix}/lib/pkgconfig/xdgmime.pc"
+MANIFESTFILES_${PN}-dev = "xdgmime.manifest"
+
+xdgmime_files = ""
+xdgmime_files += "${prefix}/lib/libxdgmime.so.*"
+MANIFESTFILES_${PN} = "xdgmime.manifest"
+
+FILES_${PN}-dev = "${xdgmime-dev_files}"
+FILES_${PN} = "${xdgmime_files}"
+
+PKG_xdgmime-dev= "xdgmime-dev"
+PKG_xdgmime= "xdgmime"
+
+require xdgmime-extraconf.inc
+
diff --git a/meta-application-manager/recipes-others/xdgmime/xdgmime_git.bb b/meta-application-manager/recipes-others/xdgmime/xdgmime_git.bb
new file mode 100644
index 0000000..8f7c214
--- /dev/null
+++ b/meta-application-manager/recipes-others/xdgmime/xdgmime_git.bb
@@ -0,0 +1,10 @@
+require xdgmime.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI += "git://review.tizen.org/platform/core/appfw/xdgmime;tag=5e5be094af84c8443a42e1981c649dece1693ae3;nobranch=1"
+
+BBCLASSEXTEND += " native "
+
diff --git a/security_flags.inc b/security_flags.inc
new file mode 100644
index 0000000..24a8ea8
--- /dev/null
+++ b/security_flags.inc
@@ -0,0 +1,106 @@
+# Setup extra CFLAGS and LDFLAGS which have 'security' benefits. These
+# don't work universally, there are recipes which can't use one, the other
+# or both so a blacklist is maintained here. The idea would be over
+# time to reduce this list to nothing.
+# From a Yocto Project perspective, this file is included and tested
+# in the DISTRO="poky-lsb" configuration.
+
+# _FORTIFY_SOURCE requires -O1 or higher, so disable in debug builds as they use
+# -O0 which then results in a compiler warning.
+lcl_maybe_fortify = "${@base_conditional('DEBUG_BUILD','1','','-D_FORTIFY_SOURCE=2',d)}"
+
+SECURITY_CFLAGS ?= "-fstack-protector-all -pie -fpie ${lcl_maybe_fortify}"
+SECURITY_NO_PIE_CFLAGS ?= "-fstack-protector-all ${lcl_maybe_fortify}"
+
+SECURITY_LDFLAGS ?= "-Wl,-z,relro,-z,now"
+SECURITY_X_LDFLAGS ?= "-Wl,-z,relro"
+
+# powerpc does not get on with pie for reasons not looked into as yet
+SECURITY_CFLAGS_powerpc = "-fstack-protector-all ${lcl_maybe_fortify}"
+# Deal with ppc specific linker failures when using the cflags
+SECURITY_CFLAGS_pn-dbus_powerpc = ""
+SECURITY_CFLAGS_pn-dbus-ptest_powerpc = ""
+SECURITY_CFLAGS_pn-libmatchbox_powerpc = ""
+
+# arm specific security flag issues
+SECURITY_CFLAGS_pn-lttng-tools_arm = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-aspell = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-beecrypt = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-blktrace = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-coreutils = "${SECURITY_NO_PIE_CFLAGS}"
+# Curl seems to check for FORTIFY_SOURCE in CFLAGS, but even assigned
+# to CPPFLAGS it gets picked into CFLAGS in bitbake.
+#TARGET_CPPFLAGS_pn-curl += "-D_FORTIFY_SOURCE=2"
+SECURITY_CFLAGS_pn-cups = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-curl = "-fstack-protector-all -pie -fpie"
+SECURITY_CFLAGS_pn-db = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-directfb = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-glibc = ""
+SECURITY_CFLAGS_pn-glibc-initial = ""
+SECURITY_CFLAGS_pn-elfutils = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-enchant = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-expect = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-flac = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-flex = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-gcc = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-gcc-runtime = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-gcc-sanitizers = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-gdb = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-gmp = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-gnutls = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-grub = ""
+SECURITY_CFLAGS_pn-grub-efi = ""
+SECURITY_CFLAGS_pn-grub-efi-native = ""
+SECURITY_CFLAGS_pn-grub-efi-x86-native = ""
+SECURITY_CFLAGS_pn-grub-efi-i586-native = ""
+SECURITY_CFLAGS_pn-grub-efi-x86-64-native = ""
+SECURITY_CFLAGS_pn-gst-plugins-bad = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-gst-plugins-gl = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-gstreamer1.0-plugins-bad = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-gstreamer1.0-plugins-good = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-harfbuzz = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-kexec-tools = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-iptables = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-libaio = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-libcap = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-libgcc = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-libid3tag = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-libnewt = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-libglu = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-libpcap = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-libpcre = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-libproxy = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-lttng-ust = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-mesa = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-mesa-gl = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-openssl = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-opensp = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-ppp = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-python = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-python-imaging = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-python-pycurl = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-python-smartpm = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-python-numpy = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-python3 = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-tcl = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-tiff = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-valgrind = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-zlib = "${SECURITY_NO_PIE_CFLAGS}"
+
+# These 2 have text relco errors with the pie options enabled
+SECURITY_CFLAGS_pn-ltp = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-pulseaudio = "${SECURITY_NO_PIE_CFLAGS}"
+
+SECURITY_CFLAGS_pn-efl = "${SECURITY_NO_PIE_CFLAGS}"
+SECURITY_CFLAGS_pn-poppler = "${SECURITY_NO_PIE_CFLAGS}"
+
+TARGET_CFLAGS_append = " ${SECURITY_CFLAGS}"
+TARGET_LDFLAGS_append = " ${SECURITY_LDFLAGS}"
+
+SECURITY_LDFLAGS_pn-xf86-video-fbdev = "${SECURITY_X_LDFLAGS}"
+SECURITY_LDFLAGS_pn-xf86-video-intel = "${SECURITY_X_LDFLAGS}"
+SECURITY_LDFLAGS_pn-xf86-video-omapfb = "${SECURITY_X_LDFLAGS}"
+SECURITY_LDFLAGS_pn-xf86-video-omap = "${SECURITY_X_LDFLAGS}"
+SECURITY_LDFLAGS_pn-xf86-video-vesa = "${SECURITY_X_LDFLAGS}"
+SECURITY_LDFLAGS_pn-xf86-video-vmware = "${SECURITY_X_LDFLAGS}"
+SECURITY_LDFLAGS_pn-xserver-xorg = "${SECURITY_X_LDFLAGS}"