Michael Schwendt wrote:
On Wed, 28 Mar 2007 12:46:09 -0500 (CDT), Jon Ciesla wrote:
If I add it to %files, when I build, it fails, as /usr/bin/ettercap does
not exist. Is there a workaround?
After installing ettercap, nothing owns /usr/bin/ettercap, due to it
getting created by alternatives in the %post.
"touch" it in %install, include it in %files marked as %ghost,
%files
...
%ghost %{_bindir}/ettercap
then display the files in your test-build (rpm --query --list ...).
OK, I don't get it:
[wolfy@wolfy ~]$ rpm -ql ssmtp --scripts
postinstall scriptlet (using /bin/sh):
/usr/sbin/alternatives --install /usr/sbin/sendmail mta
/usr/sbin/sendmail.ssmtp 30 \
[other slave links removed]
[etc stuff removed from paste]
/usr/bin/mailq.ssmtp
/usr/bin/newaliases.ssmtp
/usr/sbin/sendmail.ssmtp
/usr/sbin/ssmtp
[wolfy@wolfy ~]$ rpm -qf /usr/sbin/sendmail
sendmail-8.13.1-3.RHEL4.5.i386
ssmtp-2.61-11.1.el4.i386
There is no %ghost here... where does the difference towards ettercap
come from, since I have used the same postinstall scriptlet ?
--
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list