Samba 3.0.22 Porting by Vidya Sagar

[8] Samba-3.0.22 build document (http://jazz.external.hp.com/src/samba/BuildingSamba-3.0.22.htm)
6 Appendix
A. Packaging and Patch Notes for Samba
The following information references systems inside HP for use by MPE Lab persons when building a patch for
distribution to HP customers; it is included here for completeness.
The script to package Samba is available at
http://knowmpe.cup.hp.com/krt-
docs/Network/ARPAInternetServices/Samba/makedist.txt. This script bundle samba and creates a file for
distribution with name HFSFILES. Rename this file to P00xxxx while copying it to LPATCH for patch activity. The
files included in Samba package is listed at
http://knowmpe.cup.hp.com/krt-
docs/Network/ARPAInternetServices/Samba/File-list-package.txt. Refer the steps listed at
http://knowmpe.cup.hp.com/krt-docs/Network/ARPAInternetServices/Samba/Patch_notes.txt to create a patch for
delivering it to customer.
B. Installation Notes (Autopat and Patch/iX)
Autopat fails to install with the custom install file (IHF files) that does not contain “;outclass=,1” in their job (!job
abcd, manager.sys) line however patch/ix succeeds without any error.
31
C. Script to install GNU gcc compiler and utility (INSTALL.gcc)
#!/bin/sh
###############################################################
# File: INSTALL.gcc
# Author: Vidya Sagar (vidya.sagar2@hp.com)
# Purpose: To install the GNU gcc 3.4.2 compilers and assorted tools
# Assumption: The file all.bin or file[1-9].bin has been downloaded from JAZZ and
resides in/tmp
# Note: Rerun this script every time you install or update from a FOS or CSLT tape
###############################################################
function exit_on_error
{
if [ $? != 0 ]; then
echo Exiting due to error
exit 1
fi
}
exit_on_error
cd /tmp
if [ -f all.bin ]; then
echo Renaming all.bin to GNU.Z...
mv all.bin GNU.Z
else
NO_OF_FILE_BIN=`ls file[1-9].bin | wc -l`
echo Total number of files downloaded are $NO_OF_FILE_BIN
if [ $NO_OF_FILE_BIN -le 9 ]; then
yesno=N
echo Files are `ls file[1-9].bin` "[correct? (Y/N)]: "
read yesno
if [ "$yesno" = Y ]; then
echo Okay..Continuing....
cat file[1-9].bin > GNU.Z
else
echo Download all the files "file[1-9].bin" or all.bin and
try again
exit 0