packages: kvm/kvm.spec - group add/remove in udev package

adamg adamg at pld-linux.org
Fri Sep 4 23:06:38 CEST 2009


Author: adamg                        Date: Fri Sep  4 21:06:38 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- group add/remove in udev package

---- Files affected:
packages/kvm:
   kvm.spec (1.88 -> 1.89) 

---- Diffs:

================================================================
Index: packages/kvm/kvm.spec
diff -u packages/kvm/kvm.spec:1.88 packages/kvm/kvm.spec:1.89
--- packages/kvm/kvm.spec:1.88	Fri Sep  4 22:46:47 2009
+++ packages/kvm/kvm.spec	Fri Sep  4 23:06:32 2009
@@ -1,7 +1,6 @@
 # $Revision$, $Date$
 # TODO:
-# - add groupadd/remove for group kvm for udev rules 
-#   or add the kvm group to the setup package.
+# - consider moving kvm groupadd/remove from -udev and kernel package to main package
 # - kernel part - doesn't build now, but should we care in the HEAD?
 #   btw. with kernel bcond we require >= 3:2.6.28 kernels which 
 #   could have the kvm stuff on its own
@@ -247,6 +246,14 @@
 	%groupremove kvm
 fi
 
+%pre udev
+%groupadd -g 160 kvm
+
+%postun
+if [ "$1" = "0" ]; then
+	%groupremove kvm
+fi
+
 %if %{with userspace}
 %files
 %defattr(644,root,root,755)
@@ -279,6 +286,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.89  2009/09/04 21:06:32  adamg
+- group add/remove in udev package
+
 Revision 1.88  2009/09/04 20:46:47  adamg
 - BR: bluez-libs-devel, curl-devel, ncurses-devel, perl-Encode and pkgconfig
 - fix ncurses detection (-ncurses.patch)
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/kvm/kvm.spec?r1=1.88&r2=1.89&f=u



More information about the pld-cvs-commit mailing list