perfsonar-dev - Re: [pS-dev] Help with .deb packages
Subject: perfsonar development work
List archive
- From: Gijs Molenaar <>
- To: Cándido Rodríguez Montes <>
- Cc: " List" <>
- Subject: Re: [pS-dev] Help with .deb packages
- Date: Wed, 20 Aug 2008 13:37:04 +0200
- Openpgp: id=72EE99CA
Cándido Rodríguez Montes wrote:
> Hi Gijs,
>
> El 20/08/2008, a las 13:06, Gijs Molenaar escribió:
>
>>>
>>> But the main problem I'm having right now is that I don't know how to
>>> assign right user permissions to the files contained in the package. If
>>> I execute "dpkg-buildpackage" as root user, all files are owned by root
>>> user. How to change it to the user tomcat55? Are you executing that
>>> command as root user?
>>
>> You can do a "chown tomcat55 <file>" the debian/postrm script which is
>> run after installation of the package. There are examples postrm scripts
>> in the repository.
>>
>
> Looking at those examples, no one is doing that. So, your files (or
> files of the MA) are owned by root too? I read in the product build
> guide that files have to be writable by the user tomcat55. So, how can I
> get it?
> I attach the output of executing "dpkg-buildpackage -d" and the content
> of the package, maybe you can see my problem :(
To clarify, the postinst will be called during multiple installation
steps. The postinst scripts in the repo (which is a slightly modified
version of the default postinst script) will create symlinks, chown and
restart tomcat during the configure step of the package installation.
The is what you want. Just copy the postinst file to your debian folder
and modify those lines, and you are ready to go.
--
Gijs Molenaar
fingerprint C660 BABA 4B91 4B5C EB60 7739 4385 8ABA 72EE 99CA
Attachment:
signature.asc
Description: OpenPGP digital signature
- Help with .deb packages, Cándido Rodríguez Montes, 08/20/2008
- Re: [pS-dev] Help with .deb packages, Gijs Molenaar, 08/20/2008
- Re: [pS-dev] Help with .deb packages, Cándido Rodríguez Montes, 08/20/2008
- Re: [pS-dev] Help with .deb packages, Gijs Molenaar, 08/20/2008
- Re: [pS-dev] Help with .deb packages, Gijs Molenaar, 08/20/2008
- Re: [pS-dev] Help with .deb packages, Cándido Rodríguez Montes, 08/21/2008
- Re: [pS-dev] Help with .deb packages, Cándido Rodríguez Montes, 08/20/2008
- Re: [pS-dev] Help with .deb packages, Gijs Molenaar, 08/20/2008
Archive powered by MHonArc 2.6.16.