]> git.pld-linux.org Git - packages/apmd.git/commitdiff
- apm_proxy should be considered config file AC-branch AC-STABLE auto/ac/apmd-3_2_2-3
authorhavner <havner@pld-linux.org>
Tue, 15 Aug 2006 22:39:17 +0000 (22:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- rel 3

Changed files:
    apmd.spec -> 1.61

apmd.spec

index 58b890d17c7d7cfc4232002e7a499081f0dc5e7a..f24f11b1c223fdd1cef950f1c844c6028c420bb7 100644 (file)
--- a/apmd.spec
+++ b/apmd.spec
@@ -20,7 +20,7 @@ Summary(uk):  
 Summary(zh_CN):        ÓÃÓÚÏ¥ÉÏÐͼÆËã»úµÄ¸ß¼¶µçÔ´¹ÜÀí (APM) BIOS ÊµÓóÌÐò¡£
 Name:          apmd
 Version:       3.2.2
-Release:       2
+Release:       3
 Epoch:         1
 License:       GPL
 Group:         Applications/System
@@ -252,13 +252,15 @@ sed -i -e 's#\.\./libapm\.a#-L../.libs -lapm#' xbattery/Makefile
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir},%{_libdir},%{_sbindir}} \
-       $RPM_BUILD_ROOT{%{_mandir}/{man{1,8},fr/man1},/etc/{rc.d/init.d,sysconfig}}
+       $RPM_BUILD_ROOT{%{_mandir}/{man{1,8},fr/man1},/etc/{rc.d/init.d,sysconfig}} \
+       $RPM_BUILD_ROOT%{_sysconfdir}/apm
 
 cd .libs
 install apm xapm apmsleep ../on_ac_power ../xbattery/xbattery $RPM_BUILD_ROOT%{_bindir}
-install apmd ../apmd_proxy $RPM_BUILD_ROOT%{_sbindir}
+install apmd $RPM_BUILD_ROOT%{_sbindir}
 cd ..
 
+install apmd_proxy $RPM_BUILD_ROOT%{_sysconfdir}/apm
 install apm.1 apmsleep.1 on_ac_power.1 xapm.1 $RPM_BUILD_ROOT%{_mandir}/man1
 install apmsleep.fr.1 $RPM_BUILD_ROOT%{_mandir}/fr/man1/apmsleep.1
 install *.8 $RPM_BUILD_ROOT%{_mandir}/man8
@@ -271,7 +273,7 @@ install apm.h $RPM_BUILD_ROOT%{_includedir}
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/apmd
 
 cat << EOF > $RPM_BUILD_ROOT/etc/sysconfig/apmd
-APMD_OPTIONS="-p 10 -w 5 -W -P %{_sbindir}/apmd_proxy"
+APMD_OPTIONS="-p 10 -w 5 -W -P %{_sysconfdir}/apm/apmd_proxy"
 EOF
 
 %clean
@@ -299,6 +301,8 @@ fi
 %attr(755,root,root) %{_sbindir}/*
 %attr(754,root,root) /etc/rc.d/init.d/apmd
 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/apmd
+%dir %{_sysconfdir}/apm
+%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apm/*
 %{_mandir}/man1/apm.1*
 %{_mandir}/man1/apmsleep.1*
 %{_mandir}/man1/on_ac_power.1*
This page took 0.079557 seconds and 4 git commands to generate.