diff options
Diffstat (limited to 'meta-application-manager/recipes-others')
72 files changed, 4673 insertions, 0 deletions
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 " + |