Differences between revisions 4 and 5
Revision 4 as of 2007-02-26 17:54:58
Size: 4521
Editor: FatimaStreit
Comment:
Revision 5 as of 2007-02-26 18:36:12
Size: 4585
Editor: FatimaStreit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 22: Line 22:
 * prototype definitions  * creating prototype file for build with configure
Line 28: Line 28:
     make install
Line 74: Line 74:
i depend
Line 77: Line 78:
finally prototype file loks like:i pkginfo finally prototype file loks like:
i pkginfo
Line 114: Line 116:
== Creating the package ===  == Creating the package ===
Line 117: Line 120:
pkgmk -o -r / -d /tmp -f /tmp/prototype        pkgmk -o -r / -d /tmp -f /tmp/prototype
Line 119: Line 122:
pkgtrans -s /tmp /tmp/GNUbzip2.1.0.3.i386.Solaris.2.10.pkg GNUbzip2
   }}}
       pkgtrans -s /tmp /tmp/GNUbzip2.1.0.3.i386.Solaris.2.10.pkg GNUbzip
}}}
Line 122: Line 125:

== Alternate method ==
 * creating prototype file for build with DESTDIR or INSTALL_DIR in Makefile
Line 126: Line 127:
     in the Makefile something like DESTDIR or INSTALL_DIR      

TableOfContents

  • Dokumentation: pdf

Package control files

  • pkginfo definitions
    •      At minimum, pkginfo file should contain:
      
           PKG="GNUbzip2"
           NAME="GNU bzip2 1.0.3"
           VERSION="1.0.3"
           ARCH=("sparc","i386", or "all") 
           CLASSES="none"
           CATEGORY="utility"
           VENDOR="GNU"
  • creating prototype file for build with configure
    •      create the software  `configure --prefix=/dir', where dir is temporary install directory.
           e.g /opt/local
           make install
           'find /opt/local -print >/tmp/files'
            
           'cat /tmp/files |pkgproto >/tmp/prototype
            
           this will create a /tmp/prototype
      
      
      d none /opt/local 0755 root root
      d none /opt/local/bin 0755 root root
      f none /opt/local/bin/bzip2 0755 root root
      f none /opt/local/bin/bunzip2 0755 root root
      f none /opt/local/bin/bzcat 0755 root root
      f none /opt/local/bin/bzip2recover 0755 root root
      f none /opt/local/bin/bzgrep 0755 root root
      l none /opt/local/bin/bzegrep=/opt/local/bin/bzgrep
      l none /opt/local/bin/bzfgrep=/opt/local/bin/bzgrep
      f none /opt/local/bin/bzmore 0755 root root
      l none /opt/local/bin/bzless=/opt/local/bin/bzmore
      f none /opt/local/bin/bzdiff 0755 root root
      l none /opt/local/bin/bzcmp=/opt/local/bin/bzdiff
      d none /opt/local/lib 0755 root root
      f none /opt/local/lib/libbz2.a 0644 root root
      d none /opt/local/man 0755 root root
      d none /opt/local/man/man1 0755 root root
      f none /opt/local/man/man1/bzip2.1 0644 root root
      f none /opt/local/man/man1/bzgrep.1 0644 root root
      f none /opt/local/man/man1/bzmore.1 0644 root root
      f none /opt/local/man/man1/bzdiff.1 0644 root root
      f none /opt/local/man/man1/bzegrep.1 0644 root root
      f none /opt/local/man/man1/bzfgrep.1 0644 root root
      f none /opt/local/man/man1/bzless.1 0644 root root
      f none /opt/local/man/man1/bzcmp.1 0644 root root
      d none /opt/local/include 0755 root root
      f none /opt/local/include/bzlib.h 0644 root root
      
      
      on the front of the prototype add
      i pkginfo
      
      also at the top add
      
      i checkinstall
      i preiinstall
      i postinstall
      i LICENSE
      i depend
      on the end of prototype add
      d none  /opt 0755 root root
      
      finally prototype file loks like:
      i pkginfo
      i checkinstall
      i LICENSE
      i preinstall
      i postinstall
      d none /opt/local 0755 root root
      d none /opt/local/bin 0755 root root
      f none /opt/local/bin/bzip2 0755 root root
      f none /opt/local/bin/bunzip2 0755 root root
      f none /opt/local/bin/bzcat 0755 root root
      f none /opt/local/bin/bzip2recover 0755 root root
      f none /opt/local/bin/bzgrep 0755 root root
      l none /opt/local/bin/bzegrep=/opt/local/bin/bzgrep
      l none /opt/local/bin/bzfgrep=/opt/local/bin/bzgrep
      f none /opt/local/bin/bzmore 0755 root root
      l none /opt/local/bin/bzless=/opt/local/bin/bzmore
      f none /opt/local/bin/bzdiff 0755 root root
      l none /opt/local/bin/bzcmp=/opt/local/bin/bzdiff
      d none /opt/local/lib 0755 root root
      f none /opt/local/lib/libbz2.a 0644 root root
      d none /opt/local/man 0755 root root
      d none /opt/local/man/man1 0755 root root
      f none /opt/local/man/man1/bzip2.1 0644 root root
      f none /opt/local/man/man1/bzgrep.1 0644 root root
      f none /opt/local/man/man1/bzmore.1 0644 root root
      f none /opt/local/man/man1/bzdiff.1 0644 root root
      f none /opt/local/man/man1/bzegrep.1 0644 root root
      f none /opt/local/man/man1/bzfgrep.1 0644 root root
      f none /opt/local/man/man1/bzless.1 0644 root root
      f none /opt/local/man/man1/bzcmp.1 0644 root root
      d none /opt/local/include 0755 root root
      f none /opt/local/include/bzlib.h 0644 root root
      d none /opt 0755 root other
    == Creating the package ===
    •        pkgmk -o -r / -d /tmp -f /tmp/prototype
      
             pkgtrans -s /tmp /tmp/GNUbzip2.1.0.3.i386.Solaris.2.10.pkg GNUbzip
  • creating prototype file for build with DESTDIR or INSTALL_DIR in Makefile
    •      "make DESTDIR=/tmp/pkg-staging install"
      
           (echo 'i pkginfo';echo 'checkinstall';echo 'i preinstall';echo 'i postinstall';
            pkgproto /tmp/pkg-staging=/ ) >prototype 
        or relocatable package
           (echo 'i pkginfo';echo 'checkinstall';echo 'i preinstall';echo 'i postinstall';
            pkgproto /tmp/pkg-staging/usr/local=) >prototype
      
        *   pkgadd will always ask where the 'packeges base directory', for default
            add in pkginfo
      
            BASEDIR=/usr/local 
      
            pkgmk -o 
            output in /var/spool/pkg/$PKGNAME
      
            pkgtrans -s /var/spool/pkg /tmp/$PKGNAME.pkg $PKGNAME
      
      
            rm -r /var/spool/pkg/$PKGNAME /tmp/pkg-staging

BuildSolarisPackages (last edited 2008-10-30 11:40:13 by localhost)