Adding ubuntu dkms source module packaging scripts for microdia driver
[pkgmicrodia.git] / ubuntu / README
blob0d6814c9dc7a208468f177f7130e329de906c507
1 These are driver packaging scripts for Microdia Webcam Kernel Driver
2 More info here: https://groups.google.com/group/microdia/
5 Get the source
6  $ wget -c http://repo.or.cz/w/microdia.git?a=snapshot;sf=tgz
7 Untar it to get the following folder
8  /microdia
10 Rename the folder to the following format
11 microdia-YYYY.MM 
12 example /microdia-2008.10
14 Delete the following file /microdia-2008.10/Makefile
15 Replace it with the Makefile from Ubuntu packaging scripts git repo
17 Copy the /debian folder from the Ubuntu packaging scripts git repo
18 to the /microdia-2008.10 folder
20 Edit the /debian folder contents as required
21 Then in order to make a package for intrepid,
22 in the file /debian/changelog
23 change microdia-dkms (2008.10-0ubuntu1~ppa3h) hardy; urgency=low
24 to     microdia-dkms (2008.10-0ubuntu1~ppa3i) intrepid; urgency=low
26 *to generate binary packages only see Note: at the bottom
28 Then open /microdia-2008.10 in a terminal
29 and run
30 $ debuild -S -sa
31 This will generate the source packages for PPA upload 
33 remember to put your PPA details in ~/.dput.cf
34 /*Example .dput.cf file */
35 [my-ppa]
36 fqdn = ppa.launchpad.net
37 method = ftp
38 incoming = ~nickel62metal/ubuntu/
39 login = anonymous
40 allow_unsigned_uploads = 0
41 /*Example .dput.cf file */
43 then upload the source dkms module to PPA archive
45 dput my-ppa ../${PKG_NAME}_${PKG_VERSION}-0ubuntu1~ppa3i_source.changes
47 and we are done!
50 Note: If you just want to generate binary packages for your own use
51 in a terminal window $cd to /microdia-2008.10
52 $ fakeroot debian/rules clean
53 $ fakeroot debian/rules binary
54 This will generate binary debian/ubuntu packages that only work with your kernel