forked from openvswitch/ovs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
debian: Apply Ubuntu patch to add DKMS support.
I tested that installing openvswitch-datapath-dkms worked OK on my own Debian machine. The bulk of this patch is taken from downstream Ubuntu DKMS support written by Chuck Short <[email protected]>, version 1.2.0-1ubuntu1. I made the following changes: * Update debian/.gitignore. * Update debian/automake.mk. * Correct description in debian/control (it was a cut-and-paste from the openvswitch-datapath-source description without editing). * Fix up for --with-l26 to --with-linux and datapath/linux-2.6 to datapath/linux transitions. CC: Chuck Short <[email protected]> CC: Dave Walker <[email protected]> Acked-by: Simon Horman <[email protected]>
- Loading branch information
Showing
8 changed files
with
74 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ Andy Southgate [email protected] | |
Ben Pfaff [email protected] | ||
Bryan Phillippe [email protected] | ||
Casey Barker [email protected] | ||
Chuck Short [email protected] | ||
Dan Wendlandt [email protected] | ||
David Erickson [email protected] | ||
Ethan Jackson [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
PACKAGE_NAME="openvswitch" | ||
PACKAGE_VERSION="__VERSION__" | ||
MAKE="./configure --with-linux=/usr/src/linux-headers-`uname -r` ; make -C datapath/linux" | ||
BUILT_MODULE_NAME[0]=openvswitch_mod | ||
BUILT_MODULE_NAME[1]=brcompat_mod | ||
BUILT_MODULE_LOCATION[0]=datapath/linux/ | ||
BUILT_MODULE_LOCATION[1]=datapath/linux/ | ||
DEST_MODULE_LOCATION[0]=/kernel/drivers/net/openvswitch/ | ||
DEST_MODULE_LOCATION[1]=/kernel/drivers/net/openvswitch/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
package=openvswitch-datapath-dkms | ||
name=openvswitch | ||
|
||
version=`dpkg-query -W -f='${Version}' "$package" \ | ||
|rev|cut -d- -f2-|rev|cut -d':' -f2|tr -d "\n"` | ||
|
||
isadded=`dkms status -m "$name" -v "$version"` | ||
|
||
if [ "x${isadded}" = "x" ] ; then | ||
dkms add -m "$name" -v "$version" | ||
fi | ||
|
||
if [ "$1" = 'configure' ] ; then | ||
dkms build -m "$name" -v "$version" && dkms install -m "$name" -v "$version" || true | ||
fi | ||
|
||
#DEBHELPER# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
package=openvswitch-datapath-dkms | ||
name=openvswitch | ||
|
||
version=`dpkg-query -W -f='${Version}' "$package" \ | ||
|rev|cut -d- -f2-|rev|cut -d':' -f2|tr -d "\n"` | ||
|
||
dkms remove -m "$name" -v "$version" --all || true | ||
|
||
#DEBHELPER# | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters