README for custom_kernel script by dabang (http://www.funzt.info/?p=331)
Vers. 0.51, Aug. 2009

For Debian based Linux distributions, tested on Debian Lenny.

This script will download kernel sources, start the compile process and build
Debian kernel packages. It's provided as is, I give no warranty whatsoever!
GPL2 licensened, please see:
http://www.gnu.org/licenses/gpl-2.0.txt


Prerequisites:
==============
- The following packages need to be installed prior running this script:

    * build-essential
    * fakeroot
    * kernel-package
    * libqt3-mt-dev
    * devscripts
    * debhelper
    * dpkg-dev
    * gnupg

- You should be member of the group 'src'!
  (su -c "usermod -aG src <USERNAME>")
  
- Import the kernel archive's gpg key to your gpg-keyring:
  # gpg --keyserver wwwkeys.pgp.net --recv-keys 0x517D0F0E
  (see http://www.kernel.org/signature.html)


Settings
========
You may adjust some settings by opening the script in your favorite editor:
have a look at the variables at the top.

ksrc_path
---------
This defaults to /usr/src (strongly recommended!) and will be the path to 
where the kernel source will be downloaded and extracted. The extracted 
sourcecode will reside in a subdirectory named after the kernel version, i.e.
/usr/src/2.6.29/kernel-2.9.29
Deb-packages will end up in /usr/src/2.6.29

k_src_url
---------
This is the URL where the kernel source will be downloaded from. You should
find the "linux-VERSION.tar.bz2" and signature files there. The default should
be fine.

conf_sample
-----------
This is the full path to an "old" .config file used for "make oldconfig". I tend
to have one called /usr/src/config-sample. You may copy /boot/config-VERSION to
/usr/src/config-sample. INFO: this file will be backed up and
overwritten with the new .config file at the end of the process!

targets
-------
Those packages will be built. I'd recommend at least "kernel_image" and
"kernel_headers". Read manpage of make-kpkg for details.

karch
-----
The architecture and processor type which will be attached to the kernel
version and deb-package name. If you have an Athlon64 CPU you may leave
the default. If not, please change accordingly. This is cosmetic only ;-)


Have fun!


-----------------
Changelog:
-----------------

0.51 - fixed checking for latest kernel version

0.5  - added search for latest kernel
     - added workaround for latest kernel-package in sid not building initrd

0.4  - initial release
