4120
Comment:
|
4521
|
Deletions are marked like this. | Additions are marked like this. |
Line 115: | Line 115: |
{{{ | {{{ |
Line 120: | Line 120: |
}}} {{{ or DESTDIR or INSTALL_DIR |
}}} == Alternate method == {{{ in the Makefile something like DESTDIR or INSTALL_DIR |
Line 125: | Line 129: |
(echo 'i pkginfo';echo 'checkinstall';echo 'i preinstall';echo 'i postinstall'; pkgproto /tmp/pkg-staging=/ ) >prototype |
(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 |
Line 128: | Line 135: |
pkgmk -o output in /var/spool/pkg/$PKGNAME |
* pkgadd will always ask where the 'packeges base directory', for default add in pkginfo |
Line 131: | Line 138: |
pkgtrans -s /var/spool/pkg /tmp/$PKGNAME.pkg $PKGNAME | BASEDIR=/usr/local pkgmk -o output in /var/spool/pkg/$PKGNAME pkgtrans -s /var/spool/pkg /tmp/$PKGNAME.pkg $PKGNAME |
Line 134: | Line 146: |
rm -r /var/spool/pkg/$PKGNAME /tmp/pkg-staging | rm -r /var/spool/pkg/$PKGNAME /tmp/pkg-staging |
- 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
Alternate method
in the Makefile something like 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 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