From: Jacek Migacz Date: Tue, 20 Nov 2012 09:54:00 +0000 (+0100) Subject: Add systemd support scripts. X-Git-Tag: 2.1_release^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=364de7f4e60b16482f12060943e107c5695d6687;p=framework%2Fsecurity%2Fsmack.git Add systemd support scripts. Signed-off-by: Jacek Migacz Signed-off-by: Karol Lewandowski Change-Id: I46656005d1ed82b53d2faa304bcfe647532f082a --- diff --git a/init/smack.mount b/init/smack.mount index 2a81668..de9ae3c 100644 --- a/init/smack.mount +++ b/init/smack.mount @@ -1,6 +1,5 @@ [Unit] Description=Smack filesystem mounting -WantedBy=local-fs.target [Mount] What=smackfs diff --git a/packaging/smack.spec b/packaging/smack.spec index 69d47de..b1c0c27 100644 --- a/packaging/smack.spec +++ b/packaging/smack.spec @@ -1,5 +1,5 @@ Name: smack -Version: 1.0slp2+s7 +Version: 1.0slp2+s8 Release: 1 Summary: Package to interact with Smack Group: System/Kernel @@ -34,7 +34,7 @@ Tools provided to load and unload rules from the kernel and query the policy autoreconf --install --symlink %build -%configure +%configure --with-systemdsystemunitdir=%{_libdir}/systemd/system make %{?_smp_mflags} %install @@ -50,6 +50,10 @@ install -D init/smack.rc %{buildroot}/etc/init.d/smack-utils ln -sf /opt/etc/smack %{buildroot}/etc/ ln -sf /etc/init.d/smack-utils %{buildroot}/etc/rc.d/rc3.d/S01smack ln -sf /etc/init.d/smack-utils %{buildroot}/etc/rc.d/rc4.d/S01smack +install -D -d %{buildroot}%{_libdir}/systemd/system/local-fs.target.wants +install -D -d %{buildroot}%{_libdir}/systemd/system/basic.target.wants +ln -sf ../%{name}.mount %{buildroot}%{_libdir}/systemd/system/local-fs.target.wants/ +ln -sf ../%{name}.service %{buildroot}%{_libdir}/systemd/system/basic.target.wants/ rm -rf %{buildroot}/%{_docdir} %clean @@ -77,12 +81,19 @@ rm -rf %{buildroot} %attr(755,root,root) /etc/init.d/smack-utils /etc/smack /etc/rc.d/* +%{_libdir}/systemd/system/%{name}.mount +%{_libdir}/systemd/system/local-fs.target.wants/%{name}.mount +%{_libdir}/systemd/system/%{name}.service +%{_libdir}/systemd/system/basic.target.wants/%{name}.service /opt/etc/* /smack/ %{_mandir}/man1/* %{_mandir}/man8/* %changelog +* Wed Dec 10 2012 Jacek Migacz - 1.0slp2+s8 +- Add systemd support scripts. + * Mon Nov 26 2012 Kidong Kim - 1.0slp2+s7 - fix initialization script order : S07 -> S01