message log rolling

Are there any scripts available to enable /var/adm/messages files to be rolled and archived - something like the linux logrotate function. I could write a script, but if someone's done the job already....