diff options
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/aix/buildbff.sh | 11 | ||||
-rw-r--r-- | contrib/caldera/openssh.spec | 6 | ||||
-rw-r--r-- | contrib/cygwin/ssh-host-config | 43 | ||||
-rw-r--r-- | contrib/cygwin/ssh-user-config | 20 | ||||
-rw-r--r-- | contrib/redhat/openssh.spec | 2 | ||||
-rw-r--r-- | contrib/suse/openssh.spec | 2 |
6 files changed, 66 insertions, 18 deletions
diff --git a/contrib/aix/buildbff.sh b/contrib/aix/buildbff.sh index 97a7cbbba..6648e8e65 100755 --- a/contrib/aix/buildbff.sh +++ b/contrib/aix/buildbff.sh | |||
@@ -1,7 +1,7 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | # | 2 | # |
3 | # buildbff.sh: Create AIX SMIT-installable OpenSSH packages | 3 | # buildbff.sh: Create AIX SMIT-installable OpenSSH packages |
4 | # $Id: buildbff.sh,v 1.10 2006/09/10 03:24:19 dtucker Exp $ | 4 | # $Id: buildbff.sh,v 1.11 2009/03/06 23:22:10 dtucker Exp $ |
5 | # | 5 | # |
6 | # Author: Darren Tucker (dtucker at zip dot com dot au) | 6 | # Author: Darren Tucker (dtucker at zip dot com dot au) |
7 | # This file is placed in the public domain and comes with absolutely | 7 | # This file is placed in the public domain and comes with absolutely |
@@ -151,11 +151,18 @@ fi | |||
151 | 151 | ||
152 | 152 | ||
153 | # Rename config files; postinstall script will copy them if necessary | 153 | # Rename config files; postinstall script will copy them if necessary |
154 | for cfgfile in ssh_config sshd_config ssh_prng_cmds | 154 | for cfgfile in ssh_config sshd_config |
155 | do | 155 | do |
156 | mv $FAKE_ROOT/$sysconfdir/$cfgfile $FAKE_ROOT/$sysconfdir/$cfgfile.default | 156 | mv $FAKE_ROOT/$sysconfdir/$cfgfile $FAKE_ROOT/$sysconfdir/$cfgfile.default |
157 | done | 157 | done |
158 | 158 | ||
159 | # AIX 5.3 and newer have /dev/random and don't create ssh_prng_cmds | ||
160 | if [ -f $FAKE_ROOT/$sysconfdir/ssh_prng_cmds ] | ||
161 | then | ||
162 | mv FAKE_ROOT/$sysconfdir/ssh_prng_cmds \ | ||
163 | $FAKE_ROOT/$sysconfdir/ssh_prng_cmds.default | ||
164 | fi | ||
165 | |||
159 | # | 166 | # |
160 | # Generate lpp control files. | 167 | # Generate lpp control files. |
161 | # working dir is $FAKE_ROOT but files are generated in dir above | 168 | # working dir is $FAKE_ROOT but files are generated in dir above |
diff --git a/contrib/caldera/openssh.spec b/contrib/caldera/openssh.spec index 42dbcfeeb..37e1b9411 100644 --- a/contrib/caldera/openssh.spec +++ b/contrib/caldera/openssh.spec | |||
@@ -17,11 +17,11 @@ | |||
17 | #old cvs stuff. please update before use. may be deprecated. | 17 | #old cvs stuff. please update before use. may be deprecated. |
18 | %define use_stable 1 | 18 | %define use_stable 1 |
19 | %if %{use_stable} | 19 | %if %{use_stable} |
20 | %define version 5.2p1 | 20 | %define version 5.3p1 |
21 | %define cvs %{nil} | 21 | %define cvs %{nil} |
22 | %define release 1 | 22 | %define release 1 |
23 | %else | 23 | %else |
24 | %define version 5.2p1 | 24 | %define version 5.3p1 |
25 | %define cvs cvs20050315 | 25 | %define cvs cvs20050315 |
26 | %define release 0r1 | 26 | %define release 0r1 |
27 | %endif | 27 | %endif |
@@ -358,4 +358,4 @@ fi | |||
358 | * Mon Jan 01 1998 ... | 358 | * Mon Jan 01 1998 ... |
359 | Template Version: 1.31 | 359 | Template Version: 1.31 |
360 | 360 | ||
361 | $Id: openssh.spec,v 1.66 2009/02/21 07:03:05 djm Exp $ | 361 | $Id: openssh.spec,v 1.66.4.1 2009/09/26 04:09:35 djm Exp $ |
diff --git a/contrib/cygwin/ssh-host-config b/contrib/cygwin/ssh-host-config index 57e728fbc..b6f9511e2 100644 --- a/contrib/cygwin/ssh-host-config +++ b/contrib/cygwin/ssh-host-config | |||
@@ -1,8 +1,20 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | # | 2 | # |
3 | # ssh-host-config, Copyright 2000, 2001, 2002, 2003 Red Hat Inc. | 3 | # ssh-host-config, Copyright 2000-2009 Red Hat Inc. |
4 | # | 4 | # |
5 | # This file is part of the Cygwin port of OpenSSH. | 5 | # This file is part of the Cygwin port of OpenSSH. |
6 | # | ||
7 | # Permission to use, copy, modify, and distribute this software for any | ||
8 | # purpose with or without fee is hereby granted, provided that the above | ||
9 | # copyright notice and this permission notice appear in all copies. | ||
10 | # | ||
11 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | ||
12 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
13 | # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
14 | # IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, | ||
15 | # DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR | ||
16 | # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR | ||
17 | # THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
6 | 18 | ||
7 | # ====================================================================== | 19 | # ====================================================================== |
8 | # Initialization | 20 | # Initialization |
@@ -26,7 +38,9 @@ port_number=22 | |||
26 | privsep_configured=no | 38 | privsep_configured=no |
27 | privsep_used=yes | 39 | privsep_used=yes |
28 | cygwin_value="" | 40 | cygwin_value="" |
41 | user_account= | ||
29 | password_value= | 42 | password_value= |
43 | opt_force=no | ||
30 | 44 | ||
31 | # ====================================================================== | 45 | # ====================================================================== |
32 | # Routine: create_host_keys | 46 | # Routine: create_host_keys |
@@ -287,6 +301,11 @@ install_service() { | |||
287 | csih_inform "sshd requires. You need to have or to create a privileged" | 301 | csih_inform "sshd requires. You need to have or to create a privileged" |
288 | csih_inform "account. This script will help you do so." | 302 | csih_inform "account. This script will help you do so." |
289 | echo | 303 | echo |
304 | |||
305 | [ "${opt_force}" = "yes" ] && opt_f=-f | ||
306 | [ -n "${user_account}" ] && opt_u="-u ""${user_account}""" | ||
307 | csih_select_privileged_username ${opt_f} ${opt_u} sshd | ||
308 | |||
290 | if ! csih_create_privileged_user "${password_value}" | 309 | if ! csih_create_privileged_user "${password_value}" |
291 | then | 310 | then |
292 | csih_error_recoverable "There was a serious problem creating a privileged user." | 311 | csih_error_recoverable "There was a serious problem creating a privileged user." |
@@ -316,12 +335,12 @@ install_service() { | |||
316 | 335 | ||
317 | if [ -n "${csih_cygenv}" ] | 336 | if [ -n "${csih_cygenv}" ] |
318 | then | 337 | then |
319 | cygwin_env="-e CYGWIN=\"${csih_cygenv}\"" | 338 | cygwin_env=( -e "CYGWIN=${csih_cygenv}" ) |
320 | fi | 339 | fi |
321 | if [ -z "${password}" ] | 340 | if [ -z "${password}" ] |
322 | then | 341 | then |
323 | if eval cygrunsrv -I sshd -d \"CYGWIN sshd\" -p /usr/sbin/sshd \ | 342 | if cygrunsrv -I sshd -d "CYGWIN sshd" -p /usr/sbin/sshd \ |
324 | -a "-D" -y tcpip ${cygwin_env} | 343 | -a "-D" -y tcpip "${cygwin_env[@]}" |
325 | then | 344 | then |
326 | echo | 345 | echo |
327 | csih_inform "The sshd service has been installed under the LocalSystem" | 346 | csih_inform "The sshd service has been installed under the LocalSystem" |
@@ -330,8 +349,8 @@ install_service() { | |||
330 | csih_inform "will start automatically after the next reboot." | 349 | csih_inform "will start automatically after the next reboot." |
331 | fi | 350 | fi |
332 | else | 351 | else |
333 | if eval cygrunsrv -I sshd -d \"CYGWIN sshd\" -p /usr/sbin/sshd \ | 352 | if cygrunsrv -I sshd -d "CYGWIN sshd" -p /usr/sbin/sshd \ |
334 | -a "-D" -y tcpip ${cygwin_env} \ | 353 | -a "-D" -y tcpip "${cygwin_env[@]}" \ |
335 | -u "${run_service_as}" -w "${password}" | 354 | -u "${run_service_as}" -w "${password}" |
336 | then | 355 | then |
337 | echo | 356 | echo |
@@ -378,11 +397,13 @@ if [ "$PROGDIR" = "/etc/postinstall" ] | |||
378 | then | 397 | then |
379 | csih_auto_answer="no" | 398 | csih_auto_answer="no" |
380 | csih_disable_color | 399 | csih_disable_color |
400 | opt_force=yes | ||
381 | fi | 401 | fi |
382 | if [ -n "${SSH_HOST_CONFIG_AUTO_ANSWER_NO}" ] | 402 | if [ -n "${SSH_HOST_CONFIG_AUTO_ANSWER_NO}" ] |
383 | then | 403 | then |
384 | csih_auto_answer="no" | 404 | csih_auto_answer="no" |
385 | csih_disable_color | 405 | csih_disable_color |
406 | opt_force=yes | ||
386 | fi | 407 | fi |
387 | 408 | ||
388 | # ====================================================================== | 409 | # ====================================================================== |
@@ -407,10 +428,12 @@ do | |||
407 | 428 | ||
408 | -y | --yes ) | 429 | -y | --yes ) |
409 | csih_auto_answer=yes | 430 | csih_auto_answer=yes |
431 | opt_force=yes | ||
410 | ;; | 432 | ;; |
411 | 433 | ||
412 | -n | --no ) | 434 | -n | --no ) |
413 | csih_auto_answer=no | 435 | csih_auto_answer=no |
436 | opt_force=yes | ||
414 | ;; | 437 | ;; |
415 | 438 | ||
416 | -c | --cygwin ) | 439 | -c | --cygwin ) |
@@ -423,6 +446,11 @@ do | |||
423 | shift | 446 | shift |
424 | ;; | 447 | ;; |
425 | 448 | ||
449 | -u | --user ) | ||
450 | user_account="$1" | ||
451 | shift | ||
452 | ;; | ||
453 | |||
426 | -w | --pwd ) | 454 | -w | --pwd ) |
427 | password_value="$1" | 455 | password_value="$1" |
428 | shift | 456 | shift |
@@ -443,6 +471,7 @@ do | |||
443 | echo " --no -n Answer all questions with \"no\" automatically." | 471 | echo " --no -n Answer all questions with \"no\" automatically." |
444 | echo " --cygwin -c <options> Use \"options\" as value for CYGWIN environment var." | 472 | echo " --cygwin -c <options> Use \"options\" as value for CYGWIN environment var." |
445 | echo " --port -p <n> sshd listens on port n." | 473 | echo " --port -p <n> sshd listens on port n." |
474 | echo " --user -u <account> privileged user for service." | ||
446 | echo " --pwd -w <passwd> Use \"pwd\" as password for privileged user." | 475 | echo " --pwd -w <passwd> Use \"pwd\" as password for privileged user." |
447 | echo " --privileged On Windows NT/2k/XP, require privileged user" | 476 | echo " --privileged On Windows NT/2k/XP, require privileged user" |
448 | echo " instead of LocalSystem for sshd service." | 477 | echo " instead of LocalSystem for sshd service." |
@@ -489,7 +518,7 @@ then | |||
489 | fi | 518 | fi |
490 | 519 | ||
491 | # Create /var/empty file used as chroot jail for privilege separation | 520 | # Create /var/empty file used as chroot jail for privilege separation |
492 | csih_make_dir "${LOCALSTATEDIR}/empty" "Cannot create log directory." | 521 | csih_make_dir "${LOCALSTATEDIR}/empty" "Cannot create ${LOCALSTATEDIR}/empty directory." |
493 | chmod 755 "${LOCALSTATEDIR}/empty" | 522 | chmod 755 "${LOCALSTATEDIR}/empty" |
494 | setfacl -m u:system:rwx "${LOCALSTATEDIR}/empty" | 523 | setfacl -m u:system:rwx "${LOCALSTATEDIR}/empty" |
495 | 524 | ||
diff --git a/contrib/cygwin/ssh-user-config b/contrib/cygwin/ssh-user-config index f210bd556..f1a001a93 100644 --- a/contrib/cygwin/ssh-user-config +++ b/contrib/cygwin/ssh-user-config | |||
@@ -1,8 +1,20 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | # | 2 | # |
3 | # ssh-user-config, Copyright 2000, 2001, 2002, 2003, Red Hat Inc. | 3 | # ssh-user-config, Copyright 2000-2008 Red Hat Inc. |
4 | # | 4 | # |
5 | # This file is part of the Cygwin port of OpenSSH. | 5 | # This file is part of the Cygwin port of OpenSSH. |
6 | # | ||
7 | # Permission to use, copy, modify, and distribute this software for any | ||
8 | # purpose with or without fee is hereby granted, provided that the above | ||
9 | # copyright notice and this permission notice appear in all copies. | ||
10 | # | ||
11 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | ||
12 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
13 | # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
14 | # IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, | ||
15 | # DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR | ||
16 | # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR | ||
17 | # THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
6 | 18 | ||
7 | # ====================================================================== | 19 | # ====================================================================== |
8 | # Initialization | 20 | # Initialization |
@@ -118,14 +130,14 @@ check_user_homedir() { | |||
118 | pwdhome=$(awk -F: '{ if ( $3 == '${uid}' ) print $6; }' < ${SYSCONFDIR}/passwd) | 130 | pwdhome=$(awk -F: '{ if ( $3 == '${uid}' ) print $6; }' < ${SYSCONFDIR}/passwd) |
119 | if [ "X${pwdhome}" = "X" ] | 131 | if [ "X${pwdhome}" = "X" ] |
120 | then | 132 | then |
121 | csih_error_multiline \ | 133 | csih_error_multi \ |
122 | "There is no home directory set for you in ${SYSCONFDIR}/passwd." \ | 134 | "There is no home directory set for you in ${SYSCONFDIR}/passwd." \ |
123 | 'Setting $HOME is not sufficient!' | 135 | 'Setting $HOME is not sufficient!' |
124 | fi | 136 | fi |
125 | 137 | ||
126 | if [ ! -d "${pwdhome}" ] | 138 | if [ ! -d "${pwdhome}" ] |
127 | then | 139 | then |
128 | csih_error_multiline \ | 140 | csih_error_multi \ |
129 | "${pwdhome} is set in ${SYSCONFDIR}/passwd as your home directory" \ | 141 | "${pwdhome} is set in ${SYSCONFDIR}/passwd as your home directory" \ |
130 | 'but it is not a valid directory. Cannot create user identity files.' | 142 | 'but it is not a valid directory. Cannot create user identity files.' |
131 | fi | 143 | fi |
@@ -291,7 +303,7 @@ done | |||
291 | # Check passwd file | 303 | # Check passwd file |
292 | if [ ! -f ${SYSCONFDIR}/passwd ] | 304 | if [ ! -f ${SYSCONFDIR}/passwd ] |
293 | then | 305 | then |
294 | csih_error_multiline \ | 306 | csih_error_multi \ |
295 | "${SYSCONFDIR}/passwd is nonexistant. Please generate an ${SYSCONFDIR}/passwd file" \ | 307 | "${SYSCONFDIR}/passwd is nonexistant. Please generate an ${SYSCONFDIR}/passwd file" \ |
296 | 'first using mkpasswd. Check if it contains an entry for you and' \ | 308 | 'first using mkpasswd. Check if it contains an entry for you and' \ |
297 | 'please care for the home directory in your entry as well.' | 309 | 'please care for the home directory in your entry as well.' |
diff --git a/contrib/redhat/openssh.spec b/contrib/redhat/openssh.spec index 10bdc1989..680906cf3 100644 --- a/contrib/redhat/openssh.spec +++ b/contrib/redhat/openssh.spec | |||
@@ -1,4 +1,4 @@ | |||
1 | %define ver 5.2p1 | 1 | %define ver 5.3p1 |
2 | %define rel 1 | 2 | %define rel 1 |
3 | 3 | ||
4 | # OpenSSH privilege separation requires a user & group ID | 4 | # OpenSSH privilege separation requires a user & group ID |
diff --git a/contrib/suse/openssh.spec b/contrib/suse/openssh.spec index 62f43e137..12661eeae 100644 --- a/contrib/suse/openssh.spec +++ b/contrib/suse/openssh.spec | |||
@@ -13,7 +13,7 @@ | |||
13 | 13 | ||
14 | Summary: OpenSSH, a free Secure Shell (SSH) protocol implementation | 14 | Summary: OpenSSH, a free Secure Shell (SSH) protocol implementation |
15 | Name: openssh | 15 | Name: openssh |
16 | Version: 5.2p1 | 16 | Version: 5.3p1 |
17 | URL: http://www.openssh.com/ | 17 | URL: http://www.openssh.com/ |
18 | Release: 1 | 18 | Release: 1 |
19 | Source0: openssh-%{version}.tar.gz | 19 | Source0: openssh-%{version}.tar.gz |