~ikhatib/+junk/dkms-raring

« back to all changes in this revision

Viewing changes to debian/HOWTO.Debian

  • Committer: Ismail Khatib
  • Date: 2013-06-11 23:42:54 UTC
  • Revision ID: ikhatib@gmail.com-20130611234254-ljmxk7sve5olw6eq
Initial import, version 2.2.0.3-1.1ubuntu2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
HOWTO Build DKMS debs w/ Debian & Ubuntu systems
 
2
Copyright 2008 Dell Inc.
 
3
 Author: Mario Limonciello <Mario_Limonciello@Dell.com>
 
4
 
 
5
------------
 
6
 
 
7
A dkms deb is a common representation of a DKMS package that can be distributed across multiple machines.
 
8
After you have a functional DKMS package, you can follow these steps to build a DKMS deb.
 
9
 
 
10
1) Start out by putting together a tree in /usr/src/PACKAGE-VERSION.  For our example, we are going to use
 
11
the PACKAGE lirc and VERSION 0.8.3~pre1.  Create a dkms.conf per the recommendations in the DKMS guide.
 
12
 
 
13
2) "Add" the package to the dkms tree system:
 
14
        dkms add -m lirc -v 0.8.3~pre1
 
15
 
 
16
3) "Build" the binary modules for the current kernel:
 
17
        dkms build -m lirc -v 0.8.3~pre1
 
18
 
 
19
4) Make the deb and/or dsc for the package:
 
20
        dkms mkdeb -m lirc -v 0.8.3~pre1
 
21
        dkms mkdsc -m lirc -v 0.8.3~pre1
 
22
 
 
23
The end result will be a deb and/or dsc in /var/lib/dkms/lirc/0.8.3~pre1/deb or /var/lib/dkms/lirc/0.8.3~pre1/dsc
 
24
 
 
25
------------
 
26
If you would prefer not to contaminate your system with the changes from building these debs, you should
 
27
create a framework.conf that contains these variables (adjust for your use case):
 
28
 
 
29
        source_tree="/path/to/source/tree"
 
30
        dkms_tree="/path/to/dkms/tree"
 
31
 
 
32
You will then call DKMS with an extra variable, '--dkmsframework'.  Here is an example of how this would work
 
33
using the same lirc example above:
 
34
 
 
35
        dkms add -m lirc -v 0.8.3~pre1 --dkmsframework framework.conf
 
36
        dkms build -m lirc -v 0.8.3~pre1 --dkmsframework framework.conf
 
37
        dkms mkdeb -m lirc -v 0.8.3~pre1 --dkmsframework framework.conf
 
38
        dkms mkdsc -m lirc -v 0.8.3~pre1 --dkmsframework framework.conf
 
39
 
 
40
The end result will be both a debian binary package and a debian source package that you can use.