How do I install an entire directory under /var with rpm

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

 



> I have had previously added an install shell scripts that actually
> did an install.
>
> This is what it consisted of in my spec file:
>
-----------------------------------------------------------------------------------

>
> %install
> sh ./installer.sh
>
>
-----------------------------------------------------------------------------------

>
>
> The script was in the q-statusLinux-5.10.tar-gz file and this is what I
was:
>
>
-----------------------------------------------------------------------------------

> #!/bin/sh
> VAR=$1
> if [ "${VAR}" == "no" ]; then
>     echo "**********************NO*****************"
>     exit;
> fi
>
> cd ../
> tar cf -  q-statusLinux-5.10 | (cd /var/local; tar xf -)
> echo "**********************INSTALLED*****************"
>
-----------------------------------------------------------------------------------

>
> When I do rpmbuild it actually installs the program on the machine
> where I am building the rpm and makes me an rpm (But does not update
> the Package Manager- no surprise there). But when I export the rpm
> to another machine and install it. Nothing gets installed except the
> Package Manager gets updated.  What Am I missing, here?

The work you are doing with that script doesn't really put the files where
the rpmbuild process wants them.  For what you are doing it would want them
in %{buildroot}/var/local not /var/local.


You still need to list the files in the %files section.



-greg



[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux