]>
Commit | Line | Data |
---|---|---|
06440297 SP |
1 | Summary: ACPI scripts for EeePC netbook computers |
2 | Summary(pl.UTF-8): Skrypty ACPI dla notebooków EeePC | |
3 | Name: eeepc-acpi-utilities | |
4 | Version: 1.0.9 | |
76701eca | 5 | Release: 0.3 |
06440297 SP |
6 | License: GPL |
7 | Group: X11/Applications | |
8 | Source0: http://dl.sourceforge.net/eeepc-acpi-util/%{name}_%{version}.tar.gz | |
9 | # Source0-md5: cc32bd733b980d76beaac051f6b2cf4e | |
d443b6b4 | 10 | Source1: %{name}.init |
06440297 SP |
11 | URL: http://eeepc-acpi-util.sourceforge.net/ |
12 | Requires: acpid | |
e377b368 | 13 | Requires: coreutils |
d443b6b4 | 14 | Requires: dmidecode |
06440297 SP |
15 | BuildArch: noarch |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | ACPI scripts for EeePC netbook computers. | |
20 | ||
21 | Keys are configured as follows by default: | |
22 | ||
23 | Top row (4 keys) | |
24 | ||
25 | - Touchpad On / Off | |
26 | - Screen resolution cycle (1024x600, 800x600, 640x480) | |
27 | - Bluetooth On / Off | |
28 | - Webcam On / Off | |
29 | ||
30 | Alternately any two of the following can be enabled instead of | |
31 | Bluetooth / Webcam: | |
32 | ||
33 | - Rotate Screen (Cycles Left, Inverted, Right, then Normal) | |
34 | - CPU Mode cycle (Performance, On Demand, Power Saver) | |
35 | - Firefox (Customizable) | |
36 | - Pidgin (Customizable) | |
37 | ||
38 | The FN-[F1-F12] keys are set to the following by default: | |
39 | ||
40 | - F1 - Sleep (not managed by my ACPI Scripts) | |
41 | - F2 - WIFI (It will autodetect your adapter, or alternately you can | |
42 | select ndiswrapper mode) | |
43 | - F5-F6 Brightness (not managed by my ACPI Scripts) | |
44 | - F7 - LCD power Toggle On / Off | |
45 | - F8 - VGA Output toggle | |
46 | - F9 - Gnome System Monitor | |
47 | - F10 - Volume Mute | |
48 | - F11 - Volume - | |
49 | - F12 - Volume + | |
50 | ||
51 | Features: Zero resident memory footprint unless keys are pressed, fast | |
52 | response, parameter save / restore, fan management, CPU frequency | |
53 | management, and more. | |
54 | ||
55 | %prep | |
56 | %setup -q | |
57 | ||
90b53fcd SS |
58 | for i in usr/share/applications/eeepc.desktop \ |
59 | acpi/eeepc/*.sh \ | |
60 | init.d/eeepc-restore ; do | |
61 | sed -i "s@/etc/default/eeepc-acpi@/etc/sysconfig/eeepc-acpi@g" $i | |
62 | done | |
63 | ||
06440297 SP |
64 | %build |
65 | ||
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
6d2a94a3 | 68 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/{acpi,cron.d,sysconfig,rc.d/init.d,xdg} |
06440297 SP |
69 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/acpi/{eeepc,events} |
70 | install -d $RPM_BUILD_ROOT%{_datadir}/{,applications,pixmaps} | |
71 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart | |
e377b368 | 72 | install -d $RPM_BUILD_ROOT/var/eeepc |
06440297 SP |
73 | |
74 | install acpi/eeepc/*.sh $RPM_BUILD_ROOT%{_sysconfdir}/acpi/eeepc/ | |
75 | install acpi/events/eeepc-hotkeys $RPM_BUILD_ROOT%{_sysconfdir}/acpi/events/ | |
76 | install cron.d/eeepc-fan $RPM_BUILD_ROOT/etc/cron.d/ | |
6d2a94a3 | 77 | install default/eeepc-acpi $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/ |
d443b6b4 | 78 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/eeepc-restore |
5a977d9a | 79 | sed -i "s@/etc/default/eeepc-acpi@/etc/sysconfig/eeepc-acpi@g" $RPM_BUILD_ROOT/etc/rc.d/init.d/eeepc-restore |
6d2a94a3 SP |
80 | install usr/share/applications/eeepc.desktop $RPM_BUILD_ROOT%{_desktopdir}/ |
81 | install usr/share/pixmaps/eee.png $RPM_BUILD_ROOT%{_pixmapsdir}/ | |
06440297 SP |
82 | install xdg/autostart/eeepc-acpi-util.desktop $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/ |
83 | ||
84 | %clean | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
2bc04f61 | 87 | %post |
e377b368 SP |
88 | /sbin/chkconfig --add eeepc-restore |
89 | %service %{name} restart | |
90 | ||
2bc04f61 | 91 | %preun |
e377b368 SP |
92 | if [ "$1" = "0" ]; then |
93 | %service -q %{name} stop | |
94 | /sbin/chkconfig --del eeepc-restore | |
95 | fi | |
96 | ||
06440297 SP |
97 | %files |
98 | %defattr(644,root,root,755) | |
99 | %dir %{_sysconfdir}/acpi/eeepc | |
100 | %attr(755,root,root) %{_sysconfdir}/acpi/eeepc/*.sh | |
101 | %{_sysconfdir}/acpi/events/eeepc-hotkeys | |
102 | /etc/cron.d/eeepc-fan | |
6d2a94a3 | 103 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/eeepc-acpi |
06440297 SP |
104 | %attr(754,root,root) /etc/rc.d/init.d/eeepc-restore |
105 | %{_sysconfdir}/xdg/autostart/eeepc-acpi-util.desktop | |
106 | %{_desktopdir}/eeepc.desktop | |
107 | %{_pixmapsdir}/eee.png | |
e377b368 | 108 | %dir /var/eeepc |