[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [Fwd: Building an RPM from a compiled application]
- From: Jeff Johnson <jbj JBJ ORG>
- To: rpm-list redhat com
- Subject: Re: [Fwd: Building an RPM from a compiled application]
- Date: Thu, 14 Sep 2000 08:20:22 -0400
On Thu, Sep 14, 2000 at 07:20:43AM -0500, Bill Woodward wrote:
> Ah, I believe that I have figured out both issues.
>
> 1) Prefix in the %post script. I set the Prefix: value in my spec file
> to /home/dazel (typically where we install), and made sure that all of
> the files in the %files list started with /home/dazel/<rest of the
> path>. Changing the prefix with 'rpm -vv --install --prefix /tmp/dazel'
> works fine.
>
> In the %post script, I reference the install directory as
> $RPM_INSTALL_PREFIX. So, to run the perl script I need to run, I do:
>
> %post
> cd $RPM_INSTALL_PREFIX/repository/etc
> perl ./setperm
>
> and everything works fine.
>
> Now, is that right? (the use of RPM_INSTALL_PREFIX?) Or is there
> another way to do it. I found RPM_INSTALL_PREFIX by running 'strings'
> on rpm and greping for prefix. Not exactly ideal documentation :-)
>
RPM_INSTALL_PREFIX is the way to do this.
> 2) Files not being removed during erase. Um, actually, the files are
> being removed. The directories are not, however, but I imagine that
> this is intentional. It just happens that in my case, I expect to *not*
> install into /usr/bin (or whatever), so it would be OK to remove the
> directories.
>
If your package does not explicitly include the directories in the %files
manifest, then cpio will silently create the directories during install
and (correctly) not remove the directories during erase.
73 de Jeff
--
Jeff Johnson ARS N3NPQ
jbj@jbj.org (jbj@redhat.com)
Chapel Hill, NC
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]