rules revision 0bd6dc6980372bcbc72756dfd401df65640b13a7
ca66273b61a8889f097081b01b6ff9a5f5801064Peter Major# Copyright (C) 2006-2011 Oracle Corporation
ca66273b61a8889f097081b01b6ff9a5f5801064Peter Major# This file is part of VirtualBox Open Source Edition (OSE), as
ca66273b61a8889f097081b01b6ff9a5f5801064Peter Major# available from http://www.virtualbox.org. This file is free software;
ca66273b61a8889f097081b01b6ff9a5f5801064Peter Major# you can redistribute it and/or modify it under the terms of the GNU
ca66273b61a8889f097081b01b6ff9a5f5801064Peter Major# General Public License as published by the Free Software Foundation,
ca66273b61a8889f097081b01b6ff9a5f5801064Peter Major# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
ca66273b61a8889f097081b01b6ff9a5f5801064Peter Major# distribution. VirtualBox OSE is distributed in the hope that it will
ca66273b61a8889f097081b01b6ff9a5f5801064Peter Major# be useful, but WITHOUT ANY WARRANTY of any kind.
ca66273b61a8889f097081b01b6ff9a5f5801064Peter Major# NOTE: if you make changes to this file, please check if the updates should
ca66273b61a8889f097081b01b6ff9a5f5801064Peter Major# be also applied to the publicly visible debian/rules file.
ca66273b61a8889f097081b01b6ff9a5f5801064Peter Major#export DH_VERBOSE=1
# 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)
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)
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 \
sed \
$(vboxroot)/src/VBox/Installer/linux/vboxballoonctrl-service.sh.in > debian/vboxballoonctrl-service.init
sed \
-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 \
# for some reason, the Qt libraries couldn't be found on newer releases (e.g. Ubuntu hardy)
dh_gencontrol -- \