On Dec 17, 2008, at 9:50 AM, Seth Vidal wrote:
What does %verifyscript need to do?/
The scriptlet in RPMTAG_VERIFYSCRIPT is intended for verifying the side effects of other scriptlet actions. One obvious/common example usage case for %verifscript (in Fedora, in RHEL, in RHL, likely other rpm based distros) is the shell packages. When adding a new shell, the path to the shell is added to /etc/shells, usually through some mish-mosh of sed and perl and grep and ... And the entry is /etc/shells is removed in %preun (though %postun could be done equally well), again through a mish-mosh of sed/grep/awk/... etc. (aside) Integrating the domain-specific editing language from augeas into rpm is one way to remove the mish-mosh, integratingpuppet-like expansions from templates+registries another, but I digress ...
The %verifyscript scriptlet is then used to verify that, indeed, the entry that was added to /etc/shells in %post is still present, i.e. no other package has clobbered /etc/shells. But presumably you already knew all of those details ... 73 de Jeff
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxxxxx http://lists.rpm.org/mailman/listinfo/rpm-list