buildbff.sh (180744) | buildbff.sh (197670) |
---|---|
1#!/bin/sh 2# 3# buildbff.sh: Create AIX SMIT-installable OpenSSH packages | 1#!/bin/sh 2# 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# 6# Author: Darren Tucker (dtucker at zip dot com dot au) 7# This file is placed in the public domain and comes with absolutely 8# no warranty. 9# 10# Based originally on Ben Lindstrom's buildpkg.sh for Solaris 11# 12 --- 133 unchanged lines hidden (view full) --- 146if [ "${X11_FORWARDING}" = yes ] 147then 148 perl -p -i -e "s/#X11Forwarding no/X11Forwarding yes/" \ 149 $FAKE_ROOT/${sysconfdir}/sshd_config 150fi 151 152 153# Rename config files; postinstall script will copy them if necessary | 5# 6# Author: Darren Tucker (dtucker at zip dot com dot au) 7# This file is placed in the public domain and comes with absolutely 8# no warranty. 9# 10# Based originally on Ben Lindstrom's buildpkg.sh for Solaris 11# 12 --- 133 unchanged lines hidden (view full) --- 146if [ "${X11_FORWARDING}" = yes ] 147then 148 perl -p -i -e "s/#X11Forwarding no/X11Forwarding yes/" \ 149 $FAKE_ROOT/${sysconfdir}/sshd_config 150fi 151 152 153# Rename config files; postinstall script will copy them if necessary |
154for cfgfile in ssh_config sshd_config ssh_prng_cmds | 154for cfgfile in ssh_config sshd_config |
155do 156 mv $FAKE_ROOT/$sysconfdir/$cfgfile $FAKE_ROOT/$sysconfdir/$cfgfile.default 157done 158 | 155do 156 mv $FAKE_ROOT/$sysconfdir/$cfgfile $FAKE_ROOT/$sysconfdir/$cfgfile.default 157done 158 |
159# AIX 5.3 and newer have /dev/random and don't create ssh_prng_cmds 160if [ -f $FAKE_ROOT/$sysconfdir/ssh_prng_cmds ] 161then 162 mv FAKE_ROOT/$sysconfdir/ssh_prng_cmds \ 163 $FAKE_ROOT/$sysconfdir/ssh_prng_cmds.default 164fi 165 |
|
159# 160# Generate lpp control files. 161# working dir is $FAKE_ROOT but files are generated in dir above 162# and moved into place just before creation of .bff 163# 164cd $FAKE_ROOT 165echo Generating LPP control files 166find . ! -name . -print >../openssh.al --- 215 unchanged lines hidden --- | 166# 167# Generate lpp control files. 168# working dir is $FAKE_ROOT but files are generated in dir above 169# and moved into place just before creation of .bff 170# 171cd $FAKE_ROOT 172echo Generating LPP control files 173find . ! -name . -print >../openssh.al --- 215 unchanged lines hidden --- |