1 Name: system-plugin-emulator
5 %define systemd_dir /usr/lib/systemd
7 Summary: System plugin for emulator
14 Requires(post): coreutils
15 Source0: %{name}-%{version}.tar.gz
16 Source1001: packaging/%{name}.manifest
19 System plugin files for emulator
28 find . -name .gitignore -exec rm -f {} \;
29 cp -arf filesystem/* %{buildroot}
32 if [ ! -d %{buildroot}/etc/rc.d/rc3.d ]; then
33 mkdir -p %{buildroot}/etc/rc.d/rc3.d
35 ln -s /etc/init.d/setup-audio-volume %{buildroot}//etc/rc.d/rc3.d/S02setup-audio-volume
36 ln -s /etc/init.d/mount-hostdir %{buildroot}//etc/rc.d/rc3.d/S03mount-hostdir
37 ln -s /etc/init.d/ssh %{buildroot}/etc/rc.d/rc3.d/S50ssh
40 # for emulator_preinit.target
41 mkdir -p %{buildroot}/%{systemd_dir}/system/basic.target.wants
42 ln -s %{systemd_dir}/system/emulator_preinit.target %{buildroot}/%{systemd_dir}/system/basic.target.wants/
43 mkdir -p %{buildroot}/%{systemd_dir}/system/emulator_preinit.target.wants
44 ln -s %{systemd_dir}/system/emul-setup-audio-volume.service %{buildroot}/%{systemd_dir}/system/emulator_preinit.target.wants/
45 ln -s %{systemd_dir}/system/emul-mount-hostdir.service %{buildroot}/%{systemd_dir}/system/emulator_preinit.target.wants/
46 ln -s %{systemd_dir}/system/emul-common-preinit.service %{buildroot}/%{systemd_dir}/system/emulator_preinit.target.wants/
48 mkdir -p %{buildroot}/%{systemd_dir}/system/multi-user.target.wants
49 ln -s %{systemd_dir}/system/emulator.target %{buildroot}/%{systemd_dir}/system/multi-user.target.wants/
50 mkdir -p %{buildroot}/%{systemd_dir}/system/emulator.target.wants
51 ln -s %{systemd_dir}/system/sdbd.service %{buildroot}/%{systemd_dir}/system/emulator.target.wants/
52 ln -s %{systemd_dir}/system/sshd.service %{buildroot}/%{systemd_dir}/system/emulator.target.wants/
54 # for host file sharing
55 mkdir -p %{buildroot}/mnt/host
58 mkdir -p %{buildroot}/usr/share/license
59 cp LICENSE %{buildroot}/usr/share/license/%{name}
63 if [ -e /etc/fstab ]; then
64 echo "/opt/var /var bind bind 0 0" >> /etc/fstab
65 echo "/tmpfs /tmp tmpfs defaults 0 0" >> /etc/fstab
66 echo "/dev/vdb swap swap defaults 0 0" >> /etc/fstab
70 /etc/emulator/setup-audio-volume.sh
71 /etc/emulator/mount-hostdir.sh
72 /etc/emulator/model-config.sh
73 /etc/init.d/setup-audio-volume
74 /etc/init.d/mount-hostdir
76 /etc/preconf.d/emulator_ns.preinit
77 /etc/preconf.d/systemd_conf.preinit
78 /etc/profile.d/proxy_setting.sh
80 /etc/rc.d/rc.firstboot
83 /etc/rc.d/rc3.d/S02setup-audio-volume
84 /etc/rc.d/rc3.d/S03mount-hostdir
85 /etc/rc.d/rc3.d/S50ssh
86 /usr/lib/systemd/system/emulator_preinit.target
87 /usr/lib/systemd/system/emulator.target
88 /usr/lib/systemd/system/basic.target.wants/emulator_preinit.target
89 /usr/lib/systemd/system/multi-user.target.wants/emulator.target
90 /usr/lib/systemd/system/emul-setup-audio-volume.service
91 /usr/lib/systemd/system/emul-mount-hostdir.service
92 /usr/lib/systemd/system/emul-common-preinit.service
93 /usr/lib/systemd/system/emulator_preinit.target.wants/emul-setup-audio-volume.service
94 /usr/lib/systemd/system/emulator_preinit.target.wants/emul-mount-hostdir.service
95 /usr/lib/systemd/system/emulator_preinit.target.wants/emul-common-preinit.service
96 /usr/lib/systemd/system/sdbd.service
97 /usr/lib/systemd/system/sshd.service
98 /usr/lib/systemd/system/emulator.target.wants/sdbd.service
99 /usr/lib/systemd/system/emulator.target.wants/sshd.service
100 /usr/lib/udev/rules.d/95-tizen-emulator.rules
102 /usr/share/license/%{name}