Installation guide

2: Server-Resident Application Software Development
DC 900-1325I 31
Step 3: Create the new SRA development sub-directory by entering the following
command. In this example we will use “mysra” which will also be the name of our new
SRA module:
pwd
/usr/local/freeway/client/test
mkdir mysra
ls -l
drwxr-xr-x 2 freeway guest 512 Apr 10 2008 aws
drwxrwxrwx 2 root wheel 512 Aug 12 2009 icpreset
drwxrwxr-x 3 335 protogate 512 Feb 11 2006 iploop
drwxr-xr-x 2 root guest 512 Mar 14 22:17 mysra
drwxrwxrwx 2 root wheel 512 Aug 12 2009 sra
Step 4: Copy the loopback test program source files to the new SRA directory, renam-
ing the files during the copy process. Also, create a soft link for the make file:
pwd
/usr/local/freeway/client/test
cd mysra
cp ../aws/awsalp.c mysra.c
cp ../aws/awsaldcfg mysradcfg
cp ../aws/awsaltcfg mysratcfg
cp ../aws/makefile.bsd makefile.bsd
ln -s makefile.bsd Makefile
ls -l
lrwxr-xr-x 1 root guest 12 Mar 14 22:30 Makefile ->
makefile.bsd
-rwxr-xr-x 1 root guest 1905 Mar 14 22:29 makefile.bsd
-rw-r--r-- 1 root guest 76222 Mar 14 22:27 mysra.c
-rw-r--r-- 1 root guest 18702 Mar 14 22:28 mysradcfg
-rw-r--r-- 1 root guest 3210 Mar 14 22:29 mysratcfg
2.3.2 Edit the SRA source files
Now that the loopback program source files are copied to our custom SRA directory, we
edit the files to change the references from “aws” to “mysra”. You can edit the files right
on the Freeway server using the vi editor (or ee, ex, ed, sed, or any other text-manipula-
tion software you like). Or if you're more comfortable with a different editor, you can
copy the source files from the Freeway disk to another system, edit the files on that sys-
tem, then copy the files back to the Freeway server. You can use fetch, FTP, NFS, rsync,