[Pkg-virtualbox-commits] r314 - trunk/debian
lool at alioth.debian.org
lool at alioth.debian.org
Tue Jul 1 15:47:49 UTC 2008
Author: lool
Date: 2008-07-01 15:47:48 +0000 (Tue, 01 Jul 2008)
New Revision: 314
Modified:
trunk/debian/changelog
trunk/debian/rules
Log:
Cleanup rules slightly.
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2008-07-01 15:41:39 UTC (rev 313)
+++ trunk/debian/changelog 2008-07-01 15:47:48 UTC (rev 314)
@@ -34,6 +34,7 @@
* Move all -a flags to -s.
* Install files into virtualbox-ose-guest-utils unconditionally and ignore
errors -- even if these exist, the package is disabled on amd64.
+ * Cleanup rules slightly.
-- Michael Meskes <meskes at debian.org> Tue, 17 Jun 2008 14:52:36 +0200
Modified: trunk/debian/rules
===================================================================
--- trunk/debian/rules 2008-07-01 15:41:39 UTC (rev 313)
+++ trunk/debian/rules 2008-07-01 15:47:48 UTC (rev 314)
@@ -1,8 +1,5 @@
#!/usr/bin/make -f
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
include /usr/share/dpatch/dpatch.make
# some default definitions, important!
@@ -30,9 +27,9 @@
# Generate README.Debian as text/html ...
debian/README.Debian.html: debian/virtualbox-ose.README.Debian.xml
xsltproc --nonet --stringparam section.autolabel 1 \
- -o $@ \
- /usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl \
- $<
+ -o $@ \
+ /usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl \
+ $<
# ... and text/plain
debian/virtualbox-ose.README.Debian: debian/README.Debian.html
@@ -42,17 +39,20 @@
env.sh: patch-stamp
dh_testdir
- ./configure --with-linux="/usr" --disable-kmods --with-gcc=/usr/bin/gcc-4.2 --with-g++=/usr/bin/g++-4.2
+ ./configure \
+ --with-linux="/usr" \
+ --disable-kmods \
+ --with-gcc=/usr/bin/gcc-4.2 \
+ --with-g++=/usr/bin/g++-4.2
ifeq ($(VBOX_WITH_X11_ADDITIONS),)
- echo "VBOX_WITH_X11_ADDITIONS=" >>LocalConfig.kmk
+ echo "VBOX_WITH_X11_ADDITIONS=" >>LocalConfig.kmk
else
- echo "VBOX_WITH_X11_ADDITIONS=1" >>LocalConfig.kmk
+ echo "VBOX_WITH_X11_ADDITIONS=1" >>LocalConfig.kmk
endif
build: build-stamp
build-stamp: env.sh
dh_testdir
-
# Building package
(. env.sh; $(MAKE) \
BUILD_TYPE=release \
@@ -63,21 +63,17 @@
# and vboxnet.sh
$(MAKE) -C src/VBox/Installer/linux $(abspath out/obj/src/VBox/Installer/linux/vboxnet.sh) \
PATH_OUT=$(abspath out)
+ touch $@
- touch build-stamp
-
clean: unpatch
dh_testdir
dh_testroot
-
# Cleaning package
rm -rf out
rm -f AutoConfig.kmk configure.log env.sh LocalConfig.kmk
rm -f debian/$(sname).init debian/$(sname).preinst
rm -f debian/virtualbox-ose.README.Debian debian/README.Debian.html
-
debconf-updatepo
-
dh_clean
#Rebuild the orig.tar.gz
@@ -101,11 +97,10 @@
rm -f ./src/VBox/HostServices/SharedClipboard/linux-stub.cpp
rm -f ./src/VBox/Additions/linux/xmouse/Imakefile
rm -rf ./src/VBox/Additions/linux/selinux-fedora
-
(cd ..; mv $(CURDIR) virtualbox-ose-$(upstreamversion)-dfsg; \
- tar --exclude .svn --exclude '.git*' --exclude debian \
- -czf virtualbox-ose_$(upstreamversion)-dfsg.orig.tar.gz \
- virtualbox-ose-$(upstreamversion)-dfsg)
+ tar --exclude .svn --exclude '.git*' --exclude debian \
+ -czf virtualbox-ose_$(upstreamversion)-dfsg.orig.tar.gz \
+ virtualbox-ose-$(upstreamversion)-dfsg)
# install: DH_OPTIONS=
install: build debian/virtualbox-ose.README.Debian debian/README.Debian.html
@@ -113,15 +108,12 @@
dh_testroot
dh_clean -k
dh_installdirs
-
# This will get installed into the package by dh_installinit
install -m 644 out/obj/src/VBox/Installer/linux/vboxnet.sh debian/$(sname).init
-
# We also need to build a preinst file
sed -e 's/UPSTREAM/"$(upstreamversion)"/' < debian/$(sname).preinst.in > debian/$(sname).preinst
-
# Install helper scripts for vbox* interfaces
- dh_installifupdown -p${sname}
+ dh_installifupdown -p$(sname)
binary-arch: build install
dh_testdir -s
@@ -130,7 +122,7 @@
dh_installdocs -s
dh_installmenu -s
dh_install -s
- chmod 755 debian/$(sname)/usr/share/virtualbox/VBox.sh;
+ chmod 755 debian/$(sname)/usr/share/virtualbox/VBox.sh
-chmod 755 debian/$(uname)/usr/share/virtualbox/x11config.pl
-install -m 644 out/bin/additions/vboxvideo_drv_14.so debian/$(uname)/usr/lib/xorg/modules/drivers/vboxvideo_drv.so
-install -m 644 out/bin/additions/vboxmouse_drv_14.so debian/$(uname)/usr/lib/xorg/modules/input/vboxmouse_drv.so
@@ -160,11 +152,11 @@
dh_link -i
# Create .tar.bz2 for virtualbox*source
cd debian/$(psource)/usr/src && \
- tar -cjf $(sname).tar.bz2 modules && \
- rm -rf modules
+ tar -cjf $(sname).tar.bz2 modules && \
+ rm -rf modules
cd debian/$(gsource)/usr/src && \
- tar -cjf $(gname).tar.bz2 modules && \
- rm -rf modules
+ tar -cjf $(gname).tar.bz2 modules && \
+ rm -rf modules
dh_compress -i
dh_fixperms -i
dh_gencontrol -i
More information about the Pkg-virtualbox-commits
mailing list