file://fixed-memory-freeing-if-error-during-listing-service.patch \
"
+systemd_unitdir = "/usr/lib/systemd"
+
inherit useradd autotools pkgconfig gettext update-rc.d
INITSCRIPT_NAME = "dbus-1"
LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
RDEPENDS_${PN} += "weston"
+RDEPENDS_${PN} += "media-server"
+RDEPENDS_${PN} += "wrt-widgets"
+RDEPENDS_${PN} += "avsystem"
+RDEPENDS_${PN} += "download-provider"
+RDEPENDS_${PN} += "automotive-message-broker"
do_install() {
mkdir -p ${D}${sysconfdir}
#rm -fr $D/bin
rm -fr $D${localstatedir}/log
- #rm -fr $D/lib/systemd
- rm -fr $D/usr/lib/systemd/*
+ rm -fr $D/lib/systemd/*
+ #rm -fr $D/usr/lib/systemd/*
#ln -s usr/lib $D/lib
#ln -s usr/sbin $D/sbin
-DESCRIPTION = "A proof of concept pure html5 UI"
+DESCRIPTION = "Pure html5 UI"
HOMEPAGE = "http://nohomepage.org"
-SECTION = "Applications/System"
-LICENSE = "Apache 2.0"
+SECTION = "Automotive/Modello"
+LICENSE = "Apache-2.0"
SRC_URI = ""
DEPENDS = ""
#DEPENDS of Modello_AMBSimulator
+DEPENDS += "tizen-platform-config"
DEPENDS += "zip"
do_prep() {
cd ${S}
chmod -Rf a+rX,u+w,g-w,o-w ${S}
#setup -q -n Modello_AMBSimulator-0.0.2
+ cp ${S}/packaging/Modello_AMBSimulator.manifest .
}
unset DISPLAY
LD_AS_NEEDED=1; export LD_AS_NEEDED ;
-
- make wgtPkg
+ #empty
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}%{TZ_SYS_APP_PREINSTALL}
+ mkdir -p ${D}${prefix}/share/Modello/Common/icons
+ zip -r ${D}%{TZ_SYS_APP_PREINSTALL}/Modello_AMBSimulator.wgt config.xml manifest.json css AMBSimulator_icon.png index.html js templates
+ install -m 0644 AMBSimulator_icon.png ${D}${prefix}/share/Modello/Common/icons
}
PACKAGES += " Modello_AMBSimulator "
Modello_AMBSimulator_files = ""
-Modello_AMBSimulator_files += "/opt/usr/apps/.preinstallWidgets/Modello_AMBSimulator.wgt"
-Modello_AMBSimulator_files += "/opt/usr/apps/_common/icons/AMB_Simulator_icon.png"
+Modello_AMBSimulator_files += "${prefix}/share/Modello/Common/icons/AMBSimulator_icon.png"
+MANIFESTFILES_Modello_AMBSimulator = "Modello_AMBSimulator.manifest"
FILES_Modello_AMBSimulator = "${Modello_AMBSimulator_files}"
LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
-SRC_URI += "git://review.tizen.org/profile/ivi/Modello_AMBSimulator;tag=43f878b5e2e103c4fa8fd169600cc7cd81c761d0;nobranch=1"
+SRC_URI += "git://review.tizen.org/profile/ivi/Modello_AMBSimulator;tag=497607ee297d9e2098edc8ac2483355c35ca473e;nobranch=1"
BBCLASSEXTEND += " native "
-DESCRIPTION = "A proof of concept pure html5 UI"
+DESCRIPTION = "Pure html5 UI"
HOMEPAGE = "http://nohomepage.org"
-SECTION = "Applications/System"
-LICENSE = "Apache 2.0"
+SECTION = "Automotive/Modello"
+LICENSE = "Apache-2.0"
SRC_URI = ""
RDEPENDS = ""
DEPENDS = ""
+#DEPENDS of Modello_Common
+DEPENDS_append_class-native = " fdupes-native"
+DEPENDS_append_class-target = " fdupes-native"
do_prep() {
cd ${S}
chmod -Rf a+rX,u+w,g-w,o-w ${S}
#setup -q -n Modello_Common-0.0.2
+ cp ${S}/packaging/Modello_Common.manifest .
}
unset DISPLAY
LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+ #empty
rm -rf ${D}
mkdir -p ${D}
- rm -rf ${D}
+ mkdir -p ${D}${prefix}/share/Modello/Common/
+ cp -r css ${D}${prefix}/share/Modello/Common/
+ cp -r js ${D}${prefix}/share/Modello/Common/
+
- 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 --
+ _target="";
+ _symlinks=0;
+
+ fdupes -q -n -r ${D}${prefix}/share |
+ while read _file; do
+ if test -z "$_target" ; then
+ _target="$_file";
+ else
+ if test -z "$_file" ; then
+ _target="";
+ continue ;
+ fi ;
+ if test "$_symlinks" = 1; then
+ ln -sf "${_target#${D}}" "$_file";
+ else
+ ln -f "$_target" "$_file";
+ fi ;
+ fi ;
+ done
}
PACKAGES += " Modello_Common "
Modello_Common_files = ""
-Modello_Common_files += "/opt/usr/apps/_common/*"
+Modello_Common_files += "${prefix}/share/Modello/Common/js"
+Modello_Common_files += "${prefix}/share/Modello/Common/css"
+MANIFESTFILES_Modello_Common = "Modello_Common.manifest"
FILES_Modello_Common = "${Modello_Common_files}"
LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
-SRC_URI += "git://review.tizen.org/profile/ivi/Modello_Common;tag=add385cd26977c25e671352a2f0834dabcc4c342;nobranch=1"
+SRC_URI += "git://review.tizen.org/profile/ivi/Modello_Common;tag=63056401704e347ae0ddc4c6c122e1861788ed16;nobranch=1"
BBCLASSEXTEND += " native "
find ${D} -regex ".*\.la$" | xargs rm -f --
find ${D} -regex ".*\.a$" | xargs rm -f --
mkdir -p ${D}${prefix}/bin
- mkdir -p ${D}/lib/systemd/user/weston.target.wants/
+ mkdir -p ${D}${systemd_unitdir}/user/weston.target.wants/
install -m 755 systemd/modello_launcher.sh ${D}${prefix}/bin
- install -m 0644 systemd/Modello_Homescreen-launchpad-ready.path ${D}/lib/systemd/user
- install -m 0644 systemd/Modello_Homescreen.service ${D}/lib/systemd/user
- ln -sf ../Modello_Homescreen-launchpad-ready.path ${D}/lib/systemd/user/weston.target.wants/
+ install -m 0644 systemd/Modello_Homescreen-launchpad-ready.path ${D}${systemd_unitdir}/user
+ install -m 0644 systemd/Modello_Homescreen.service ${D}${systemd_unitdir}/user
+ ln -sf ../Modello_Homescreen-launchpad-ready.path ${D}${systemd_unitdir}/user/weston.target.wants/
}
Modello_Homescreen_files = ""
Modello_Homescreen_files += "/opt/usr/apps/.preinstallWidgets/Modello_Homescreen.wgt"
Modello_Homescreen_files += "/opt/usr/apps/_common/icons/Homescreen_icon.png"
-Modello_Homescreen_files += "/lib/systemd/user/Modello_Homescreen.service"
-Modello_Homescreen_files += "/lib/systemd/user/Modello_Homescreen-launchpad-ready.path"
+Modello_Homescreen_files += "${systemd_unitdir}/user/Modello_Homescreen.service"
+Modello_Homescreen_files += "${systemd_unitdir}/user/Modello_Homescreen-launchpad-ready.path"
Modello_Homescreen_files += "${prefix}/bin/modello_launcher.sh"
-Modello_Homescreen_files += "/lib/systemd/user/weston.target.wants"
+Modello_Homescreen_files += "${systemd_unitdir}/user/weston.target.wants"
FILES_Modello_Homescreen = "${Modello_Homescreen_files}"
SRC_URI += "file://modello-installer-postinst.service"
RDEPENDS_Modello_Installer-xwalk_remove = "Modello_Phone"
+systemd_unitdir = "/usr/lib/systemd"
do_install_append() {
install -m 0755 -p -D ${WORKDIR}/modello-installer-postinst.sh ${D}${prefix}/share/modello-installer/modello-installer-postinst.sh
- install -p -D ${WORKDIR}/modello-installer-postinst.service ${D}/lib/systemd/system/modello-installer-postinst.service
- mkdir -p ${D}/lib/systemd/system/multi-user.target.wants
- ln -sf ../modello-installer-postinst.service ${D}/lib/systemd/system/multi-user.target.wants/modello-installer-postinst.service
+ install -p -D ${WORKDIR}/modello-installer-postinst.service ${D}${systemd_unitdir}/system/modello-installer-postinst.service
+ mkdir -p ${D}${systemd_unitdir}/system/multi-user.target.wants
+ ln -sf ../modello-installer-postinst.service ${D}${systemd_unitdir}/system/multi-user.target.wants/modello-installer-postinst.service
}
FILES_Modello_Installer-xwalk += "${prefix}/share/modello-installer/modello-installer-postinst.sh"
-FILES_Modello_Installer-xwalk += "/lib/systemd/system/modello-installer-postinst.service"
-FILES_Modello_Installer-xwalk += "/lib/systemd/system/multi-user.target.wants/modello-installer-postinst.service"
+FILES_Modello_Installer-xwalk += "${systemd_unitdir}/system/modello-installer-postinst.service"
+FILES_Modello_Installer-xwalk += "${systemd_unitdir}/system/multi-user.target.wants/modello-installer-postinst.service"
find ${D} -regex ".*\.la$" | xargs rm -f --
find ${D} -regex ".*\.a$" | xargs rm -f --
- install -d ${D}/lib/systemd/system/multi-user.target.wants
- install -m0644 ${S}/packaging/alarm-server.service ${D}/lib/systemd/system
- ln -sf ../alarm-server.service ${D}/lib/systemd/system/multi-user.target.wants/alarm-server.service
+ install -d ${D}${systemd_unitdir}/system/multi-user.target.wants
+ install -m0644 ${S}/packaging/alarm-server.service ${D}${systemd_unitdir}/system
+ ln -sf ../alarm-server.service ${D}${systemd_unitdir}/system/multi-user.target.wants/alarm-server.service
mkdir -p ${D}/${sysconfdir}/udev/rules.d
install -m0644 ${S}/packaging/60-alarm-manager-rtc.rules ${D}${sysconfdir}/udev/rules.d/
alarm-server_files = ""
alarm-server_files += "${prefix}/bin/alarm-server"
-alarm-server_files += "/lib/systemd/system/multi-user.target.wants/alarm-server.service"
-alarm-server_files += "/lib/systemd/system/alarm-server.service"
+alarm-server_files += "${systemd_unitdir}/system/multi-user.target.wants/alarm-server.service"
+alarm-server_files += "${systemd_unitdir}/system/alarm-server.service"
alarm-server_files += "${sysconfdir}/dbus-1/system.d/alarm-service.conf"
alarm-server_files += "%config ${sysconfdir}/udev/rules.d/60-alarm-manager-rtc.rules"
CONFFILES_alarm-server = ""
rm -f ${D}${infodir}/dir
find ${D} -regex ".*\.la$" | xargs rm -f --
find ${D} -regex ".*\.a$" | xargs rm -f --
- install -d ${D}/lib/systemd/user/core-efl.target.wants
- install -m0644 ${S}/packaging/core-efl-wayland.target ${D}/lib/systemd/user/core-efl.target
+ install -d ${D}${systemd_unitdir}/user/core-efl.target.wants
+ install -m0644 ${S}/packaging/core-efl-wayland.target ${D}${systemd_unitdir}/user/core-efl.target
app-core-common_files = ""
app-core-common_files += "${prefix}/lib/libappcore-common.so.*"
-app-core-common_files += "/lib/systemd/user/core-efl.target"
-app-core-common_files += "/lib/systemd/user/core-efl.target.wants/"
+app-core-common_files += "${systemd_unitdir}/user/core-efl.target"
+app-core-common_files += "${systemd_unitdir}/user/core-efl.target.wants/"
MANIFESTFILES_${PN}-common = "app-core.manifest"
app-core-common-dev_files = ""
sqlite3 ${D}${prefix}/dbspace/.mida.db < ${D}${prefix}/share/aul/mida_db.sql
rm -rf ${D}${prefix}/share/aul/mida_db.sql
- mkdir -p ${D}/lib/systemd/system/graphical.target.wants
- mkdir -p ${D}/lib/systemd/user/default.target.wants
- install -m 0644 ${S}/packaging/launchpad-preload@.service ${D}/lib/systemd/system/launchpad-preload@.service
- install -m 0644 ${S}/packaging/ac.service ${D}/lib/systemd/system/ac.service
- ln -s ../launchpad-preload@.service ${D}/lib/systemd/system/graphical.target.wants/launchpad-preload@5000.service
- ln -s ../ac.service ${D}/lib/systemd/system/graphical.target.wants/ac.service
+ mkdir -p ${D}${systemd_unitdir}/system/graphical.target.wants
+ mkdir -p ${D}${systemd_unitdir}/user/default.target.wants
+ install -m 0644 ${S}/packaging/launchpad-preload@.service ${D}${systemd_unitdir}/system/launchpad-preload@.service
+ install -m 0644 ${S}/packaging/ac.service ${D}${systemd_unitdir}/system/ac.service
+ ln -s ../launchpad-preload@.service ${D}${systemd_unitdir}/system/graphical.target.wants/launchpad-preload@5000.service
+ ln -s ../ac.service ${D}${systemd_unitdir}/system/graphical.target.wants/ac.service
- install -m 0644 ${S}/packaging/amd_session_agent.service ${D}/lib/systemd/user/amd_session_agent.service
- ln -s ../amd_session_agent.service ${D}/lib/systemd/user/default.target.wants/amd_session_agent.service
+ install -m 0644 ${S}/packaging/amd_session_agent.service ${D}${systemd_unitdir}/user/amd_session_agent.service
+ ln -s ../amd_session_agent.service ${D}${systemd_unitdir}/user/default.target.wants/amd_session_agent.service
}
aul_files += "${prefix}/share/aul/service/*"
aul_files += "${prefix}/share/aul/preload_list.txt"
aul_files += "${prefix}/share/aul/preexec_list.txt"
-aul_files += "/lib/systemd/system/graphical.target.wants/launchpad-preload@5000.service"
-aul_files += "/lib/systemd/system/graphical.target.wants/ac.service"
-aul_files += "/lib/systemd/system/launchpad-preload@.service"
-aul_files += "/lib/systemd/system/ac.service"
-aul_files += "/lib/systemd/user/amd_session_agent.service"
-aul_files += "/lib/systemd/user/default.target.wants/amd_session_agent.service"
+aul_files += "${systemd_unitdir}/system/graphical.target.wants/launchpad-preload@5000.service"
+aul_files += "${systemd_unitdir}/system/graphical.target.wants/ac.service"
+aul_files += "${systemd_unitdir}/system/launchpad-preload@.service"
+aul_files += "${systemd_unitdir}/system/ac.service"
+aul_files += "${systemd_unitdir}/user/amd_session_agent.service"
+aul_files += "${systemd_unitdir}/user/default.target.wants/amd_session_agent.service"
aul_files += "${prefix}/bin/amd"
aul_files += "${prefix}/bin/daemon-manager-release-agent"
aul_files += "${prefix}/bin/daemon-manager-launch-agent"
find ${D} -regex ".*\.la$" | xargs rm -f --
find ${D} -regex ".*\.a$" | xargs rm -f --
- mkdir -p ${D}/lib/systemd/system/network.target.wants
- cp packaging.in/ambd.service.systemd.tizen ${D}/lib/systemd/system/ambd.service
- ln -sf ../ambd.service ${D}/lib/systemd/system/network.target.wants/ambd.service
+ mkdir -p ${D}${systemd_unitdir}/system/network.target.wants
+ cp packaging.in/ambd.service.systemd.tizen ${D}${systemd_unitdir}/system/ambd.service
+ ln -sf ../ambd.service ${D}${systemd_unitdir}/system/network.target.wants/ambd.service
- mkdir -p ${D}/lib/systemd/system/multi-user.target.wants
- ln -sf ../ambd.service ${D}/lib/systemd/system/multi-user.target.wants/ambd.service
+ mkdir -p ${D}${systemd_unitdir}/system/multi-user.target.wants
+ ln -sf ../ambd.service ${D}${systemd_unitdir}/system/multi-user.target.wants/ambd.service
cp packaging.in/config.tizen ${D}${sysconfdir}/ambd/
}
find ${D} -regex ".*\.la$" | xargs rm -f --
find ${D} -regex ".*\.a$" | xargs rm -f --
- mkdir -p ${D}/lib/systemd/system/network.target.wants
- cp packaging.in/ambd.service.systemd.tizen ${D}/lib/systemd/system/ambd.service
- ln -s ../ambd.service ${D}/lib/systemd/system/network.target.wants/ambd.service
+ mkdir -p ${D}${systemd_unitdir}/system/network.target.wants
+ cp packaging.in/ambd.service.systemd.tizen ${D}${systemd_unitdir}/system/ambd.service
+ ln -s ../ambd.service ${D}${systemd_unitdir}/system/network.target.wants/ambd.service
- mkdir -p ${D}//lib/systemd/system/multi-user.target.wants
- ln -s ../ambd.service ${D}//lib/systemd/system/multi-user.target.wants/ambd.service
+ mkdir -p ${D}/${systemd_unitdir}/system/multi-user.target.wants
+ ln -s ../ambd.service ${D}/${systemd_unitdir}/system/multi-user.target.wants/ambd.service
cp packaging.in/config.tizen ${D}${sysconfdir}/ambd/
automotive-message-broker_files += "${sysconfdir}/ambd/examples/*"
automotive-message-broker_files += "${prefix}/bin/ambd"
automotive-message-broker_files += "${prefix}/lib/libamb.so*"
-automotive-message-broker_files += "/lib/systemd/system/ambd.service"
-automotive-message-broker_files += "/lib/systemd/system/network.target.wants/ambd.service"
-automotive-message-broker_files += "/lib/systemd/system/multi-user.target.wants/ambd.service"
+automotive-message-broker_files += "${systemd_unitdir}/system/ambd.service"
+automotive-message-broker_files += "${systemd_unitdir}/system/network.target.wants/ambd.service"
+automotive-message-broker_files += "${systemd_unitdir}/system/multi-user.target.wants/ambd.service"
automotive-message-broker_files += "${prefix}/bin/amb-get"
automotive-message-broker_files += "${prefix}/bin/amb-get-history"
automotive-message-broker_files += "${prefix}/bin/amb-set"
mkdir -m 755 -p ${D}/${sysconfdir}/rc.d/rc4.d/
ln -s ../init.d/snd_init ${D}/${sysconfdir}/rc.d/rc4.d/S15snd_init
- mkdir -m 755 -p ${D}/lib/systemd/system/multi-user.target.wants
- install -m 0644 ${S}/packaging/avsystem.service ${D}/lib/systemd/system/avsystem.service
- ln -s ../avsystem.service ${D}/lib/systemd/system/multi-user.target.wants/avsystem.service
+ mkdir -m 755 -p ${D}${systemd_unitdir}/system/multi-user.target.wants
+ install -m 0644 ${S}/packaging/avsystem.service ${D}${systemd_unitdir}/system/avsystem.service
+ ln -s ../avsystem.service ${D}${systemd_unitdir}/system/multi-user.target.wants/avsystem.service
}
avsystem_files += "${sysconfdir}/rc.d/rc3.d/S15snd_init"
avsystem_files += "${sysconfdir}/rc.d/rc4.d/S15snd_init"
avsystem_files += "${prefix}/bin/*"
-avsystem_files += "/lib/systemd/system/avsystem.service"
-avsystem_files += "/lib/systemd/system/multi-user.target.wants/avsystem.service"
+avsystem_files += "${systemd_unitdir}/system/avsystem.service"
+avsystem_files += "${systemd_unitdir}/system/multi-user.target.wants/avsystem.service"
MANIFESTFILES_${PN} = "avsystem.manifest"
avsystem-dev_files = ""
ln -s ${sysconfdir}/rc.d/init.d/bluetooth-frwk-service ${D}${sysconfdir}/rc.d/rc3.d/S80bluetooth-frwk-service
ln -s ${sysconfdir}/rc.d/init.d/bluetooth-frwk-service ${D}${sysconfdir}/rc.d/rc5.d/S80bluetooth-frwk-service
- mkdir -p ${D}/lib/systemd/user
- mkdir -p ${D}/lib/systemd/user/tizen-middleware.target.wants
- install -m 0644 bt-service/bluetooth-frwk-service.service ${D}/lib/systemd/user
- ln -s ../bluetooth-frwk-service.service ${D}/lib/systemd/user/tizen-middleware.target.wants/bluetooth-frwk-service.service
+ mkdir -p ${D}${systemd_unitdir}/user
+ mkdir -p ${D}${systemd_unitdir}/user/tizen-middleware.target.wants
+ install -m 0644 bt-service/bluetooth-frwk-service.service ${D}${systemd_unitdir}/user
+ ln -s ../bluetooth-frwk-service.service ${D}${systemd_unitdir}/user/tizen-middleware.target.wants/bluetooth-frwk-service.service
bluetooth-frwk-service_files += "${sysconfdir}/rc.d/rc3.d/S80bluetooth-frwk-service"
bluetooth-frwk-service_files += "${sysconfdir}/rc.d/rc5.d/S80bluetooth-frwk-service"
bluetooth-frwk-service_files += "${prefix}/bin/bt-service"
-bluetooth-frwk-service_files += "/lib/systemd/user/tizen-middleware.target.wants/bluetooth-frwk-service.service"
-bluetooth-frwk-service_files += "/lib/systemd/user/bluetooth-frwk-service.service"
+bluetooth-frwk-service_files += "${systemd_unitdir}/user/tizen-middleware.target.wants/bluetooth-frwk-service.service"
+bluetooth-frwk-service_files += "${systemd_unitdir}/user/bluetooth-frwk-service.service"
bluetooth-frwk-service_files += "/opt/var/lib/bluetooth/auto-pair-blacklist"
bluetooth-frwk-service_files += "${sysconfdir}/dbus-1/system.d/bluetooth-frwk-service.conf"
MANIFESTFILES_${PN}-service = "bluetooth-frwk.manifest"
ln -s ${sysconfdir}/rc.d/init.d/bluetooth-address ${D}${sysconfdir}/rc.d/rc3.d/S60bluetooth-address
ln -s ${sysconfdir}/rc.d/init.d/bluetooth-address ${D}${sysconfdir}/rc.d/rc5.d/S60bluetooth-address
- mkdir -p ${D}/lib/systemd/system/multi-user.target.wants
- install -m 0644 ${S}/packaging/bluetooth-address.service ${D}/lib/systemd/system
- ln -s ../bluetooth-address.service ${D}/lib/systemd/system/multi-user.target.wants/bluetooth-address.service
+ mkdir -p ${D}${systemd_unitdir}/system/multi-user.target.wants
+ install -m 0644 ${S}/packaging/bluetooth-address.service ${D}${systemd_unitdir}/system
+ ln -s ../bluetooth-address.service ${D}${systemd_unitdir}/system/multi-user.target.wants/bluetooth-address.service
mkdir -p ${D}${prefix}/etc/bluetooth/
install -m 0755 scripts/bt-dev-start.sh ${D}${prefix}/etc/bluetooth/bt-dev-start.sh
bluetooth-tools_files += "${prefix}/etc/bluetooth/bt-edutm-dev-up.sh"
bluetooth-tools_files += "${prefix}/etc/bluetooth/bt-edutm-mode-on.sh"
bluetooth-tools_files += "${prefix}/etc/bluetooth/bt-edutm-off.sh"
-bluetooth-tools_files += "/lib/systemd/system/multi-user.target.wants/bluetooth-address.service"
-bluetooth-tools_files += "/lib/systemd/system/bluetooth-address.service"
+bluetooth-tools_files += "${systemd_unitdir}/system/multi-user.target.wants/bluetooth-address.service"
+bluetooth-tools_files += "${systemd_unitdir}/system/bluetooth-address.service"
MANIFESTFILES_${PN} = "bluetooth-tools.manifest"
FILES_${PN}-no-firmware = "${bluetooth-tools-no-firmware_files}"
find ${D} -regex ".*\.la$" | xargs rm -f --
find ${D} -regex ".*\.a$" | xargs rm -f --
- mkdir -p ${D}/lib/systemd/user/tizen-middleware.target.wants
- install -m 0644 ${S}/packaging/contacts-service.service ${D}/lib/systemd/user/contacts-service.service
- ln -s ../contacts-service.service ${D}/lib/systemd/user/tizen-middleware.target.wants/contacts-service.service
+ mkdir -p ${D}${systemd_unitdir}/user/tizen-middleware.target.wants
+ install -m 0644 ${S}/packaging/contacts-service.service ${D}${systemd_unitdir}/user/contacts-service.service
+ ln -s ../contacts-service.service ${D}${systemd_unitdir}/user/tizen-middleware.target.wants/contacts-service.service
- mkdir -p ${D}/lib/systemd/user/sockets.target.wants
- install -m 0644 ${S}/packaging/contacts-service.socket ${D}/lib/systemd/user/contacts-service.socket
- ln -s ../contacts-service.socket ${D}/lib/systemd/user/sockets.target.wants/contacts-service.socket
+ mkdir -p ${D}${systemd_unitdir}/user/sockets.target.wants
+ install -m 0644 ${S}/packaging/contacts-service.socket ${D}${systemd_unitdir}/user/contacts-service.socket
+ ln -s ../contacts-service.socket ${D}${systemd_unitdir}/user/sockets.target.wants/contacts-service.socket
contacts-service2_files = ""
contacts-service2_files += "${prefix}/lib/libcontacts-service2.so.*"
contacts-service2_files += "${prefix}/bin/contacts-service-ipcd*"
-contacts-service2_files += "/lib/systemd/user/contacts-service.service"
-contacts-service2_files += "/lib/systemd/user/tizen-middleware.target.wants/contacts-service.service"
-contacts-service2_files += "/lib/systemd/user/sockets.target.wants/contacts-service.socket"
-contacts-service2_files += "/lib/systemd/user/contacts-service.socket"
+contacts-service2_files += "${systemd_unitdir}/user/contacts-service.service"
+contacts-service2_files += "${systemd_unitdir}/user/tizen-middleware.target.wants/contacts-service.service"
+contacts-service2_files += "${systemd_unitdir}/user/sockets.target.wants/contacts-service.socket"
+contacts-service2_files += "${systemd_unitdir}/user/contacts-service.socket"
MANIFESTFILES_${PN}2 = "contacts-service2.manifest"
contacts-service2-dev_files = ""
-DPKG_RELEASE=0 \
-DIMAGE_DIR:PATH=${prefix}/share/download-provider/images \
-DLOCALE_DIR:PATH=${prefix}/share/locale \
- -DSYSTEMD_DIR:PATH=/lib/systemd/system \
+ -DSYSTEMD_DIR:PATH=${systemd_unitdir}/system \
-DDATABASE_SCHEMA_DIR=${prefix}/share/download-provider/sql \
-DDATABASE_SCHEMA_FILE=${prefix}/share/download-provider/sql/download-provider-schema.sql \
-DSUPPORT_WIFI_DIRECT:BOOL=OFF \
find ${D} -regex ".*\.la$" | xargs rm -f --
find ${D} -regex ".*\.a$" | xargs rm -f --
mkdir -p ${D}/${prefix}/share/download-provider
- mkdir -p ${D}/lib/systemd/system/graphical.target.wants
- mkdir -p ${D}/lib/systemd/system/sockets.target.wants
- ln -s ../download-provider.service ${D}/lib/systemd/system/graphical.target.wants/
- ln -s ../download-provider.socket ${D}/lib/systemd/system/sockets.target.wants/
+ mkdir -p ${D}${systemd_unitdir}/system/graphical.target.wants
+ mkdir -p ${D}${systemd_unitdir}/system/sockets.target.wants
+ ln -s ../download-provider.service ${D}${systemd_unitdir}/system/graphical.target.wants/
+ ln -s ../download-provider.socket ${D}${systemd_unitdir}/system/sockets.target.wants/
#find_lang download-provider
download-provider_files += "${prefix}/share/download-provider/images/*.gif"
download-provider_files += "${prefix}/lib/libdownloadagent2.so*"
download-provider_files += "${prefix}/lib/libdownload-provider-interface.so*"
-download-provider_files += "/lib/systemd/system/download-provider.service"
-download-provider_files += "/lib/systemd/system/graphical.target.wants/download-provider.service"
-download-provider_files += "/lib/systemd/system/download-provider.socket"
-download-provider_files += "/lib/systemd/system/sockets.target.wants/download-provider.socket"
+download-provider_files += "${systemd_unitdir}/system/download-provider.service"
+download-provider_files += "${systemd_unitdir}/system/graphical.target.wants/download-provider.service"
+download-provider_files += "${systemd_unitdir}/system/download-provider.socket"
+download-provider_files += "${systemd_unitdir}/system/sockets.target.wants/download-provider.socket"
download-provider_files += "${prefix}/share/download-provider/sql/download-provider-schema.sql"
MANIFESTFILES_${PN} = "download-provider.manifest"
cd ${S}
chmod -Rf a+rX,u+w,g-w,o-w ${S}
#setup -q -n genivi-audio-manager-6.0
+ cp ${S}/packaging/genivi-audio-manager.manifest .
}
-DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
-DCMAKE_SKIP_RPATH:BOOL=ON \
-DBUILD_SHARED_LIBS:BOOL=ON \
- ${EXTRA_OECMAKE} -DUSE_BUILD_LIBS=OFF -DWITH_TESTS=OFF -DWITH_ENABLED_IPC=DBUS -DWITH_DBUS_WRAPPER=ON -DWITH_NSM=OFF -DWITH_DLT=OFF -DCMAKE_INSTALL_PREFIX=/usr ..
+ ${EXTRA_OECMAKE} -DUSE_BUILD_LIBS=OFF \
+ -DWITH_TESTS=OFF \
+ -DWITH_ENABLED_IPC=DBUS \
+ -DWITH_DBUS_WRAPPER=ON \
+ -DWITH_NSM=OFF \
+ -DWITH_DLT=OFF \
+ -DCMAKE_INSTALL_PREFIX=${prefix} \
+ ..
#make VERBOSE=1
oe_runmake -j16
rm -rf ${D}
mkdir -p ${D}
- rm -rf "$RPM_BUILD_ROOT"
+ rm -rf "${D}"
cd build
oe_runmake \
install
rm -f ${D}${infodir}/dir
find ${D} -regex ".*\.la$" | xargs rm -f --
- find ${D} -regex ".*\.a$" | xargs rm -f -- DESTDIR=$RPM_BUILD_ROOT
- mkdir $RPM_BUILD_ROOT${prefix}/include/genivi-audio-manager
- mv $RPM_BUILD_ROOT${prefix}/include/*.h $RPM_BUILD_ROOT${prefix}/include/command $RPM_BUILD_ROOT${prefix}/include/control $RPM_BUILD_ROOT${prefix}/include/routing $RPM_BUILD_ROOT${prefix}/include/shared $RPM_BUILD_ROOT${prefix}/include/genivi-audio-manager
- rm $RPM_BUILD_ROOT${prefix}/lib/audioManager/routing/libPluginRoutingInterfaceAsync.so*
+ find ${D} -regex ".*\.a$" | xargs rm -f --
+ mkdir -p ${D}${prefix}/include/genivi-audio-manager
+ for cpath in *.h command control routing shared; do
+ mv ${D}${prefix}/include/${cpath} ${D}${prefix}/include/genivi-audio-manager
+ done
+ rm ${D}${prefix}/lib/audioManager/routing/libPluginRoutingInterfaceAsync.so*
}
genivi-audio-manager-dev_files = ""
genivi-audio-manager-dev_files += "${prefix}/include/genivi-audio-manager/*"
+MANIFESTFILES_${PN}-dev = "genivi-audio-manager.manifest"
genivi-audio-manager_files = ""
genivi-audio-manager_files += "LICENCE README.html"
genivi-audio-manager_files += "${prefix}/lib/audioManager/control/libPluginControlInterfaceDbus.so*"
genivi-audio-manager_files += "${prefix}/lib/audioManager/control/libPluginControlInterfaceMurphy.so*"
genivi-audio-manager_files += "${prefix}/share/audiomanager/*xml"
+MANIFESTFILES_${PN} = "genivi-audio-manager.manifest"
FILES_${PN}-dev = "${genivi-audio-manager-dev_files}"
FILES_${PN} = "${genivi-audio-manager_files}"
rm -f ${D}${infodir}/dir
find ${D} -regex ".*\.la$" | xargs rm -f --
find ${D} -regex ".*\.a$" | xargs rm -f --
- install -m 755 -d ${D}/lib/systemd/user
- install -m 644 data/gsignond.service ${D}/lib/systemd/user/
- install -m 755 -d ${D}/lib/systemd/user/weston.target.wants
- ln -s ../gsignond.service ${D}/lib/systemd/user/weston.target.wants/gsignond.service
+ install -m 755 -d ${D}${systemd_unitdir}/user
+ install -m 644 data/gsignond.service ${D}${systemd_unitdir}/user/
+ install -m 755 -d ${D}${systemd_unitdir}/user/weston.target.wants
+ ln -s ../gsignond.service ${D}${systemd_unitdir}/user/weston.target.wants/gsignond.service
}
gsignond_files += "${prefix}/lib/gsignond/extensions/*.so*"
gsignond_files += "${prefix}/lib/gsignond/gplugins/*.so*"
gsignond_files += "${prefix}/lib/gsignond/pluginloaders/gsignond-plugind"
-gsignond_files += "/lib/systemd/user/gsignond.service"
-gsignond_files += "/lib/systemd/user/weston.target.wants/gsignond.service"
+gsignond_files += "${systemd_unitdir}/user/gsignond.service"
+gsignond_files += "${systemd_unitdir}/user/weston.target.wants/gsignond.service"
gsignond_files += "${sysconfdir}/gsignond.conf"
MANIFESTFILES_${PN} = "gsignond.manifest"
# configurations
mkdir -p ${D}/opt/etc/ico/device-input-controller
- mkdir -p ${D}/lib/systemd/user
+ mkdir -p ${D}${systemd_unitdir}/user
install -m 0644 settings/drivingforcegt.conf ${D}/opt/etc/ico/device-input-controller
install -m 0644 settings/g27racingwheel.conf ${D}/opt/etc/ico/device-input-controller
install -m 0755 settings/set_daynight.sh ${D}/opt/etc/ico/device-input-controller
- install -m 644 settings/ico-device-input-controller.service ${D}/lib/systemd/user/ico-device-input-controller.service
+ install -m 644 settings/ico-device-input-controller.service ${D}${systemd_unitdir}/user/ico-device-input-controller.service
}
ico-uxf-device-input-controller_files += "/opt/etc/ico/device-input-controller/drivingforcegt.conf"
ico-uxf-device-input-controller_files += "/opt/etc/ico/device-input-controller/g27racingwheel.conf"
ico-uxf-device-input-controller_files += "/opt/etc/ico/device-input-controller/set_daynight.sh"
-ico-uxf-device-input-controller_files += "/lib/systemd/user/ico-device-input-controller.service"
+ico-uxf-device-input-controller_files += "${systemd_unitdir}/user/ico-device-input-controller.service"
MANIFESTFILES_${PN} = "ico-uxf-device-input-controller.manifest"
FILES_${PN} = "${ico-uxf-device-input-controller_files}"
# configurations
mkdir -p ${D}${sysconfdir}/xdg/weston > /dev/null 2>&1
- mkdir -p ${D}/lib/systemd/system/multi-user.target.wants > /dev/null 2>&1
+ mkdir -p ${D}${systemd_unitdir}/system/multi-user.target.wants > /dev/null 2>&1
install -m 0644 settings/weston.ini ${D}${sysconfdir}/xdg/weston
- install -m 0644 settings/ico-pseudo-input-device.service ${D}/lib/systemd/system/ico-pseudo-input-device.service
- ln -s /lib/systemd/system/ico-pseudo-input-device.service ${D}/lib/systemd/system/multi-user.target.wants/ico-pseudo-input-device.service
+ install -m 0644 settings/ico-pseudo-input-device.service ${D}${systemd_unitdir}/system/ico-pseudo-input-device.service
+ ln -s ${systemd_unitdir}/system/ico-pseudo-input-device.service ${D}${systemd_unitdir}/system/multi-user.target.wants/ico-pseudo-input-device.service
}
ico-uxf-weston-plugin_files += "${prefix}/lib/libico-uxf-weston-plugin.so.*"
ico-uxf-weston-plugin_files += "${prefix}/bin/ico_send_inputevent"
ico-uxf-weston-plugin_files += "${prefix}/bin/ico_pseudo_input_device"
-ico-uxf-weston-plugin_files += "/lib/systemd/system/ico-pseudo-input-device.service"
-ico-uxf-weston-plugin_files += "/lib/systemd/system/multi-user.target.wants/ico-pseudo-input-device.service"
+ico-uxf-weston-plugin_files += "${systemd_unitdir}/system/ico-pseudo-input-device.service"
+ico-uxf-weston-plugin_files += "${systemd_unitdir}/system/multi-user.target.wants/ico-pseudo-input-device.service"
ico-uxf-weston-plugin_files += "${sysconfdir}/xdg/weston/weston.ini"
CONFFILES_${PN} = ""
CONFFILES_${PN} += "${sysconfdir}/xdg/weston/weston.ini"
# configurations
mkdir -p ${D}${sysconfdir}/ico-vic-carsim/
- mkdir -p ${D}/lib/systemd/user
+ mkdir -p ${D}${systemd_unitdir}/user
install -m 0644 G25.conf ${D}${sysconfdir}/ico-vic-carsim/
install -m 0644 G27.conf ${D}${sysconfdir}/ico-vic-carsim/
- install -m 0644 ico-vic-carsim.service ${D}/lib/systemd/user/ico-vic-carsim.service
+ install -m 0644 ico-vic-carsim.service ${D}${systemd_unitdir}/user/ico-vic-carsim.service
}
ico-vic-carsimulator_files += "${prefix}/bin/ico-vic-carsim"
ico-vic-carsimulator_files += "${prefix}/bin/*"
ico-vic-carsimulator_files += "${sysconfdir}/ico-vic-carsim/*"
-ico-vic-carsimulator_files += "/lib/systemd/user/ico-vic-carsim.service"
+ico-vic-carsimulator_files += "${systemd_unitdir}/user/ico-vic-carsim.service"
CONFFILES_${PN} = ""
CONFFILES_${PN} += "${sysconfdir}/ico-vic-carsim/*"
MANIFESTFILES_${PN} = "ico-vic-carsimulator.manifest"
-DTZ_SYS_DB=${prefix}/dbspace \
-DTZ_SYS_HOME=/home \
-DTZ_SYS_ETC=${sysconfdir} \
- -DSYSTEMD_UNIT_DIR=/lib/systemd/system
+ -DSYSTEMD_UNIT_DIR=${systemd_unitdir}/system
VERBOSE=1 oe_runmake -j16
find ${D} -regex ".*\.la$" | xargs rm -f --
find ${D} -regex ".*\.a$" | xargs rm -f --
mkdir -p ${D}${prefix}/share/privilege-control/
- mkdir -p ${D}/lib/systemd/system/multi-user.target.wants
- ln -sf /lib/systemd/system/smack-rules.service ${D}/lib/systemd/system/multi-user.target.wants/smack-rules.service
+ 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
libprivilege-control_files = ""
libprivilege-control_files += "${prefix}/lib/*.so.*"
libprivilege-control_files += "${prefix}/lib/librules-db-sql-udf.so"
-libprivilege-control_files += "/lib/systemd/system/smack-rules.service"
+libprivilege-control_files += "${systemd_unitdir}/system/smack-rules.service"
libprivilege-control_files += "${prefix}/bin/api_feature_loader"
-libprivilege-control_files += "/lib/systemd/system/multi-user.target.wants/smack-rules.service"
+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"
find ${D} -regex ".*\.la$" | xargs rm -f --
find ${D} -regex ".*\.a$" | xargs rm -f --
- mkdir -p ${D}/lib/systemd/system/multi-user.target.wants
- install -m 644 ${S}/packaging/media-server.service ${D}/lib/systemd/system/media-server.service
- ln -s ../media-server.service ${D}/lib/systemd/system/multi-user.target.wants/media-server.service
+ mkdir -p ${D}${systemd_unitdir}/system/multi-user.target.wants
+ install -m 644 ${S}/packaging/media-server.service ${D}${systemd_unitdir}/system/media-server.service
+ ln -s ../media-server.service ${D}${systemd_unitdir}/system/multi-user.target.wants/media-server.service
mkdir -p ${D}${prefix}/data/data-media/Camera
mkdir -p ${D}${prefix}/data/data-media/Downloads
mkdir -p ${D}${prefix}/data/data-media/Images
media-server_files += "${prefix}/bin/media-server"
media-server_files += "${prefix}/bin/media-scanner"
media-server_files += "${prefix}/bin/mediadb-update"
-media-server_files += "/lib/systemd/system/media-server.service"
-media-server_files += "/lib/systemd/system/multi-user.target.wants/media-server.service"
+media-server_files += "${systemd_unitdir}/system/media-server.service"
+media-server_files += "${systemd_unitdir}/system/multi-user.target.wants/media-server.service"
media-server_files += "${prefix}/bin/media-data-sdk_create_db.sh"
media-server_files += "${prefix}/data/data-media/*"
media-server_files += "${prefix}/data/data-media/file-manager-service/.thumb/*"
--enable-system-monitor \
"
+systemd_unitdir = "/usr/lib/systemd"
+
do_configure_append() {
./bootstrap
autotools_do_configure
do_install_append() {
# Remove unused directories and files
- rm -rf ${D}/lib/systemd/user
+ rm -rf ${D}${systemd_unitdir}/user
}
FILES_${PN}-dev += "${prefix}/lib/libmurphy-plugin-system-monitor.so"
cp resources/etc/dbus-1/system.d/net-config.conf ${D}${sysconfdir}/dbus-1/system.d/net-config.conf
# Systemd service file
- mkdir -p ${D}/lib/systemd/system
- cp resources/usr/lib/systemd/system/net-config.service ${D}/lib/systemd/system/net-config.service
- mkdir -p ${D}/lib/systemd/system/multi-user.target.wants/
- ln -s ../net-config.service ${D}/lib/systemd/system/multi-user.target.wants/net-config.service
+ mkdir -p ${D}${systemd_unitdir}/system
+ cp resources/usr/lib/systemd/system/net-config.service ${D}${systemd_unitdir}/system/net-config.service
+ mkdir -p ${D}${systemd_unitdir}/system/multi-user.target.wants/
+ ln -s ../net-config.service ${D}${systemd_unitdir}/system/multi-user.target.wants/net-config.service
#License
mkdir -p ${D}${prefix}/share/license
net-config_files += "${prefix}/sbin/*"
net-config_files += "${prefix}/share/dbus-1/system-services/*"
net-config_files += "${sysconfdir}/dbus-1/system.d/*"
-net-config_files += "/lib/systemd/system/net-config.service"
-net-config_files += "/lib/systemd/system/multi-user.target.wants/net-config.service"
+net-config_files += "${systemd_unitdir}/system/net-config.service"
+net-config_files += "${systemd_unitdir}/system/multi-user.target.wants/net-config.service"
net-config_files += "${prefix}/share/license/net-config"
MANIFESTFILES_${PN} = "net-config.manifest"
find ${D} -regex ".*\.a$" | xargs rm -f --
- mkdir -p ${D}//lib/systemd/system/../user/weston.target.wants
- ln -s ../phoned.service ${D}//lib/systemd/system/../user/weston.target.wants/phoned.service
+ mkdir -p ${D}/${systemd_unitdir}/system/../user/weston.target.wants
+ ln -s ../phoned.service ${D}/${systemd_unitdir}/system/../user/weston.target.wants/phoned.service
}
phoned_files += "${prefix}/lib/pkgconfig/phoned.pc"
phoned_files += "${prefix}/bin/phoned"
phoned_files += "${prefix}/share/dbus-1/services/org.tizen.phone.service"
-phoned_files += "/lib/systemd/user/phoned.service"
-phoned_files += "/lib/systemd/user/weston.target.wants/phoned.service"
+phoned_files += "${systemd_unitdir}/user/phoned.service"
+phoned_files += "${systemd_unitdir}/user/weston.target.wants/phoned.service"
FILES_${PN} = "${phoned_files}"
#find_lang rygel
# Systemd service file
- install -D -m 644 examples/service/systemd/rygel.service.tizen ${D}/lib/systemd/system/rygel.service
+ install -D -m 644 examples/service/systemd/rygel.service.tizen ${D}${systemd_unitdir}/system/rygel.service
#
- mkdir -p ${D}//lib/systemd/system/network.target.wants
- ln -s ../rygel.service ${D}//lib/systemd/system/network.target.wants/rygel.service
+ mkdir -p ${D}/${systemd_unitdir}/system/network.target.wants
+ ln -s ../rygel.service ${D}/${systemd_unitdir}/system/network.target.wants/rygel.service
rm -rf $RPM_BUILD_ROOT${prefix}/share/applications/*.desktop
rygel_files = ""
rygel_files += "/etc/rygel.conf"
-rygel_files += "/lib/systemd/system/rygel.service"
-rygel_files += "/lib/systemd/system/network.target.wants/rygel.service"
+rygel_files += "${systemd_unitdir}/system/rygel.service"
+rygel_files += "${systemd_unitdir}/system/network.target.wants/rygel.service"
rygel_files += "${prefix}/bin/rygel"
rygel_files += "${prefix}/share/dbus-1/services/org.gnome.Rygel1.service"
rygel_files += "${prefix}/share/icons/hicolor/128x128/apps/rygel.png"
${EXTRA_OECMAKE} . -DVERSION=0.1.1 \
-DCMAKE_BUILD_TYPE=RELEASE \
-DCMAKE_VERBOSE_MAKEFILE=ON \
- -DSYSTEMD_DIR=/lib/systemd/system
+ -DSYSTEMD_DIR=${systemd_unitdir}/system
oe_runmake -j16
find ${D} -regex ".*\.la$" | xargs rm -f --
find ${D} -regex ".*\.a$" | xargs rm -f --
- mkdir -p ${D}/lib/systemd/system/multi-user.target.wants
- mkdir -p ${D}/lib/systemd/system/sockets.target.wants
- ln -s ../security-server.service ${D}/lib/systemd/system/multi-user.target.wants/security-server.service
- ln -s ../security-server-data-share.socket ${D}/lib/systemd/system/sockets.target.wants/security-server-data-share.socket
- ln -s ../security-server-get-gid.socket ${D}/lib/systemd/system/sockets.target.wants/security-server-get-gid.socket
- ln -s ../security-server-privilege-by-pid.socket ${D}/lib/systemd/system/sockets.target.wants/security-server-privilege-by-pid.socket
- ln -s ../security-server-cookie-get.socket ${D}/lib/systemd/system/sockets.target.wants/security-server-cookie-get.socket
- ln -s ../security-server-cookie-check.socket ${D}/lib/systemd/system/sockets.target.wants/security-server-cookie-check.socket
- ln -s ../security-server-app-privilege-by-name.socket ${D}/lib/systemd/system/sockets.target.wants/security-server-app-privilege-by-name.socket
- ln -s ../security-server-password-check.socket ${D}/lib/systemd/system/sockets.target.wants/security-server-password-check.socket
- ln -s ../security-server-password-set.socket ${D}/lib/systemd/system/sockets.target.wants/security-server-password-set.socket
- ln -s ../security-server-password-reset.socket ${D}/lib/systemd/system/sockets.target.wants/security-server-password-reset.socket
+ 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
}
security-server_files = ""
security-server_files += "${prefix}/bin/security-server"
security-server_files += "${prefix}/lib/libsecurity-server-commons.so.*"
-security-server_files += "/lib/systemd/system/multi-user.target.wants/security-server.service"
-security-server_files += "/lib/systemd/system/security-server.service"
-security-server_files += "/lib/systemd/system/security-server.target"
-security-server_files += "/lib/systemd/system/sockets.target.wants/security-server-data-share.socket"
-security-server_files += "/lib/systemd/system/security-server-data-share.socket"
-security-server_files += "/lib/systemd/system/sockets.target.wants/security-server-get-gid.socket"
-security-server_files += "/lib/systemd/system/security-server-get-gid.socket"
-security-server_files += "/lib/systemd/system/sockets.target.wants/security-server-privilege-by-pid.socket"
-security-server_files += "/lib/systemd/system/security-server-privilege-by-pid.socket"
-security-server_files += "/lib/systemd/system/sockets.target.wants/security-server-cookie-get.socket"
-security-server_files += "/lib/systemd/system/security-server-cookie-get.socket"
-security-server_files += "/lib/systemd/system/sockets.target.wants/security-server-cookie-check.socket"
-security-server_files += "/lib/systemd/system/security-server-cookie-check.socket"
-security-server_files += "/lib/systemd/system/sockets.target.wants/security-server-app-privilege-by-name.socket"
-security-server_files += "/lib/systemd/system/security-server-app-privilege-by-name.socket"
+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 += "/lib/systemd/system/sockets.target.wants/security-server-password-check.socket"
-security-server_files += "/lib/systemd/system/security-server-password-check.socket"
-security-server_files += "/lib/systemd/system/sockets.target.wants/security-server-password-set.socket"
-security-server_files += "/lib/systemd/system/security-server-password-set.socket"
-security-server_files += "/lib/systemd/system/sockets.target.wants/security-server-password-reset.socket"
-security-server_files += "/lib/systemd/system/security-server-password-reset.socket"
+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"
}
-EXTRA_OECONF += " --with-systemdsystemunitdir=/lib/systemd/system"
+EXTRA_OECONF += " --with-systemdsystemunitdir=${systemd_unitdir}/system"
do_install() {
export RPM_BUILD_ROOT=${D}
-DBUILD_SHARED_LIBS:BOOL=ON \
${EXTRA_OECMAKE} . \
-DTZ_SYS_ETC=${sysconfdir} \
- -DSYSTEMD_DIR=/lib/systemd/system
+ -DSYSTEMD_DIR=${systemd_unitdir}/system
find ${D} -regex ".*\.a$" | xargs rm -f --
- mkdir -p ${D}//lib/systemd/system/multi-user.target.wants
- ln -s ../system-server.service ${D}//lib/systemd/system/multi-user.target.wants/system-server.service
+ mkdir -p ${D}/${systemd_unitdir}/system/multi-user.target.wants
+ ln -s ../system-server.service ${D}/${systemd_unitdir}/system/multi-user.target.wants/system-server.service
- mkdir -p ${D}//lib/systemd/system/sockets.target.wants
- ln -s ../system-server.socket ${D}//lib/systemd/system/sockets.target.wants/system-server.socket
+ mkdir -p ${D}/${systemd_unitdir}/system/sockets.target.wants
+ ln -s ../system-server.socket ${D}/${systemd_unitdir}/system/sockets.target.wants/system-server.socket
- mkdir -p ${D}//lib/systemd/system/graphical.target.wants
- ln -s ../regpmon.service ${D}//lib/systemd/system/graphical.target.wants/regpmon.service
- install -m 0644 ${S}/packaging/regpmon.service ${D}/lib/systemd/system/regpmon.service
+ mkdir -p ${D}/${systemd_unitdir}/system/graphical.target.wants
+ ln -s ../regpmon.service ${D}/${systemd_unitdir}/system/graphical.target.wants/regpmon.service
+ install -m 0644 ${S}/packaging/regpmon.service ${D}${systemd_unitdir}/system/regpmon.service
- mkdir -p ${D}//lib/systemd/system/graphical.target.wants
- ln -s ../zbooting-done.service ${D}//lib/systemd/system/graphical.target.wants/zbooting-done.service
- install -m 0644 ${S}/packaging/zbooting-done.service ${D}/lib/systemd/system/zbooting-done.service
+ mkdir -p ${D}/${systemd_unitdir}/system/graphical.target.wants
+ ln -s ../zbooting-done.service ${D}/${systemd_unitdir}/system/graphical.target.wants/zbooting-done.service
+ install -m 0644 ${S}/packaging/zbooting-done.service ${D}${systemd_unitdir}/system/zbooting-done.service
system-server_files += "${prefix}/bin/mmc-smack-label"
system-server_files += "${prefix}/bin/device-daemon"
system-server_files += "${prefix}/bin/fsck_msdosfs"
-system-server_files += "/lib/systemd/system/multi-user.target.wants/system-server.service"
-system-server_files += "/lib/systemd/system/graphical.target.wants/regpmon.service"
-system-server_files += "/lib/systemd/system/sockets.target.wants/system-server.socket"
-system-server_files += "/lib/systemd/system/system-server.service"
-system-server_files += "/lib/systemd/system/system-server.socket"
-system-server_files += "/lib/systemd/system/regpmon.service"
-system-server_files += "/lib/systemd/system/graphical.target.wants/zbooting-done.service"
-system-server_files += "/lib/systemd/system/zbooting-done.service"
+system-server_files += "${systemd_unitdir}/system/multi-user.target.wants/system-server.service"
+system-server_files += "${systemd_unitdir}/system/graphical.target.wants/regpmon.service"
+system-server_files += "${systemd_unitdir}/system/sockets.target.wants/system-server.socket"
+system-server_files += "${systemd_unitdir}/system/system-server.service"
+system-server_files += "${systemd_unitdir}/system/system-server.socket"
+system-server_files += "${systemd_unitdir}/system/regpmon.service"
+system-server_files += "${systemd_unitdir}/system/graphical.target.wants/zbooting-done.service"
+system-server_files += "${systemd_unitdir}/system/zbooting-done.service"
system-server_files += "${prefix}/share/system-server/sys_pci_noti/res/locale/*/LC_MESSAGES/*.mo"
system-server_files += "${prefix}/share/license/fsck_msdosfs"
CONFFILES_${PN} = ""
intltoolize --force --automake
autotools_do_configure
- oe_runmake -j16 systemunitdir=/lib/systemd/system userunitdir=/lib/systemd/user
+ oe_runmake -j16 systemunitdir=${systemd_unitdir}/system userunitdir=${systemd_unitdir}/user
inherit pkgconfig
do_install_append() {
- rm -f ${D}/lib/systemd/user/dbus.socket
+ rm -f ${D}${systemd_unitdir}/user/dbus.socket
- echo "[Unit]" > ${D}/lib/systemd/user/default.target
- echo "Description=User session default target" >> ${D}/lib/systemd/user/default.target
+ echo "[Unit]" > ${D}${systemd_unitdir}/user/default.target
+ echo "Description=User session default target" >> ${D}${systemd_unitdir}/user/default.target
- mkdir -p ${D}/lib/systemd/user/default.target.wants
- ln -sf ../dbus.service ${D}/lib/systemd/user/default.target.wants/dbus.service
- rm ${D}/lib/systemd/user/dbus.service
+ mkdir -p ${D}${systemd_unitdir}/user/default.target.wants
+ ln -sf ../dbus.service ${D}${systemd_unitdir}/user/default.target.wants/dbus.service
+ rm ${D}${systemd_unitdir}/user/dbus.service
- rm -f ${D}/lib/systemd/user/default.target
- ln -sf weston.target ${D}/lib/systemd/user/default.target
+ rm -f ${D}${systemd_unitdir}/user/default.target
+ ln -sf weston.target ${D}${systemd_unitdir}/user/default.target
}
-user-session-units_files += "/lib/systemd/user/*"
+user-session-units_files += "${systemd_unitdir}/user/*"
PACKAGES += " user-session-units-gnome "
user-session-units-enlightenment_files = ""
-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-enlightenment_files += "${systemd_unitdir}/user/e17.target"
+user-session-units-enlightenment_files += "${systemd_unitdir}/user/enlightenment.service"
+user-session-units-enlightenment_files += "${systemd_unitdir}/user/e17.target.wants/enlightenment.service"
MANIFESTFILES_${PN}-enlightenment = "user-session-units.manifest"
user-session-units_files = ""
user-session-units_files += "${prefix}/bin/user-session-launch"
-user-session-units_files += "/lib/systemd/system/*"
+user-session-units_files += "${systemd_unitdir}/system/*"
user-session-units_files += "${sysconfdir}/pam.d/user-session"
CONFFILES_${PN} = ""
CONFFILES_${PN} += "${sysconfdir}/pam.d/user-session"
MANIFESTFILES_${PN} = "user-session-units.manifest"
user-session-units-gnome_files = ""
-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"
+user-session-units-gnome_files += "${systemd_unitdir}/user/gnome.target"
+user-session-units-gnome_files += "${systemd_unitdir}/user/gnome-session.service"
+user-session-units-gnome_files += "${systemd_unitdir}/user/gnome.target.wants/gnome-session.service"
MANIFESTFILES_${PN}-gnome = "user-session-units.manifest"
FILES_${PN}-enlightenment = "${user-session-units-enlightenment_files}"
find ${D} -regex ".*\.a$" | xargs rm -f --
mkdir -p ${D}${prefix}/kdb/db
mkdir -p ${D}${prefix}/kdb/db/.backup
- mkdir -p ${D}/lib/systemd/system/basic.target.wants
+ mkdir -p ${D}${systemd_unitdir}/system/basic.target.wants
mkdir -p ${D}${prefix}/lib/tmpfiles.d
- install -m0644 ${S}/packaging/vconf-setup.service ${D}/lib/systemd/system/
+ install -m0644 ${S}/packaging/vconf-setup.service ${D}${systemd_unitdir}/system/
install -m0644 ${S}/packaging/vconf-setup.conf ${D}${prefix}/lib/tmpfiles.d/
- ln -sf ../vconf-setup.service ${D}/lib/systemd/system/basic.target.wants/
+ ln -sf ../vconf-setup.service ${D}${systemd_unitdir}/system/basic.target.wants/
}
vconf_files += "${prefix}/lib/*.so.*"
vconf_files += "%attr(777,root,users) ${prefix}/kdb/db"
vconf_files += "%attr(777,root,root) ${prefix}/kdb/db/.backup"
-vconf_files += "/lib/systemd/system/basic.target.wants/vconf-setup.service"
-vconf_files += "/lib/systemd/system/vconf-setup.service"
+vconf_files += "${systemd_unitdir}/system/basic.target.wants/vconf-setup.service"
+vconf_files += "${systemd_unitdir}/system/vconf-setup.service"
vconf_files += "${prefix}/lib/tmpfiles.d/vconf-setup.conf"
MANIFESTFILES_${PN} = "vconf.manifest"
DIRFILES_${PN} = ""
find ${D} -regex ".*\.a$" | xargs rm -f --
# install weston service as 'display-manager.service' as it's the one wanted by graphical.target
- mkdir -p ${D}/lib/systemd/system
- install -m 644 display-manager-run.service ${D}/lib/systemd/system/display-manager-run.service
- install -m 644 display-manager.service ${D}/lib/systemd/system/display-manager.service
- install -m 644 display-manager.path ${D}/lib/systemd/system/display-manager.path
+ mkdir -p ${D}${systemd_unitdir}/system
+ install -m 644 display-manager-run.service ${D}${systemd_unitdir}/system/display-manager-run.service
+ install -m 644 display-manager.service ${D}${systemd_unitdir}/system/display-manager.service
+ install -m 644 display-manager.path ${D}${systemd_unitdir}/system/display-manager.path
# install Environment file for weston service and weston-user.service
mkdir -p ${D}${sysconfdir}/sysconfig
install -m 0644 weston_tmpfiles.conf ${D}${prefix}/lib/tmpfiles.d/weston.conf
# install weston-user service in user session
- mkdir -p ${D}/lib/systemd/user
- install -m 644 weston-user.service ${D}/lib/systemd/user/
+ mkdir -p ${D}${systemd_unitdir}/user
+ install -m 644 weston-user.service ${D}${systemd_unitdir}/user/
# install weston.sh
mkdir -p ${D}${sysconfdir}/profile.d/
groupmod -A display input
groupmod -A display video
# setup display manager service
- mkdir -p /lib/systemd/system/graphical.target.wants/
- ln -sf ../display-manager.path /lib/systemd/system/graphical.target.wants/
+ mkdir -p ${systemd_unitdir}/system/graphical.target.wants/
+ ln -sf ../display-manager.path ${systemd_unitdir}/system/graphical.target.wants/
# setup display manager access (inside user session)
- mkdir -p /lib/systemd/user/default.target.requires/
- ln -sf ../weston-user.service /lib/systemd/user/default.target.requires/
+ mkdir -p ${systemd_unitdir}/user/default.target.requires/
+ ln -sf ../weston-user.service ${systemd_unitdir}/user/default.target.requires/
}
pkg_postrm_${PN}() {
#!/bin/sh -e
- rm -f /lib/systemd/system/graphical.target.wants/display-manager.path
- rm -f /lib/systemd/user/default.target.requires/weston-user.service
+ rm -f ${systemd_unitdir}/system/graphical.target.wants/display-manager.path
+ rm -f ${systemd_unitdir}/user/default.target.requires/weston-user.service
}
MANIFESTFILES_${PN}-tz-launcher = "weston-common.manifest"
weston-common_files = ""
-weston-common_files += "/lib/systemd/system/display-manager-run.service"
-weston-common_files += "/lib/systemd/system/display-manager.service"
-weston-common_files += "/lib/systemd/system/display-manager.path"
+weston-common_files += "${systemd_unitdir}/system/display-manager-run.service"
+weston-common_files += "${systemd_unitdir}/system/display-manager.service"
+weston-common_files += "${systemd_unitdir}/system/display-manager.path"
weston-common_files += "${sysconfdir}/sysconfig/*"
weston-common_files += "${prefix}/lib/tmpfiles.d/weston.conf"
-weston-common_files += "/lib/systemd/user/weston-user.service"
+weston-common_files += "${systemd_unitdir}/user/weston-user.service"
weston-common_files += "${sysconfdir}/profile.d/*"
weston-common_files += "${sysconfdir}/udev/rules.d/*"
weston-common_files += "${prefix}/share/applications/*.desktop"
mkdir -p ${D}
- install -d ${D}/lib/systemd/user/weston.target.wants
- install -m 644 weston.service ${D}/lib/systemd/user/weston.service
- ln -sf ../weston.service ${D}//lib/systemd/user/weston.target.wants/
+ install -d ${D}${systemd_unitdir}/user/weston.target.wants
+ install -m 644 weston.service ${D}${systemd_unitdir}/user/weston.service
+ ln -sf ../weston.service ${D}/${systemd_unitdir}/user/weston.target.wants/
mkdir -p ${D}${sysconfdir}/profile.d/
install -m 0644 weston.sh ${D}${sysconfdir}/profile.d/
MANIFESTFILES_${PN}-config = "weston-ivi.manifest"
weston-ivi_files = ""
-weston-ivi_files += "/lib/systemd/user/weston.service"
-weston-ivi_files += "/lib/systemd/user/weston.target.wants/weston.service"
+weston-ivi_files += "${systemd_unitdir}/user/weston.service"
+weston-ivi_files += "${systemd_unitdir}/user/weston.target.wants/weston.service"
weston-ivi_files += "${sysconfdir}/profile.d/*"
CONFFILES_${PN} = ""
CONFFILES_${PN} += "${sysconfdir}/profile.d/*"
install -m 755 weston-fullscreen ${D}${prefix}/bin
- install -d ${D}/lib/systemd/user
- install -m 644 ${S}/packaging/weston.target ${D}/lib/systemd/user/weston.target
+ install -d ${D}${systemd_unitdir}/user
+ install -m 644 ${S}/packaging/weston.target ${D}${systemd_unitdir}/user/weston.target
# The weston.service unit file must be provided by the weston-startup
# virtual package, i.e. "Provide: weston-startup". The weston-startup
# virtual package requirement is intended to force Tizen profile
weston_files += "${prefix}/lib/weston/wayland-backend.so"
weston_files += "${prefix}/lib/weston/gl-renderer.so"
weston_files += "${prefix}/share/weston"
-weston_files += "/lib/systemd/user/weston.target"
+weston_files += "${systemd_unitdir}/user/weston.target"
MANIFESTFILES_${PN} = "weston.manifest"
weston-clients_files = ""
cp install.conf ${D}/${prefix}/share/widget_demo/
# install xwalk preinstall service in user session
- mkdir -p ${D}/lib/systemd/user
- install -m 644 xwalk_widgets_preinstall.service ${D}/lib/systemd/user/
+ mkdir -p ${D}${systemd_unitdir}/user
+ install -m 644 xwalk_widgets_preinstall.service ${D}${systemd_unitdir}/user/
}
#!/bin/sh -e
# setup xwalk preinstall service (inside user session)
- mkdir -p /lib/systemd/user/default.target.wants/
- ln -sf ../xwalk_widgets_preinstall.service /lib/systemd/user/default.target.wants/
+ mkdir -p ${systemd_unitdir}/user/default.target.wants/
+ ln -sf ../xwalk_widgets_preinstall.service ${systemd_unitdir}/user/default.target.wants/
}
pkg_postrm_${PN}() {
#!/bin/sh -e
- rm -f /lib/systemd/user/default.target.wants/xwalk_widgets_preinstall.service
+ rm -f ${systemd_unitdir}/user/default.target.wants/xwalk_widgets_preinstall.service
}
wrt-widgets_files += "${prefix}/share/widget_demo/*"
wrt-widgets_files += "${prefix}/bin/install_widgets.sh"
wrt-widgets_files += "${prefix}/bin/prepare_widgets.sh"
-wrt-widgets_files += "/lib/systemd/user/xwalk_widgets_preinstall.service"
+wrt-widgets_files += "${systemd_unitdir}/user/xwalk_widgets_preinstall.service"
MANIFESTFILES_${PN} = "wrt-widgets.manifest"
FILES_${PN} = "${wrt-widgets_files}"