From 0ef3854dda8d7a2dc3c9746cf6e535e7ec950596 Mon Sep 17 00:00:00 2001 From: Chengwei Yang Date: Sat, 21 Sep 2013 16:26:09 +0800 Subject: [PATCH] Make systemd unit file as part of source code systemd unit file is part of source code rather than a part of Tizen packaging system. Change-Id: I248221eaa6b663182bf5923eb5cdee82319cf864 Signed-off-by: Chengwei Yang --- Makefile.am | 8 ++++++++ packaging/isf.changes | 3 +++ packaging/isf.spec | 5 ----- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Makefile.am b/Makefile.am index f10ac34..3609718 100644 --- a/Makefile.am +++ b/Makefile.am @@ -62,6 +62,10 @@ ugxml_DATA = ug-isfsetting-efl.xml ugsmackdir = /etc/smack/accesses2.d/ ugsmack_DATA = ug.isfsetting-efl.include +# $(libdir) will be /usr/lib64 on x86_64 arch, so hard-coded. +systemduserunitdir = /usr/lib/systemd/user +systemduserunit_DATA = scim.service + ACLOCAL_AMFLAGS = -I ism/m4 .PHONY: update-ChangeLog @@ -71,3 +75,7 @@ update-ChangeLog: uninstall-local: rm -rf @SCIM_MODULE_PATH@ + +install-data-hook: + $(mkinstalldirs) $(DESTDIR)$(systemduserunitdir)/core-efl.target.wants + ln -sf ../scim.service $(DESTDIR)$(systemduserunitdir)/core-efl.target.wants/scim.service diff --git a/packaging/isf.changes b/packaging/isf.changes index 384bfd0..09ea966 100644 --- a/packaging/isf.changes +++ b/packaging/isf.changes @@ -1,3 +1,6 @@ +* Thu Sep 19 2013 Chengwei yang +- Now systemd unit file is part of source code + * Wed Sep 18 2013 Chengwei yang - Fix activate scim.service failed diff --git a/packaging/isf.spec b/packaging/isf.spec index 3770683..ca3d066 100644 --- a/packaging/isf.spec +++ b/packaging/isf.spec @@ -8,7 +8,6 @@ Release: 1 Group: System Environment/Libraries License: LGPL Source0: %{name}-%{version}.tar.gz -Source1: scim.service BuildRequires: edje-bin BuildRequires: embryo-bin BuildRequires: gettext-tools @@ -66,10 +65,6 @@ rm -rf %{buildroot} mkdir -p %{buildroot}%{_datadir}/license install -m0644 %{_builddir}/%{buildsubdir}/COPYING %{buildroot}%{_datadir}/license/%{name} -install -d %{buildroot}%{_libdir}/systemd/user/core-efl.target.wants -install -m0644 %{SOURCE1} %{buildroot}%{_libdir}/systemd/user/ -ln -sf ../scim.service %{buildroot}%{_libdir}/systemd/user/core-efl.target.wants/scim.service - %post /sbin/ldconfig mkdir -p /etc/scim/conf -- 2.7.4