diff -Nru open-vm-tools-2009.07.22-179896/debian/changelog open-vm-tools-2009.07.22-179896/debian/changelog --- open-vm-tools-2009.07.22-179896/debian/changelog 2009-08-28 03:33:57.000000000 +0000 +++ open-vm-tools-2009.07.22-179896/debian/changelog 2009-08-28 03:33:58.000000000 +0000 @@ -1,3 +1,9 @@ +open-vm-tools (2009.07.22-179896-2~ppa3) karmic; urgency=low + + * add support for dkms. (LP: 277556) + + -- Greek Ordono Fri, 28 Aug 2009 03:19:07 +0000 + open-vm-tools (2009.07.22-179896-2) unstable; urgency=low * Temporarily building without dumbnet, the recently uploaded diff -Nru open-vm-tools-2009.07.22-179896/debian/control open-vm-tools-2009.07.22-179896/debian/control --- open-vm-tools-2009.07.22-179896/debian/control 2009-08-28 03:33:57.000000000 +0000 +++ open-vm-tools-2009.07.22-179896/debian/control 2009-08-28 03:33:58.000000000 +0000 @@ -62,3 +62,13 @@ This package provides the source code for the open-vm kernel modules. The open-vm-tools package is also required in order to make use of these modules. Kernel source or headers are required to compile these modules. + +Package: open-vm-dkms +Architecture: all +Depends: dkms, gcc, make, linux-headers | linux-headers-virtual +Recommends: open-vm-tools +Suggests: open-vm-toolbox +Description: DKMS source for VMware guest systems driver + This package provides the source code for the open-vm kernel modules. + The open-vm-tools package is also required in order to make use of these + modules. Kernel source or headers are required to compile these modules. diff -Nru open-vm-tools-2009.07.22-179896/debian/open-vm-dkms.postinst open-vm-tools-2009.07.22-179896/debian/open-vm-dkms.postinst --- open-vm-tools-2009.07.22-179896/debian/open-vm-dkms.postinst 1970-01-01 00:00:00.000000000 +0000 +++ open-vm-tools-2009.07.22-179896/debian/open-vm-dkms.postinst 2009-08-28 03:33:58.000000000 +0000 @@ -0,0 +1,21 @@ +#!/bin/sh +# Copyright (C) 2002-2005 Flavio Stanchina +# Copyright (C) 2005-2006 Aric Cyr +# Copyright (C) 2007 Mario Limonciello + +CVERSION=`dpkg-query -W -f='${Version}' open-vm-dkms | awk -F "-" '{print $1}' | cut -d\: -f2` + +#DEBHELPER# + +case "$1" in + configure) + echo "Adding Module to DKMS build system" + dkms add -m open-vm-tools -v $CVERSION > /dev/null + echo "Doing initial module build" + dkms build -m open-vm-tools -v $CVERSION > /dev/null + echo "Installing initial module" + dkms install -m open-vm-tools -v $CVERSION --force > /dev/null + echo "Done." + ;; +esac + diff -Nru open-vm-tools-2009.07.22-179896/debian/open-vm-dkms.prerm open-vm-tools-2009.07.22-179896/debian/open-vm-dkms.prerm --- open-vm-tools-2009.07.22-179896/debian/open-vm-dkms.prerm 1970-01-01 00:00:00.000000000 +0000 +++ open-vm-tools-2009.07.22-179896/debian/open-vm-dkms.prerm 2009-08-28 03:33:58.000000000 +0000 @@ -0,0 +1,15 @@ +#!/bin/sh +# Copyright (C) 2002-2005 Flavio Stanchina +# Copyright (C) 2005-2006 Aric Cyr +# Copyright (C) 2007-2008 Mario Limonciello + +#DEBHELPER# + +CVERSION=`dpkg-query -W -f='${Version}' open-vm-dkms | awk -F "-" '{print $1}' | cut -d\: -f2` +case "$1" in + remove|upgrade) + echo "Removing all DKMS Modules" + dkms remove -m open-vm-tools -v $CVERSION --all > /dev/null + echo "Done." + ;; +esac diff -Nru open-vm-tools-2009.07.22-179896/debian/rules open-vm-tools-2009.07.22-179896/debian/rules --- open-vm-tools-2009.07.22-179896/debian/rules 2009-08-28 03:33:57.000000000 +0000 +++ open-vm-tools-2009.07.22-179896/debian/rules 2009-08-28 03:33:58.000000000 +0000 @@ -16,6 +16,7 @@ CONFIGURE_FLAGS = --without-procps endif +SRC_VERSION = $(shell dpkg-parsechangelog | grep '^Version:' | cut -d' ' -f2 | cut -d- -f1 | cut -d\: -f2) #CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) @@ -132,6 +133,11 @@ dh_prep dh_installdirs + # Installing dkms version + mkdir -p debian/open-vm-dkms/usr/src + sh modules/linux/dkms.sh . debian/open-vm-dkms/usr/src + + # Installing package $(MAKE) DESTDIR=$(CURDIR)/debian/open-vm-tools install