summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHilko Bengen <bengen@debian.org>2007-12-19 19:01:09 +0000
committerHilko Bengen <bengen@debian.org>2007-12-19 19:01:09 +0000
commit166ba8d88f3358431b9906f206d79a6eca85e20c (patch)
tree14b8ff2128a6194e71f1b7ec5aeb8494ea3f7eaf
parentfb687d4760028149c5e8e535a7f94df84ca410f4 (diff)
downloadvirtualbox-166ba8d88f3358431b9906f206d79a6eca85e20c.tar.gz
* Build system: a large move towards using dh_install
- This requires that we force the build output dir to a fixed location. - The dh_install call needs to go to the `install' target. * Leave out code/data for test cases from virtualbox-ose binary package
-rw-r--r--debian/changelog7
-rwxr-xr-xdebian/rules69
-rw-r--r--debian/virtualbox-ose-guest-source.install2
-rw-r--r--debian/virtualbox-ose-guest-utils.install2
-rw-r--r--debian/virtualbox-ose-source.install1
-rw-r--r--debian/virtualbox-ose.dirs1
-rw-r--r--debian/virtualbox-ose.install23
-rw-r--r--debian/virtualbox-ose.links5
8 files changed, 64 insertions, 46 deletions
diff --git a/debian/changelog b/debian/changelog
index 13fdd7251..733c1d272 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,13 +5,16 @@ virtualbox-ose (1.5.2-dfsg2-7) UNRELEASED; urgency=low
would like to compile it on it's own, or not with m-a. (Closes: #456989)
[ Hilko Bengen ]
- * install vbox.cfg using dh_install
+ * Build system: a large move towards using dh_install
+ - This requires that we force the build output dir to a fixed location.
+ - The dh_install call needs to go to the `install' target.
+ * Leave out code/data for test cases from virtualbox-ose binary package
[ Michael Meskes ]
* Only suggest guest-sources in guest-utils. With l-m-e expected to include
the guest-modules in the near future, this should be sufficient.
- -- Michael Meskes <meskes@debian.org> Wed, 19 Dec 2007 12:51:40 +0100
+ -- Hilko Bengen <bengen@debian.org> Wed, 19 Dec 2007 20:00:35 +0100
virtualbox-ose (1.5.2-dfsg2-6) unstable; urgency=low
diff --git a/debian/rules b/debian/rules
index aa351d98a..493c5b934 100755
--- a/debian/rules
+++ b/debian/rules
@@ -18,19 +18,21 @@ uname:=virtualbox-ose-guest-utils
MAKE:=kmk
-config-stamp: env.sh
env.sh: patch-stamp
dh_testdir
./configure --with-linux="/usr"
build: build-stamp
-build-stamp: config-stamp
+build-stamp: env.sh
dh_testdir
# Building package
- $(MAKE) BUILD_TYPE=release
+ $(MAKE) \
+ BUILD_TYPE=release \
+ PATH_OUT=$(abspath out)
# make sure VBoxAddIF.sh is built, too
- $(MAKE) -C src/VBox/Installer/linux `echo $(CURDIR)/out/linux.*/release/bin`/VBoxAddIF.sh
+ $(MAKE) -C src/VBox/Installer/linux $(abspath out/bin/VBoxAddIF.sh) \
+ PATH_OUT=$(abspath out)
touch build-stamp
@@ -66,49 +68,26 @@ dfsg-free:
cd .. && mv VirtualBox-1.5.2_OSE virtualbox-ose-1.5.2-dfsg2 && \
tar cfz virtualbox-ose_1.5.2-dfsg2.orig.tar.gz virtualbox-ose-1.5.2-dfsg2
-install: DH_OPTIONS=
+# install: DH_OPTIONS=
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
- install -D -m 0644 $(CURDIR)/debian/lintian/$(sname) \
- $(CURDIR)/debian/$(sname)/usr/share/lintian/overrides/$(sname)
-
# Installing virtualbox
- cp -r out/linux.*/release/bin debian/$(sname)/usr/lib/virtualbox
- # move architecture independant files to /usr/share/virtualbox instead of /usr/lib/virtualbox
- mv debian/$(sname)/usr/lib/virtualbox/nls debian/$(sname)/usr/share/virtualbox
- mv debian/$(sname)/usr/lib/virtualbox/sdk debian/$(sname)/usr/share/virtualbox
- mv debian/$(sname)/usr/share/virtualbox/sdk/bin/xpidl debian/$(sname)/usr/lib/virtualbox/
-
- install -D -m 0755 debian/scripts/VBox.sh debian/$(sname)/usr/lib/virtualbox
- mv debian/$(sname)/usr/lib/virtualbox/VBoxTunctl debian/$(sname)/usr/bin/
- mv debian/$(sname)/usr/lib/virtualbox/VBoxAddIF.sh debian/$(sname)/usr/bin/VBoxTAP
-
- install -D -m 0644 debian/desktop/virtualbox-ose.desktop debian/$(sname)/usr/share/applications/virtualbox-ose.desktop
- mv debian/$(sname)/usr/lib/virtualbox/VBox.png debian/$(sname)/usr/share/icons/virtualbox.png
- install -D -m 0644 debian/pixmap/virtualbox-ose.xpm debian/$(sname)/usr/share/pixmaps/virtualbox-ose.xpm
- install -D -m 644 src/VBox/Installer/linux/vboxnet.sh debian/$(sname).init
- install -D -m 644 debian/interfaces debian/$(sname)/etc/vbox
+ install -m 0755 debian/scripts/VBox.sh debian/$(sname)/usr/lib/virtualbox
- # Install virtualbox-ose-source
- mv debian/$(sname)/usr/lib/virtualbox/src/* debian/$(psource)/usr/src/modules/$(sname)
- rm -r debian/$(sname)/usr/lib/virtualbox/src
-
- # Install virtualbox-ose-guest-source
- mv debian/$(sname)/usr/lib/virtualbox/additions/src/vboxadd debian/$(gsource)/usr/src/modules/$(gname)
- mv debian/$(sname)/usr/lib/virtualbox/additions/src/vboxvfs debian/$(gsource)/usr/src/modules/$(gname)
- rm -r debian/$(sname)/usr/lib/virtualbox/additions/src
+ # This will get installed into the package by dh_installinit
+ install -m 644 src/VBox/Installer/linux/vboxnet.sh debian/$(sname).init
+ # Install virtualbox-ose-source
cp debian/control debian/changelog debian/copyright debian/compat debian/$(psource)/usr/src/modules/$(sname)/debian
cp debian/$(psource).control.modules.in debian/$(psource)/usr/src/modules/$(sname)/debian/control.modules.in
cp debian/$(psource).postinst.modules.in debian/$(psource)/usr/src/modules/$(sname)/debian/postinst.modules.in
install -m 755 debian/$(psource).rules debian/$(psource)/usr/src/modules/$(sname)/debian/rules
- cd debian/$(psource)/usr/src && tar c modules | bzip2 -9 > $(sname).tar.bz2 && rm -rf modules
-
+ # Install virtualbox-ose-guest-source
cp debian/control debian/changelog debian/copyright debian/compat debian/$(gsource)/usr/src/modules/$(gname)/debian
cp debian/$(gsource).control.modules.in debian/$(gsource)/usr/src/modules/$(gname)/debian/control.modules.in
cp debian/$(gsource).postinst.modules.in debian/$(gsource)/usr/src/modules/$(gname)/debian/postinst.modules.in
@@ -116,26 +95,29 @@ install: build
cp debian/$(gsource).Makefile debian/$(gsource)/usr/src/modules/$(gname)/Makefile
install -m 755 debian/$(gsource).rules debian/$(gsource)/usr/src/modules/$(gname)/debian/rules
- cd debian/$(gsource)/usr/src && tar c modules | bzip2 -9 > $(gname).tar.bz2 && rm -rf modules
-
# Install virtualbox guest additions
- mv debian/$(sname)/usr/lib/virtualbox/additions/vboxvideo_drv_14.so debian/$(uname)/usr/lib/xorg/modules/drivers/vboxvideo_drv.so
- mv debian/$(sname)/usr/lib/virtualbox/additions/vboxmouse_drv_14.so debian/$(uname)/usr/lib/xorg/modules/input/vboxmouse_drv.so
- mv debian/$(sname)/usr/lib/virtualbox/additions/mountvboxsf debian/$(uname)/sbin/mount.vboxsf
- mv debian/$(sname)/usr/lib/virtualbox/additions/vboxadd-timesync debian/$(uname)/usr/sbin/vboxadd-timesync
- mv debian/$(sname)/usr/lib/virtualbox/additions/vboxadd-xclient debian/$(uname)/usr/bin/vboxadd-xclient
+ install -m644 out/bin/additions/vboxvideo_drv_14.so debian/$(uname)/usr/lib/xorg/modules/drivers/vboxvideo_drv.so
+ install -m644 out/bin/additions/vboxmouse_drv_14.so debian/$(uname)/usr/lib/xorg/modules/input/vboxmouse_drv.so
+
+ install -m755 out/bin//additions/mountvboxsf debian/$(uname)/sbin/mount.vboxsf
install -m 755 src/VBox/Additions/linux/installer/x11config.pl debian/$(uname)/usr/lib/virtualbox/
install -m 644 src/VBox/Additions/linux/installer/98vboxadd-xclient debian/$(uname)/etc/X11/Xsession.d
- rm -r debian/$(sname)/usr/lib/virtualbox/additions
dh_install
+ # Create .tar.bz2 for virtualbox*source
+ cd debian/$(psource)/usr/src && \
+ tar -cjf $(sname).tar.bz2 modules && \
+ rm -rf modules
+ cd debian/$(gsource)/usr/src && \
+ tar -cjf $(gname).tar.bz2 modules && \
+ rm -rf modules
+
binary-arch: build install
dh_testdir -a
dh_testroot -a
dh_installchangelogs -a
dh_installdocs -a
- dh_install -a
dh_installmenu -a
dh_link -a
dh_strip -a --dbg-package=$(sname)-dbg
@@ -155,7 +137,6 @@ binary-indep: build install
dh_testroot -i
dh_installchangelogs -i
dh_installdocs -i
- dh_install -i
dh_link -i
dh_compress -i
dh_fixperms -i
@@ -165,5 +146,5 @@ binary-indep: build install
binary: binary-arch binary-indep
.PHONY: patch unpatch \
- config-stamp build clean binary-arch binary-indep binary install \
+ build clean binary-arch binary-indep binary install \
binary-modules kdist kdist_configure kdist_image kdist_clean
diff --git a/debian/virtualbox-ose-guest-source.install b/debian/virtualbox-ose-guest-source.install
new file mode 100644
index 000000000..3788fdbb4
--- /dev/null
+++ b/debian/virtualbox-ose-guest-source.install
@@ -0,0 +1,2 @@
+out/bin/additions/src/vboxadd /usr/src/modules/virtualbox-ose-guest
+out/bin//additions/src/vboxvfs /usr/src/modules/virtualbox-ose-guest
diff --git a/debian/virtualbox-ose-guest-utils.install b/debian/virtualbox-ose-guest-utils.install
new file mode 100644
index 000000000..68b1104f3
--- /dev/null
+++ b/debian/virtualbox-ose-guest-utils.install
@@ -0,0 +1,2 @@
+out/bin/additions/vboxadd-timesync /usr/sbin
+out/bin/additions/vboxadd-xclient /usr/bin
diff --git a/debian/virtualbox-ose-source.install b/debian/virtualbox-ose-source.install
new file mode 100644
index 000000000..ee1e9554e
--- /dev/null
+++ b/debian/virtualbox-ose-source.install
@@ -0,0 +1 @@
+out/bin/src/* /usr/src/modules/virtualbox-ose
diff --git a/debian/virtualbox-ose.dirs b/debian/virtualbox-ose.dirs
index 4c6adfc9f..2f99ee940 100644
--- a/debian/virtualbox-ose.dirs
+++ b/debian/virtualbox-ose.dirs
@@ -1,5 +1,6 @@
usr/bin
usr/lib
+usr/lib/virtualbox
usr/share/virtualbox
usr/share/icons
etc/vbox
diff --git a/debian/virtualbox-ose.install b/debian/virtualbox-ose.install
index e925550a6..e0c0b63ab 100644
--- a/debian/virtualbox-ose.install
+++ b/debian/virtualbox-ose.install
@@ -1 +1,24 @@
debian/vbox.cfg /etc/vbox
+debian/interfaces /etc/vbox
+
+debian/desktop/virtualbox-ose.desktop /usr/share/applications
+debian/pixmap/virtualbox-ose.xpm /usr/share/pixmaps
+
+debian/lintian/virtualbox-ose /usr/share/lintian/overrides
+
+out/bin/components /usr/lib/virtualbox
+out/bin/SUP* out/bin/VBoxAddIF.sh out/bin/VBoxBFE /usr/lib/virtualbox
+out/bin/VBoxManage out/bin/VBoxSDL out/bin/VBox.sh /usr/lib/virtualbox
+out/bin/VBoxSVC out/bin/VBoxTunctl out/bin/VBoxXPCOM* /usr/lib/virtualbox
+out/bin/vditool out/bin/VirtualBox* /usr/lib/virtualbox
+
+out/bin/VBox*.so out/bin/VBox*.gc out/bin/VBox*.r0 /usr/lib/virtualbox
+
+out/bin/VirtualBox* /usr/lib/virtualbox
+out/bin/VMM* /usr/lib/virtualbox
+
+out/bin/nls /usr/share/virtualbox
+out/bin/sdk /usr/share/virtualbox
+out/bin/VBox.png /usr/share/virtualbox
+
+out/bin/sdk/bin/xpidl /usr/lib/virtualbox
diff --git a/debian/virtualbox-ose.links b/debian/virtualbox-ose.links
index ef29a071a..c2ea0cfcc 100644
--- a/debian/virtualbox-ose.links
+++ b/debian/virtualbox-ose.links
@@ -10,3 +10,8 @@
/usr/bin/VboxTAP /usr/bin/VBoxAddIF
/usr/bin/VboxTAP /usr/bin/VBoxDeleteIF
+
+/usr/share/virtualbox/VBox.png /usr/share/icons/virtualbox.png
+
+/usr/lib/virtualbox/VBoxTunctl /usr/bin/VBoxTunctl
+/usr/lib/virtualbox/VBoxAddIF.sh /usr/bin/VBoxTAP