#acl DvGroup:read,write,revert,admin All:read [[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" }}} * prototype definitions {{{ create the software `configure --prefix=/dir', where dir is temporary install directory. e.g /opt/local '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 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 GNUbzip2 }}} {{{ or DESTDIR or INSTALL_DIR "make DESTDIR=/tmp/pkg-staging install" (echo 'i pkginfo';echo 'checkinstall';echo 'i preinstall';echo 'i postinstall'; pkgproto /tmp/pkg-staging=/ ) >prototype 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 }}}