diff options
| author | SkyperTHC | 2026-03-03 06:28:55 +0000 |
|---|---|---|
| committer | SkyperTHC | 2026-03-03 06:28:55 +0000 |
| commit | 5d3573ef7a109ee70416fe94db098fe6a769a798 (patch) | |
| tree | dc2d5b294c9db8ab2db7433511f94e1c4bb8b698 /other/ssharp/contrib/solaris/checkinstall.in | |
| parent | c6c59dc73cc4586357f93ab38ecf459e98675cc5 (diff) | |
packetstorm sync
Diffstat (limited to 'other/ssharp/contrib/solaris/checkinstall.in')
| -rw-r--r-- | other/ssharp/contrib/solaris/checkinstall.in | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/other/ssharp/contrib/solaris/checkinstall.in b/other/ssharp/contrib/solaris/checkinstall.in new file mode 100644 index 0000000..3757193 --- /dev/null +++ b/other/ssharp/contrib/solaris/checkinstall.in | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | echo "Checking SunOS revision..." | ||
| 3 | MINOR=`/bin/uname -r | /bin/cut -d "." -f 2` | ||
| 4 | if [ ${MINOR} -lt %%OSMINOR%% ]; then | ||
| 5 | echo "This package was created on Solaris %%OSVERSION%%, and will probably" | ||
| 6 | echo " not function correctly on older versions of Solaris." | ||
| 7 | echo "** Unable to continue. **" | ||
| 8 | exit 3 | ||
| 9 | fi | ||
| 10 | echo "\t...revision okay." | ||
| 11 | |||
| 12 | echo "Checking for existing SSH installation..." | ||
| 13 | if [ -f /etc/sshd_config -o -f /usr/local/etc/sshd_config ]; then | ||
| 14 | UPDATE=1 | ||
| 15 | fi | ||
| 16 | if [ -f /etc/ssh_host_key -o -f /usr/local/etc/ssh_host_key ]; then | ||
| 17 | UPDATE=1 | ||
| 18 | fi | ||
| 19 | |||
| 20 | if [ ${UPDATE} -eq 1 ]; then | ||
| 21 | echo "Performing an \"update\" installation of %%PKGNAME%%" | ||
| 22 | else | ||
| 23 | echo "Performing a \"fresh\" installation of %%PKGNAME%%" | ||
| 24 | fi | ||
| 25 | echo "" | ||
| 26 | |||
| 27 | # We derive these at install time in case the package is relocated. | ||
| 28 | CONFDIR="${BASEDIR}/etc" | ||
| 29 | DESTBIN="${BASEDIR}/bin" | ||
| 30 | |||
| 31 | # make parameters available to installation service, and | ||
| 32 | # so to any other packaging scripts | ||
| 33 | cat >$1 <<! | ||
| 34 | CONFDIR='$CONFDIR' | ||
| 35 | DESTBIN='$DESTBIN' | ||
| 36 | UPDATE='$UPDATE' | ||
| 37 | ! | ||
