how to mount swap on /tmp?

Hi all,

I would like to know how to mount swap on /tmp at boot time?
I mean i would like to know the exact commands...
i will be implementing it on a distro of opensolaris ,belenix.

is it the same as other mounts ?
because when i surfed the net it was a little different and also since its at boot time that i am planning on mounting swap ,would like to know the precautions that i need to take?

Thanks