The answer seems to be it depends on the %post flavor you are using. So far these work: %post -p /sbin/ldconfig %post /sbin/ldconfig %post subpackage /sbin/chkconfig --add %{name} This does not work: %post subpackage -p "/sbin/chkconfig --add %{name}" -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron PD Inc. http://www.pdinc.us - - Principal Consultant 10 West 24th Street #100 - - +1 (443) 269-1555 x333 Baltimore, Maryland 21218 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is copyright PD Inc, subject to license 20080407P00. > -----Original Message----- > From: rpm-list-bounces@xxxxxxxxxxxxx > [mailto:rpm-list-bounces@xxxxxxxxxxxxx] On Behalf Of Jason Pyeron > Sent: Saturday, April 25, 2009 12:48 > To: rpm-list@xxxxxxxxxxxxx > Subject: %post and sub packages > > Can I get a %post script per sub package? Or am I stuck with > the script on the main package only? > > -- > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > - - > - Jason Pyeron PD Inc. http://www.pdinc.us - > - Principal Consultant 10 West 24th Street #100 - > - +1 (443) 269-1555 x333 Baltimore, Maryland 21218 - > - - > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > This message is copyright PD Inc, subject to license 20080407P00. > > > _______________________________________________ > Rpm-list mailing list > Rpm-list@xxxxxxxxxxxxx > http://lists.rpm.org/mailman/listinfo/rpm-list > _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxxxxx http://lists.rpm.org/mailman/listinfo/rpm-list