ADD_SUBDIRECTORY(plugins/mobile/battery)
ADD_SUBDIRECTORY(plugins/wearable/battery)
ENDIF()
+ADD_SUBDIRECTORY(isu)
INSTALL_CONF(conf display-profile-mobile)
INSTALL_CONF(conf display-profile-wearable)
--- /dev/null
+CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+PROJECT(ISU C)
+
+INSTALL(FILES isu.cfg DESTINATION /etc/isu/deviced/ PERMISSIONS OWNER_WRITE OWNER_READ)
+INSTALL(FILES deviced.service DESTINATION /etc/isu/deviced/system-services/ PERMISSIONS OWNER_WRITE OWNER_READ)
--- /dev/null
+[Unit]
+Description=System device daemon
+
+# Caution: never uncomment below "Wants=" and "After=" entries.
+# Just information, deviced internally wait for /run/.wm_ready
+# Wants=display-manager.service
+# After=display-manager.service
+
+[Service]
+Type=notify
+NotifyAccess=all
+SmackProcessLabel=System::Privileged
+Environment=XDG_RUNTIME_DIR=/run
+Environment=LD_LIBRARY_PATH=/run/isu/deviced/rootfs/usr/lib/
+EnvironmentFile=/etc/isu/service-common.inc
+ExecStart=/bin/isu-sandbox $ISU_SANDBOX_INVOCATION \
+ --bind #ISU_RUN_PATH#/deviced/rootfs #ISU_RUN_PATH#/deviced/rootfs/ \
+ --bind #ISU_RUN_PATH#/deviced/rootfs/usr/bin/deviced /usr/bin/deviced \
+ /usr/bin/deviced
+Restart=on-failure
+RestartSec=0
+KillSignal=SIGUSR1
+
+[Install]
+WantedBy=multi-user.target
--- /dev/null
+[isu]
+name=#NAME#
+version=#VERSION#
+system_service=deviced.service
+
+[files]
+/usr/bin/deviced
+
BuildRequires: pkgconfig(cmocka)
Requires: %{name}-tools = %{version}-%{release}
+Requires: %{name}-isu = %{version}-%{release}
%{?systemd_requires}
Requires(post): /usr/bin/vconftool
Requires(post): %{_sbindir}/update-alternatives
%description plugin-profile-iot-headless
Plugin libraries for IoT headless devices
+%isu_package
+
%prep
%setup -q