rules revision f8cec848855143b787264c5456f9015e576b59d8
dc0d8d65d35787d30a275895ccad8d8e1b58a5ednd# Copyright (C) 2006-2012 Oracle Corporation
dc0d8d65d35787d30a275895ccad8d8e1b58a5ednd# This file is part of VirtualBox Open Source Edition (OSE), as
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# available from http://www.virtualbox.org. This file is free software;
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor# you can redistribute it and/or modify it under the terms of the GNU
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor# General Public License (GPL) as published by the Free Software
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor# Foundation, in version 2 as it comes in the "COPYING" file of the
69cbd335b8c18c32569dfd8a62e7c56e2e1724b5gryzor# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
6ae232055d4d8a97267517c5e50074c2c819941and# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# NOTE: if you make changes to this file, please check if the updates should
a78048ccbdb6256da15e6b0e7e95355e480c2301nd# be also applied to the publicly visible debian/rules file.
# NODOCS=1 don't build docs, use precompiled UserManual.pdf and
# VirtualBox.chm from $HOME
# VERSUFFIX=<suffix> set a particular package version suffix (e.g. _customer)
debver :=$(subst _ALPHA,~alpha,$(subst _BETA,~beta,$(subst _RC,~rc,$(subst _OSE,~ose,$(ver)))))$(svnver)$(if \
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
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 \
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 some reason, the Qt libraries couldn't be found on newer releases (e.g. Ubuntu hardy)
dh_gencontrol -- \