Changeset 40390 in vbox
- Timestamp:
- Mar 7, 2012 1:58:08 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure
r40383 r40390 901 901 902 902 printf("found version %s", LIBVNCSERVER_PACKAGE_VERSION); 903 if (major*10000 + minor*100 + micro >= 90 7)903 if (major*10000 + minor*100 + micro >= 900) 904 904 { 905 905 printf(", OK.\n"); … … 908 908 else 909 909 { 910 printf(", expected version 0.9 .7or higher\n");910 printf(", expected version 0.9 or higher\n"); 911 911 return 1; 912 912 } -
trunk/debian/rules
r40217 r40390 1 1 #!/usr/bin/make -f 2 2 # 3 # Copyright (C) 2006-201 1Oracle Corporation3 # Copyright (C) 2006-2012 Oracle Corporation 4 4 # 5 5 # This file is part of VirtualBox Open Source Edition (OSE), as … … 27 27 # NOMODS=1 don't build any module 28 28 # NOQT=1 don't build the Qt GUI 29 # EFI=1 include the EFI binary from prebuild 29 30 # HEADLESS=1 build the headless version 31 # VNC=1 build VNC code 30 32 # NOWEBSVC=1 don't build the webservice API, default for OSE 31 33 # STAGEDISO=<path> don't build the VBoxAdditions, use the precompiled .iso 34 # PKGDIR=<path> where to store the final package(s) 32 35 # BLEEDING_EDGE=xyz 33 36 … … 36 39 current := $(shell pwd) 37 40 vboxroot := $(shell pwd) 38 pkgdir := ..41 pkgdir := $(if $(PKGDIR),$(PKGDIR),$(shell cd ..; pwd)) 39 42 builddir := $(current)/debian/builddir 40 43 moddir := $(current)/debian/modules … … 70 73 71 74 cfg_flags := $(if $(NOQT),--disable-qt,) \ 75 $(if $(filter _Ubuntu_hardy,$(debrel)),--with-qt4-dir=$(qtstdc6)) \ 72 76 $(if $(ose),--ose,) $(if $(LINUX),--with-linux=$(LINUX),) \ 73 $(if $(filter _Ubuntu_hardy,$(debrel)),--with-qt4-dir=$(qtstdc6)) \74 77 $(if $(HEADLESS),--build-headless,) \ 75 78 $(if $(DEBUG),--build-debug,) \ 76 79 $(if $(NOWINE),,--setup-wine) \ 77 80 $(if $(NOWEBSVC),,--enable-webservice) \ 81 $(if $(VNC),--enable-vnc,) \ 78 82 --disable-extpack 79 83 80 84 bld_flags := AUTOCFG=$(current)/debian/AutoConfig.kmk \ 81 85 LOCALCFG=$(current)/debian/LocalConfig.kmk \ 82 PATH_OUT=$( current)/debian/builddir\86 PATH_OUT=$(builddir) \ 83 87 VBOX_WITHOUT_EXTPACK_PUEL_PACKING=1 \ 88 VBOX_WITHOUT_EXTPACK_VNC_PACKING=1 \ 84 89 VBOX_DO_STRIP= \ 85 90 VBOX_DO_STRIP_MODULES= \ … … 88 93 $(if $(ose),,VBOX_WITH_DOCS_CHM=1) \ 89 94 VBOX_SVN_REV=$(svnrev) \ 90 $(if $(NODOCS),VBOX_WITH_DOCS= ,) \95 $(if $(NODOCS),VBOX_WITH_DOCS= ,) \ 91 96 $(if $(VERBOSE),--print-directory KBUILD_VERBOSE=2,--no-print-directory) \ 92 97 $(if $(STAGEDISO),VBOX_WITHOUT_ADDITIONS=1,) \ … … 106 111 $(if $(NODOCS),cp $(vboxroot)/prebuild/UserManual*.pdf $(builddir)/bin,) 107 112 $(if $(NODOCS),cp $(vboxroot)/prebuild/VirtualBox*.chm $(builddir)/bin,) 113 $(if $(EFI),cp $(vboxroot)/prebuild/VBoxEFI32.fd $(builddir)/bin,) 114 $(if $(EFI),cp $(vboxroot)/prebuild/VBoxEFI64.fd $(builddir)/bin,) 108 115 mkdir -p $(builddir)/bin/additions 109 116 $(if $(STAGEDISO),cp $(STAGEDISO)/VBoxGuestAdditions.iso $(builddir)/bin/additions,) … … 163 170 rm -f debian/$(verpkg).mime 164 171 rm -rf $(builddir) $(moddir) 172 rm -rf debian/wine.* 165 173 dh_clean 166 174 … … 236 244 $(if $(NOWEBSVC),,vboxwebsrv webtest); do \ 237 245 mv $(archdir)/$$i $(prefix)/usr/lib/$(package); done 246 $(if $(VNC),mv $(archdir)/ExtensionPacks/VNC $(prefix)/usr/lib/$(package)/ExtensionPacks,) 238 247 mv $(archdir)/VBoxTunctl $(prefix)/usr/bin 239 248 $(if $(NOMODS),,for d in $(moddir)/*; do \ … … 269 278 endif 270 279 rmdir $(archdir)/additions 280 $(if $(VNC),rmdir $(archdir)/ExtensionPacks) 271 281 rmdir $(archdir) 272 282 rmdir $(prefix)/opt … … 291 301 -e 's|%DEBIAN%|yes|g' \ 292 302 -e 's|%PACKAGE%|virtualbox|g' \ 303 -e "s|%VERSION%|$(VBOX_VERSION_STRING)|g" \ 293 304 -e "s|%GROUP%|$(if $(VBOX_WITHOUT_HARDENING),vboxusers,root)|g" \ 294 305 $(vboxroot)/src/VBox/Installer/linux/vboxdrv.sh.in > debian/vboxdrv.init … … 343 354 dh_installdeb 344 355 dh_perl 345 dh_shlibdeps356 LD_LIBRARY_PATH=$(prefix)/usr/lib/virtualbox dh_shlibdeps 346 357 dh_gencontrol -- \ 347 358 -Valsa=$(if $(HEADLESS),,libasound2) \ -
trunk/src/VBox/Installer/linux/Makefile.kmk
r40370 r40390 143 143 VBoxSharedCrOpenGL.so,) \ 144 144 $(if $(VBOX_WITH_PYTHON),$(notdir $(wildcard $(PATH_STAGE_BIN)/VBoxPython*.so)),) \ 145 $(if $(VBOX_WITH_JXPCOM),libvboxjxpcom.so,) \ 145 $(if $(VBOX_WITH_JXPCOM),libvboxjxpcom.so,) \ 146 $(if $(and $(VBOX_WITH_EXTPACK_VNC),$(VBOX_WITHOUT_EXTPACK_VNC_PACKING)), \ 147 ExtensionPacks/VNC/$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/VBoxVNC.so \ 148 ExtensionPacks/VNC/$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/VBoxVNCMain.so,) \ 146 149 VBoxTunctl 147 150 … … 166 169 components/VirtualBox_XPCOM.xpt) \ 167 170 $(if $(VBOX_WITH_PYTHON),vboxshell.py,) \ 171 $(if $(and $(VBOX_WITH_EXTPACK_VNC),$(VBOX_WITHOUT_EXTPACK_VNC_PACKING)), \ 172 ExtensionPacks/VNC/ExtPack.xml \ 173 ExtensionPacks/VNC/ExtPack-license.html \ 174 ExtensionPacks/VNC/ExtPack-license.rtf \ 175 ExtensionPacks/VNC/ExtPack-license.txt,) \ 168 176 VBoxSysInfo.sh \ 169 177 VBoxCreateUSBNode.sh \ … … 470 478 $(QUIET)$(LN_SYMLINK) $< $@ 471 479 472 # rules for creating directories in archive (the pattern rules depends on these). ## @todo use BLDDIRS480 # rules for creating directories in archive (the pattern rules depends on these). 473 481 BLDDIRS += $(foreach d,\ 474 482 archive \ … … 481 489 archive/sdk/bindings/xpcom/python/xpcom \ 482 490 archive/sdk/bindings/xpcom/python/xpcom/client \ 483 491 archive/sdk/bindings/xpcom/python/xpcom/server,) \ 484 492 $(if $(VBOX_WITH_JXPCOM),\ 485 493 archive/sdk/bindings/xpcom/java,) \ 494 $(if $(and $(VBOX_WITH_EXTPACK_VNC),$(VBOX_WITHOUT_EXTPACK_VNC_PACKING)), \ 495 archive/ExtensionPacks/VNC \ 496 archive/ExtensionPacks/VNC/$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),) \ 486 497 archive/additions \ 487 498 install\ … … 513 524 $(QUIET)objcopy --only-keep-debug $< $@ 514 525 515 # rules for creating directories in archive-dbg (the pattern rules depends on these). ## @todo use BLDDIRS526 # rules for creating directories in archive-dbg (the pattern rules depends on these). 516 527 BLDDIRS += $(foreach d,\ 517 528 $(VBOX_LNX_DBG_PATH) \ -
trunk/src/VBox/Installer/linux/debian/rules
r40217 r40390 1 1 #!/usr/bin/make -f 2 2 # 3 # Copyright (C) 2006-201 1Oracle Corporation3 # Copyright (C) 2006-2012 Oracle Corporation 4 4 # 5 5 # This file is part of VirtualBox Open Source Edition (OSE), as … … 32 32 # NOMODS=1 don't build any module 33 33 # NOQT=1 don't build the Qt GUI 34 # EFI 34 # EFI=1 include the EFI binary from prebuild 35 35 # VERSUFFIX=<suffix> set a particular package version suffix (e.g. _customer) 36 36 # HEADLESS=1 build the headless version 37 # VNC=1 build VNC code 37 38 # NOWEBSVC=1 don't build the webservice API, default for OSE 38 39 # STAGEDISO=<path> don't build the VBoxAdditions, use the precompiled .iso … … 57 58 NOQT ?= $(HEADLESS) 58 59 NOWEBSVC ?= $(ose) 59 NOWINE := $(if $(NODOCS),$(if $(STAGEDISO),1,),) 60 NOWINE := $(if $(NODOCS),$(if $(STAGEDISO),1,),)$(ose) 60 61 61 62 ifneq ($(wildcard $(verfile)),) … … 94 95 95 96 cfg_flags := $(if $(NOQT),--disable-qt,) \ 97 $(if $(filter _Ubuntu_hardy,$(debrel)),--with-qt4-dir=$(qtstdc6)) \ 96 98 $(if $(ose),--ose,) $(if $(LINUX),--with-linux=$(LINUX),) \ 97 $(if $(filter _Ubuntu_hardy,$(debrel)),--with-qt4-dir=$(qtstdc6)) \98 99 $(if $(HEADLESS),--build-headless,) \ 99 100 $(if $(DEBUG),--build-debug,) \ 100 101 $(if $(NOWINE),,--setup-wine) \ 101 102 $(if $(NOWEBSVC),,--enable-webservice) \ 103 $(if $(VNC),--enable-vnc,) \ 102 104 --disable-extpack 103 105 104 106 bld_flags := AUTOCFG=$(current)/debian/AutoConfig.kmk \ 105 107 LOCALCFG=$(current)/debian/LocalConfig.kmk \ 106 PATH_OUT=$( current)/debian/builddir\108 PATH_OUT=$(builddir) \ 107 109 VBOX_WITHOUT_EXTPACK_PUEL_PACKING=1 \ 110 VBOX_WITHOUT_EXTPACK_VNC_PACKING=1 \ 108 111 VBOX_DO_STRIP= \ 109 112 VBOX_DO_STRIP_MODULES= \ … … 113 116 VBOX_PACKAGE_DIST=$(debdist) \ 114 117 VBOX_SVN_REV=$(svnrev) \ 115 $(if $(NODOCS),VBOX_WITH_DOCS= ,) \118 $(if $(NODOCS),VBOX_WITH_DOCS= ,) \ 116 119 $(if $(VERBOSE),--print-directory KBUILD_VERBOSE=2,--no-print-directory) \ 117 120 $(if $(STAGEDISO),VBOX_WITHOUT_ADDITIONS=1,) \ … … 182 185 dh_testdir 183 186 dh_testroot 184 rm -f debian/changelog debian/preinst debian/postinst debian/prerm 187 rm -f debian/changelog 188 rm -f debian/preinst debian/postinst debian/prerm 185 189 rm -f debian/$(package).init debian/vboxdrv.init 186 190 rm -f debian/vboxballoonctrl-service.init debian/vboxweb-service.init … … 264 268 $(if $(NOWEBSVC),,vboxwebsrv webtest); do \ 265 269 mv $(archdir)/$$i $(prefix)/usr/lib/$(package); done 270 $(if $(VNC),mv $(archdir)/ExtensionPacks/VNC $(prefix)/usr/lib/$(package)/ExtensionPacks,) 266 271 mv $(archdir)/VBoxTunctl $(prefix)/usr/bin 267 272 $(if $(NOMODS),,for d in $(moddir)/*; do \ … … 297 302 endif 298 303 rmdir $(archdir)/additions 304 $(if $(VNC),rmdir $(archdir)/ExtensionPacks) 299 305 rmdir $(archdir) 300 306 rmdir $(prefix)/opt -
trunk/src/VBox/Installer/linux/rpm/VirtualBox.tmpl.spec
r39333 r40390 4 4 5 5 # 6 # Copyright (C) 2006-201 1Oracle Corporation6 # Copyright (C) 2006-2012 Oracle Corporation 7 7 # 8 8 # This file is part of VirtualBox Open Source Edition (OSE), as … … 114 114 for i in VBoxSDL VirtualBox VBoxHeadless VBoxNetDHCP VBoxNetAdpCtl; do 115 115 chmod 4511 $RPM_BUILD_ROOT/usr/lib/virtualbox/$i; done 116 if [ -d ExtensionPacks/VNC ]; then 117 mv ExtensionPacks/VNC $RPM_BUILD_ROOT/usr/lib/virtualbox/ExtensionPacks 118 fi 116 119 mv VBoxTunctl $RPM_BUILD_ROOT/usr/bin 117 120 for d in /lib/modules/*; do -
trunk/src/VBox/Installer/linux/rpm/rules
r40264 r40390 1 1 #!/usr/bin/make -f 2 3 2 # 4 # Copyright (C) 2006-201 1Oracle Corporation3 # Copyright (C) 2006-2012 Oracle Corporation 5 4 # 6 5 # This file is part of VirtualBox Open Source Edition (OSE), as … … 13 12 # 14 13 14 # possible overrides: 15 # OSE=1 force VBOX_OSE 16 # NOPARALLEL=1 compile with -j1 17 # LINUX=<dir> compile vboxdrv against Linux found in <dir> 18 # VERBOSE=1 verbose build 19 # DEBUG=1 debug build 20 # NOSUBVER=1 disable generation of the sub-version field (which is 21 # either the subversion rev [if available] or the build date) 22 # NODOCS=1 don't build docs, use precompiled UserManual.pdf and 23 # VirtualBox.chm from $HOME 24 # NOMODS=1 don't build any module 25 # NOQT=1 don't build the Qt GUI 26 # EFI=1 include the EFI binary from prebuild 27 # VERSUFFIX=<suffix> set a particular package version suffix (e.g. _customer) 28 # HEADLESS=1 build the headless version 29 # VNC=1 build VNC code 30 # NOWEBSVC=1 don't build the webservice API, default for OSE 31 # STAGEDISO=<path> don't build the VBoxAdditions, use the precompiled .iso 32 # PKGDIR=<path> where to store the final package(s) 33 # BLEEDING_EDGE=xyz 34 15 35 ifeq ($(wildcard rpm/rules),) 16 36 $(error call rpm/rules from src/VBox/Installer/linux) … … 35 55 verpkg := VirtualBox-4.1 36 56 current := $(shell pwd) 37 vboxroot := $(shell cd ../../../.. /; pwd)57 vboxroot := $(shell cd ../../../..; pwd) 38 58 pkgdir := $(if $(PKGDIR),$(PKGDIR),$(shell cd ../../../../..; pwd)) 39 59 builddir := $(current)/rpm/builddir … … 41 61 arch := $(shell if [ `uname -m` = "x86_64" ]; then echo "amd64"; else echo "i386"; fi) 42 62 verfile := $(builddir)/version-generated.mk 63 ose := $(if $(OSE),1,$(if $(wildcard $(vboxroot)/src/VBox/RDP/server),,1)) 43 64 -include $(vboxroot)/SVN_REVISION 44 65 svnrev :=$(if $(svn_revision),$(svn_revision),0) 66 67 NOMODS ?= $(ose) 68 NOQT ?= $(HEADLESS) 69 NOWEBSVC ?= $(ose) 70 NOWINE := $(if $(NODOCS),$(if $(STAGEDISO),1,),)$(ose) 45 71 46 72 ifneq ($(MAKECMDGOALS),clean) … … 71 97 $(error failed to detect the .spec file (rpmrel=$(rpmrel))) 72 98 endif 73 74 include $(verfile) 75 $(verfile): rpm/configure-stamp 76 . rpm/env.sh && kmk -C $(vboxroot) $(bld_flags) $(verfile) 77 endif 78 99 endif 100 101 ifneq ($(wildcard $(verfile)),) 102 include $(verfile) 79 103 ver := $(VBOX_VERSION_STRING) 80 rpmver :=$(ver)$(if $(NOSUBVER),,$(if $(svn_revision),_$(svn_revision),)$(VERSUFFIX)$(if $( DEBUG),_dbg,))$(if $(BLEEDING_EDGE),_$(BLEEDING_EDGE),)104 rpmver :=$(ver)$(if $(NOSUBVER),,$(if $(svn_revision),_$(svn_revision),)$(VERSUFFIX)$(if $(HEADLESS),_headless,)$(if $(DEBUG),_dbg,))$(if $(BLEEDING_EDGE),_$(BLEEDING_EDGE),) 81 105 archdir := $(current)/rpm/VirtualBox-$(ver) 82 106 rpmname := $(verpkg)-$(rpmver)_$(rpmrel) 107 endif 83 108 84 109 # Fedora13/14 is bleeding edge, the other jails have outdated kernel headers … … 104 129 endif 105 130 106 cfg_flags := $(if $(filter rhel4 sles10.1,$(rpmrel)),--build-libxml2,) \ 131 cfg_flags := $(if $(NOQT),--disable-qt,) \ 132 $(if $(filter rhel4 sles10.1,$(rpmrel)),--build-libxml2,) \ 107 133 $(if $(filter rhel4,$(rpmrel)),--build-libssl,) \ 108 134 $(if $(filter rhel4 rhel5 ol4 ol5 centos4 centos5 sles10.1,$(rpmrel)),--build-libcurl,) \ … … 111 137 $(if $(filter rhel4 rhel5 ol4 ol5 centos4 centos5,$(rpmrel)),--enable-pulse,) \ 112 138 $(if $(filter rhel4 rhel5 ol4 ol5 centos4 centos5 sles10.1 turbolinux11,$(rpmrel)),--with-qt4-dir=/home/vbox/Qt-4.7.4-stdc++6-$(arch)) \ 139 $(if $(ose),--ose,) $(if $(LINUX),--with-linux=$(LINUX),) \ 140 $(if $(HEADLESS),--build-headless,) \ 113 141 $(if $(DEBUG),--build-debug,) \ 142 $(if $(NOWINE),,--setup-wine) \ 143 $(if $(NOWEBSVC),,--enable-webservice) \ 144 $(if $(VNC),--enable-vnc,) \ 114 145 --disable-extpack 115 146 … … 118 149 PATH_OUT=$(builddir) \ 119 150 VBOX_WITHOUT_EXTPACK_PUEL_PACKING=1 \ 151 VBOX_WITHOUT_EXTPACK_VNC_PACKING=1 \ 120 152 VBOX_DO_STRIP= \ 153 VBOX_DO_STRIP_MODULES= \ 121 154 VBOX_WITH_MULTIVERSION_PYTHON= \ 122 155 $(doc_dir) \ 123 VBOX_WITH_DOCS_CHM=1\156 $(if $(ose),,VBOX_WITH_DOCS_CHM=1) \ 124 157 VBOX_PACKAGE_DIST=$(rpmdist) \ 125 158 VBOX_SVN_REV=$(svnrev) \ … … 132 165 rpm/configure-stamp: 133 166 cd $(vboxroot) && ./configure --odir=$(current)/rpm $(cfg_flags) 134 touch $(current)/rpm/configure-stamp 135 136 rpm/build-stamp: rpm/configure-stamp 137 . rpm/env.sh && kmk -C $(vboxroot) $(if $(NOPARALLEL),-j1,) $(bld_flags) all 138 $(if $(NODOCS),,. rpm/env.sh && kmk -C $(vboxroot)/src/VBox/Main $(bld_flags) docs) 167 touch rpm/configure-stamp 168 169 rpm/build-stamp $(verfile): rpm/configure-stamp 170 . rpm/env.sh && kmk -C $(vboxroot) $(bld_flags) $(if $(NOPARALLEL),-j1,) all 139 171 $(if $(NODOCS),cp $(vboxroot)/prebuild/UserManual*.pdf $(builddir)/bin,) 140 172 $(if $(NODOCS),cp $(vboxroot)/prebuild/VirtualBox*.chm $(builddir)/bin,) … … 181 213 rpm/VirtualBox.tmpl.spec > $(archdir)/VirtualBox.spec 182 214 sed \ 183 -e 's|%NOLSB%|yes|g' \184 -e 's|%DEBIAN%||g' \185 -e 's|%PACKAGE%|virtualbox|g' \186 -e "s|%VERSION%|$(VBOX_VERSION_STRING)|g" \187 -e "s|%GROUP%|$(if $(VBOX_WITHOUT_HARDENING),vboxusers,root)|g" \188 vboxdrv.sh.in > $(archdir)/vboxdrv.init189 sed \ 190 -e 's|%NOLSB%|yes|g' \191 -e 's|%DEBIAN%||g' \192 -e 's|%PACKAGE%|virtualbox|g' \193 vboxballoonctrl-service.sh.in > $(archdir)/vboxballoonctrl-service.init194 sed \ 195 -e 's|%NOLSB%|yes|g' \196 -e 's|%DEBIAN%||g' \197 -e 's|%PACKAGE%|virtualbox|g' \198 vboxweb-service.sh.in > $(archdir)/vboxweb-service.init215 -e 's|%NOLSB%|yes|g' \ 216 -e 's|%DEBIAN%||g' \ 217 -e 's|%PACKAGE%|virtualbox|g' \ 218 -e "s|%VERSION%|$(VBOX_VERSION_STRING)|g" \ 219 -e "s|%GROUP%|$(if $(VBOX_WITHOUT_HARDENING),vboxusers,root)|g" \ 220 vboxdrv.sh.in > $(archdir)/vboxdrv.init 221 sed \ 222 -e 's|%NOLSB%|yes|g' \ 223 -e 's|%DEBIAN%||g' \ 224 -e 's|%PACKAGE%|virtualbox|g' \ 225 vboxballoonctrl-service.sh.in > $(archdir)/vboxballoonctrl-service.init 226 sed \ 227 -e 's|%NOLSB%|yes|g' \ 228 -e 's|%DEBIAN%||g' \ 229 -e 's|%PACKAGE%|virtualbox|g' \ 230 vboxweb-service.sh.in > $(archdir)/vboxweb-service.init 199 231 cp debian/VBox.sh $(archdir) 200 232 mv rpm/VirtualBox-$(ver) rpm/$(rpmname)
Note:
See TracChangeset
for help on using the changeset viewer.