Samba 3.0.22 Porting by Vidya Sagar

33
fi
E. Script to install BSD library (INSTALL.libbsd)
#!/bin/sh
###############################################################
# File: INSTALL.libbsd
# Author: Vidya Sagar (vidya.sagar2@hp.com)
# Purpose: To install the BSD lib (libbsd.a) into /usr/lib
# Assumption: The file libbsd.tar.tar has been downloaded from JAZZ and resides
in/tmp
###############################################################
#Proceed only if system has /usr/lib dir
if [ -d /usr/lib ]; then
cd /tmp
if [ -f libbsd.tar.tar ]; then
mv libbsd.tar.tar libbsd.tar.Z
fi
if [ ! -f libbsd.tar.Z ]; then
echo Error: Download the libbsd package and try again
exit 1
fi
if [ ! -d /usr/include/bsd ]; then
mkdir /usr/include/bsd
fi
if [ $? != 0 ] ; then
echo Error: try again
exit 1
else
cd /usr/include/bsd
tar -xvofz /tmp/libbsd.tar.Z
echo Done ":)"
fi
else
echo "Error: /usr/lib does not exist"
F. Script to patch LIBCPXL (patch-libcpxl)
#!/bin/sh
# no-op the getpw() function in /POSIXC60/HPBIN/LIBCPXL
cd /$HPACCOUNT/$HPGROUP
rm –f LIBCPXL
cp /POSIXC60/HPBIN/LIBCPXL LIBCPXL
cat <<EOF | /SYS/PUB/SOMPATCH
open LIBCPXL.$HPGROUP.$HPACCOUNT
modify getpw+8,2 6bda3db9| e8000940 6bd93db1| 0800025c
exit
EOF
if [ $? != 0]; then
echo Done “:)”
fi
G. libbsd header files
/usr/include/bsd/a.out.h
/usr/include/bsd/ar.h
/usr/include/bsd/db.h