diff options
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/solaris/build-pkg | 22 | ||||
-rw-r--r-- | contrib/solaris/postinstall.in | 40 | ||||
-rw-r--r-- | contrib/solaris/prototype | 9 |
3 files changed, 65 insertions, 6 deletions
diff --git a/contrib/solaris/build-pkg b/contrib/solaris/build-pkg index 76529ed48..fe92d9dda 100755 --- a/contrib/solaris/build-pkg +++ b/contrib/solaris/build-pkg | |||
@@ -145,21 +145,28 @@ mkdir -p ${BUILDDIR}/man/man1 | |||
145 | mkdir -p ${BUILDDIR}/man/man8 | 145 | mkdir -p ${BUILDDIR}/man/man8 |
146 | mkdir -p ${BUILDDIR}/etc | 146 | mkdir -p ${BUILDDIR}/etc |
147 | mkdir -p ${BUILDDIR}/bin | 147 | mkdir -p ${BUILDDIR}/bin |
148 | mkdir -p ${BUILDDIR}/libexec | ||
148 | mkdir -p ${BUILDDIR}/sbin | 149 | mkdir -p ${BUILDDIR}/sbin |
149 | 150 | ||
150 | echo "Populating build directories..." | 151 | echo "Populating build directories..." |
151 | cp -p ../../../sshd sbin | 152 | cp -p ../../../sshd sbin |
152 | cp -p ../../../ssh-keygen bin | 153 | cp -p ../../../ssh-keygen bin |
154 | cp -p ../../../ssh-keyscan bin | ||
153 | cp -p ../../../ssh bin | 155 | cp -p ../../../ssh bin |
154 | cp -p ../../../ssh-add bin | 156 | cp -p ../../../ssh-add bin |
155 | cp -p ../../../ssh-agent bin | 157 | cp -p ../../../ssh-agent bin |
156 | cp -p ../../../scp bin | 158 | cp -p ../../../scp bin |
157 | cp -p ../../../scp.1 man/man1/scp.1 | 159 | cp -p ../../../scp.1.out man/man1/scp.1 |
158 | cp -p ../../../ssh-add.1 man/man1/ssh-add.1 | 160 | cp -p ../../../sftp bin |
159 | cp -p ../../../ssh-agent.1 man/man1/ssh-agent.1 | 161 | cp -p ../../../sftp.1.out man/man1/sftp.1 |
160 | cp -p ../../../ssh-keygen.1 man/man1/ssh-keygen.1 | 162 | cp -p ../../../sftp-server libexec/sftp-server |
161 | cp -p ../../../ssh.1 man/man1/ssh.1 | 163 | cp -p ../../../sftp-server.8.out man/man8/sftp-server.8 |
162 | cp -p ../../../sshd.8 man/man8/sshd.8 | 164 | cp -p ../../../ssh-add.1.out man/man1/ssh-add.1 |
165 | cp -p ../../../ssh-agent.1.out man/man1/ssh-agent.1 | ||
166 | cp -p ../../../ssh-keygen.1.out man/man1/ssh-keygen.1 | ||
167 | cp -p ../../../ssh-keyscan.1.out man/man1/ssh-keyscan.1 | ||
168 | cp -p ../../../ssh.1.out man/man1/ssh.1 | ||
169 | cp -p ../../../sshd.8.out man/man8/sshd.8 | ||
163 | cp -p ../../../sshd_config.out etc/sshd_config.default | 170 | cp -p ../../../sshd_config.out etc/sshd_config.default |
164 | cp -p ../../../ssh_config.out etc/ssh_config.default | 171 | cp -p ../../../ssh_config.out etc/ssh_config.default |
165 | cp -p ../../../ssh_prng_cmds etc/ssh_prng_cmds.default | 172 | cp -p ../../../ssh_prng_cmds etc/ssh_prng_cmds.default |
@@ -182,8 +189,11 @@ ${STRIP} bin/ssh | |||
182 | ${STRIP} bin/ssh-add | 189 | ${STRIP} bin/ssh-add |
183 | ${STRIP} bin/ssh-agent | 190 | ${STRIP} bin/ssh-agent |
184 | ${STRIP} bin/ssh-keygen | 191 | ${STRIP} bin/ssh-keygen |
192 | ${STRIP} bin/ssh-keyscan | ||
185 | ${STRIP} sbin/sshd | 193 | ${STRIP} sbin/sshd |
186 | ${STRIP} bin/scp | 194 | ${STRIP} bin/scp |
195 | ${STRIP} bin/sftp | ||
196 | ${STRIP} libexec/sftp-server | ||
187 | 197 | ||
188 | echo "" | 198 | echo "" |
189 | echo "Building Package" | 199 | echo "Building Package" |
diff --git a/contrib/solaris/postinstall.in b/contrib/solaris/postinstall.in index 6f2c9b303..3ce3bf13d 100644 --- a/contrib/solaris/postinstall.in +++ b/contrib/solaris/postinstall.in | |||
@@ -89,6 +89,26 @@ if [ ! "${UPDATE}" = "1" ]; then | |||
89 | else | 89 | else |
90 | echo "Using existing DSA public/private host key pair for SSH-2." | 90 | echo "Using existing DSA public/private host key pair for SSH-2." |
91 | fi | 91 | fi |
92 | if [ ! -f "${CONFDIR}/ssh_host_rsa_key" ]; then | ||
93 | echo "Creating new RSA public/private host key pair for SSH-2." | ||
94 | $INSTALLF $PKGINST ${CONFDIR}/ssh_host_rsa_key | ||
95 | $INSTALLF $PKGINST ${CONFDIR}/ssh_host_rsa_key.pub | ||
96 | ### If there is *anything* there then leave it, otherwise look | ||
97 | ### in some reasonable alternate locations before giving up. | ||
98 | ### It's worth spending some extra time looking for the old one | ||
99 | ### to avoid a bunch of "host identification has changed" warnings. | ||
100 | ### Note that some old keys from the commercial SSH2 might not | ||
101 | ### be compatible, but we don't test for that. | ||
102 | if [ -f "${PKG_INSTALL_ROOT}/etc/ssh_host_rsa_key" ]; then | ||
103 | mv ${PKG_INSTALL_ROOT}/etc/ssh_host_rsa_key ${CONFDIR} | ||
104 | elif [ -f "${PKG_INSTALL_ROOT}/usr/local/etc/ssh_host_rsa_key" ]; then | ||
105 | mv ${PKG_INSTALL_ROOT}/usr/local/etc/ssh_host_rsa_key ${CONFDIR} | ||
106 | else | ||
107 | ${DESTBIN}/ssh-keygen -t rsa -f ${CONFDIR}/ssh_host_rsa_key -N '' | ||
108 | fi | ||
109 | else | ||
110 | echo "Using existing RSA public/private host key pair for SSH-2." | ||
111 | fi | ||
92 | else | 112 | else |
93 | echo "Performing an \"update\" installation of OpenSSH." | 113 | echo "Performing an \"update\" installation of OpenSSH." |
94 | ### Okay, this part *is* an update install...so we need to ensure | 114 | ### Okay, this part *is* an update install...so we need to ensure |
@@ -178,6 +198,26 @@ else | |||
178 | else | 198 | else |
179 | echo "Using existing DSA public/private host key pair for SSH-2." | 199 | echo "Using existing DSA public/private host key pair for SSH-2." |
180 | fi | 200 | fi |
201 | if [ ! -f "${CONFDIR}/ssh_host_rsa_key" ]; then | ||
202 | echo "Creating new RSA public/private host key pair for SSH-2." | ||
203 | $INSTALLF $PKGINST ${CONFDIR}/ssh_host_rsa_key | ||
204 | $INSTALLF $PKGINST ${CONFDIR}/ssh_host_rsa_key.pub | ||
205 | ### If there is *anything* there then leave it, otherwise look | ||
206 | ### in some reasonable alternate locations before giving up. | ||
207 | ### It's worth spending some extra time looking for the old one | ||
208 | ### to avoid a bunch of "host identification has changed" warnings. | ||
209 | ### Note that some old keys from the commercial SSH2 might not | ||
210 | ### be compatible, but we don't test for that. | ||
211 | if [ -f "${PKG_INSTALL_ROOT}/etc/ssh_host_rsa_key" ]; then | ||
212 | mv ${PKG_INSTALL_ROOT}/etc/ssh_host_rsa_key ${CONFDIR} | ||
213 | elif [ -f "${PKG_INSTALL_ROOT}/usr/local/etc/ssh_host_rsa_key" ]; then | ||
214 | mv ${PKG_INSTALL_ROOT}/usr/local/etc/ssh_host_rsa_key ${CONFDIR} | ||
215 | else | ||
216 | ${DESTBIN}/ssh-keygen -d -f ${CONFDIR}/ssh_host_rsa_key -N '' | ||
217 | fi | ||
218 | else | ||
219 | echo "Using existing RSA public/private host key pair for SSH-2." | ||
220 | fi | ||
181 | fi | 221 | fi |
182 | 222 | ||
183 | if [ ! -d %%PIDDIR%% ]; then | 223 | if [ ! -d %%PIDDIR%% ]; then |
diff --git a/contrib/solaris/prototype b/contrib/solaris/prototype index 422b4aa77..3c93f2c1a 100644 --- a/contrib/solaris/prototype +++ b/contrib/solaris/prototype | |||
@@ -5,11 +5,15 @@ i preremove | |||
5 | d none man 0755 root sys | 5 | d none man 0755 root sys |
6 | d none man/man1 0755 root sys | 6 | d none man/man1 0755 root sys |
7 | f none man/man1/scp.1 0644 root sys | 7 | f none man/man1/scp.1 0644 root sys |
8 | f none man/man1/sftp.1 0644 root sys | ||
8 | f none man/man1/ssh-add.1 0644 root sys | 9 | f none man/man1/ssh-add.1 0644 root sys |
9 | f none man/man1/ssh-agent.1 0644 root sys | 10 | f none man/man1/ssh-agent.1 0644 root sys |
10 | f none man/man1/ssh-keygen.1 0644 root sys | 11 | f none man/man1/ssh-keygen.1 0644 root sys |
12 | f none man/man1/ssh-keyscan.1 0644 root sys | ||
11 | f none man/man1/ssh.1 0644 root sys | 13 | f none man/man1/ssh.1 0644 root sys |
14 | s none man/man1/slogin.1=ssh.1 | ||
12 | d none man/man8 0755 root sys | 15 | d none man/man8 0755 root sys |
16 | f none man/man8/sftp-server.8 0644 root sys | ||
13 | f none man/man8/sshd.8 0644 root sys | 17 | f none man/man8/sshd.8 0644 root sys |
14 | d none etc 0755 root sys | 18 | d none etc 0755 root sys |
15 | f none etc/sshd_config.default 0644 root sys | 19 | f none etc/sshd_config.default 0644 root sys |
@@ -20,8 +24,13 @@ f none etc/sshd-initscript 0755 root sys | |||
20 | d none bin 0755 root sys | 24 | d none bin 0755 root sys |
21 | f none bin/ssh-keygen 0755 root sys | 25 | f none bin/ssh-keygen 0755 root sys |
22 | f none bin/ssh 0755 root sys | 26 | f none bin/ssh 0755 root sys |
27 | s none bin/slogin=ssh 0755 root sys | ||
23 | f none bin/ssh-add 0755 root sys | 28 | f none bin/ssh-add 0755 root sys |
24 | f none bin/ssh-agent 0755 root sys | 29 | f none bin/ssh-agent 0755 root sys |
30 | f none bin/ssh-keyscan 0755 root sys | ||
25 | f none bin/scp 0755 root sys | 31 | f none bin/scp 0755 root sys |
32 | f none bin/sftp 0755 root sys | ||
33 | d none libexec 0755 root sys | ||
34 | f none libexec/sftp-server 0755 root sys | ||
26 | d none sbin 0755 root sys | 35 | d none sbin 0755 root sys |
27 | f none sbin/sshd 0755 root sys | 36 | f none sbin/sshd 0755 root sys |