[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Question about rules file

Martin Kelly wrote:
> I am creating a package for the of rtl8180-sa2400 drivers
> (http://sourceforge.net/projects/rtl8180-sa2400) and I have a question
> about editing the rules file in debian/ in the source archive after dh_make.
> I wish for the package to install some files in three places:
> 1. /lib/modules/$(uname -r)/kernel/wireless (kernel modules)
> 2. /lib/modules/$(uname -r)/kernel/wireless/alg (more kernel modules)

I believe the "kernel" sub-directory is meant only for modules that are
built from the official kernel source.  Other modules should go in a
separate sub-directory; common practice is to use a sub-directory named
like the package, such as "nvidia" or "madwifi".

> 3. /usr/sbin (some load and unload module scripts)

Those should be in a separate package, so that users can install the
modules for multiple kernels.

> I edited the Makefile to install into DESTDIR and defined DESTDIR to be 
> /lib/modules/$(uname -r)/kernel/wireless so that should work.
> What I'm wondering is two things:
> 1. How do I specify what to install into /usr/sbin?

Sourceforge is down at the moment so I can't look at the Makefile.  If
its "install" target fails to install the necessary scripts, you should
copy them over yourself in the "binary" rules using something like this:

    mkdir -p debian/$package/usr/sbin
    install $scripts debian/$package/usr/sbin/

> 2. What do I need to put in the manpage, considering these are kernel 
> modules and need no manpage (nor do they come with one).

Each of the scripts should have a manual page, but not the kernel

Have you read <http://wiki.debian.org/KernelModulesPackaging> yet?


Ben Hutchings
We get into the habit of living before acquiring the habit of thinking.
                                                              - Albert Camus

Attachment: signature.asc
Description: This is a digitally signed message part

Reply to: