[Mimedefang] [resend] Specfile bug: disables service on update
David F. Skoll
dfs at roaringpenguin.com
Mon Aug 9 18:29:36 EDT 2004
On Mon, 9 Aug 2004, Kenneth Porter wrote:
> [Just in case David missed this, I'm resending.]
> $ rpm -q --scripts mimedefang
> preuninstall scriptlet (through /bin/sh):
> /sbin/chkconfig --del mimedefang
> Here's the equivalent stuff for Apache, showing how to handle the update
> case:
> $ rpm -q --scripts httpd
> preuninstall scriptlet (through /bin/sh):
> if [ $1 = 0 ]; then
> /sbin/service httpd stop > /dev/null 2>&1
> /sbin/chkconfig --del httpd
> fi
Thanks; I've fixed it. Be aware that upgrading from 2.44 to 2.45 (when
2.45 comes out) will still fail, because the preuninstall scriptlet is
run from the old package, I believe.
Off topic: I hate RPM! Does anyone have a *good* document where
all this stuff is documented? Half the stuff in .spec files seems to
be undocumented magic.
Regards,
David.
More information about the MIMEDefang
mailing list