]> git.pld-linux.org Git - packages/acpid.git/blob - acpid.spec
- release 3
[packages/acpid.git] / acpid.spec
1 Summary:        ACPI Event Daemon
2 Summary(pl):    Demon zdarzeñ ACPI
3 Name:           acpid
4 Version:        1.0.0
5 Release:        3
6 License:        GPL
7 Group:          Daemons
8 Group(de):      Server
9 Group(pl):      Serwery
10 Source0:        ftp://ftp.sourceforge.net/pub/sourceforge/acpid/%{name}-%{version}.tar.gz
11 Source1:        %{name}.init
12 Source2:        %{name}.sysconfig
13 URL:            http://acpid.sourceforge.net/
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 acpid is a daemon that dispatches ACPI events to user-space programs.
18
19 %description -l pl
20 acpid to demon przekazuj±cy zdarzenia ACPI do programów w user-space.
21
22 %prep
23 %setup -q
24
25 %build
26 %{__make}
27
28 %install
29 rm -rf $RPM_BUILD_ROOT
30 install -d $RPM_BUILD_ROOT
31
32 install -d $RPM_BUILD_ROOT/{%{_sbindir},%{_mandir}/man8}
33 install acpid $RPM_BUILD_ROOT/%{_sbindir}
34 install acpid.8 $RPM_BUILD_ROOT/%{_mandir}/man8
35
36 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/acpi/{events,actions},/var/log,/etc/{rc.d/init.d,sysconfig}}
37
38 install samples/sample.conf $RPM_BUILD_ROOT%{_sysconfdir}/acpi/events
39 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/acpid
40 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/acpid
41
42 touch $RPM_BUILD_ROOT/var/log/acpid
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %post
48 /sbin/chkconfig --add acpid
49 if [ -f /var/lock/subsys/acpid ]; then
50         /etc/rc.d/init.d/acpid restart >&2
51 else
52         echo "Run \"/etc/rc.d/init.d/acpid  start\" to start ACPI daemon."
53 fi
54
55 %preun
56 if [ "$1" = "0" ]; then
57         if [ -f /var/lock/subsys/acpid ]; then
58                 /etc/rc.d/init.d/acpid stop>&2
59         fi
60         /sbin/chkconfig --del acpid
61 fi
62
63 %files
64 %defattr(644,root,root,755)
65 %dir %{_sysconfdir}/acpi
66 %dir %{_sysconfdir}/acpi/events
67 %dir %{_sysconfdir}/acpi/actions
68 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/acpi/events/sample.conf
69 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/sysconfig/acpid
70 %attr(640,root,root) %ghost /var/log/acpid
71 %attr(755,root,root) %{_sbindir}/acpid
72 %attr(754,root,root) /etc/rc.d/init.d/acpid
73 %{_mandir}/man8/acpid.8.gz
This page took 0.067592 seconds and 4 git commands to generate.