DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Adding a new printer type

Creating the installable package

  1. Create the following files for the installable package:

    prototype
    Contains the package content definition. See prototype file.

    pkginfo
    Contains the package info. See pkginfo file.

    depend
    contains the package dependencies. See depend file.

    postinstall
    writes the private file created above to the end of the /usr/lib/scoadmin/printer/model.stz file, and adds any new filters and any new terminfo definitions to the lp system. See postinstall file.

    Any scripting language can be used. There are advantages to using OSA VTCL; see Developing Visual Tcl applications.


    preremove
    removes the items installed by the postinstall script. See preremove file.

  2. Create the installable package. This example assumes that:

    Create the package:

       pkgmk -o -f /home/pkgbuild/src/prototype -d /home/pkgbuild/pkgs oklaser
    
    Convert the package to a bit stream:
       pkgtrans -s /home/pkgbuild/pkgs "-" all >/home/pkgbuild/pkgs/oklaser.pkg
    

  3. The oklaster.pkg file is ready for distribution. It can be put on a download web page or put onto issue media such as a floppy disk.

© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005