rules

Søren Hansen sh at warma.dk
Thu Jun 23 04:52:53 CDT 2005


tor, 23 06 2005 kl. 11:20 +0200, skrev Leslie Viljoen:
> Now is there a variable in the rules file that will give me the 
> final /usr/share directory, like $(SHAREDIR), or can I hardcode that
> to /usr/share?

The magic of creating a Debian or Ubuntu package is to make it install
in one place, but expect to find stuff in another place. I.e. install in
$(UCRDIR)/debian/foo/usr/bin, but look for libraries in /usr/lib.

Just remember that everything you put in the rules file is gone when
you're done creating the .deb, so it doesn't make any sense to use any
special variables, as they will not exist once the .deb is created and
installed.

> The package requires that the binary be executed from the 
> /usr/share/tesseracttrainer/system directory, so on install I need to
> create a script to change to that directory and then run the binary.

I don't quite understand. To run the program, you need to run something
in /usr/share/... ?  Why is this not in /usr/bin ?

> It seems a bit unorthodox - if this is not the right way(tm), what do
> you do
> in a situation like this? I know a program can access configure script
> variables by using #include config.h, but installation path info is
> not in there. 

The packaged programs should always expect to find their files
in /usr/bin, /usr/lib, /usr/share etc., and NEVER in the debian/foo
directory as that is merely a temporary location.

-- 
Salu2, Søren.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3191 bytes
Desc: not available
Url : http://lists.ubuntu.com/archives/ubuntu-devel/attachments/20050623/33a69b37/smime.bin


More information about the ubuntu-devel mailing list