Author: pascalek                     Date: Sat Sep 22 09:38:45 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- Relase 0.3; use vbox group

---- Files affected:
SPECS:
   VirtualBox.spec (1.23 -> 1.24) 

---- Diffs:

================================================================
Index: SPECS/VirtualBox.spec
diff -u SPECS/VirtualBox.spec:1.23 SPECS/VirtualBox.spec:1.24
--- SPECS/VirtualBox.spec:1.23  Sat Sep 22 11:25:20 2007
+++ SPECS/VirtualBox.spec       Sat Sep 22 11:38:40 2007
@@ -18,7 +18,7 @@
 %bcond_without kernel          # don't build kernel module
 %bcond_without userspace       # don't build userspace package
 
-%define                _rel            0.2
+%define                _rel            0.3
 
 Summary:       VirtualBox - x86 hardware virtualizer
 Summary(pl.UTF-8):     VirtualBox - wirtualizator sprzętu x86
@@ -36,6 +36,11 @@
 Patch0:                %{name}-configure.patch
 Patch1:                %{name}-qt-paths.patch
 URL:           http://www.virtualbox.org/
+Requires(postun):      /usr/sbin/groupdel
+Requires(postun):      /usr/sbin/userdel
+Requires(pre): /bin/id
+Requires(pre): /usr/sbin/groupadd
+Requires(pre): /usr/sbin/useradd
 BuildRequires: SDL-devel
 BuildRequires: bash
 BuildRequires: bcc
@@ -238,9 +243,19 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%pre
+%groupadd -g 221 -r -f vbox
+
 %post
 /sbin/chkconfig --add virtualbox
 %service virtualbox restart "VBoxSVC daemon"
+if [ "$1" = 1 ]; then
+%banner -e %{name} <<'EOF'
+Remember to add users which will use VirtualBox to vbox group or they won't be
+able to write to /dev/vboxdrv.
+EOF
+#'
+fi
 
 %preun 
 if [ "$1" = "0" ]; then
@@ -248,6 +263,11 @@
        /sbin/chkconfig --del virtualbox
 fi
 
+%postun
+if [ "$1" = "0" ]; then
+       %groupremove vbox
+fi
+
 %post  -n kernel%{_alt_kernel}-misc-vboxdrv
 %depmod %{_kernel_ver}
 
@@ -290,6 +310,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.24  2007/09/22 09:38:40  pascalek
+- Relase 0.3; use vbox group
+
 Revision 1.23  2007/09/22 09:25:20  glen
 - don't be x86 specific
 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/VirtualBox.spec?r1=1.23&r2=1.24&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to