I found a way to solve it.
A self-extracting binary is a way to do this.
Create a shell script that first disables the end user license and accepts user input whether the user agrees or not.
Once the user agrees, extract the binary file (solaris package file), paste the script into the shell and install it.
To implement the pacakge installer, first add a token, say PKG_DATA:
shell script contents exit 0 PKG_DATA
Add package file:
cat pkg_file_name โ your_shell_script
Remove the package and install it:
ARCHIVE=awk '/^__PKG_DATA__/ {print NR + 1; exit 0; }' $0 outname=install.$$ tail -n+$ARCHIVE $0 > $outname echo "Extracting..." pkgadd -d $outname rm -f $outname
Adil
source share