how to make a Cent OS package.

I am using Cent OS 5.1. It has a command "yum" to install or update new packeges from a mirror or repository.

i am doing installation and configuration of Sun directory server and opensso. i have made a shell script to install and configure both. but now the need is to create a Cent OS packege, and if i give
yum -install DirServSSO
it installs everything on a fresh new machine.

"/opt/DirServSSO" is the directory on my "ws3456.rock.com" server where my opensso.tar and sunDirectoryserver.tar are present. i will make it my repository, from where i will install my stuff to all 8 production servers.

you think if i have a script ready i can packege it with some configuration. please help.

are u clear with my requirement?

Sort of, sounds like you need an RPM package that you will install onto your CentOS server ? If yes, go to rpm.org site and check the docs on how to create RPMs.