summaryrefslogtreecommitdiff
path: root/contrib/aix/buildbff.sh
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/aix/buildbff.sh')
-rwxr-xr-xcontrib/aix/buildbff.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/contrib/aix/buildbff.sh b/contrib/aix/buildbff.sh
index 3b3699660..727ac446d 100755
--- a/contrib/aix/buildbff.sh
+++ b/contrib/aix/buildbff.sh
@@ -1,6 +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.6 2003/08/25 05:01:04 dtucker Exp $
4# 5#
5# Author: Darren Tucker (dtucker at zip dot com dot au) 6# Author: Darren Tucker (dtucker at zip dot com dot au)
6# 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
@@ -14,9 +15,9 @@
14# create a "config.local" in your build directory or set 15# create a "config.local" in your build directory or set
15# environment variables to override these. 16# environment variables to override these.
16# 17#
17[ -z "$PERMIT_ROOT_LOGIN" ] || PERMIT_ROOT_LOGIN=no 18[ -z "$PERMIT_ROOT_LOGIN" ] && PERMIT_ROOT_LOGIN=no
18[ -z "$X11_FORWARDING" ] || X11_FORWARDING=no 19[ -z "$X11_FORWARDING" ] && X11_FORWARDING=no
19[ -z "$AIX_SRC" ] || AIX_SRC=no 20[ -z "$AIX_SRC" ] && AIX_SRC=no
20 21
21umask 022 22umask 022
22 23
@@ -31,7 +32,7 @@ else
31fi 32fi
32 33
33# 34#
34# We still support running from contrib/aix, but this is depreciated 35# We still support running from contrib/aix, but this is deprecated
35# 36#
36if pwd | egrep 'contrib/aix$' 37if pwd | egrep 'contrib/aix$'
37then 38then
@@ -121,7 +122,7 @@ cp $srcdir/README* $objdir/$PKGDIR/
121# Extract common info requires for the 'info' part of the package. 122# Extract common info requires for the 'info' part of the package.
122# AIX requires 4-part version numbers 123# AIX requires 4-part version numbers
123# 124#
124VERSION=`./ssh -V 2>&1 | sed -e 's/,.*//' | cut -f 2 -d _` 125VERSION=`./ssh -V 2>&1 | cut -f 1 -d , | cut -f 2 -d _`
125MAJOR=`echo $VERSION | cut -f 1 -d p | cut -f 1 -d .` 126MAJOR=`echo $VERSION | cut -f 1 -d p | cut -f 1 -d .`
126MINOR=`echo $VERSION | cut -f 1 -d p | cut -f 2 -d .` 127MINOR=`echo $VERSION | cut -f 1 -d p | cut -f 2 -d .`
127PATCH=`echo $VERSION | cut -f 1 -d p | cut -f 3 -d .` 128PATCH=`echo $VERSION | cut -f 1 -d p | cut -f 3 -d .`
@@ -218,7 +219,7 @@ else
218 fi 219 fi
219 220
220 # Create user if required 221 # Create user if required
221 if cut -f1 -d: /etc/passwd | egrep '^'$SSH_PRIVSEP_USER'\$' >/dev/null 222 if lsuser ALL | cut -f1 -d: | egrep '^'$SSH_PRIVSEP_USER'\$' >/dev/null
222 then 223 then
223 echo "PrivSep user $SSH_PRIVSEP_USER already exists." 224 echo "PrivSep user $SSH_PRIVSEP_USER already exists."
224 else 225 else