SCRIPT_IN_FILES = \
notifications.service.in \
- notifications-display.service.in
+ notifications-display.service.in \
+ notifications-display-ivi.service.in
install-data-hook:
$(mkinstalldirs) $(DESTDIR)/usr/lib/systemd/system/
install -m 0644 notifications.service $(DESTDIR)/usr/lib/systemd/system/notifications.service
- install -m 0644 notifications-display.service $(DESTDIR)/usr/lib/systemd/system/notifications-display.service
+ install -m 0644 $(notif_display_service) $(DESTDIR)/usr/lib/systemd/system/notifications-display.service
AC_CHECK_LIB([dl], [dlopen], DLOPEN_LIBS="-ldl"))
AC_SUBST(DLOPEN_LIBS)
+AC_ARG_WITH(notif-display-service, AS_HELP_STRING([--with-notif-display-service=],[]),,
+ with_notif_display_service="notifications-display.service")
+notif_display_service=$with_notif_display_service
+AC_SUBST(notif_display_service)
+
PKG_CHECK_MODULES([TIZEN], [eina ecore com-core notification dbus-1 bluetooth-api dlog libwlmessage])
AC_SUBST(TIZEN_CFLAGS)
AC_SUBST(TIZEN_LIBS)
-AC_CONFIG_FILES([Makefile plugins/Makefile notifications.service notifications-display.service])
+AC_CONFIG_FILES([Makefile plugins/Makefile notifications.service notifications-display.service notifications-display-ivi.service])
AC_PROG_RANLIB([ranlib])
AC_OUTPUT
--- /dev/null
+[Unit]
+Description=Notifications Popup daemon
+Requires=notifications.service
+After=notifications.service
+
+[Service]
+ExecStart=/usr/bin/notification-display-service
+Environment=XDG_RUNTIME_DIR=/run/user/5000
+
+[Install]
+WantedBy=graphical.target
%setup -q -n %{name}-%{version}
%build
-%autogen
+%if "%{profile}" == "ivi"
+notifications_display_service="notifications-display-ivi.service"
+%else
+notifications_display_service="notifications-display.service"
+%endif
+
+%autogen --with-notif-display-service=$notifications_display_service
make %{?_smp_mflags}
+
%install
%make_install
%install_service graphical.target.wants notifications.service