Packaging OpenSSH
The makeOpenSSHPackage.ksh script creates a Solaris OS package. It takes the OpenSSH executables, configuration files, documentation, and optionally, PRNGD's executables and configuration files, and creates the OBSDssh package. The script will need some editing based on your local environment. The makeOpenSSHPackage.ksh script configures openssh.server (the provided init script) based on the configuration of makeOpenSSHPackage.ksh. The init script is included in the generated package. The secureshell-tools.tar.Z file containing an init script and a packaging script is available from Sun BluePrints Online, Scripts and Tools page at:
http://www.sun.com/solutions/blueprints/tools/index.html
The makeOpenSSHPackage.ksh script uses the following files as the default configuration files for the OpenSSH installation:
sshd_config.out
ssh_config.out
Place your local configuration into these files before generating the package.
The OBSDssh package does not generate host keys at install-time. Keys are generated at first boot. This is to prevent WebStart Flash installed hosts from having duplicate host keys.
To Generate the OBSDssh Package
Use the cp(1) command to copy the makeOpenSSHPackage.ksh script to the openssh-x.xpx directory.
Copy openssh.server to the parent directory of openssh-x.xpx.
Change the directory to the openssh-x.xpx directory.
Use the ksh(1) command to make the package.
Verify the presence of the package.
$ cp makeOpenSSHPackage.ksh openssh-x.xpx
$ cp openssh.server .
$ cd openssh-x.xpx
$ ksh ./makeOpenSSHPackage.ksh
$ ls *pkg OBSDssh.pkg