Samba 3.0.22 Porting by Vidya Sagar

14
Assuming you have the samba source code (e.g smb3022.tar.gz) downloaded into your Windows workstation,
following example shows how to ship (PUT) them to your build machine using FTP:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\sagarvi>cd c:\
C:\>cd downloads
C:\Downloads>dir
Volume in drive C is E-Client
Volume Serial Number is 88B7-64DC
Directory of C:\Downloads
05/22/2007 05:15 PM 18,234,944 smb3022.tar.gz
28 File(s) 221,521,318 bytes
2 Dir(s) 24,916,275,200 bytes free
C:\Downloads>ftp
ftp> o buildmc.cup.hp.com
Connected to buildmc.cup.hp.com.
220 HP ARPA FTP Server [A0010Q15] (C) Hewlett-Packard Co. 2000 [PASV SUPPORT]
User (buildmc.cup.hp.com:(none)): mgr.samba,smb3022
331 Password required for MGR.SAMBA,SMB3022. Syntax: [,]acctpass
Password:
230 User logged on
ftp> cd src
250 CWD file action successful.
ftp> pwd
257-"/SAMBA/SMB3022/src" is the current directory.
257 "MGR.SAMBA,SMB3022" is the current session.
ftp> binary
200 Type set to I.
ftp> put ./smb3022.tar.gz ./smb3022.tar.gz
200 PORT command ok.
150 File: ./smb3022.tar.gz opened; data connection will be opened
226 Transfer complete.
ftp: 18234944 bytes sent in 168.20Seconds 102.03Kbytes/sec.
ftp> bye
221 Server is closing command connection
C:\Downloads>
Now you have the tar’ ed and compressed samba source code in place to your build machine.
The next step is to unpack them.
3.3 Unpacking the tarball
The file that we’ve downloaded, a tarball, is nothing but the tar ‘ed and compressed source code. Unpacking the
tarball comprises of two activities; First, to uncompress and then extract the files with tar. Assume that the
downloaded Samba source code file name is samba-3.0.22.tar.gz. The file can be uncompressed as shown
below:
Shell/iX> cd /$HPACCOUNT/$HPGROUP/src
Shell/iX> gzip –d samba-3.0.22.tar.gz