[Tizen-submit] 2709: New package Tizen:2.1:Main/systemd-bootmode

noreply at tizen.org noreply at tizen.org
Wed Apr 24 22:28:50 GMT 2013


Hi,
Adding new package systemd-bootmode in project Tizen:2.1:Main. Please review and accept ASAP.

Justification for this new package:

Submitter: Jinkun Jang <jinkun.jang at samsung.com>
Comments: submit to obs
Git project: adaptation/systemd-bootmode
Tag: submit/tizen_2.1/20130424.222909
Commit: 09bfe1c Tizen 2.1 base

Thank You,
Jinkun Jang

[This message was auto-generated]

---

Request: #2709

  submit:       Tizen:2.1:Main:build/systemd-bootmode(cleanup) -> Tizen:2.1:Main


Message:
Submitter: Jinkun Jang <jinkun.jang at samsung.com>
Comments: submit to obs
Git project: adaptation/systemd-bootmode
Tag: submit/tizen_2.1/20130424.222909
Commit: 09bfe1c Tizen 2.1 base

State:   new        2013-04-24T14:59:29 tizenrobot
Comment: <no comment>
changes files:
--------------

++++++ new changes file:
--- systemd-bootmode.changes
+++ systemd-bootmode.changes
@@ -0,0 +1,2 @@
+* Wed Oct 31 2012 Yin Kangkai <kangkai.yin at intel.com> - 1
+- initial version.

new:
----
  bootmode-charging.service
  bootmode-graphical.service
  bootmode.target
  systemd-bootmode.changes
  systemd-bootmode.spec

spec files:
-----------

++++++ new spec file:
--- systemd-bootmode.spec
+++ systemd-bootmode.spec
@@ -0,0 +1,45 @@
+Name:       systemd-bootmode
+Summary:    Boot mode selector for systemd
+Version:    1
+Release:    1
+VCS:        adaptation/systemd-bootmode#2.1_release-0-g09bfe1c
+Group:      System/Base
+BuildArch:  noarch
+License:    Public Domain
+Source0:    bootmode.target
+Source1:    bootmode-graphical.service
+Source2:    bootmode-charging.service
+
+Requires:pkgconfig(systemd)
+
+%description
+A extensible special boot mode mechanism for systemd. This boot mode selector
+helps systemd to dynamically decide which final target it should go during the
+booting, instead of setting the final boot target in its very begining.
+
+%install
+
+mkdir -p %{buildroot}%{_libdir}/systemd/system
+install -m 0644 %{SOURCE0} %{buildroot}%{_libdir}/systemd/system/
+install -m 0644 %{SOURCE1} %{buildroot}%{_libdir}/systemd/system/
+install -m 0644 %{SOURCE2} %{buildroot}%{_libdir}/systemd/system/
+
+mkdir -p %{buildroot}%{_libdir}/systemd/system/bootmode.target.wants
+ln -sf ../bootmode-graphical.service %{buildroot}%{_libdir}/systemd/system/bootmode.target.wants/bootmode-graphical.service
+ln -sf ../bootmode-charging.service %{buildroot}%{_libdir}/systemd/system/bootmode.target.wants/bootmode-charging.service
+
+%post
+cp -Pf %{_libdir}/systemd/system/default.target %{_libdir}/systemd/system/default.target.bootmode
+ln -sf %{_libdir}/systemd/system/bootmode.target %{_libdir}/systemd/system/default.target
+
+%postun
+mv -f %{_libdir}/systemd/system/default.target.bootmode %{_libdir}/systemd/system/default.target
+
+%files
+%defattr(-,root,root,-)
+%{_libdir}/systemd/system/bootmode.target
+%{_libdir}/systemd/system/bootmode-graphical.service
+%{_libdir}/systemd/system/bootmode-charging.service
+%dir %{_libdir}/systemd/system/bootmode.target.wants
+%{_libdir}/systemd/system/bootmode.target.wants/bootmode-graphical.service
+%{_libdir}/systemd/system/bootmode.target.wants/bootmode-charging.service

other changes:
--------------

++++++ bootmode-charging.service (new)
--- bootmode-charging.service
+++ bootmode-charging.service
@@ -0,0 +1,8 @@
+[Unit]
+Description=Charging Mode
+ConditionKernelCommandLine=charger_detect_boot
+
+[Service]
+Type=oneshot
+ExecStart=/bin/systemctl isolate charging-mode.target
+

Please refer to OBS webUI for more details about this SR.


More information about the Tizen-submit mailing list