On Thu, Mar 19, 2009 at 05:49:21PM +0100, Stanislav Brabec wrote: > Package smartsuite was renamed to smartmontools, but the > script /etc/init.d/smartd remains without change. Start on installation, > restart (once) on update, stop on removal. > > It's easy top do with package-name based scripts.
That's a straightforward use case for %postinstall/%postupdate/%preuninstall > 2) > [...] > %postnew /usr/bin/gst-register > /usr/bin/gst-register > > %postup /usr/bin/gst-register > /usr/bin/gst-register > > %postrm /usr/bin/gst-register > rm -r /var/cache/gstreamer-0.8 No no, you shouldn't do that with scriptlets at all, but with a virtual package trigger. Cheers, Michael. -- Michael Schroeder [email protected] SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} _______________________________________________ Rpm-maint mailing list [email protected] http://lists.rpm.org/mailman/listinfo/rpm-maint
