Changeset 14436 in vbox for trunk/debian
- Timestamp:
- Nov 20, 2008 9:06:10 PM (16 years ago)
- Location:
- trunk/debian
- Files:
-
- 2 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 \
Note:
See TracChangeset
for help on using the changeset viewer.