wok-4.x rev 5752
get-virtualbox: create group vboxusers
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jul 02 19:17:19 2010 +0200 (2010-07-02) |
parents | 6d656c48fdcf |
children | c0a4a7364798 |
files | get-virtualbox/receipt get-virtualbox/stuff/get-virtualbox |
line diff
1.1 --- a/get-virtualbox/receipt Fri Jul 02 18:35:53 2010 +0200 1.2 +++ b/get-virtualbox/receipt Fri Jul 02 19:17:19 2010 +0200 1.3 @@ -14,6 +14,6 @@ 1.4 cp stuff/get-virtualbox $fs/usr/bin 1.5 1.6 # Improve Slitaz support. 1.7 - cd $fs/usr/bin && patch -p1 -i ../../../../../stuff/installer.u 1.8 + #cd $fs/usr/bin && patch -p1 -i ../../../../../stuff/installer.u 1.9 } 1.10
2.1 --- a/get-virtualbox/stuff/get-virtualbox Fri Jul 02 18:35:53 2010 +0200 2.2 +++ b/get-virtualbox/stuff/get-virtualbox Fri Jul 02 19:17:19 2010 +0200 2.3 @@ -76,12 +76,25 @@ 2.4 CATEGORY="non-free" 2.5 SHORT_DESC="$SHORT_DESC" 2.6 WEB_SITE="$WEB_SITE" 2.7 -DEPENDS="libsdl fontconfig gcc-lib-base glib libpng python udev libglu-mesa" 2.8 +DEPENDS="libsdl fontconfig gcc-lib-base glib libpng python udev mesa libglu-mesa" 2.9 + 2.10 +pre_remove() 2.11 +{ 2.12 + sed -i 's//vboxdrv /' \$1/etc/rcS.conf 2.13 + chroot "\$1/" delgroup vboxusers 2.14 +} 2.15 2.16 post_install() 2.17 { 2.18 $(grep ' udev[atp]' install/install.sh) 2.19 chroot "\$1/" depmod -a $(uname -r) 2.20 + [ -n "\$1" ] || modprobe vboxdrv 2.21 + grep -qs vboxdrv \$1/etc/rcS.conf || 2.22 + sed -i 's/LOAD_MODULES="/&vboxdrv /' \$1/etc/rcS.conf 2.23 + 2.24 + # Add vboxusers group 2.25 + grep -qs ^vboxusers \$1/etc/group || 2.26 + chroot "\$1/" addgroup vboxusers 2.27 } 2.28 EOT 2.29