- Timestamp:
- Nov 20, 2008 9:06:10 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/debian/postinst
r14370 r14436 68 68 Messages emitted during module compilation will be logged to $LOG. 69 69 EOF 70 if ! /usr/share/virtualbox/src/vboxdrv/build_in_tmp install > /var/log/vbox-install.log 2>&1; then 70 rm -f /etc/vbox/module_not_compiled 71 echo "** Compiling vboxdrv" > /var/log/vbox-install.log 72 if ! /usr/share/virtualbox/src/vboxdrv/build_in_tmp \ 73 --save-module-symvers /tmp/vboxdrv-Module.symvers \ 74 --no-print-directory KBUILD_VERBOSE= \ 75 install >> /var/log/vbox-install.log 2>&1; then 71 76 db_fset virtualbox/module-compilation-failed seen false 72 77 db_input critical virtualbox/module-compilation-failed || true … … 75 80 # don't abort the installation! 76 81 else 82 echo "** Compiling vboxnetflt" >> /var/log/vbox-install.log 83 if ! /usr/share/virtualbox/src/vboxdrv/build_in_tmp \ 84 --use-module-symvers /tmp/vboxdrv-Module.symvers \ 85 --no-print-directory KBUILD_VERBOSE= \ 86 install >> /var/log/vbox-install.log 2>&1; then 87 db_fset virtualbox/module-compilation-failed seen false 88 db_input critical virtualbox/module-compilation-failed || true 89 db_go || true 90 touch /etc/vbox/module_not_compiled 91 # don't abort the installation! 92 fi 93 fi 94 if [ ! -f /etc/vbox/module_not_compiled ]; then 77 95 # success 78 96 cat << EOF 79 97 Success! 80 98 EOF 81 rm -f /etc/vbox/module_not_compiled82 99 fi 83 100 fi -
trunk/debian/rules
r14399 r14436 122 122 if [ -L $$d/build ]; then \ 123 123 make -C $(builddir)/bin/src/vboxdrv KERN_DIR=$$d/build MODULE_DIR=$$d clean && \ 124 make -C $(builddir)/bin/src/vboxdrv K ERN_DIR=$$d/build MODULE_DIR=$$d all && \124 make -C $(builddir)/bin/src/vboxdrv KBUILD_VERBOSE= KERN_DIR=$$d/build MODULE_DIR=$$d all && \ 125 125 install -D -m 0644 -g 0 -o 0 \ 126 $(builddir)/bin/src/vboxdrv/vboxdrv.ko $(moddir)/$$(basename $$d)/vboxdrv.ko ;\127 if [ -f $(builddir)/bin/src/vboxnetflt/Makefile ]; then\128 make -C $(builddir)/bin/src/vboxnetflt KERN_DIR=$$d/build MODULE_DIR=$$d clean&& \129 make -C $(builddir)/bin/src/vboxnetfltKERN_DIR=$$d/build MODULE_DIR=$$d all && \130 126 $(builddir)/bin/src/vboxdrv/vboxdrv.ko $(moddir)/$$(basename $$d)/vboxdrv.ko && \ 127 make -C $(builddir)/bin/src/vboxnetflt KERN_DIR=$$d/build MODULE_DIR=$$d clean && \ 128 (cp $(builddir)/bin/src/vboxdrv/Module.symvers $(builddir)/bin/src/vboxnetflt || true) && \ 129 make -C $(builddir)/bin/src/vboxnetflt KBUILD_VERBOSE= KERN_DIR=$$d/build MODULE_DIR=$$d all && \ 130 install -D -m 0644 -g 0 -o 0 \ 131 131 $(builddir)/bin/src/vboxnetflt/vboxnetflt.ko $(moddir)/$$(basename $$d)/vboxnetflt.ko; \ 132 fi \133 132 fi; \ 134 133 done 135 134 make -C $(builddir)/bin/src/vboxdrv clean 136 if [ -f $(builddir)/bin/src/vboxnetflt/Makefile ]; then \ 137 make -C $(builddir)/bin/src/vboxnetflt clean; \ 138 fi 135 make -C $(builddir)/bin/src/vboxnetflt clean 139 136 touch debian/modules-stamp 140 137 … … 193 190 $(if $(NOMODS),,for d in $(moddir)/*; do \ 194 191 install -D -g 0 -o 0 -m 0644 \ 195 $$d/vboxdrv.ko $(prefix)/lib/modules/$$(basename $$d)/misc/vboxdrv.ko; \ 196 if [ -d $$/vboxnetflt.ko ]; then \ 197 install -D -g 0 -o 0 -m 644 \ 192 $$d/vboxdrv.ko $(prefix)/lib/modules/$$(basename $$d)/misc/vboxdrv.ko; \ 193 install -D -g 0 -o 0 -m 0644 \ 198 194 $$d/vboxnetflt.ko $(prefix)/lib/modules/$$(basename $$d)/misc/vboxnetflt.ko; \ 199 fi;done)195 done) 200 196 ifeq ($(ose),) 201 197 $(if $(HEADLESS),,mv $(archdir)/kchmviewer $(prefix)/usr/lib/$(package)) 202 198 dh_installdocs \ 203 $(archdir)/UserManual*.pdf $(archdir)/VirtualBox*.chm \204 LICENSE199 $(archdir)/UserManual*.pdf $(archdir)/VirtualBox*.chm \ 200 LICENSE 205 201 rm $(addprefix $(archdir)/,UserManual*.pdf VirtualBox*.chm LICENSE) 206 202 for i in rdesktop-vrdp.tar.gz additions/VBoxGuestAdditions.iso; do \ … … 214 210 rmdir $(prefix)/opt 215 211 dh_link \ 216 $(if $(HEADLESS),,usr/bin/VBox usr/bin/VirtualBox) \ 217 usr/bin/VBox usr/bin/VBoxManage \ 218 $(if $(HEADLESS),,usr/bin/VBox usr/bin/VBoxSDL) \ 219 $(if $(ose),,usr/bin/VBox usr/bin/VBoxVRDP) \ 220 usr/bin/VBox usr/bin/VBoxHeadless \ 221 usr/bin/VBoxTAP usr/bin/VBoxAddIF \ 222 usr/bin/VBoxTAP usr/bin/VBoxDeleteIF 212 $(if $(HEADLESS),,usr/bin/VBox usr/bin/VirtualBox) \ 213 usr/bin/VBox usr/bin/VBoxManage \ 214 $(if $(HEADLESS),,usr/bin/VBox usr/bin/VBoxSDL) \ 215 $(if $(ose),,usr/bin/VBox usr/bin/VBoxVRDP) \ 216 usr/bin/VBox usr/bin/VBoxHeadless \ 217 usr/bin/VBoxTAP usr/bin/VBoxAddIF \ 218 usr/bin/VBoxTAP usr/bin/VBoxDeleteIF \ 219 usr/share/virtualbox/src/vboxdrv usr/src/vboxdrv-$(ver) \ 220 usr/share/virtualbox/src/vboxnetflt usr/src/vboxnetflt-$(ver) 223 221 dh_desktop 224 222 dh_installmenu … … 227 225 -e 's|%NOLSB%|$(if $(filter _Debian_sarge ucs1.3,$(debrel)),yes,)|g' \ 228 226 -e 's|%PACKAGE%|virtualbox|g' \ 229 -e 's|%NETFLT%|$(if $(wildcard $(builddir)/bin/src/vboxnetflt),1,)|g' \230 227 src/VBox/Installer/linux/vboxdrv.sh.in > debian/vboxdrv.init 231 228 sed \ -
trunk/src/VBox/HostDrivers/Support/linux/Makefile
r14432 r14436 206 206 endif 207 207 208 KBUILD_VERBOSE ?= 1 209 208 210 # 209 211 # Compiler options … … 269 271 270 272 $(MODULE): 271 $(MAKE) KBUILD_VERBOSE= 1-C $(KERN_DIR) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) modules273 $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C $(KERN_DIR) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) modules 272 274 273 275 ifeq ($(KERN_VERSION),24) -
trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/Makefile
r14430 r14436 200 200 endif 201 201 202 KBUILD_VERBOSE ?= 1 203 202 204 # 203 205 # Compiler options … … 251 253 252 254 $(MODULE): 253 $(MAKE) KBUILD_VERBOSE= 1-C $(KERN_DIR) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) modules255 $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C $(KERN_DIR) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) modules 254 256 255 257 install: $(MODULE) -
trunk/src/VBox/Installer/linux/Makefile.kmk
r14256 r14436 252 252 $(QUIET)$(SED_EXT) \ 253 253 -e "s|%NOLSB%|yes|g" \ 254 -e "s|%NETFLT%|$(VBOX_WITH_NETFLT)|g" \255 254 -e "s|%PACKAGE%|virtualbox|g" \ 256 255 --output $@ \ -
trunk/src/VBox/Installer/linux/vboxdrv.sh.in
r14256 r14436 32 32 LOG="/var/log/vbox-install.log" 33 33 NOLSB=%NOLSB% 34 NETFLT=%NETFLT%35 34 36 35 [ -f /lib/lsb/init-functions ] || NOLSB=yes … … 183 182 failure "Cannot change owner $GROUPNAME for device $DEVICE" 184 183 fi 185 if [ -n "$NETFLT" ]; then 186 if ! modprobe vboxnetflt > /dev/null 2>&1; then 187 failure "modprobe vboxnetflt failed. Please use 'dmesg' to find out why" 188 fi 184 if ! modprobe vboxnetflt > /dev/null 2>&1; then 185 failure "modprobe vboxnetflt failed. Please use 'dmesg' to find out why" 189 186 fi 190 187 succ_msg … … 276 273 failure "Look at $LOG to find out what went wrong" 277 274 fi 278 if [ -n "$NETFLT" ]; then 279 if ! $BUILDVBOXNETFLT \ 280 --use-module-symvers /tmp/vboxdrv-Module.symvers \ 281 --no-print-directory install >> $LOG 2>&1; then 282 failure "Look at $LOG to find out what went wrong" 283 fi 275 if ! $BUILDVBOXNETFLT \ 276 --use-module-symvers /tmp/vboxdrv-Module.symvers \ 277 --no-print-directory install >> $LOG 2>&1; then 278 failure "Look at $LOG to find out what went wrong" 284 279 fi 285 280 succ_msg
Note:
See TracChangeset
for help on using the changeset viewer.