rpms/ettercap/devel ettercap.spec,1.4,1.5
Manuel Wolfshant
wolfy at nobugconsulting.ro
Thu Mar 29 08:31:03 UTC 2007
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 at 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 at 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 ?
More information about the fedora-devel-list
mailing list