summaryrefslogtreecommitdiff
path: root/contrib/solaris/checkinstall.in
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/solaris/checkinstall.in')
-rw-r--r--contrib/solaris/checkinstall.in37
1 files changed, 0 insertions, 37 deletions
diff --git a/contrib/solaris/checkinstall.in b/contrib/solaris/checkinstall.in
deleted file mode 100644
index 37571936a..000000000
--- a/contrib/solaris/checkinstall.in
+++ /dev/null
@@ -1,37 +0,0 @@
1#!/bin/sh
2echo "Checking SunOS revision..."
3MINOR=`/bin/uname -r | /bin/cut -d "." -f 2`
4if [ ${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
9fi
10echo "\t...revision okay."
11
12echo "Checking for existing SSH installation..."
13if [ -f /etc/sshd_config -o -f /usr/local/etc/sshd_config ]; then
14 UPDATE=1
15fi
16if [ -f /etc/ssh_host_key -o -f /usr/local/etc/ssh_host_key ]; then
17 UPDATE=1
18fi
19
20if [ ${UPDATE} -eq 1 ]; then
21 echo "Performing an \"update\" installation of %%PKGNAME%%"
22else
23 echo "Performing a \"fresh\" installation of %%PKGNAME%%"
24fi
25echo ""
26
27# We derive these at install time in case the package is relocated.
28CONFDIR="${BASEDIR}/etc"
29DESTBIN="${BASEDIR}/bin"
30
31# make parameters available to installation service, and
32# so to any other packaging scripts
33cat >$1 <<!
34CONFDIR='$CONFDIR'
35DESTBIN='$DESTBIN'
36UPDATE='$UPDATE'
37!