On 2000-05-11 02:05:48 -0500, Carlos Puchol wrote:
> %install
> rm -rf $RPM_BUILD_ROOT
> make prefix=$RPM_BUILD_ROOT/usr \
> sharedir=$RPM_BUILD_ROOT/etc \
> sysconfdir=$RPM_BUILD_ROOT/etc \
> docdir=$RPM_BUILD_ROOT/usr/doc/mutt-%{version} install
> i don't know much about rpms, but
> i have tried removing the $RPM_BUILD_ROOT, and what
> happens is that when the install time comes,
> it tries to overwrite stuff in /etc, naturally, however,
> i always compile rpms as a uder, never as root, to
> prevent percisely these kinds of security violations.
> do you have any suggestions?
I'd suggest you use the DESTDIR mechanism. That is, you
./configure mutt with the directories you want on the
target system. Then, when it comes to installing things,
you type:
make DESTDIR=/what/ever/path/you/want install
(At least, that's the mechanism Debian uses, and I'm sure
Marco would have complained if DESTDIR doesn't work
smoothly from the distributed makefiles.)
--
http://www.guug.de/~roessler/