|
Home > Archive > Debian Developers > May 2007 > Put files in package
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Put files in package
|
|
| Rodrigo Tavares 2007-05-02, 1:33 pm |
| Hello,
Today, i use a makefile with two lines :
binary-indep: build install
mkdir -p debian/package/usr/share/doc/package
cp -a debian/opt debian/package/usr/share/doc/package
Then in postinst I copy the files for opt directory.
When I run the command :
dpkg -L package
/usr/share/doc/package
it show all files in /usr/share/doc/package, but this
directory is only documetation. And I want put them in
another directory.
Example:
I would like put this files in /etc, so when run dpkg
-L package, the file is in etc.
/etc/package/script.pl
Best regards,
Faria
________________________________________
__________
Fale com seus amigos de graça com o novo Yahoo! Messenger
http://br.messenger.yahoo.com/
--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
| |
| Santiago Vila 2007-05-02, 1:33 pm |
| Rodrigo Tavares wrote:
> I would like put this files in /etc, so when run dpkg -L package,
> the file is in etc.
You failed to explain why you can't do this:
rm -rf debian/package
[...]
mkdir -p debian/package/etc
cp -p file debian/package/etc
Or maybe you are (still?) joking, in which case you are late by a
month and a day.
--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
| |
| Kevin B. McCarty 2007-05-03, 1:21 am |
| Rodrigo Tavares wrote:
> Today, i use a makefile with two lines :
>
> binary-indep: build install
> mkdir -p debian/package/usr/share/doc/package
> cp -a debian/opt debian/package/usr/share/doc/package
>
> Then in postinst I copy the files for opt directory.
Why on Earth would you do that, instead of putting them into the package
where you want them in the first place (e.g. with dh_install or just
copying them into the right place in debian/rules)?
> When I run the command :
>
> dpkg -L package
>
> /usr/share/doc/package
>
> it show all files in /usr/share/doc/package, but this
> directory is only documetation. And I want put them in
> another directory.
Of course; dpkg -L doesn't know anything about what you do in postinst.
You need to put the files in the right place in debian/rules when you
build the package.
I think maybe you ought to read the New Maintainer's Guide again. And
please direct further questions like this to the debian-mentors list.
regards,
--
Kevin B. McCarty <kmccarty@princeton.edu> Physics Department
WWW: http://www.princeton.edu/~kmccarty/ Princeton University
GPG: public key ID 4F83C751 Princeton, NJ 08544
--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
| |
| Michael Banck 2007-05-04, 1:21 pm |
| Hi,
On Wed, May 02, 2007 at 11:56:01AM -0300, Rodrigo Tavares wrote:
> Today, i use a makefile with two lines :
[...]
I think your questions are more on-topic on the debian-mentors mailing
list.
thanks,
Michael
--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
|
|
|
|
|