Hi dandan123,
The best thing is to scp over an "admin" file with the package, and use the syntax pkgadd -n -a adminfile -d packagefile all.
The admin file contains something like (an example of one I used recently to upgrade and overwrite an existing package):
[tt]mail=
instance=overwrite
partial=ask
runlevel=ask
idepend=ask
rdepend=ask
space=ask
setuid=ask
conflict=ask
action=nocheck
basedir=default[/tt]
Type man -s 4 admin for documentation of the contents of an admin file.
Annihilannic.