packages: microcode_ctl/microcode_ctl.spec, microcode_ctl/microcode_ctl.ups...
glen
glen at pld-linux.org
Sat Aug 13 06:59:20 CEST 2011
Author: glen Date: Sat Aug 13 04:59:20 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- add upstart script
---- Files affected:
packages/microcode_ctl:
microcode_ctl.spec (1.43 -> 1.44) , microcode_ctl.upstart (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/microcode_ctl/microcode_ctl.spec
diff -u packages/microcode_ctl/microcode_ctl.spec:1.43 packages/microcode_ctl/microcode_ctl.spec:1.44
--- packages/microcode_ctl/microcode_ctl.spec:1.43 Mon Aug 17 14:28:10 2009
+++ packages/microcode_ctl/microcode_ctl.spec Sat Aug 13 06:59:15 2011
@@ -10,6 +10,7 @@
Source0: http://www.urbanmyth.org/microcode/%{name}-%{version}.tar.gz
# Source0-md5: 98a7f06acef8459c8ef2a1b0fb86a99e
Source1: %{name}.init
+Source2: %{name}.upstart
URL: http://www.urbanmyth.org/microcode/
Requires(post,preun): /sbin/chkconfig
Requires: microcode-data
@@ -49,10 +50,11 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sysconfdir},%{_sbindir},%{_mandir}/man8}
-install %{name} $RPM_BUILD_ROOT%{_sbindir}
-install %{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8
-install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
+install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,init},%{_sysconfdir},%{_sbindir},%{_mandir}/man8}
+install -p %{name} $RPM_BUILD_ROOT%{_sbindir}
+cp -p %{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8
+install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
+cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/init/%{name}.conf
%clean
rm -rf $RPM_BUILD_ROOT
@@ -69,8 +71,9 @@
%defattr(644,root,root,755)
%doc Changelog README
%attr(754,root,root) /etc/rc.d/init.d/%{name}
-%attr(755,root,root) %{_sbindir}/*
-%{_mandir}/man?/*
+%config(noreplace) %verify(not md5 mtime size) /etc/init/%{name}.conf
+%attr(755,root,root) %{_sbindir}/microcode_ctl
+%{_mandir}/man8/microcode_ctl.8*
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -78,6 +81,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.44 2011/08/13 04:59:15 glen
+- add upstart script
+
Revision 1.43 2009/08/17 12:28:10 glen
- use %x8664 macro
================================================================
Index: packages/microcode_ctl/microcode_ctl.upstart
diff -u /dev/null packages/microcode_ctl/microcode_ctl.upstart:1.1
--- /dev/null Sat Aug 13 06:59:20 2011
+++ packages/microcode_ctl/microcode_ctl.upstart Sat Aug 13 06:59:15 2011
@@ -0,0 +1,14 @@
+description "Update Microcode for IA32 family processors"
+
+start on virtual-filesystems
+
+task
+console output
+
+pre-start script
+ /sbin/modprobe microcode
+end script
+
+script
+ /usr/sbin/microcode_ctl -qu -f /lib/firmware/microcode.dat -d /dev/cpu/microcode
+end script
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/microcode_ctl/microcode_ctl.spec?r1=1.43&r2=1.44&f=u
More information about the pld-cvs-commit
mailing list