Samba 3.0.22 Porting by Vidya Sagar

10
2.A.2 BSD libraries and headers
As discussed in the MPE/iX header and libraries section the build machine should have the libbsd package installed.
Install the BSD libraries and headers available at
http://jazz.external.hp.com/src/bsd/libbsd.html?jumpid=reg_R1002_USEN. The steps are:
1) Download the libbsd package from the link specified above to your windows machine.
2) FTP that to the target machine inside the /tmp directory.
3) Finally to install the package on target MPE/iX machine, either follow the instruction on the same web page or use
the script INSTALL.libbsd listed in
Appendix E.
2.A.3 PERL
GNU utilities like autoheader require PERL as these utilities are nothing but PERL scripts. PERL freeware are available
for MPE/iX at
http://jazz.external.hp.com/src/hp_freeware/perl/?jumpid=reg_R1002_USEN . You need to register in order
download the PERL package. Complete the freeware agreement, download PERL package on windows machine, ftp the
package to the target machine inside /tmp and finally follow the instruction on the same web page to install PERL.
2.A.4 POSIX wrappers
The last package required to be installed on the target build machine is POSIX wrappers available at
http://jazz.external.hp.com/src/px_wrappers/index.html. The steps to install POSIX wrapper are:
1) Download the complete package (compile and runtime) from the link specified above to your windows machine.
2) FTP that to the target machine inside the /tmp directory.
3) Finally to install the package on target MPE/iX machine, either follow the
installation instruction
(
http://jazz.external.hp.com/src/px_wrappers/px_wrappers.install) on the same page or use the script
INSTALL.px_wrappers listed in
Appendix D.
Note: Samba requires the use of the MPE Porting Wrappers package both at compile time and run time. But Samba also
requires use of the LIBCPXL runtime library which must be manually set up by running the script patch-libcpxl
placed in
Appendix F as show below:
shell/iX> sh patch-libcpxl
This script does the following:
1. Copies /POSIXC60/HPBIN/LIBCPXL to /$HPACCOUNT/$HPGROUP/LIBCPXL
2. No-ops the getpw() function in the newly copied library
The getpw() function does not behave in a manner consistent with standard MPE security concepts. We therefore make
getpw() function non operational since it is not used by Samba. Please note that this script should be run only after
creating account and group on the target build machine (discussed below) and user should logged on into the same
account and group configured for port.
Setting up account structure
You should be logged on to the target MPE/iX machine as the superuser MANAGER.SYS or the user having capability to
create, modify and purge account, group and user. As a check the “CAP” values for your user should be as shown below:
:listuser manager.sys
********************
USER: MANAGER.SYS
HOME GROUP: PUB PASSWORD: **
MAX PRI : 150 LOC ATTR: $00000000
LOGON CNT : 1
CAP: SM,AM,AL,GL,DI,OP,CV,UV,LG,PS,NA,NM,CS,ND,SF,BA,IA,PM,MR,DS,PH
:listacct sys
********************
ACCOUNT: SYS