wiki:HP-UX

Version 2 (modified by Josh, 13 years ago) ( diff )

--

Porting on HP-UX

HP-UX packages

Software Package Builder 7.0 User's Guide

Software Distributor Administration Guide

Port from scratch

These notes are taken as the HP-UX port is occuring

  • Working on a pre-installed HP-UX machine
  • Download the source of project-builder.org
    $ wget ftp://ftp.project-builder.org/src/project-builder-latest.tar.gz
    $ wget ftp://ftp.project-builder.org/src/ProjectBuilder-latest.tar.gz
    
  • Extract the sources
    $ gzip -cd ProjectBuilder-latest.tar.gz | tar xf -
    $ gzip -cd project-builder-latest.tar.gz | tar xf -
    
  • Install the project
    $ cd ProjectBuilder-0.10.1/
    $ perl Makefile.PL
    $ make
    $ sudo make install
    $ cd ../project-builder-0.10.1/
    $ perl Makefile.PL
    $ make
    $ sudo make install
    
  • Test that project-builder is installed and working correctly
  • Build project-builder.org with itself to create native packages
    $ echo > ~/.pbrc << EOF
    pburl pb = svn+ssh://bruno@mondo.hpintelco.net/mondo/svn/pb
    pbconfurl pb = svn+ssh://svn.project-builder.net/mondo/svn/pb/pbconf
    pbdefdir default = $ENV{'HOME'}/pb/projects
    pbdefdir pb = $ENV{'HOME'}
    pbconfdir pb = $ENV{'HOME'}/pb/pbconf
    EOF
    $ pb -p pb -r devel cms2pkg
    [...]
    

Make depot for HP-UX software distribution

  • Create pb psf(product specification file)
    #vi pb.psf
            depot
                    layout_version   1.0
    
            vendor
                    tag              HP
                    description      HP EMEA CME solution center
                    title            HP Intel Redhat Lab
    
            category
                    tag              package_tool
                    description      packags source code to different OS platform
    
            product
                    tag              pb
                    architecture    HP-UX_B.11.23_32/64
                    category        package_tool
            #       copyright       <copyright
                    description     "package tool to distribute source code for 
                                    different OS platform"
                    directory       /opt/pb
                    is_locatable    false
                    is_patch        false
                    machine_type    *
                    os_name         HP-UX
                    os_release      ?.11.23.*
                    revision        0.9.10
                    title           project-builder
                    vendor_tag      HP
            fileset
                    tag             command
                    architecture    HP-UX_B.11.23_32/64
            #       prerequisites
                    directory       ./blib/bin=/opt/pb/bin
                    file            pb
                    file            pbg
                    file            pbvi
                    directory       ./blib/lib/ProjectBuilder=/opt/perl_32/lib/5.8.8/ProjectBuilder
                    file            CMS.pm
                    file            Changelog.pm
                    file            Env.pm
                    file            Filter.pm
                    file            Version.pm
                    directory       ./blib/man1=/usr/share/man/man1
                    file            pb.1
                    directory       ./blib/man3=/usr/share/man/man3
                    file            ProjectBuilder::CMS.3
                    file            ProjectBuilder::Changelog.3
                    file            ProjectBuilder::Env.3
                    file            ProjectBuilder::Filter.3
    
  • Package pb as HPUX-SD format based on its psf file
    #swpackage –vv –s ./pb.psf –d /tmp/pb.depot
    #swreg -l depot /tmp/pb.depot
    
  • install pb.depot on HPUX platform (Make sure the swinstall option “make install incompatible software in target” is true.)
    #swinstall -s /temp/pb.depot -x allow_incompatible=true
    
Note: See TracWiki for help on using the wiki.