summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehyun Kim <jeik01.kim@samsung.com>2020-06-24 15:27:40 +0900
committerJaehyun Kim <jeik01.kim@samsung.com>2020-06-24 15:27:40 +0900
commitf8475e05aab8b64c6779fd4237dceb074b4208d6 (patch)
tree3b6d62ece9fe64685201bec9a837e81f9ee7e517
parent223b3849e11ed411895f574d3f3a3a08c2ec78ce (diff)
downloadconnman-f8475e05aab8b64c6779fd4237dceb074b4208d6.tar.gz
connman-f8475e05aab8b64c6779fd4237dceb074b4208d6.tar.bz2
connman-f8475e05aab8b64c6779fd4237dceb074b4208d6.zip
Change the service file path for 64bit buildsubmit/tizen/20200624.065138accepted/tizen/unified/20200626.133553
Change-Id: I4ae421d7428aa3d0a70f1c66fef736b5710739b2 Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
-rw-r--r--packaging/connman.spec35
1 files changed, 2 insertions, 33 deletions
diff --git a/packaging/connman.spec b/packaging/connman.spec
index f1385eda..275161f3 100644
--- a/packaging/connman.spec
+++ b/packaging/connman.spec
@@ -171,7 +171,7 @@ chmod +x bootstrap
--enable-test \
--enable-loopback \
--enable-ethernet \
- --with-systemdunitdir=%{_libdir}/systemd/system \
+ --with-systemdunitdir=%{_unitdir} \
--enable-pie \
--disable-wispr \
--disable-backtrace \
@@ -183,36 +183,19 @@ make %{?_smp_mflags}
%make_install
#Systemd service file
-mkdir -p %{buildroot}%{_libdir}/systemd/system/
-%if "%{?_lib}" == "lib64"
mkdir -p %{buildroot}%{_unitdir}
-%endif
-%if "%{?_lib}" == "lib64"
cp src/connman_tv.service %{buildroot}%{_unitdir}/connman.service.tv
cp src/connman.service %{buildroot}%{_unitdir}/connman.service
cp vpn/connman-vpn.service %{buildroot}%{_unitdir}/connman-vpn.service
-%else
-cp src/connman_tv.service %{buildroot}%{_libdir}/systemd/system/connman.service.tv
-%endif
-mkdir -p %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants
-ln -s ../connman.service %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants/connman.service
-%if "%{?_lib}" == "lib64"
mkdir -p %{buildroot}%{_unitdir}/multi-user.target.wants
ln -s ../connman.service %{buildroot}%{_unitdir}/multi-user.target.wants/connman.service
-%endif
#Systemd socket file for DNS proxy
-%if "%{?_lib}" == "lib64"
cp src/connman.socket %{buildroot}%{_unitdir}/connman.socket
mkdir -p %{buildroot}%{_unitdir}/sockets.target.wants
ln -s ../connman.socket %{buildroot}%{_unitdir}/sockets.target.wants/connman.socket
-%else
-cp src/connman.socket %{buildroot}%{_libdir}/systemd/system/connman.socket
-mkdir -p %{buildroot}%{_libdir}/systemd/system/sockets.target.wants
-ln -s ../connman.socket %{buildroot}%{_libdir}/systemd/system/sockets.target.wants/connman.socket
-%endif
mkdir -p %{buildroot}/%{_localstatedir}/lib/connman
cp resources/var/lib/connman/settings %{buildroot}/%{_localstatedir}/lib/connman/settings
@@ -254,17 +237,10 @@ systemctl daemon-reload
%attr(644,root,root) %{_sysconfdir}/dbus-1/system.d/*
%attr(644,network_fw,network_fw) %{_sysconfdir}/connman/main.conf
%attr(644,root,root) %{_sysconfdir}/dbus-1/system.d/*.conf
-%attr(644,root,root) %{_libdir}/systemd/system/connman.service
-%attr(644,root,root) %{_libdir}/systemd/system/multi-user.target.wants/connman.service
-%if "%{?_lib}" == "lib64"
%attr(644,root,root) %{_unitdir}/connman.service
%attr(644,root,root) %{_unitdir}/multi-user.target.wants/connman.service
%attr(644,root,root) %{_unitdir}/connman.socket
%attr(644,root,root) %{_unitdir}/sockets.target.wants/connman.socket
-%else
-%attr(644,root,root) %{_libdir}/systemd/system/connman.socket
-%attr(644,root,root) %{_libdir}/systemd/system/sockets.target.wants/connman.socket
-%endif
%license COPYING
%files test
@@ -310,23 +286,16 @@ systemctl daemon-reload
%attr(644,root,root) %config %{_sysconfdir}/dbus-1/system.d/connman-vpn-dbus.conf
%{_datadir}/dbus-1/system-services/net.connman.vpn.service
%license COPYING
-%attr(644,root,root) %{_libdir}/systemd/system/connman-vpn.service
-%if "%{?_lib}" == "lib64"
%attr(644,root,root) %{_unitdir}/connman-vpn.service
%endif
-%endif
%post extension-tv
-mv -f %{_libdir}/systemd/system/connman.service.tv %{_libdir}/systemd/system/connman.service
+mv -f %{_unitdir}/connman.service.tv %{_unitdir}/connman.service
mv -f %{_sysconfdir}/connman/main.conf.tv %{_sysconfdir}/connman/main.conf
%files extension-tv
%attr(644,network_fw,network_fw) %{_sysconfdir}/connman/main.conf.tv
%license COPYING
-%if "%{?_lib}" == "lib64"
%attr(644,root,root) %{_unitdir}/connman.service.tv
-%else
-%attr(644,root,root) %{_libdir}/systemd/system/connman.service.tv
-%endif
%post extension-ivi
mv -f %{_sysconfdir}/connman/main.conf.ivi %{_sysconfdir}/connman/main.conf
%files extension-ivi