From 6b8f258190d77f77efd236cea9a8709db4665f65 Mon Sep 17 00:00:00 2001 From: "Graydon, Tracy" Date: Thu, 13 Sep 2012 13:18:19 -0700 Subject: [PATCH] fix the spec --- packaging/ofono.spec | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/packaging/ofono.spec b/packaging/ofono.spec index 13aec3d..dd77df3 100644 --- a/packaging/ofono.spec +++ b/packaging/ofono.spec @@ -62,13 +62,15 @@ make %{?jobs:-j%jobs} mkdir -p %{buildroot}/usr/lib/systemd/system/network.target.wants ln -s ../ofono.service %{buildroot}/usr/lib/systemd/system/network.target.wants/ofono.service -mkdir -p %{buildroot}/etc/rc.d/init.d -cp %{SOURCE1} %{buildroot}/etc/rc.d/init.d/ofono -chmod +x %{buildroot}/etc/rc.d/init.d/ofono - %post -ln -sf ../init.d/ofono /etc/rc.d/rc3.d/S61ofono -ln -sf ../init.d/ofono /etc/rc.d/rc5.d/S61ofono +systemctl daemon-reload +systemctl restart ofono.service + +%preun +systemctl stop ofono.service + +%postun +systemctl daemon-reload %docs_package @@ -78,7 +80,6 @@ ln -sf ../init.d/ofono /etc/rc.d/rc5.d/S61ofono /usr/lib/systemd/system/network.target.wants/ofono.service /usr/lib/systemd/system/ofono.service /etc/ofono/phonesim.conf -/etc/rc.d/init.d/* %files devel %{_includedir}/ofono/*.h -- 2.7.4