]> git.pld-linux.org Git - packages/acpid.git/blob - acpid.spec
*** empty log message ***
[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 Obsoletes:      apmd
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 acpid is a daemon that dispatches ACPI events to user-space programs.
19
20 %description -l pl
21 acpid to demon przekazuj±cy zdarzenia ACPI do programów w user-space.
22
23 %prep
24 %setup -q
25
26 %build
27 %{__make}
28
29 %install
30 rm -rf $RPM_BUILD_ROOT
31 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/acpi/{events,actions},/var/log} \
32         $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig},%{_sbindir},%{_mandir}/man8}
33
34 install acpid $RPM_BUILD_ROOT/%{_sbindir}
35 install acpid.8 $RPM_BUILD_ROOT/%{_mandir}/man8
36 install samples/sample.conf $RPM_BUILD_ROOT%{_sysconfdir}/acpi/events
37 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/acpid
38 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/acpid
39
40 touch $RPM_BUILD_ROOT/var/log/acpid
41
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45 %post
46 /sbin/chkconfig --add acpid
47 if [ -f /var/lock/subsys/acpid ]; then
48         /etc/rc.d/init.d/acpid restart >&2
49 else
50         echo "Run \"/etc/rc.d/init.d/acpid  start\" to start ACPI daemon."
51 fi
52
53 %preun
54 if [ "$1" = "0" ]; then
55         if [ -f /var/lock/subsys/acpid ]; then
56                 /etc/rc.d/init.d/acpid stop>&2
57         fi
58         /sbin/chkconfig --del acpid
59 fi
60
61 %files
62 %defattr(644,root,root,755)
63 %dir %{_sysconfdir}/acpi
64 %dir %{_sysconfdir}/acpi/events
65 %dir %{_sysconfdir}/acpi/actions
66 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/acpi/events/sample.conf
67 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/sysconfig/acpid
68 %attr(640,root,root) %ghost /var/log/acpid
69 %attr(755,root,root) %{_sbindir}/acpid
70 %attr(754,root,root) /etc/rc.d/init.d/acpid
71 %{_mandir}/man8/acpid.8.gz
This page took 0.341785 seconds and 3 git commands to generate.