X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=packaging%2Fbluetooth-tools.spec;h=52605b5030c67ca71b12ede047658b56b19312d5;hb=402ce23bef7b20fde5a45d81bcee8c096841d1eb;hp=6facd2b4e40b4c6c2af9e06ba2d16fee49d04b69;hpb=13b99b242a6e50fe69f92689e851feb14e68f285;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-tools.git diff --git a/packaging/bluetooth-tools.spec b/packaging/bluetooth-tools.spec index 6facd2b..52605b5 100644 --- a/packaging/bluetooth-tools.spec +++ b/packaging/bluetooth-tools.spec @@ -91,67 +91,34 @@ mkdir -p %{buildroot}/run/bluetooth install -m 0755 scripts/bt-dev-start.sh %{buildroot}%{_prefix}/etc/bluetooth/bt-dev-start.sh install -m 0755 scripts/bt-dev-end.sh %{buildroot}%{_prefix}/etc/bluetooth/bt-dev-end.sh -install -D -m 0644 packaging/bluetooth-hci-logger.service %{buildroot}%{_libdir}/systemd/system/bluetooth-hci-logger.service -install -D -m 0644 packaging/bluetooth-hci-logger.path %{buildroot}%{_libdir}/systemd/system/bluetooth-hci-logger.path - -install -D -m 0644 packaging/bluetooth-hci-logger-stop.service %{buildroot}%{_libdir}/systemd/system/bluetooth-hci-logger-stop.service -install -D -m 0644 packaging/bluetooth-hci-logger-stop.path %{buildroot}%{_libdir}/systemd/system/bluetooth-hci-logger-stop.path - install -D -m 0644 packaging/bluez-start.service %{buildroot}%{_libdir}/systemd/system/bluez-start.service -install -D -m 0644 packaging/bluez-start.path %{buildroot}%{_libdir}/systemd/system/bluez-start.path -install -D -m 0644 packaging/bluetooth-share-start.service %{buildroot}%{_libdir}/systemd/system/bluetooth-share-start.service -install -D -m 0644 packaging/bluetooth-share-start.path %{buildroot}%{_libdir}/systemd/system/bluetooth-share-start.path +install -D -m 0644 packaging/bluetooth-stack-up.service %{buildroot}%{_libdir}/systemd/system/bluetooth-stack-up.service -install -D -m 0644 packaging/bluetooth-force-hci-logger.service %{buildroot}%{_libdir}/systemd/system/bluetooth-force-hci-logger.service -install -D -m 0644 packaging/bluetooth-hci-dump@.service %{buildroot}%{_libdir}/systemd/system/bluetooth-hci-dump@.service - -%post -mkdir -p %{_sysconfdir}/systemd/default-extra-dependencies/ignore-units.d/ -ln -sf %{_libdir}/systemd/system/bluetooth-hci-logger.service %{_sysconfdir}/systemd/default-extra-dependencies/ignore-units.d/ -ln -sf %{_libdir}/systemd/system/bluetooth-hci-logger.path %{_libdir}/systemd/system/multi-user.target.wants/bluetooth-hci-logger.path -ln -sf %{_libdir}/systemd/system/bluetooth-hci-logger.path %{_sysconfdir}/systemd/default-extra-dependencies/ignore-units.d/ +install -D -m 0644 packaging/bluetooth-stack-down.service %{buildroot}%{_libdir}/systemd/system/bluetooth-stack-down.service -ln -sf %{_libdir}/systemd/system/bluetooth-hci-logger-stop.service %{_sysconfdir}/systemd/default-extra-dependencies/ignore-units.d/ -ln -sf %{_libdir}/systemd/system/bluetooth-hci-logger-stop.path %{_libdir}/systemd/system/multi-user.target.wants/bluetooth-hci-logger-stop.path -ln -sf %{_libdir}/systemd/system/bluetooth-hci-logger-stop.path %{_sysconfdir}/systemd/default-extra-dependencies/ignore-units.d/ +install -D -m 0644 packaging/bluetooth-stack-down-with-radio.service %{buildroot}%{_libdir}/systemd/system/bluetooth-stack-down-with-radio.service -ln -sf %{_libdir}/systemd/system/bluez-start.service %{_sysconfdir}/systemd/default-extra-dependencies/ignore-units.d/ -ln -sf %{_libdir}/systemd/system/bluez-start.path %{_libdir}/systemd/system/multi-user.target.wants/bluez-start.path -ln -sf %{_libdir}/systemd/system/bluez-start.path %{_sysconfdir}/systemd/default-extra-dependencies/ignore-units.d/ +#install -D -m 0644 packaging/bluetooth-force-hci-logger.service %{buildroot}%{_libdir}/systemd/system/bluetooth-force-hci-logger.service +#install -D -m 0644 packaging/bluetooth-hci-dump@.service %{buildroot}%{_libdir}/systemd/system/bluetooth-hci-dump@.service -ln -sf %{_libdir}/systemd/system/bluetooth-share-start.service %{_sysconfdir}/systemd/default-extra-dependencies/ignore-units.d/ -ln -sf %{_libdir}/systemd/system/bluetooth-share-start.path %{_libdir}/systemd/system/multi-user.target.wants/bluetooth-share-start.path -ln -sf %{_libdir}/systemd/system/bluetooth-share-start.path %{_sysconfdir}/systemd/default-extra-dependencies/ignore-units.d/ +install -D -m 0644 packaging/bluetooth-hci-up.service %{buildroot}%{_libdir}/systemd/system/bluetooth-hci-up.service +install -D -m 0644 packaging/bluetooth-hci-down.service %{buildroot}%{_libdir}/systemd/system/bluetooth-hci-down.service -ln -sf %{_libdir}/systemd/system/bluetooth-force-hci-logger.service %{_sysconfdir}/systemd/default-extra-dependencies/ignore-units.d/ +install -D -m 0644 packaging/bluetooth-stack-up-common.service %{buildroot}%{_libdir}/systemd/system/bluetooth-stack-up-common.service +install -D -m 0644 packaging/bluetooth-stack-down-common.service %{buildroot}%{_libdir}/systemd/system/bluetooth-stack-down-common.service +%post +mkdir -p %{_libdir}/systemd/system/multi-user.target.wants/ %files %manifest %{name}.manifest %license LICENSE.APLv2 %defattr(-,root,root,-) -#%exclude %{_sysconfdir}/rc.d/init.d/bluetooth-address -#%{_sysconfdir}/rc.d/rc3.d/S60bluetooth-address -#%{_sysconfdir}/rc.d/rc5.d/S60bluetooth-address %attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-edutm-on.sh %attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-edutm-dev-up.sh %attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-edutm-mode-on.sh %attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-edutm-off.sh -%attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-hci-logdump.sh -%attr(0755,-,-) %{_prefix}/etc/bluetooth/bt-run-hci-logger.sh -#%{_unitdir}/multi-user.target.wants/bluetooth-address.service -#%{_unitdir}/bluetooth-address.service -%{_libdir}/systemd/system/bluetooth-hci-logger.service -%{_libdir}/systemd/system/bluetooth-hci-logger.path -%{_libdir}/systemd/system/bluetooth-hci-logger-stop.service -%{_libdir}/systemd/system/bluetooth-hci-logger-stop.path -%{_libdir}/systemd/system/bluez-start.service -%{_libdir}/systemd/system/bluez-start.path -%{_libdir}/systemd/system/bluetooth-share-start.service -%{_libdir}/systemd/system/bluetooth-share-start.path -%{_libdir}/systemd/system/bluetooth-force-hci-logger.service -%{_libdir}/systemd/system/bluetooth-hci-dump@.service %post profile_common pushd %{_prefix}/etc/bluetooth/ @@ -159,18 +126,28 @@ ln -sf common/bt-stack-up.sh bt-stack-up.sh ln -sf common/bt-stack-down.sh bt-stack-down.sh ln -sf common/bt-reset-env.sh bt-reset-env.sh popd +pushd %{_unitdir} +mv bluetooth-stack-up-common.service bluetooth-stack-up.service +mv bluetooth-stack-down-common.service bluetooth-stack-down.service +popd %preun profile_common pushd %{_prefix}/etc/bluetooth/ rm bt-stack-up.sh rm bt-stack-down.sh rm bt-reset-env.sh popd +pushd %{_unitdir} +rm bluetooth-stack-up.service +rm bluetooth-stack-down.service +popd %files profile_common %license LICENSE.APLv2 #%{_sysconfdir}/rc.d/init.d/bluetooth-address %attr(0755,-,-) %{_prefix}/etc/bluetooth/common/bt-stack-up.sh %attr(0755,-,-) %{_prefix}/etc/bluetooth/common/bt-stack-down.sh %attr(0755,-,-) %{_prefix}/etc/bluetooth/common/bt-reset-env.sh +%{_libdir}/systemd/system/bluetooth-stack-up-common.service +%{_libdir}/systemd/system/bluetooth-stack-down-common.service %post profile_mobile pushd %{_prefix}/etc/bluetooth/ @@ -192,6 +169,12 @@ popd %attr(0755,-,-) %{_prefix}/etc/bluetooth/mobile/bt-stack-down.sh %attr(0755,-,-) %{_prefix}/etc/bluetooth/mobile/bt-reset-env.sh %attr(0755,-,-) %{_prefix}/etc/bluetooth/mobile/bt-stack-down-with-radio.sh +%{_libdir}/systemd/system/bluetooth-stack-down-with-radio.service +%{_libdir}/systemd/system/bluez-start.service +%{_libdir}/systemd/system/bluetooth-stack-up.service +%{_libdir}/systemd/system/bluetooth-stack-down.service +%{_libdir}/systemd/system/bluetooth-hci-up.service +%{_libdir}/systemd/system/bluetooth-hci-down.service %post profile_ivi pushd %{_prefix}/etc/bluetooth/ @@ -210,6 +193,11 @@ popd %attr(0755,-,-) %{_prefix}/etc/bluetooth/ivi/bt-stack-up.sh %attr(0755,-,-) %{_prefix}/etc/bluetooth/ivi/bt-stack-down.sh %attr(0755,-,-) %{_prefix}/etc/bluetooth/ivi/bt-reset-env.sh +%{_libdir}/systemd/system/bluez-start.service +%{_libdir}/systemd/system/bluetooth-stack-up.service +%{_libdir}/systemd/system/bluetooth-stack-down.service +%{_libdir}/systemd/system/bluetooth-hci-up.service +%{_libdir}/systemd/system/bluetooth-hci-down.service %post profile_wearable pushd %{_prefix}/etc/bluetooth/ @@ -228,6 +216,11 @@ popd %attr(0755,-,-) %{_prefix}/etc/bluetooth/wearable/bt-stack-up.sh %attr(0755,-,-) %{_prefix}/etc/bluetooth/wearable/bt-stack-down.sh %attr(0755,-,-) %{_prefix}/etc/bluetooth/wearable/bt-reset-env.sh +%{_libdir}/systemd/system/bluez-start.service +%{_libdir}/systemd/system/bluetooth-stack-up.service +%{_libdir}/systemd/system/bluetooth-stack-down.service +%{_libdir}/systemd/system/bluetooth-hci-up.service +%{_libdir}/systemd/system/bluetooth-hci-down.service %files no-firmware %manifest %{name}.manifest @@ -235,3 +228,9 @@ popd %defattr(-, root, root) %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-end.sh %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-start.sh +%{_libdir}/systemd/system/bluez-start.service +%{_libdir}/systemd/system/bluetooth-stack-up.service +%{_libdir}/systemd/system/bluetooth-stack-down.service +%{_libdir}/systemd/system/bluetooth-hci-up.service +%{_libdir}/systemd/system/bluetooth-hci-down.service +