From: Kévin THIERRY Date: Fri, 23 May 2014 08:35:27 +0000 (+0200) Subject: Add package user-session-units X-Git-Tag: demo_release_0.1~67 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6d3e269bdad01ea3846aa7d1641858dea05c89fb;p=scm%2Fbb%2Fmeta-tizen.git Add package user-session-units Change-Id: I676de38d5ffc02b4438afbe22fb99158de7da808 Signed-off-by: Kévin THIERRY --- diff --git a/recipes-tizen/user-session-units/user-session-units-extraconf.inc b/recipes-tizen/user-session-units/user-session-units-extraconf.inc new file mode 100644 index 0000000..e69de29 diff --git a/recipes-tizen/user-session-units/user-session-units.inc b/recipes-tizen/user-session-units/user-session-units.inc new file mode 100644 index 0000000..76b5f54 --- /dev/null +++ b/recipes-tizen/user-session-units/user-session-units.inc @@ -0,0 +1,169 @@ +DESCRIPTION = "Systemd session units" +HOMEPAGE = "http://nohomepage.org" +SECTION = "System/Base" +LICENSE = "GPL-2.0" + +SRC_URI = "" + +S = "${WORKDIR}/git" + +inherit autotools-brokensep + +BBCLASSEXTEND = "" +PROVIDES = "" + +#PROVIDES by user-session-units-enlightenment + + +#PROVIDES by user-session-units + + +#PROVIDES by user-session-units-gnome + + +RDEPENDS = "" +#RDEPENDS of user-session-units-enlightenment (${PN}-enlightenment) +RDEPENDS_${PN}-enlightenment += "user-session-units" + +#RDEPENDS of user-session-units-gnome (${PN}-gnome) +RDEPENDS_${PN}-gnome += "user-session-units" + + +DEPENDS = "" +#DEPENDS of user-session-units +DEPENDS += "systemd" +DEPENDS += "dbus" +DEPENDS += "libpam" + +do_prep() { + cd ${S} + chmod -Rf a+rX,u+w,g-w,o-w ${S} + #setup -q + cp ${S}/packaging/user-session-units.manifest . + + + +} +do_patch_append() { + bb.build.exec_func('do_prep', d) +} + +do_configure() { +} + +do_compile() { + cd ${S} + LANG=C + export LANG + unset DISPLAY + CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ; + CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; + FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; + LD_AS_NEEDED=1; export LD_AS_NEEDED ; + + + CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ; + CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; + FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; + ./autogen.sh --build=${TARGET_SYS} --host=${HOST_SYS} \ + --target=x86_64-tizen-linux \ + --program-prefix= \ + --prefix=${prefix} \ + --exec-prefix=${prefix} \ + --bindir=${prefix}/bin \ + --sbindir=${prefix}/sbin \ + --sysconfdir=${sysconfdir} \ + --datadir=${prefix}/share \ + --includedir=${prefix}/include \ + --libdir=${prefix}/lib \ + --libexecdir=${prefix}/libexec \ + --localstatedir=${localstatedir} \ + --sharedstatedir=${prefix}/com \ + --mandir=${mandir} \ + --infodir=${infodir} + + CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ; + CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; + FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; + autotools_do_configure --build=${TARGET_SYS} --host=${HOST_SYS} \ + --target=x86_64-tizen-linux \ + --program-prefix= \ + --prefix=${prefix} \ + --exec-prefix=${prefix} \ + --bindir=${prefix}/bin \ + --sbindir=${prefix}/sbin \ + --sysconfdir=${sysconfdir} \ + --datadir=${prefix}/share \ + --includedir=${prefix}/include \ + --libdir=${prefix}/lib \ + --libexecdir=${prefix}/libexec \ + --localstatedir=${localstatedir} \ + --sharedstatedir=${prefix}/com \ + --mandir=${mandir} \ + --infodir=${infodir} + + + make -j16 + + + + +} + +do_install() { + echo 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 -m 755 -d ${D}${sysconfdir}/pam.d + install -m 644 ${S}/packaging/user-session.pam ${D}${sysconfdir}/pam.d/user-session + + + +} + +PACKAGES += " user-session-units-enlightenment " +PACKAGES += " user-session-units-gnome " + +user-session-units-enlightenment_files = "" +user-session-units-enlightenment_files += "user-session-units.manifest" +user-session-units-enlightenment_files += "/lib/systemd/user/e17.target" +user-session-units-enlightenment_files += "/lib/systemd/user/enlightenment.service" +user-session-units-enlightenment_files += "/lib/systemd/user/e17.target.wants/enlightenment.service" + +user-session-units_files = "" +user-session-units_files += "user-session-units.manifest" +user-session-units_files += "${prefix}/bin/user-session-launch" +user-session-units_files += "/lib/systemd/system/*" +user-session-units_files += "${sysconfdir}/pam.d/user-session" + +user-session-units-gnome_files = "" +user-session-units-gnome_files += "user-session-units.manifest" +user-session-units-gnome_files += "/lib/systemd/user/gnome.target" +user-session-units-gnome_files += "/lib/systemd/user/gnome-session.service" +user-session-units-gnome_files += "/lib/systemd/user/gnome.target.wants/gnome-session.service" + +FILES_${PN}-enlightenment = "${user-session-units-enlightenment_files}" +FILES_${PN} = "${user-session-units_files}" +FILES_${PN}-gnome = "${user-session-units-gnome_files}" + +PKG_user-session-units-enlightenment= "user-session-units-enlightenment" +PKG_user-session-units= "user-session-units" +PKG_user-session-units-gnome= "user-session-units-gnome" + +require user-session-units-extraconf.inc + diff --git a/recipes-tizen/user-session-units/user-session-units_git.bb b/recipes-tizen/user-session-units/user-session-units_git.bb new file mode 100644 index 0000000..bd03610 --- /dev/null +++ b/recipes-tizen/user-session-units/user-session-units_git.bb @@ -0,0 +1,10 @@ +require user-session-units.inc + +PRIORITY = "10" + +LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" + +SRC_URI += "git://review.tizen.org/platform/upstream/user-session-units;tag=545e17bc1926c6f7967aeefc128a95ee8483010d;nobranch=1" + +BBCLASSEXTEND += " native " +