On 28 Nov 2002, ddc_prueba wrote:
> I looked into /usr/lib/rpm/macros and saw nothing weird (thougth don't
> know exactly how it shoul be).
>
> Also, I did a:
> rpm -Uvh --force --allfiles rpm-4.0.3-10mdk.i586.rpm
>
> but it is still with the same problem :-((
>
> Any more bet? ( Thanx a lot for your interest! )
Sure...
Try this:
Install the source rpm first. If you're doing this as root, go to
/usr/src/RPM/SPECS or wherever your RPM installation directory is.
In the ./SPECS directory you'll see the wu-ftpd.spec file. Take a look
at this file in your editor. The lines of interest are:
%pre
%_pre_useradd ftp /var/ftp /bin/false
This is where the installation is failing. This line will add a user
called ftp, with home directory of /var/ftp and /bin/false as the
shell. The %_pre_useradd is a macro that exists in 9.0 but not in 8.0.
There are two ways around it -- either delete the %pre section
entirely then rebuild the package or copy the _pre_useradd macro from
a 9.0 system into the 8.0 /usr/lib/rpm/macros file. To do the former:
1) delete the %pre and %pre_useradd lines then save the spec file.
2) rpm -ba wu-ftpd.spec
3) Create an ftp user if it doesn't exist with the above shell,
dir,etc..
4) Install the newly created RPM.
And for the latter:
1) Extract the /usr/lib/rpm/macros file from a 9.0 system.
2) Copy the %_pre_useradd macro to the 8.2 system.
3) Install the binary package you created.
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com