rules revision 9412416b1acca103e95801036a72cbfdcbc10969
fa073a3bc9ea2b9d238fd31e618643c5f1531327vboxsync# Copyright (C) 2006-2012 Oracle Corporation
fa073a3bc9ea2b9d238fd31e618643c5f1531327vboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
fa073a3bc9ea2b9d238fd31e618643c5f1531327vboxsync# available from http://www.virtualbox.org. This file is free software;
fa073a3bc9ea2b9d238fd31e618643c5f1531327vboxsync# you can redistribute it and/or modify it under the terms of the GNU
fa073a3bc9ea2b9d238fd31e618643c5f1531327vboxsync# General Public License (GPL) as published by the Free Software
fa073a3bc9ea2b9d238fd31e618643c5f1531327vboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
fa073a3bc9ea2b9d238fd31e618643c5f1531327vboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
fa073a3bc9ea2b9d238fd31e618643c5f1531327vboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
fa073a3bc9ea2b9d238fd31e618643c5f1531327vboxsync#export DH_VERBOSE=1
fa073a3bc9ea2b9d238fd31e618643c5f1531327vboxsync# possible overrides:
fa073a3bc9ea2b9d238fd31e618643c5f1531327vboxsync# OSE=1 force VBOX_OSE
fa073a3bc9ea2b9d238fd31e618643c5f1531327vboxsync# NOPARALLEL=1 compile with -j1
fa073a3bc9ea2b9d238fd31e618643c5f1531327vboxsync# LINUX=<dir> compile vboxdrv against Linux found in <dir>
fa073a3bc9ea2b9d238fd31e618643c5f1531327vboxsync# VERBOSE=1 verbose build
fa073a3bc9ea2b9d238fd31e618643c5f1531327vboxsync# DEBUG=1 debug build
fa073a3bc9ea2b9d238fd31e618643c5f1531327vboxsync# NOSUBVER=1 disable generation of the sub-version field (which is
fa073a3bc9ea2b9d238fd31e618643c5f1531327vboxsync# either the subversion rev [if available] or the build date)
fa073a3bc9ea2b9d238fd31e618643c5f1531327vboxsync# NODOCS=1 don't build docs, use precompiled UserManual.pdf and
fa073a3bc9ea2b9d238fd31e618643c5f1531327vboxsync# NOMODS=1 don't build any module
fa073a3bc9ea2b9d238fd31e618643c5f1531327vboxsync# NOQT=1 don't build the Qt GUI
fa073a3bc9ea2b9d238fd31e618643c5f1531327vboxsync# EFI=1 include the EFI binary from prebuild
fa073a3bc9ea2b9d238fd31e618643c5f1531327vboxsync# HEADLESS=1 build the headless version
fa073a3bc9ea2b9d238fd31e618643c5f1531327vboxsync# VNC=1 build VNC code
fa073a3bc9ea2b9d238fd31e618643c5f1531327vboxsync# NOWEBSVC=1 don't build the webservice API, default for OSE
fa073a3bc9ea2b9d238fd31e618643c5f1531327vboxsync# STAGEDISO=<path> don't build the VBoxAdditions, use the precompiled .iso
fa073a3bc9ea2b9d238fd31e618643c5f1531327vboxsync# PKGDIR=<path> where to store the final package(s)
fa073a3bc9ea2b9d238fd31e618643c5f1531327vboxsync# BLEEDING_EDGE=xyz
fa073a3bc9ea2b9d238fd31e618643c5f1531327vboxsyncpkgdir := $(if $(PKGDIR),$(PKGDIR),$(shell cd ..; pwd))
fa073a3bc9ea2b9d238fd31e618643c5f1531327vboxsyncose := $(if $(OSE),1,$(if $(wildcard $(vboxroot)/src/VBox/RDP/server),,1))
fa073a3bc9ea2b9d238fd31e618643c5f1531327vboxsyncNOWINE := $(if $(NODOCS),$(if $(STAGEDISO),1,),)$(ose)
debrel := $(if $(shell which lsb_release),_$(shell lsb_release -si)_$(shell lsb_release -sc),unknown)
instmod := $(if $(filter _Ubuntu_lucid _Ubuntu_maverick _Ubuntu_natty _Ubuntu_oneiric _Debian_sid,$(debrel)),,1)
rm -f debian/vboxballoonctrl-service.init debian/vboxautostart-service.init debian/vboxweb-service.init
dh_clean -k
rmdir $$i; \
sed \
if [ -f $$d/vboxdrv.ko -a -f $$d/vboxnetflt.ko -a -f $$d/vboxnetadp.ko -a -f $$d/vboxpci.ko ]; then \
install -D -g 0 -o 0 -m 0644 \
install -D -g 0 -o 0 -m 0644 \
install -D -g 0 -o 0 -m 0644 \
install -D -g 0 -o 0 -m 0644 \
dh_link \
sed \
cp $(vboxroot)/src/VBox/Installer/linux/vboxballoonctrl-service.sh debian/vboxballoonctrl-service.init
-e '/#include installer-common.sh/ {' \
dh_strip --keep-debug --exclude=libQtCoreVBox.so.4 --exclude=libQtGuiVBox.so.4 --exclude=libQtNetworkVBox.so.4 --exclude=libQtOpenGLVBox.so.4 --exclude=libqtaccessiblewidgets.so
for f in \
dh_gencontrol -- \