SPECS: kvm.spec - added kvm group and udev rule
arvenil
arvenil at pld-linux.org
Sun Dec 30 23:25:54 CET 2007
Author: arvenil Date: Sun Dec 30 22:25:54 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added kvm group and udev rule
---- Files affected:
SPECS:
kvm.spec (1.19 -> 1.20)
---- Diffs:
================================================================
Index: SPECS/kvm.spec
diff -u SPECS/kvm.spec:1.19 SPECS/kvm.spec:1.20
--- SPECS/kvm.spec:1.19 Sun Dec 30 23:23:29 2007
+++ SPECS/kvm.spec Sun Dec 30 23:25:49 2007
@@ -7,7 +7,7 @@
%define no_install_post_strip 1
-%define _rel 0.2
+%define _rel 0.3
Summary: Kernel-based Virtual Machine for Linux
Summary(pl.UTF-8): Oparta na jądrze maszyna wirtualna dla Linuksa
@@ -59,6 +59,9 @@
%{?with_dist_kernel:%requires_releq_kernel}
License: Free to use, non-distributable
Requires(post,postun): /sbin/depmod
+Requires(postun): /usr/sbin/groupdel
+Requires(pre): /usr/bin/getgid
+Requires(pre): /usr/sbin/groupadd
Requires: module-init-tools >= 3.2.2-2
%description -n kernel%{_alt_kernel}-misc-kvm
@@ -106,17 +109,24 @@
%endif
%if %{with kernel}
+install -D scripts/65-kvm.rules $RPM_BUILD_ROOT/etc/udev/rules.d/kvm.rules
%install_kernel_modules -m kernel/{kvm-amd,kvm,kvm-intel} -d misc
%endif
%clean
rm -rf $RPM_BUILD_ROOT
+%pre -n kernel%{_alt_kernel}-misc-kvm
+%groupadd -g 222 kvm
+
%post -n kernel%{_alt_kernel}-misc-kvm
%depmod %{_kernel_ver}
%postun -n kernel%{_alt_kernel}-misc-kvm
%depmod %{_kernel_ver}
+if [ "$1" = "0" ]; then
+ %groupremove kvm
+fi
%if %{with userspace}
%files
@@ -127,6 +137,7 @@
%if %{with kernel}
%files -n kernel%{_alt_kernel}-misc-kvm
%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/kvm.rules
/lib/modules/%{_kernel_ver}/misc/kvm*
%endif
@@ -136,6 +147,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.20 2007-12-30 22:25:49 arvenil
+- added kvm group and udev rule
+
Revision 1.19 2007-12-30 22:23:29 arvenil
- better way to package kvm
- R: qemu
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/kvm.spec?r1=1.19&r2=1.20&f=u
More information about the pld-cvs-commit
mailing list