Changeset 58386 in vbox for trunk/src/VBox
- Timestamp:
- Oct 23, 2015 10:52:35 AM (9 years ago)
- Location:
- trunk/src/VBox/Installer/linux
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/linux/debian/rules
r58379 r58386 213 213 install -d -g 0 -o 0 $(prefix)/usr/lib 214 214 install -d -g 0 -o 0 $(prefix)/usr/bin 215 install -d -g 0 -o 0 $(prefix)/usr/lib/$(package)216 215 install -d -g 0 -o 0 $(prefix)/usr/share/$(package) 217 216 install -d -g 0 -o 0 $(prefix)/usr/share/doc/$(verpkg) … … 236 235 done) 237 236 $(if $(NOQT),,rmdir $(archdir)/icons) 238 install -d -g 0 -o 0 $(prefix)/usr/lib/$(package)/ExtensionPacks239 237 $(if $(NOQT),,mv $(archdir)/virtualbox.xml debian/$(verpkg).sharedmimeinfo) 240 238 install -d -g 0 -o 0 $(prefix)/usr/share/lintian/overrides … … 243 241 debian/lintian-override.in > \ 244 242 $(prefix)/usr/share/lintian/overrides/$(verpkg) 245 mv $(archdir)/VBoxEFI32.fd $(prefix)/usr/lib/$(package)246 mv $(archdir)/VBoxEFI64.fd $(prefix)/usr/lib/$(package)247 243 mv $(archdir)/VBox.png \ 248 244 $(prefix)/usr/share/pixmaps/VBox.png 249 mv $(archdir)/*.rc $(prefix)/usr/lib/$(package)250 mv $(archdir)/*.r0 $(prefix)/usr/lib/$(package)251 mv $(archdir)/*.rel $(prefix)/usr/lib/$(package) || true252 mv $(archdir)/VBoxNetDHCP $(prefix)/usr/lib/$(package)253 mv $(archdir)/VBoxNetAdpCtl $(prefix)/usr/lib/$(package)254 if [ -f $(archdir)/VBoxVolInfo ]; then \255 mv $(archdir)/VBoxVolInfo $(prefix)/usr/lib/$(package); \256 fi257 mv $(archdir)/VBoxXPCOMIPCD $(prefix)/usr/lib/$(package)258 mv $(archdir)/components $(prefix)/usr/lib/$(package)/components259 mv $(archdir)/*.so $(prefix)/usr/lib/$(package)260 mv $(archdir)/*.so.4 $(prefix)/usr/lib/$(package) || true261 $(if $(NOQT),,mv $(archdir)/VBoxTestOGL $(prefix)/usr/lib/$(package))262 $(if $(NOQT),,mv $(archdir)/nls $(prefix)/usr/share/$(package))263 245 mv $(archdir)/src $(prefix)/usr/share/$(package) 264 246 rm $(archdir)/VBox.sh 265 export VBOX_INSTALL_PATH=/usr/lib/$(package) && \266 cd $(builddir)/bin/sdk/installer && \267 python ./vboxapisetup.py install --root $(prefix)268 rm -rf $(archdir)/sdk/installer269 mv $(archdir)/vboxshell.py $(prefix)/usr/lib/$(package)270 mv $(archdir)/sdk $(prefix)/usr/lib/$(package)271 247 install -D -g 0 -o 0 -m 644 VBox.sh $(prefix)/usr/bin/VBox 272 248 mv $(archdir)/VBoxSysInfo.sh $(prefix)/usr/share/$(package) 273 for i in VBoxManage VBoxSVC $(if $(HEADLESS),,VBoxSDL) \274 $(if $(NOQT),,VirtualBox) VBoxHeadless \275 VBoxExtPackHelperApp VBoxBalloonCtrl VBoxAutostart \276 $(if $(NOWEBSVC),,vboxwebsrv webtest) \277 $(if $(NOVBOXIMG),,vbox-img) VBoxNetNAT; do \278 mv $(archdir)/$$i $(prefix)/usr/lib/$(package); done279 $(if $(VNC),mv $(archdir)/ExtensionPacks/VNC $(prefix)/usr/lib/$(package)/ExtensionPacks,)280 249 if [ -r $(archdir)/VBoxDTrace ]; then \ 281 250 mv $(archdir)/VBoxDTrace $(prefix)/usr/bin; \ 282 mv $(archdir)/dtrace $(prefix)/usr/lib/$(package); \283 251 fi 284 252 mv $(archdir)/VBoxTunctl $(prefix)/usr/bin … … 296 264 done) 297 265 ifeq ($(ose),) 298 $(if $(NOQT),,mv $(archdir)/kchmviewer $(prefix)/usr/lib/$(package))299 266 dh_installdocs \ 300 267 $(archdir)/UserManual*.pdf $(archdir)/VirtualBox*.chm \ … … 306 273 $(if $(HEADLESS),,mv $(archdir)/rdesktop-vrdp $(prefix)/usr/bin) 307 274 $(if $(HEADLESS),,mv $(archdir)/rdesktop-vrdp-keymaps $(prefix)/usr/share/$(package)) 308 if [ -d $(archdir)/accessible ]; then mv $(archdir)/accessible $(prefix)/usr/lib/virtualbox; fi309 275 else 310 276 dh_installdocs \ … … 314 280 mv $(archdir)/$$i $(prefix)/usr/share/$(package); done 315 281 endif 316 for i in vboxdrv.sh vboxballoonctrl-service.sh vboxautostart-service.sh \317 vboxweb-service.sh postinst-common.sh prerm-common.sh routines.sh \318 VBoxCreateUSBNode.sh; do \319 mv $(archdir)/$$i $(prefix)/usr/lib/$(package); \320 done321 rmdir $(archdir)/additions322 $(if $(VNC),rmdir $(archdir)/ExtensionPacks)323 282 rm -r $(archdir)/helpers 324 283 rm -r $(archdir)/scripts 325 rmdir $(archdir) 284 mv $(archdir) $(prefix)/usr/lib/$(package) 285 export VBOX_INSTALL_PATH=/usr/lib/$(package) && \ 286 cd $(builddir)/bin/sdk/installer && \ 287 python ./vboxapisetup.py install --root $(prefix) 288 rm -rf $(prefix)/usr/lib/$(package)/sdk/installer 326 289 ln -s ../VBoxVMM.so $(prefix)/usr/lib/$(package)/components/VBoxVMM.so 327 290 rmdir $(prefix)/opt -
trunk/src/VBox/Installer/linux/rpm/VirtualBox.tmpl.spec
r58241 r58386 17 17 %define %SPEC% 1 18 18 %define %OSE% 1 19 %define VBOXDOCDIR %{_defaultdocdir}/%NAME%-%VER% 19 20 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} 20 21 … … 69 70 install -m 755 -d $RPM_BUILD_ROOT/usr/share/pixmaps 70 71 install -m 755 -d $RPM_BUILD_ROOT/usr/share/icons/hicolor 71 install -m 755 -d $RPM_BUILD_ROOT%{ _defaultdocdir}/virtualbox72 install -m 755 -d $RPM_BUILD_ROOT%{VBOXDOCDIR} 72 73 install -m 755 -d $RPM_BUILD_ROOT/usr/lib/virtualbox 73 install -m 755 -d $RPM_BUILD_ROOT/usr/lib/virtualbox/ExtensionPacks74 74 install -m 755 -d $RPM_BUILD_ROOT/usr/share/virtualbox 75 75 install -m 755 -d $RPM_BUILD_ROOT/usr/share/mime/packages 76 mv VBoxEFI32.fd $RPM_BUILD_ROOT/usr/lib/virtualbox || true77 mv VBoxEFI64.fd $RPM_BUILD_ROOT/usr/lib/virtualbox || true78 mv *.rc $RPM_BUILD_ROOT/usr/lib/virtualbox79 mv *.r0 $RPM_BUILD_ROOT/usr/lib/virtualbox80 mv *.rel $RPM_BUILD_ROOT/usr/lib/virtualbox || true81 mv VBoxNetDHCP $RPM_BUILD_ROOT/usr/lib/virtualbox82 mv VBoxNetNAT $RPM_BUILD_ROOT/usr/lib/virtualbox83 mv VBoxNetAdpCtl $RPM_BUILD_ROOT/usr/lib/virtualbox84 if [ -f VBoxVolInfo ]; then85 mv VBoxVolInfo $RPM_BUILD_ROOT/usr/lib/virtualbox86 fi87 mv VBoxXPCOMIPCD $RPM_BUILD_ROOT/usr/lib/virtualbox88 mv components $RPM_BUILD_ROOT/usr/lib/virtualbox/components89 mv *.so $RPM_BUILD_ROOT/usr/lib/virtualbox90 mv *.so.4 $RPM_BUILD_ROOT/usr/lib/virtualbox || true91 ln -s ../VBoxVMM.so $RPM_BUILD_ROOT/usr/lib/virtualbox/components/VBoxVMM.so92 mv VBoxTestOGL $RPM_BUILD_ROOT/usr/lib/virtualbox93 mv vboxshell.py $RPM_BUILD_ROOT/usr/lib/virtualbox94 76 (export VBOX_INSTALL_PATH=/usr/lib/virtualbox && \ 95 77 cd ./sdk/installer && \ 96 78 %{__python} ./vboxapisetup.py install --prefix %{_prefix} --root $RPM_BUILD_ROOT) 97 79 rm -rf sdk/installer 98 mv sdk $RPM_BUILD_ROOT/usr/lib/virtualbox99 80 mv nls $RPM_BUILD_ROOT/usr/share/virtualbox 100 81 cp -a src $RPM_BUILD_ROOT/usr/share/virtualbox 101 82 mv VBox.sh $RPM_BUILD_ROOT/usr/bin/VBox 102 83 mv VBoxSysInfo.sh $RPM_BUILD_ROOT/usr/share/virtualbox 103 mv VBoxCreateUSBNode.sh $RPM_BUILD_ROOT/usr/lib/virtualbox104 84 cp icons/128x128/virtualbox.png $RPM_BUILD_ROOT/usr/share/pixmaps/virtualbox.png 105 85 cd icons … … 116 96 rmdir icons 117 97 mv virtualbox.xml $RPM_BUILD_ROOT/usr/share/mime/packages 118 for i in VBoxManage VBoxSVC VirtualBox VBoxHeadless VBoxDTrace VBoxExtPackHelperApp VBoxBalloonCtrl VBoxAutostart vbox-img; do119 mv $i $RPM_BUILD_ROOT/usr/lib/virtualbox; done120 if %WEBSVC%; then121 for i in vboxwebsrv webtest; do122 mv $i $RPM_BUILD_ROOT/usr/lib/virtualbox; done123 fi124 test -f VBoxSDL && mv VBoxSDL $RPM_BUILD_ROOT/usr/lib/virtualbox125 for i in VirtualBox VBoxHeadless VBoxNetDHCP VBoxNetNAT VBoxNetAdpCtl; do126 chmod 4511 $RPM_BUILD_ROOT/usr/lib/virtualbox/$i; done127 if [ -f $RPM_BUILD_ROOT/usr/lib/virtualbox/VBoxVolInfo ]; then128 chmod 4511 $RPM_BUILD_ROOT/usr/lib/virtualbox/VBoxVolInfo129 fi130 test -f VBoxSDL && chmod 4511 $RPM_BUILD_ROOT/usr/lib/virtualbox/VBoxSDL131 if [ -d ExtensionPacks/VNC ]; then132 mv ExtensionPacks/VNC $RPM_BUILD_ROOT/usr/lib/virtualbox/ExtensionPacks133 fi134 98 mv VBoxTunctl $RPM_BUILD_ROOT/usr/bin 135 99 %if %{?is_ose:0}%{!?is_ose:1} … … 159 123 fi 160 124 done 125 rm -r src 161 126 %endif 162 127 %if %{?is_ose:0}%{!?is_ose:1} 163 mv kchmviewer $RPM_BUILD_ROOT/usr/lib/virtualbox164 128 for i in rdesktop-vrdp.tar.gz rdesktop-vrdp-keymaps; do 165 129 mv $i $RPM_BUILD_ROOT/usr/share/virtualbox; done … … 168 132 for i in additions/VBoxGuestAdditions.iso; do 169 133 mv $i $RPM_BUILD_ROOT/usr/share/virtualbox; done 170 if [ -d accessible ]; then171 mv accessible $RPM_BUILD_ROOT/usr/lib/virtualbox172 fi173 mv vboxdrv.sh $RPM_BUILD_ROOT/usr/lib/virtualbox174 mv vboxballoonctrl-service.sh $RPM_BUILD_ROOT/usr/lib/virtualbox175 mv vboxautostart-service.sh $RPM_BUILD_ROOT/usr/lib/virtualbox176 mv vboxweb-service.sh $RPM_BUILD_ROOT/usr/lib/virtualbox177 mv postinst-common.sh $RPM_BUILD_ROOT/usr/lib/virtualbox178 mv prerm-common.sh $RPM_BUILD_ROOT/usr/lib/virtualbox179 mv routines.sh $RPM_BUILD_ROOT/usr/lib/virtualbox180 134 ln -s VBox $RPM_BUILD_ROOT/usr/bin/VirtualBox 181 135 ln -s VBox $RPM_BUILD_ROOT/usr/bin/virtualbox … … 198 152 mv virtualbox.desktop $RPM_BUILD_ROOT/usr/share/applications/virtualbox.desktop 199 153 mv VBox.png $RPM_BUILD_ROOT/usr/share/pixmaps/VBox.png 154 %{!?is_ose: mv LICENSE $RPM_BUILD_ROOT%{VBOXDOCDIR}} 155 mv UserManual*.pdf $RPM_BUILD_ROOT%{VBOXDOCDIR} 156 %{!?is_ose: mv VirtualBox*.chm $RPM_BUILD_ROOT%{VBOXDOCDIR}} 157 mv * $RPM_BUILD_ROOT/usr/lib/virtualbox 158 ln -s ../VBoxVMM.so $RPM_BUILD_ROOT/usr/lib/virtualbox/components/VBoxVMM.so 159 for i in VirtualBox VBoxHeadless VBoxNetDHCP VBoxNetNAT VBoxNetAdpCtl; do 160 chmod 4511 $RPM_BUILD_ROOT/usr/lib/virtualbox/$i; done 161 if [ -f $RPM_BUILD_ROOT/usr/lib/virtualbox/VBoxVolInfo ]; then 162 chmod 4511 $RPM_BUILD_ROOT/usr/lib/virtualbox/VBoxVolInfo 163 fi 164 test -f $RPM_BUILD_ROOT/usr/lib/virtualbox/VBoxSDL && \ 165 chmod 4511 $RPM_BUILD_ROOT/usr/lib/virtualbox/VBoxSDL 200 166 201 167 … … 318 284 %files 319 285 %defattr(-,root,root) 320 %doc %{!?is_ose: LICENSE} 321 %doc UserManual*.pdf 322 %doc %{!?is_ose: VirtualBox*.chm} 286 %doc %{VBOXDOCDIR}/* 323 287 %{?rpm_suse: %{py_sitedir}/*} 324 288 %{!?rpm_suse: %{python_sitelib}/*}
Note:
See TracChangeset
for help on using the changeset viewer.